/src/compiler/android-ndk/jni/freetype/src/sfnt/sfntpic.h

http://ftk.googlecode.com/ · C++ Header · 88 lines · 53 code · 16 blank · 19 comment · 0 complexity · a51d0d1ea244f2cd669a202381f79250 MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* sfntpic.h */
  4. /* */
  5. /* The FreeType position independent code services for sfnt module. */
  6. /* */
  7. /* Copyright 2009 by */
  8. /* Oran Agra and Mickey Gabel. */
  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 __SFNTPIC_H__
  18. #define __SFNTPIC_H__
  19. FT_BEGIN_HEADER
  20. #include FT_INTERNAL_PIC_H
  21. #ifndef FT_CONFIG_OPTION_PIC
  22. #define FT_SFNT_SERVICES_GET sfnt_services
  23. #define FT_SFNT_SERVICE_GLYPH_DICT_GET sfnt_service_glyph_dict
  24. #define FT_SFNT_SERVICE_PS_NAME_GET sfnt_service_ps_name
  25. #define FT_TT_SERVICE_GET_CMAP_INFO_GET tt_service_get_cmap_info
  26. #define FT_SFNT_SERVICES_GET sfnt_services
  27. #define FT_TT_CMAP_CLASSES_GET tt_cmap_classes
  28. #define FT_SFNT_SERVICE_SFNT_TABLE_GET sfnt_service_sfnt_table
  29. #define FT_SFNT_SERVICE_BDF_GET sfnt_service_bdf
  30. #define FT_SFNT_INTERFACE_GET sfnt_interface
  31. #else /* FT_CONFIG_OPTION_PIC */
  32. /* some include files required for members of sfntModulePIC */
  33. #include FT_SERVICE_GLYPH_DICT_H
  34. #include FT_SERVICE_POSTSCRIPT_NAME_H
  35. #include FT_SERVICE_SFNT_H
  36. #include FT_SERVICE_TT_CMAP_H
  37. #ifdef TT_CONFIG_OPTION_BDF
  38. #include "ttbdf.h"
  39. #include FT_SERVICE_BDF_H
  40. #endif
  41. #include FT_INTERNAL_DEBUG_H
  42. #include FT_INTERNAL_STREAM_H
  43. #include FT_INTERNAL_SFNT_H
  44. #include "ttcmap.h"
  45. typedef struct sfntModulePIC_
  46. {
  47. FT_ServiceDescRec* sfnt_services;
  48. FT_Service_GlyphDictRec sfnt_service_glyph_dict;
  49. FT_Service_PsFontNameRec sfnt_service_ps_name;
  50. FT_Service_TTCMapsRec tt_service_get_cmap_info;
  51. TT_CMap_Class* tt_cmap_classes;
  52. FT_Service_SFNT_TableRec sfnt_service_sfnt_table;
  53. #ifdef TT_CONFIG_OPTION_BDF
  54. FT_Service_BDFRec sfnt_service_bdf;
  55. #endif
  56. SFNT_Interface sfnt_interface;
  57. } sfntModulePIC;
  58. #define GET_PIC(lib) ((sfntModulePIC*)((lib)->pic_container.sfnt))
  59. #define FT_SFNT_SERVICES_GET (GET_PIC(library)->sfnt_services)
  60. #define FT_SFNT_SERVICE_GLYPH_DICT_GET (GET_PIC(library)->sfnt_service_glyph_dict)
  61. #define FT_SFNT_SERVICE_PS_NAME_GET (GET_PIC(library)->sfnt_service_ps_name)
  62. #define FT_TT_SERVICE_GET_CMAP_INFO_GET (GET_PIC(library)->tt_service_get_cmap_info)
  63. #define FT_SFNT_SERVICES_GET (GET_PIC(library)->sfnt_services)
  64. #define FT_TT_CMAP_CLASSES_GET (GET_PIC(library)->tt_cmap_classes)
  65. #define FT_SFNT_SERVICE_SFNT_TABLE_GET (GET_PIC(library)->sfnt_service_sfnt_table)
  66. #define FT_SFNT_SERVICE_BDF_GET (GET_PIC(library)->sfnt_service_bdf)
  67. #define FT_SFNT_INTERFACE_GET (GET_PIC(library)->sfnt_interface)
  68. #endif /* FT_CONFIG_OPTION_PIC */
  69. /* */
  70. FT_END_HEADER
  71. #endif /* __SFNTPIC_H__ */
  72. /* END */