[cairo] Custom UserFont sizing questions [RESOLVED]

Ian Britten britten at caris.com
Fri Dec 12 07:10:24 PST 2008


Behdad Esfahbod wrote:

>> Things are looking good now!  (Sorry for the noise...)
> 
> I still insist: use cairo_copy_path() instead of FT_Outline_Decompose.

[ Sorry - I had seen your message, but I was getting _really_ close
to figuring out why my stuff wasn't working, and I *hate* not
knowing why something isn't working...  :P ]

Anyways, on to your suggestion:
I'm not initially sure what Cairo path I'm supposed to be copying,
given that all I've got is a FT_Face (and the destination Context).
Do you mean that I should still use glyph_path() to render the
face to the Context?  Then copy the path from the Context?
Presumably then I'd (somehow) remove the current path from the
Context?  And modify my copied path to remove the closing segment
that was automatically added?  Then finally stroke that path onto
my Context?

Assuming 'yes' to all that, it sounds like it'd work - I can go
look into that ... (Never used Cairo paths anywhere yet)

Thanks for the suggestion
Ian


More information about the cairo mailing list