t1objs.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. /***************************************************************************/
  2. /* */
  3. /* t1objs.h */
  4. /* */
  5. /* Type 1 objects manager (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 __T1OBJS_H__
  18. #define __T1OBJS_H__
  19. #include <ft2build.h>
  20. #include FT_INTERNAL_OBJECTS_H
  21. #include FT_CONFIG_CONFIG_H
  22. #include FT_INTERNAL_TYPE1_TYPES_H
  23. FT_BEGIN_HEADER
  24. /* The following structures must be defined by the hinter */
  25. typedef struct T1_Size_Hints_ T1_Size_Hints;
  26. typedef struct T1_Glyph_Hints_ T1_Glyph_Hints;
  27. /*************************************************************************/
  28. /* */
  29. /* <Type> */
  30. /* T1_Driver */
  31. /* */
  32. /* <Description> */
  33. /* A handle to a Type 1 driver object. */
  34. /* */
  35. typedef struct T1_DriverRec_ *T1_Driver;
  36. /*************************************************************************/
  37. /* */
  38. /* <Type> */
  39. /* T1_Size */
  40. /* */
  41. /* <Description> */
  42. /* A handle to a Type 1 size object. */
  43. /* */
  44. typedef struct T1_SizeRec_* T1_Size;
  45. /*************************************************************************/
  46. /* */
  47. /* <Type> */
  48. /* T1_GlyphSlot */
  49. /* */
  50. /* <Description> */
  51. /* A handle to a Type 1 glyph slot object. */
  52. /* */
  53. typedef struct T1_GlyphSlotRec_* T1_GlyphSlot;
  54. /*************************************************************************/
  55. /* */
  56. /* <Type> */
  57. /* T1_CharMap */
  58. /* */
  59. /* <Description> */
  60. /* A handle to a Type 1 character mapping object. */
  61. /* */
  62. /* <Note> */
  63. /* The Type 1 format doesn't use a charmap but an encoding table. */
  64. /* The driver is responsible for making up charmap objects */
  65. /* corresponding to these tables. */
  66. /* */
  67. typedef struct T1_CharMapRec_* T1_CharMap;
  68. /*************************************************************************/
  69. /* */
  70. /* HERE BEGINS THE TYPE1 SPECIFIC STUFF */
  71. /* */
  72. /*************************************************************************/
  73. /*************************************************************************/
  74. /* */
  75. /* <Type> */
  76. /* T1_SizeRec */
  77. /* */
  78. /* <Description> */
  79. /* Type 1 size record. */
  80. /* */
  81. typedef struct T1_SizeRec_
  82. {
  83. FT_SizeRec root;
  84. } T1_SizeRec;
  85. FT_LOCAL( void )
  86. T1_Size_Done( T1_Size size );
  87. FT_LOCAL( FT_Error )
  88. T1_Size_Reset( T1_Size size );
  89. FT_LOCAL( FT_Error )
  90. T1_Size_Init( T1_Size size );
  91. /*************************************************************************/
  92. /* */
  93. /* <Type> */
  94. /* T1_GlyphSlotRec */
  95. /* */
  96. /* <Description> */
  97. /* Type 1 glyph slot record. */
  98. /* */
  99. typedef struct T1_GlyphSlotRec_
  100. {
  101. FT_GlyphSlotRec root;
  102. FT_Bool hint;
  103. FT_Bool scaled;
  104. FT_Int max_points;
  105. FT_Int max_contours;
  106. FT_Fixed x_scale;
  107. FT_Fixed y_scale;
  108. } T1_GlyphSlotRec;
  109. FT_LOCAL( FT_Error )
  110. T1_Face_Init( FT_Stream stream,
  111. T1_Face face,
  112. FT_Int face_index,
  113. FT_Int num_params,
  114. FT_Parameter* params );
  115. FT_LOCAL( void )
  116. T1_Face_Done( T1_Face face );
  117. FT_LOCAL( FT_Error )
  118. T1_GlyphSlot_Init( T1_GlyphSlot slot );
  119. FT_LOCAL( void )
  120. T1_GlyphSlot_Done( T1_GlyphSlot slot );
  121. FT_LOCAL( FT_Error )
  122. T1_Driver_Init( T1_Driver driver );
  123. FT_LOCAL( void )
  124. T1_Driver_Done( T1_Driver driver );
  125. FT_END_HEADER
  126. #endif /* __T1OBJS_H__ */
  127. /* END */