- // Interpret size property as an absolute pixel height and compensate for
- // freetype's "interpretation" of our absolute size request. This gives
- // precise control over compositing and better quality by reducing scaling
- // artifacts with composite geometries that constrain the dimensions.
- // If you do not want this, then put the size in the font property or in
- // the pango markup.
- if ( size != 0 )
- {
- pango_font_description_set_absolute_size( desc, PANGO_SCALE * size * size/h );
- pango_layout_set_font_description( layout, desc );
- pango_layout_get_pixel_size( layout, &w, &h );
- }
-