[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] Freetype design problem?...
From: |
Pavel Kankovsky |
Subject: |
Re: [Freetype] Freetype design problem?... |
Date: |
Wed, 22 Aug 2001 00:43:51 +0200 (MET DST) |
On Tue, 21 Aug 2001, Pedriana, Paul wrote:
> I have a small problem with the design of the stream
> interface in FreeType, as exemplified in the code below.
> The 'ft_new_input_stream' function (below) creates a
> new FTStream. The problem is that *it* is allocating
> the memory for FTStream, when in fact the FT_New_Memory_Stream
> function or FT_New_Stream function should be doing the
> allocation. The problem with the way it is now is that
> you can't write a custom version of FT_New_Stream very
> easily because it can't extend the definition of the
> FT_Stream record. [...]
When you need a customized stream, you should use ft_open_stream
and initialize it yourself.
--Pavel Kankovsky aka Peak [ Boycott Microsoft--http://www.vcnet.com/bms ]
"Resistance is futile. Open your source code and prepare for assimilation."