vrshoot

annotate libs/ft2static/freetype/ftgzip.h @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
rev   line source
nuclear@0 1 /***************************************************************************/
nuclear@0 2 /* */
nuclear@0 3 /* ftgzip.h */
nuclear@0 4 /* */
nuclear@0 5 /* Gzip-compressed stream support. */
nuclear@0 6 /* */
nuclear@0 7 /* Copyright 2002, 2003, 2004, 2006 by */
nuclear@0 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
nuclear@0 9 /* */
nuclear@0 10 /* This file is part of the FreeType project, and may only be used, */
nuclear@0 11 /* modified, and distributed under the terms of the FreeType project */
nuclear@0 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
nuclear@0 13 /* this file you indicate that you have read the license and */
nuclear@0 14 /* understand and accept it fully. */
nuclear@0 15 /* */
nuclear@0 16 /***************************************************************************/
nuclear@0 17
nuclear@0 18
nuclear@0 19 #ifndef __FTGZIP_H__
nuclear@0 20 #define __FTGZIP_H__
nuclear@0 21
nuclear@0 22 #include <ft2build.h>
nuclear@0 23 #include FT_FREETYPE_H
nuclear@0 24
nuclear@0 25 #ifdef FREETYPE_H
nuclear@0 26 #error "freetype.h of FreeType 1 has been loaded!"
nuclear@0 27 #error "Please fix the directory search order for header files"
nuclear@0 28 #error "so that freetype.h of FreeType 2 is found first."
nuclear@0 29 #endif
nuclear@0 30
nuclear@0 31
nuclear@0 32 FT_BEGIN_HEADER
nuclear@0 33
nuclear@0 34 /*************************************************************************/
nuclear@0 35 /* */
nuclear@0 36 /* <Section> */
nuclear@0 37 /* gzip */
nuclear@0 38 /* */
nuclear@0 39 /* <Title> */
nuclear@0 40 /* GZIP Streams */
nuclear@0 41 /* */
nuclear@0 42 /* <Abstract> */
nuclear@0 43 /* Using gzip-compressed font files. */
nuclear@0 44 /* */
nuclear@0 45 /* <Description> */
nuclear@0 46 /* This section contains the declaration of Gzip-specific functions. */
nuclear@0 47 /* */
nuclear@0 48 /*************************************************************************/
nuclear@0 49
nuclear@0 50
nuclear@0 51 /************************************************************************
nuclear@0 52 *
nuclear@0 53 * @function:
nuclear@0 54 * FT_Stream_OpenGzip
nuclear@0 55 *
nuclear@0 56 * @description:
nuclear@0 57 * Open a new stream to parse gzip-compressed font files. This is
nuclear@0 58 * mainly used to support the compressed `*.pcf.gz' fonts that come
nuclear@0 59 * with XFree86.
nuclear@0 60 *
nuclear@0 61 * @input:
nuclear@0 62 * stream ::
nuclear@0 63 * The target embedding stream.
nuclear@0 64 *
nuclear@0 65 * source ::
nuclear@0 66 * The source stream.
nuclear@0 67 *
nuclear@0 68 * @return:
nuclear@0 69 * FreeType error code. 0~means success.
nuclear@0 70 *
nuclear@0 71 * @note:
nuclear@0 72 * The source stream must be opened _before_ calling this function.
nuclear@0 73 *
nuclear@0 74 * Calling the internal function `FT_Stream_Close' on the new stream will
nuclear@0 75 * *not* call `FT_Stream_Close' on the source stream. None of the stream
nuclear@0 76 * objects will be released to the heap.
nuclear@0 77 *
nuclear@0 78 * The stream implementation is very basic and resets the decompression
nuclear@0 79 * process each time seeking backwards is needed within the stream.
nuclear@0 80 *
nuclear@0 81 * In certain builds of the library, gzip compression recognition is
nuclear@0 82 * automatically handled when calling @FT_New_Face or @FT_Open_Face.
nuclear@0 83 * This means that if no font driver is capable of handling the raw
nuclear@0 84 * compressed file, the library will try to open a gzipped stream from
nuclear@0 85 * it and re-open the face with it.
nuclear@0 86 *
nuclear@0 87 * This function may return `FT_Err_Unimplemented_Feature' if your build
nuclear@0 88 * of FreeType was not compiled with zlib support.
nuclear@0 89 */
nuclear@0 90 FT_EXPORT( FT_Error )
nuclear@0 91 FT_Stream_OpenGzip( FT_Stream stream,
nuclear@0 92 FT_Stream source );
nuclear@0 93
nuclear@0 94 /* */
nuclear@0 95
nuclear@0 96
nuclear@0 97 FT_END_HEADER
nuclear@0 98
nuclear@0 99 #endif /* __FTGZIP_H__ */
nuclear@0 100
nuclear@0 101
nuclear@0 102 /* END */