> 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
_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel