[cairo] Documentation typos.

Simon Sapin simon.sapin at exyr.org
Sat Jan 5 17:01:55 PST 2013


Docs for cairo_glyph_t say that …

>  Cairo doesn't expose any way of converting input text into glyphs

… while cairo_scaled_font_text_to_glyphs() is there since 1.8.

A better way to say this is that cairo only does primitive *shaping* 
(aka text → glyphs conversion) by placing glyphs next to each other, 
moving the cursor by each glyph’s X and Y *advance* metric.

This is okay-ish for Latin text, but quality shaping (with ligatures, 
kerning, etc.) or even correct shaping (in some writing script) requires 
another library like Pango.

-- 
Simon Sapin


More information about the cairo mailing list