[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft] Memory management and stream I/O question (Freetype v1 --> v2)
From: |
Alex Taylor |
Subject: |
[ft] Memory management and stream I/O question (Freetype v1 --> v2) |
Date: |
Tue, 19 Mar 2013 19:55:55 -0400 (EDT) |
User-agent: |
PMMail/3.08 (os/2; U; Warp 4.5; en-CA; i386; ver 3.08.70.1660) |
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 <address@hidden>
http://www.altsan.org
- [ft] Memory management and stream I/O question (Freetype v1 --> v2),
Alex Taylor <=