vrshoot
diff libs/ft2static/freetype/ftxf86.h @ 0:b2f14e535253
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 01 Feb 2014 19:58:19 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libs/ft2static/freetype/ftxf86.h Sat Feb 01 19:58:19 2014 +0200 1.3 @@ -0,0 +1,83 @@ 1.4 +/***************************************************************************/ 1.5 +/* */ 1.6 +/* ftxf86.h */ 1.7 +/* */ 1.8 +/* Support functions for X11. */ 1.9 +/* */ 1.10 +/* Copyright 2002, 2003, 2004, 2006, 2007 by */ 1.11 +/* David Turner, Robert Wilhelm, and Werner Lemberg. */ 1.12 +/* */ 1.13 +/* This file is part of the FreeType project, and may only be used, */ 1.14 +/* modified, and distributed under the terms of the FreeType project */ 1.15 +/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 1.16 +/* this file you indicate that you have read the license and */ 1.17 +/* understand and accept it fully. */ 1.18 +/* */ 1.19 +/***************************************************************************/ 1.20 + 1.21 + 1.22 +#ifndef __FTXF86_H__ 1.23 +#define __FTXF86_H__ 1.24 + 1.25 +#include <ft2build.h> 1.26 +#include FT_FREETYPE_H 1.27 + 1.28 +#ifdef FREETYPE_H 1.29 +#error "freetype.h of FreeType 1 has been loaded!" 1.30 +#error "Please fix the directory search order for header files" 1.31 +#error "so that freetype.h of FreeType 2 is found first." 1.32 +#endif 1.33 + 1.34 + 1.35 +FT_BEGIN_HEADER 1.36 + 1.37 + 1.38 + /*************************************************************************/ 1.39 + /* */ 1.40 + /* <Section> */ 1.41 + /* font_formats */ 1.42 + /* */ 1.43 + /* <Title> */ 1.44 + /* Font Formats */ 1.45 + /* */ 1.46 + /* <Abstract> */ 1.47 + /* Getting the font format. */ 1.48 + /* */ 1.49 + /* <Description> */ 1.50 + /* The single function in this section can be used to get the font */ 1.51 + /* format. Note that this information is not needed normally; */ 1.52 + /* however, there are special cases (like in PDF devices) where it is */ 1.53 + /* important to differentiate, in spite of FreeType's uniform API. */ 1.54 + /* */ 1.55 + /* This function is in the X11/xf86 namespace for historical reasons */ 1.56 + /* and in no way depends on that windowing system. */ 1.57 + /* */ 1.58 + /*************************************************************************/ 1.59 + 1.60 + 1.61 + /*************************************************************************/ 1.62 + /* */ 1.63 + /* <Function> */ 1.64 + /* FT_Get_X11_Font_Format */ 1.65 + /* */ 1.66 + /* <Description> */ 1.67 + /* Return a string describing the format of a given face, using values */ 1.68 + /* which can be used as an X11 FONT_PROPERTY. Possible values are */ 1.69 + /* `TrueType', `Type~1', `BDF', `PCF', `Type~42', `CID~Type~1', `CFF', */ 1.70 + /* `PFR', and `Windows~FNT'. */ 1.71 + /* */ 1.72 + /* <Input> */ 1.73 + /* face :: */ 1.74 + /* Input face handle. */ 1.75 + /* */ 1.76 + /* <Return> */ 1.77 + /* Font format string. NULL in case of error. */ 1.78 + /* */ 1.79 + FT_EXPORT( const char* ) 1.80 + FT_Get_X11_Font_Format( FT_Face face ); 1.81 + 1.82 + /* */ 1.83 + 1.84 +FT_END_HEADER 1.85 + 1.86 +#endif /* __FTXF86_H__ */