[cairo] pango_cairo_layout_path and hinting
a.g.nienhuis at gmail.com
Thu Jun 17 13:51:50 PDT 2010
In theory pango_cairo_show_layout() does all sorts of speed
optimizations that ...path()+cairo_fill() does not. I believe
...show_layout() can do sub-pixel (LCD) stuff where cairo_fill can
not. I think all glyphs are (sub?)pixel-aligned with ...show_layout().
In practice ...show_layout() is faster while ...fill() looks 'nicer'.
'nice' does not mean more readable. Especially with a very small font
size (thumbnails) the line spacing is 'wrong' with ...show_layout().
3.5 pixel line spacing gets rounded to 3 or 4 every other line.
I'm not sure if it's possible to change the font settings to make
show_layout() behave like ...fill().
Met vriendelijke groet,
On Sat, Jun 12, 2010 at 1:10 AM, Behdad Esfahbod <behdad at behdad.org> wrote:
> On 06/11/2010 03:09 AM, Lutz Gehlen wrote:
>> However, I was wondering how the hinting for glyph rasterization is
>> affected by this process. After converting the text to a path, is
>> hinting performed at all? The question boils down to: Does
>> pango_cairo_layout_path(cr, layout);
>> give the same result as
>> pango_cairo_show_layout(cr, layout);?
> It's supposed to give the same result, yes. How good that actually works is
> another question. Let us know.
>> Thanks for your help
>> cairo mailing list
>> cairo at cairographics.org
> cairo mailing list
> cairo at cairographics.org
More information about the cairo