[cairo] font size=0 and cairo_set_font_matrix() issue

Kamil Blank caceel at gmail.com
Fri Feb 4 05:29:33 PST 2011


Dear All,

I'd like to use font size = 0 and pass this value into cairo_t.
cairo_set_font_matrix() description says: "Normally, a simple scale is used
(see cairo_set_font_size()), but a more complex font matrix can be used to
shear the font or stretch it unequally along the two axes"

What is the difference between passing zeroed matrix into
cairo_set_font_matrix() and call cairo_set_font_size(cairo, 0) ?
As I understand both of them should work but in the first case cairo status
becomes invalid (invalid matrix), in the second one everything is ok.

What is wrong with passing zeroed matrix here? Is it a bug or natural
behavior?

Regards,
Kamil Blank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20110204/ce0c4944/attachment.htm>


More information about the cairo mailing list