[cairo] A Question

Bryce Harrington bryce at bryceharrington.org
Tue Feb 26 17:41:11 UTC 2019


On Fri, Feb 22, 2019 at 04:59:43PM -0800, Thomas Dineen wrote:
> Gentle People:
> 
>    A question on Cairo: The X Y inputs to Cairo drawing functions are type
> double.
> 
> Dose this imply that pixel or line spacing could be less than 1.0?
> 
> Could the spacing be say 0.5 or 0.25?

Cairo does track the decimal positioning, although beware there is some
culling behavior that can kick in when you're < 1.0, that could make
things disappear unexpectedly.  I don't think the documentation goes
into the culling rules in much depth, and there may be some
inconsistencies in how it's handled so may be down to experimentation
and/or code study.

There's a FAQ item that's about a slightly different issue but might be
of interest:

  https://www.cairographics.org/FAQ/#sharp_lines

HTH,
Bryce


More information about the cairo mailing list