[cairo] Freetype to Cairo - newb needs help

Behdad Esfahbod behdad at behdad.org
Mon Oct 22 07:43:01 PDT 2007

On Mon, 2007-10-22 at 09:55 -0400, Donn wrote:
> Number 3 in the list is the rub. I see there is 
> a "cairo_ft_font_face_create_for_ft_face" function in the c/c++ API, but 
> nothing like it in pycairo. I have searched around and it seems to be a grey 
> area of controversy for lofty reasons I will never grasp.
> So, like a fool, I thought, why not just extend Python with a module that will 
> open font Blah with Freetype2, get the Cairo font whatsis from that and then 
> pass it back up to Python! Yeah, right ... 

If you want to stay in Python, you can use the Python ctype module to
bind a couple methods (FT_New_Face and
cairo_ft_font_face_create_for_ft_face) from inside python.


"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759

More information about the cairo mailing list