1 /***************************************************************************/
5 /* Gzip-compressed stream support. */
7 /* Copyright 2002 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
10 /* This file is part of the FreeType project, and may only be used, */
11 /* modified, and distributed under the terms of the FreeType project */
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13 /* this file you indicate that you have read the license and */
14 /* understand and accept it fully. */
16 /***************************************************************************/
23 #include FT_FREETYPE_H
27 /*************************************************************************/
36 /* Using gzip-compressed font files */
39 /* This section contains the declaration of Gzip-specific functions. */
41 /*************************************************************************/
43 /************************************************************************
45 * @type: FT_Stream_OpenGzip
48 * open a new stream to parse gzip-compressed font files. This is
49 * mainly used to support the compressed *.pcf.gz fonts that come
53 * stream :: target embedding stream
54 * source :: source stream, used to
57 * error code. 0 means success
60 * the source stream must be opened _before_ calling this function.
62 * calling @FT_Stream_Close on the new stream will *not* call
63 * @FT_Stream_Close on the source stream. None of the stream objects
64 * will be released to the heap.
66 * the stream implementation is very basic, and resets the decompression
67 * process each time seeking backwards is needed within the stream
69 * in certain builds of the library, gzip compression recognition is
70 * automatic when calling @FT_New_Face or @FT_Open_Face. This means that
71 * if no font driver is capable of handling the raw compressed file,
72 * the library will try to open a gzip stream from it and re-open
75 * this function may return "FT_Err_Unimplemented" if your build of
76 * FreeType was not compiled with zlib support.
79 FT_Stream_OpenGzip( FT_Stream stream,
86 #endif /* __FTGZIP_H__ */