Werner Lemberg d689d1cf78 Implement support for WOFF containers.
We simply synthesize a SFNT from the WOFF, create a memory stream
for the new data, and load the SFNT as usual.

Does NOT add any API to access WOFF metadata or private blocks.

* include/freetype/internal/tttypes.h (WOFF_HeaderRec,
WOFF_TableRec): New structures.

* include/freetype/tttags.h (TTAG_wOFF): New macro.

* src/base/ftobjs.c (FT_Open_Face): Set `stream' after calling
`open_face'.

* src/sfnt/sfobjs.c [FT_CONFIG_OPTION_SYSTEM_ZLIB]: Include
`FT_GZIP_H'.
(WRITE_BYTE, WRITE_USHORT, WRITE_ULONG): New temporary macros for
writing to a stream.
(sfnt_stream_close, compare_offsets, woff_open_font): New functions.
(sfnt_open_font): Handle `TTAG_wOFF'.
(sfnt_init_face): Set `stream' after calling `sfnt_open_font'.

* src/truetype/ttobjs.c (tt_face_init): Set `stream' after calling
`sfnt->init_face'.

* src/base/ftobjs.c (open_face): Use a pointer to FT_Stream as an
argument so that a changed stream survives.
Update callers.
2013-08-29 17:53:40 +02:00
..
2013-08-02 14:50:23 +02:00
2013-06-04 07:14:55 +02:00
2010-12-31 17:47:09 +01:00
2013-05-28 22:37:10 +02:00
2009-03-11 21:39:10 +00:00
2013-03-14 15:49:49 +01:00
2012-01-17 02:00:24 +09:00
2013-01-12 19:17:05 -05:00
2008-06-26 19:56:51 +00:00
2010-02-13 07:53:37 +01:00
2008-06-26 19:56:51 +00:00
2008-06-26 19:56:51 +00:00
2009-01-19 08:35:45 +00:00
2013-06-09 08:48:01 +02:00
2008-06-26 19:56:51 +00:00
2009-01-19 08:47:43 +00:00
2009-01-19 08:35:45 +00:00
2010-02-13 07:53:37 +01:00
2013-01-12 19:17:05 -05:00
2013-03-14 15:49:49 +01:00
2013-06-25 07:48:38 +02:00
2011-11-15 08:17:59 +01:00