ftfntfmt.h 4.9 KB

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