[cairo] Freetype to Cairo - newb needs help
donn.ingle at gmail.com
Tue Oct 23 13:58:01 PDT 2007
> > Would I have a good argument (or not?) when I say:
> > 1. Part of Cairo wraps Freetype (to a certain extent) already.
> No, this is not correct.
Excuse my use of terms, I'm an amateur. I meant "wrap" to mean "it has
functions that do stuff with" Freetype.
I specifically mean these:
> > 2. Cairo faces can be made directly from FT faces in c/c++
> > 3. PyCairo wraps Cairo.
> > Therefore:
> > 4. Pycairo should also offer Python versions of the FT->Cairo functions.
> > ?
> It should, but there's no PyFreeType, that's why PyCairo doesn't do
I can see that in one way, but in another: Pycairo *could* be a one-for-one
conversion of each Cairo function and therefore those Freetype functions
could also be exposed. Sure, there would be no FT_New_Face until a pyFreetype
is written, but at least the Cairo end of the Freetype deal would be there.
Then, with a little voodoo, we could use the ctypes trick to get an FT_Face
and pass that directly into the (now imaginary)
Unless that's already the case, but I did give it a stab and had no joy
finding that function.
More information about the cairo