freetype2/include/freetype/internal
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
..
services Use `FT_Module' instead of `FT_Library' argument in property funcs. 2012-09-15 09:10:06 +02:00
autohint.h [autofit] Some macro and variable renamings for orthogonality. 2012-08-27 06:57:05 +02:00
ftcalc.h Remove `FT_SqrtFixed' function. 2013-08-27 21:36:03 +02:00
ftdebug.h Another try on pragmas. 2013-06-12 23:33:11 +02:00
ftdriver.h */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code. 2013-05-10 07:58:47 +02:00
ftgloadr.h Prevent the overflows by a glyph with too many points or contours. 2009-07-08 14:52:11 +09:00
ftmemory.h Fix compiler warnings. 2013-06-05 13:43:20 +02:00
ftobjs.h Fix Savannah bug #39266. 2013-06-18 09:35:34 +02:00
ftpic.h Formatting, comment fixes. 2012-07-29 13:15:53 +02:00
ftrfork.h Formatting, comment fixes. 2012-07-29 13:15:53 +02:00
ftserv.h Another try on pragmas. 2013-06-12 23:33:11 +02:00
ftstream.h Next round of compiler fixes. 2013-06-06 09:16:38 +02:00
fttrace.h [cff] Add a new Type 2 interpreter and hinter. 2013-04-13 18:53:28 +02:00
ftvalid.h Add and improve pragmas for MSVC compiler. 2013-06-07 18:10:40 +02:00
internal.h Another try on pragmas. 2013-06-12 23:33:11 +02:00
psaux.h [type1] Fix handling of /FontBBox in MM fonts. 2012-12-23 21:14:37 +01:00
pshints.h Formatting, comment fixes. 2012-07-29 13:15:53 +02:00
sfnt.h */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code. 2013-05-10 07:58:47 +02:00
t1types.h */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code. 2013-05-10 07:58:47 +02:00
tttypes.h Implement support for WOFF containers. 2013-08-29 17:53:40 +02:00