[cairo] Font size issue when using pango + cairo

Emmanuel Pacaud emmanuel.pacaud at lapp.in2p3.fr
Tue Jan 6 23:51:18 PST 2009


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 ?

	Emmanuel.

-- 
Emmanuel PACAUD
Groupe Virgo
LAPP - Laboratoire d'Annecy-le-Vieux de physique des particules
9, chemin de Bellevue - BP 110
74941 Annecy-le-Vieux CEDEX
France
Tél: (+33)4 50 09 55 92 ou 17 89 - Fax: (+33)4 50 27 94 95



More information about the cairo mailing list