svpfr.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 */