00001 /***************************************************************************/ 00002 /* */ 00003 /* ftxf86.h */ 00004 /* */ 00005 /* Support functions for X11. */ 00006 /* */ 00007 /* Copyright 2002, 2003, 2004, 2006, 2007 by */ 00008 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 00009 /* */ 00010 /* This file is part of the FreeType project, and may only be used, */ 00011 /* modified, and distributed under the terms of the FreeType project */ 00012 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 00013 /* this file you indicate that you have read the license and */ 00014 /* understand and accept it fully. */ 00015 /* */ 00016 /***************************************************************************/ 00017 00018 00019 #ifndef __FTXF86_H__ 00020 #define __FTXF86_H__ 00021 00022 #include <ft2build.h> 00023 #include FT_FREETYPE_H 00024 00025 #ifdef FREETYPE_H 00026 #error "freetype.h of FreeType 1 has been loaded!" 00027 #error "Please fix the directory search order for header files" 00028 #error "so that freetype.h of FreeType 2 is found first." 00029 #endif 00030 00031 00032 FT_BEGIN_HEADER 00033 00034 00035 /*************************************************************************/ 00036 /* */ 00037 /* <Section> */ 00038 /* font_formats */ 00039 /* */ 00040 /* <Title> */ 00041 /* Font Formats */ 00042 /* */ 00043 /* <Abstract> */ 00044 /* Getting the font format. */ 00045 /* */ 00046 /* <Description> */ 00047 /* The single function in this section can be used to get the font */ 00048 /* format. Note that this information is not needed normally; */ 00049 /* however, there are special cases (like in PDF devices) where it is */ 00050 /* important to differentiate, in spite of FreeType's uniform API. */ 00051 /* */ 00052 /* This function is in the X11/xf86 namespace for historical reasons */ 00053 /* and in no way depends on that windowing system. */ 00054 /* */ 00055 /*************************************************************************/ 00056 00057 00058 /*************************************************************************/ 00059 /* */ 00060 /* <Function> */ 00061 /* FT_Get_X11_Font_Format */ 00062 /* */ 00063 /* <Description> */ 00064 /* Return a string describing the format of a given face, using values */ 00065 /* which can be used as an X11 FONT_PROPERTY. Possible values are */ 00066 /* `TrueType', `Type~1', `BDF', `PCF', `Type~42', `CID~Type~1', `CFF', */ 00067 /* `PFR', and `Windows~FNT'. */ 00068 /* */ 00069 /* <Input> */ 00070 /* face :: */ 00071 /* Input face handle. */ 00072 /* */ 00073 /* <Return> */ 00074 /* Font format string. NULL in case of error. */ 00075 /* */ 00076 FT_EXPORT( const char* ) 00077 FT_Get_X11_Font_Format( FT_Face face ); 00078 00079 /* */ 00080 00081 FT_END_HEADER 00082 00083 #endif /* __FTXF86_H__ */