[cairo] Custom UserFont sizing questions [RESOLVED]
Behdad Esfahbod
behdad at behdad.org
Fri Dec 12 07:36:15 PST 2008
Ian Britten wrote:
> 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 ]
Understood.
> 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?
Yes. Note that cairo_glyph_path() doesn't render anything. It just adds the
path for the glyphs to context. If you copy_path then new_path, it's gone.
> Presumably then I'd (somehow) remove the current path from the
> Context?
Yes, that's cairo_new_path().
> And modify my copied path to remove the closing segment
> that was automatically added?
Yes. What closing? There is no closing automatically added. If you removed
your duplicating hack, it should be just a matter of:
cairo_glyph_path()
cairo_stroke()
I still am not sure why you insist that you need special processing :P.
behdad
> 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
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>
More information about the cairo
mailing list