[cairo] Tangential glyph enlargement

Tobias Hoffmann lcairo-list at thax.hardliners.org
Tue May 10 07:41:22 PDT 2011

Chris Wilson wrote:
> Right, so you want to compute an offset curve for the bezier outline
> stored in the vector font. This is very similar to the task performed when
> actually stroking a path, and if you want some inspiration I would read
> the cairo_stroke_to_path() code.
I have read about stroke_to_path in another context (and would like to 
see it upstream), but
it didn't come to my mind in this context, thank you!
> Even with using the outlines you will still need a little bit of
> information from the font as to the direction in which to offset each
> curve, so it is probably better looking to the original font description
> and seeing if there is some information to help you generate the glyph you
> want. Otherwise I would just scale and stroke the medial axis.
That's the idea, yes. Some OpenGL text rendering libraries apparently do 
this, too.
> Hope this helps, and let us know the solution!
Let's see how far I get ...


More information about the cairo mailing list