/modules/freetype2/include/freetype/internal/services/svpfr.h

http://github.com/zpao/v8monkey · C Header · 66 lines · 29 code · 19 blank · 18 comment · 0 complexity · 3cbb62a897c64f7497ab204f39ad387c MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* svpfr.h */
  4. /* */
  5. /* Internal PFR service functions (specification). */
  6. /* */
  7. /* Copyright 2003, 2006 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 __SVPFR_H__
  18. #define __SVPFR_H__
  19. #include FT_PFR_H
  20. #include FT_INTERNAL_SERVICE_H
  21. FT_BEGIN_HEADER
  22. #define FT_SERVICE_ID_PFR_METRICS "pfr-metrics"
  23. typedef FT_Error
  24. (*FT_PFR_GetMetricsFunc)( FT_Face face,
  25. FT_UInt *aoutline,
  26. FT_UInt *ametrics,
  27. FT_Fixed *ax_scale,
  28. FT_Fixed *ay_scale );
  29. typedef FT_Error
  30. (*FT_PFR_GetKerningFunc)( FT_Face face,
  31. FT_UInt left,
  32. FT_UInt right,
  33. FT_Vector *avector );
  34. typedef FT_Error
  35. (*FT_PFR_GetAdvanceFunc)( FT_Face face,
  36. FT_UInt gindex,
  37. FT_Pos *aadvance );
  38. FT_DEFINE_SERVICE( PfrMetrics )
  39. {
  40. FT_PFR_GetMetricsFunc get_metrics;
  41. FT_PFR_GetKerningFunc get_kerning;
  42. FT_PFR_GetAdvanceFunc get_advance;
  43. };
  44. /* */
  45. FT_END_HEADER
  46. #endif /* __SVPFR_H__ */
  47. /* END */