modules/freetype2/include/ftxf86.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /***************************************************************************/
michael@0 2 /* */
michael@0 3 /* ftxf86.h */
michael@0 4 /* */
michael@0 5 /* Support functions for X11. */
michael@0 6 /* */
michael@0 7 /* Copyright 2002-2004, 2006, 2007, 2013 by */
michael@0 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
michael@0 9 /* */
michael@0 10 /* This file is part of the FreeType project, and may only be used, */
michael@0 11 /* modified, and distributed under the terms of the FreeType project */
michael@0 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
michael@0 13 /* this file you indicate that you have read the license and */
michael@0 14 /* understand and accept it fully. */
michael@0 15 /* */
michael@0 16 /***************************************************************************/
michael@0 17
michael@0 18
michael@0 19 #ifndef __FTXF86_H__
michael@0 20 #define __FTXF86_H__
michael@0 21
michael@0 22 #include <ft2build.h>
michael@0 23 #include FT_FREETYPE_H
michael@0 24
michael@0 25 #ifdef FREETYPE_H
michael@0 26 #error "freetype.h of FreeType 1 has been loaded!"
michael@0 27 #error "Please fix the directory search order for header files"
michael@0 28 #error "so that freetype.h of FreeType 2 is found first."
michael@0 29 #endif
michael@0 30
michael@0 31
michael@0 32 FT_BEGIN_HEADER
michael@0 33
michael@0 34
michael@0 35 /*************************************************************************/
michael@0 36 /* */
michael@0 37 /* <Section> */
michael@0 38 /* font_formats */
michael@0 39 /* */
michael@0 40 /* <Title> */
michael@0 41 /* Font Formats */
michael@0 42 /* */
michael@0 43 /* <Abstract> */
michael@0 44 /* Getting the font format. */
michael@0 45 /* */
michael@0 46 /* <Description> */
michael@0 47 /* The single function in this section can be used to get the font */
michael@0 48 /* format. Note that this information is not needed normally; */
michael@0 49 /* however, there are special cases (like in PDF devices) where it is */
michael@0 50 /* important to differentiate, in spite of FreeType's uniform API. */
michael@0 51 /* */
michael@0 52 /* This function is in the X11/xf86 namespace for historical reasons */
michael@0 53 /* and in no way depends on that windowing system. */
michael@0 54 /* */
michael@0 55 /*************************************************************************/
michael@0 56
michael@0 57
michael@0 58 /*************************************************************************/
michael@0 59 /* */
michael@0 60 /* <Function> */
michael@0 61 /* FT_Get_X11_Font_Format */
michael@0 62 /* */
michael@0 63 /* <Description> */
michael@0 64 /* Return a string describing the format of a given face, using values */
michael@0 65 /* that can be used as an X11 FONT_PROPERTY. Possible values are */
michael@0 66 /* `TrueType', `Type~1', `BDF', `PCF', `Type~42', `CID~Type~1', `CFF', */
michael@0 67 /* `PFR', and `Windows~FNT'. */
michael@0 68 /* */
michael@0 69 /* <Input> */
michael@0 70 /* face :: */
michael@0 71 /* Input face handle. */
michael@0 72 /* */
michael@0 73 /* <Return> */
michael@0 74 /* Font format string. NULL in case of error. */
michael@0 75 /* */
michael@0 76 FT_EXPORT( const char* )
michael@0 77 FT_Get_X11_Font_Format( FT_Face face );
michael@0 78
michael@0 79 /* */
michael@0 80
michael@0 81 FT_END_HEADER
michael@0 82
michael@0 83 #endif /* __FTXF86_H__ */

mercurial