/src/compiler/android-ndk/jni/freetype/include/freetype/internal/services/svpsinfo.h

http://ftk.googlecode.com/ · C++ Header · 92 lines · 48 code · 26 blank · 18 comment · 0 complexity · 853da5a18be6376d446e77e1bde4bade MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* svpsinfo.h */
  4. /* */
  5. /* The FreeType PostScript info service (specification). */
  6. /* */
  7. /* Copyright 2003, 2004, 2009 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 __SVPSINFO_H__
  18. #define __SVPSINFO_H__
  19. #include FT_INTERNAL_SERVICE_H
  20. #include FT_INTERNAL_TYPE1_TYPES_H
  21. FT_BEGIN_HEADER
  22. #define FT_SERVICE_ID_POSTSCRIPT_INFO "postscript-info"
  23. typedef FT_Error
  24. (*PS_GetFontInfoFunc)( FT_Face face,
  25. PS_FontInfoRec* afont_info );
  26. typedef FT_Error
  27. (*PS_GetFontExtraFunc)( FT_Face face,
  28. PS_FontExtraRec* afont_extra );
  29. typedef FT_Int
  30. (*PS_HasGlyphNamesFunc)( FT_Face face );
  31. typedef FT_Error
  32. (*PS_GetFontPrivateFunc)( FT_Face face,
  33. PS_PrivateRec* afont_private );
  34. FT_DEFINE_SERVICE( PsInfo )
  35. {
  36. PS_GetFontInfoFunc ps_get_font_info;
  37. PS_GetFontExtraFunc ps_get_font_extra;
  38. PS_HasGlyphNamesFunc ps_has_glyph_names;
  39. PS_GetFontPrivateFunc ps_get_font_private;
  40. };
  41. #ifndef FT_CONFIG_OPTION_PIC
  42. #define FT_DEFINE_SERVICE_PSINFOREC(class_, get_font_info_, \
  43. ps_get_font_extra_, has_glyph_names_, get_font_private_) \
  44. static const FT_Service_PsInfoRec class_ = \
  45. { \
  46. get_font_info_, ps_get_font_extra_, has_glyph_names_, \
  47. get_font_private_ \
  48. };
  49. #else /* FT_CONFIG_OPTION_PIC */
  50. #define FT_DEFINE_SERVICE_PSINFOREC(class_, get_font_info_, \
  51. ps_get_font_extra_, has_glyph_names_, get_font_private_) \
  52. void \
  53. FT_Init_Class_##class_( FT_Library library, \
  54. FT_Service_PsInfoRec* clazz) \
  55. { \
  56. FT_UNUSED(library); \
  57. clazz->ps_get_font_info = get_font_info_; \
  58. clazz->ps_get_font_extra = ps_get_font_extra_; \
  59. clazz->ps_has_glyph_names = has_glyph_names_; \
  60. clazz->ps_get_font_private = get_font_private_; \
  61. }
  62. #endif /* FT_CONFIG_OPTION_PIC */
  63. /* */
  64. FT_END_HEADER
  65. #endif /* __SVPSINFO_H__ */
  66. /* END */