Cairo, minimal linewidth?

Following the discussion at

I have a question related to the minimal linewidth that can be used when drawing
a line with cairo. The linewidth is defined in logical pixels (gdouble). What happens if I set a linewidth of 0.5 ? Will the line be drawn on the screen with a width of half a device pixel ? Surely not. So it seems a linewidth below 1.0 is useless. Please help, thanks a lot.

Cairo surfaces created by GTK set the device scaling to match the same scaling factor of the widget; if you create your own surfaces then you’ll need to do the same.

See the Cairo frequently asked questions.

If you have Cairo-specific questions, feel free to ask them on the project’s mailing list.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.