t1afm.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /***************************************************************************/
  2. /* */
  3. /* t1afm.h */
  4. /* */
  5. /* AFM support for Type 1 fonts (specification). */
  6. /* */
  7. /* Copyright 1996-2001, 2002 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 __T1AFM_H__
  18. #define __T1AFM_H__
  19. #include <ft2build.h>
  20. #include "t1objs.h"
  21. FT_BEGIN_HEADER
  22. typedef struct T1_Kern_Pair_
  23. {
  24. FT_UInt glyph1;
  25. FT_UInt glyph2;
  26. FT_Vector kerning;
  27. } T1_Kern_Pair;
  28. typedef struct T1_AFM_
  29. {
  30. FT_Int num_pairs;
  31. T1_Kern_Pair* kern_pairs;
  32. } T1_AFM;
  33. FT_LOCAL( FT_Error )
  34. T1_Read_AFM( FT_Face face,
  35. FT_Stream stream );
  36. FT_LOCAL( void )
  37. T1_Done_AFM( FT_Memory memory,
  38. T1_AFM* afm );
  39. FT_LOCAL( void )
  40. T1_Get_Kerning( T1_AFM* afm,
  41. FT_UInt glyph1,
  42. FT_UInt glyph2,
  43. FT_Vector* kerning );
  44. FT_END_HEADER
  45. #endif /* __T1AFM_H__ */
  46. /* END */