ftfntfmt.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /****************************************************************************
  2. *
  3. * ftfntfmt.h
  4. *
  5. * Support functions for font formats.
  6. *
  7. * Copyright (C) 2002-2023 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 <freetype/freetype.h>
  20. #ifdef FREETYPE_H
  21. #error "freetype.h of FreeType 1 has been loaded!"
  22. #error "Please fix the directory search order for header files"
  23. #error "so that freetype.h of FreeType 2 is found first."
  24. #endif
  25. FT_BEGIN_HEADER
  26. /**************************************************************************
  27. *
  28. * @section:
  29. * font_formats
  30. *
  31. * @title:
  32. * Font Formats
  33. *
  34. * @abstract:
  35. * Getting the font format.
  36. *
  37. * @description:
  38. * The single function in this section can be used to get the font format.
  39. * Note that this information is not needed normally; however, there are
  40. * special cases (like in PDF devices) where it is important to
  41. * differentiate, in spite of FreeType's uniform API.
  42. *
  43. */
  44. /**************************************************************************
  45. *
  46. * @function:
  47. * FT_Get_Font_Format
  48. *
  49. * @description:
  50. * Return a string describing the format of a given face. Possible values
  51. * are 'TrueType', 'Type~1', 'BDF', 'PCF', 'Type~42', 'CID~Type~1', 'CFF',
  52. * 'PFR', and 'Windows~FNT'.
  53. *
  54. * The return value is suitable to be used as an X11 FONT_PROPERTY.
  55. *
  56. * @input:
  57. * face ::
  58. * Input face handle.
  59. *
  60. * @return:
  61. * Font format string. `NULL` in case of error.
  62. *
  63. * @note:
  64. * A deprecated name for the same function is `FT_Get_X11_Font_Format`.
  65. */
  66. FT_EXPORT( const char* )
  67. FT_Get_Font_Format( FT_Face face );
  68. /* deprecated */
  69. FT_EXPORT( const char* )
  70. FT_Get_X11_Font_Format( FT_Face face );
  71. /* */
  72. FT_END_HEADER
  73. #endif /* FTFNTFMT_H_ */
  74. /* END */