michael@0: /***************************************************************************/ michael@0: /* */ michael@0: /* ftxf86.h */ michael@0: /* */ michael@0: /* Support functions for X11. */ michael@0: /* */ michael@0: /* Copyright 2002-2004, 2006, 2007, 2013 by */ michael@0: /* David Turner, Robert Wilhelm, and Werner Lemberg. */ michael@0: /* */ michael@0: /* This file is part of the FreeType project, and may only be used, */ michael@0: /* modified, and distributed under the terms of the FreeType project */ michael@0: /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ michael@0: /* this file you indicate that you have read the license and */ michael@0: /* understand and accept it fully. */ michael@0: /* */ michael@0: /***************************************************************************/ michael@0: michael@0: michael@0: #ifndef __FTXF86_H__ michael@0: #define __FTXF86_H__ michael@0: michael@0: #include michael@0: #include FT_FREETYPE_H michael@0: michael@0: #ifdef FREETYPE_H michael@0: #error "freetype.h of FreeType 1 has been loaded!" michael@0: #error "Please fix the directory search order for header files" michael@0: #error "so that freetype.h of FreeType 2 is found first." michael@0: #endif michael@0: michael@0: michael@0: FT_BEGIN_HEADER michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /*
*/ michael@0: /* font_formats */ michael@0: /* */ michael@0: /* */ michael@0: /* Font Formats */ michael@0: /* */ michael@0: /* <Abstract> */ michael@0: /* Getting the font format. */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* The single function in this section can be used to get the font */ michael@0: /* format. Note that this information is not needed normally; */ michael@0: /* however, there are special cases (like in PDF devices) where it is */ michael@0: /* important to differentiate, in spite of FreeType's uniform API. */ michael@0: /* */ michael@0: /* This function is in the X11/xf86 namespace for historical reasons */ michael@0: /* and in no way depends on that windowing system. */ michael@0: /* */ michael@0: /*************************************************************************/ michael@0: michael@0: michael@0: /*************************************************************************/ michael@0: /* */ michael@0: /* <Function> */ michael@0: /* FT_Get_X11_Font_Format */ michael@0: /* */ michael@0: /* <Description> */ michael@0: /* Return a string describing the format of a given face, using values */ michael@0: /* that can be used as an X11 FONT_PROPERTY. Possible values are */ michael@0: /* `TrueType', `Type~1', `BDF', `PCF', `Type~42', `CID~Type~1', `CFF', */ michael@0: /* `PFR', and `Windows~FNT'. */ michael@0: /* */ michael@0: /* <Input> */ michael@0: /* face :: */ michael@0: /* Input face handle. */ michael@0: /* */ michael@0: /* <Return> */ michael@0: /* Font format string. NULL in case of error. */ michael@0: /* */ michael@0: FT_EXPORT( const char* ) michael@0: FT_Get_X11_Font_Format( FT_Face face ); michael@0: michael@0: /* */ michael@0: michael@0: FT_END_HEADER michael@0: michael@0: #endif /* __FTXF86_H__ */