1
0

svttglyf.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /***************************************************************************/
  2. /* */
  3. /* svttglyf.h */
  4. /* */
  5. /* The FreeType TrueType glyph service. */
  6. /* */
  7. /* Copyright 2007, 2009, 2012 by David Turner. */
  8. /* */
  9. /* This file is part of the FreeType project, and may only be used, */
  10. /* modified, and distributed under the terms of the FreeType project */
  11. /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
  12. /* this file you indicate that you have read the license and */
  13. /* understand and accept it fully. */
  14. /* */
  15. /***************************************************************************/
  16. #ifndef __SVTTGLYF_H__
  17. #define __SVTTGLYF_H__
  18. #include FT_INTERNAL_SERVICE_H
  19. #include FT_TRUETYPE_TABLES_H
  20. FT_BEGIN_HEADER
  21. #define FT_SERVICE_ID_TT_GLYF "tt-glyf"
  22. typedef FT_ULong
  23. (*TT_Glyf_GetLocationFunc)( FT_Face face,
  24. FT_UInt gindex,
  25. FT_ULong *psize );
  26. FT_DEFINE_SERVICE( TTGlyf )
  27. {
  28. TT_Glyf_GetLocationFunc get_location;
  29. };
  30. #ifndef FT_CONFIG_OPTION_PIC
  31. #define FT_DEFINE_SERVICE_TTGLYFREC( class_, get_location_ ) \
  32. static const FT_Service_TTGlyfRec class_ = \
  33. { \
  34. get_location_ \
  35. };
  36. #else /* FT_CONFIG_OPTION_PIC */
  37. #define FT_DEFINE_SERVICE_TTGLYFREC( class_, get_location_ ) \
  38. void \
  39. FT_Init_Class_ ## class_( FT_Service_TTGlyfRec* clazz ) \
  40. { \
  41. clazz->get_location = get_location_; \
  42. }
  43. #endif /* FT_CONFIG_OPTION_PIC */
  44. /* */
  45. FT_END_HEADER
  46. #endif /* __SVTTGLYF_H__ */
  47. /* END */