Hi folks, new arrival here... <g>

I'm undertaking to try and port the venerable Freetype/2 font driver for 
OS/2 from Freetype version 1 to version 2.x.

I'm finding certain aspects of this rather confusing, given that parts of 
the Freetype API have changed quite significantly since version 1.

I have two main questions (for now).

First: When I need to allocate memory from my code, the old method was to 
call ALLOC (wrapper to TT_Alloc), to ensure that the appropriate functions 
were used.  However, in Freetype v2 these appear to be hidden from the 
application through the private memory manager object.  If necessary, I can 
simply call the system allocation function directory, but is this really 
the correct approach?


Second: It's vitally important to flush (i.e. close) the Face stream every 
time I pass control back to the application, while otherwise keeping the 
Face object itself.  The existing (v1) code uses TT_Flush_Face (which in 
turn calls TT_Flush_Stream).  I cannot figure out what the equivalent 
procedure in Freetype v2.x is, however.  Can anyone help with this?


Thanks!

-- 
Alex Taylor <[email protected]>
http://www.altsan.org

_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to