[cairo] Font size issue when using pango + cairo

Behdad Esfahbod behdad at behdad.org
Wed Jan 7 00:13:55 PST 2009

Emmanuel Pacaud wrote:
> Hi,
> Le mardi 06 janvier 2009 à 20:10 -0500, Behdad Esfahbod a écrit :
>>> I don't really want to inheritate the font options, since I'd like to
>>> obtain a layout that doesn't depend on the target, which can be either
>>> an image or a vector surface.
>> You really should inherit the font options from the display if you are going
>> to show it there, or it will look ugly and out of place.  For vector surfaces,
>> sure, you can create a new surface.
> How is it possible to have the exact same object layout with different
> font options, when text is involved ?
> If I'm not wrong, font and glyph position hinting (cairo_hint_metrics_t,
> cairo_hint_style_t) does change the extent of a pango layout, doesn't
> it ?

Technically speaking, you need to turn metrics hinting off to get a linearly
scalable layout.  So, you can still inherit the hint style options.  But note
that even if you turn metrics hinting off, you still hit bugs...


> 	Emmanuel.

More information about the cairo mailing list