freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] WOFF2 support update and questions


From: Werner LEMBERG
Subject: Re: [ft-devel] WOFF2 support update and questions
Date: Wed, 03 Jul 2019 23:45:48 +0200 (CEST)

> I have now added code to uncompress the Brotli-compressed stream.

Nice!

> Right now, I'm allocating the required memory for the stream, and
> storing the output in an FT_Byte array (`uncompressed_buf').  How do
> I create an `FT_Stream' from this so that I can read it using the
> `FT_READ_XXX' macros?  I tried using `FT_Stream_OpenMemory' but that
> gives me segmentation faults.

`FT_Stream_OpenMemory' is be the right function.  After calling this,
you should use `FT_Stream_EnterFrame' and proceed as usual.

> Also, is this the right way of doing it?  Is there some other way I
> can read the buffer?

Is there are problem with `FT_READ_XXX'?


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]