/src/freetype/src/truetype/ttpic.h

https://bitbucket.org/cabalistic/ogredeps/ · C++ Header · 66 lines · 30 code · 17 blank · 19 comment · 0 complexity · d5ceb0fb0dac8f777d4ef284f24f9531 MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* ttpic.h */
  4. /* */
  5. /* The FreeType position independent code services for truetype 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 __TTPIC_H__
  18. #define __TTPIC_H__
  19. FT_BEGIN_HEADER
  20. #ifndef FT_CONFIG_OPTION_PIC
  21. #define FT_TT_SERVICES_GET tt_services
  22. #define FT_TT_SERVICE_GX_MULTI_MASTERS_GET tt_service_gx_multi_masters
  23. #define FT_TT_SERVICE_TRUETYPE_GLYF_GET tt_service_truetype_glyf
  24. #else /* FT_CONFIG_OPTION_PIC */
  25. #include FT_MULTIPLE_MASTERS_H
  26. #include FT_SERVICE_MULTIPLE_MASTERS_H
  27. #include FT_SERVICE_TRUETYPE_GLYF_H
  28. typedef struct TTModulePIC_
  29. {
  30. FT_ServiceDescRec* tt_services;
  31. #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
  32. FT_Service_MultiMastersRec tt_service_gx_multi_masters;
  33. #endif
  34. FT_Service_TTGlyfRec tt_service_truetype_glyf;
  35. } TTModulePIC;
  36. #define GET_PIC(lib) ((TTModulePIC*)((lib)->pic_container.truetype))
  37. #define FT_TT_SERVICES_GET (GET_PIC(library)->tt_services)
  38. #define FT_TT_SERVICE_GX_MULTI_MASTERS_GET (GET_PIC(library)->tt_service_gx_multi_masters)
  39. #define FT_TT_SERVICE_TRUETYPE_GLYF_GET (GET_PIC(library)->tt_service_truetype_glyf)
  40. /* see ttpic.c for the implementation */
  41. void
  42. tt_driver_class_pic_free( FT_Library library );
  43. FT_Error
  44. tt_driver_class_pic_init( FT_Library library );
  45. #endif /* FT_CONFIG_OPTION_PIC */
  46. /* */
  47. FT_END_HEADER
  48. #endif /* __TTPIC_H__ */
  49. /* END */