/src/freetype/src/type1/t1objs.h

https://bitbucket.org/cabalistic/ogredeps/ · C++ Header · 160 lines · 51 code · 41 blank · 68 comment · 0 complexity · aa9b2b934561adf11c5e4140272e183a MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* t1objs.h */
  4. /* */
  5. /* Type 1 objects manager (specification). */
  6. /* */
  7. /* Copyright 1996-2001, 2002, 2006, 2011 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_Size */
  31. /* */
  32. /* <Description> */
  33. /* A handle to a Type 1 size object. */
  34. /* */
  35. typedef struct T1_SizeRec_* T1_Size;
  36. /*************************************************************************/
  37. /* */
  38. /* <Type> */
  39. /* T1_GlyphSlot */
  40. /* */
  41. /* <Description> */
  42. /* A handle to a Type 1 glyph slot object. */
  43. /* */
  44. typedef struct T1_GlyphSlotRec_* T1_GlyphSlot;
  45. /*************************************************************************/
  46. /* */
  47. /* <Type> */
  48. /* T1_CharMap */
  49. /* */
  50. /* <Description> */
  51. /* A handle to a Type 1 character mapping object. */
  52. /* */
  53. /* <Note> */
  54. /* The Type 1 format doesn't use a charmap but an encoding table. */
  55. /* The driver is responsible for making up charmap objects */
  56. /* corresponding to these tables. */
  57. /* */
  58. typedef struct T1_CharMapRec_* T1_CharMap;
  59. /*************************************************************************/
  60. /* */
  61. /* HERE BEGINS THE TYPE1 SPECIFIC STUFF */
  62. /* */
  63. /*************************************************************************/
  64. /*************************************************************************/
  65. /* */
  66. /* <Type> */
  67. /* T1_SizeRec */
  68. /* */
  69. /* <Description> */
  70. /* Type 1 size record. */
  71. /* */
  72. typedef struct T1_SizeRec_
  73. {
  74. FT_SizeRec root;
  75. } T1_SizeRec;
  76. FT_LOCAL( void )
  77. T1_Size_Done( FT_Size size );
  78. FT_LOCAL( FT_Error )
  79. T1_Size_Request( FT_Size size,
  80. FT_Size_Request req );
  81. FT_LOCAL( FT_Error )
  82. T1_Size_Init( FT_Size size );
  83. /*************************************************************************/
  84. /* */
  85. /* <Type> */
  86. /* T1_GlyphSlotRec */
  87. /* */
  88. /* <Description> */
  89. /* Type 1 glyph slot record. */
  90. /* */
  91. typedef struct T1_GlyphSlotRec_
  92. {
  93. FT_GlyphSlotRec root;
  94. FT_Bool hint;
  95. FT_Bool scaled;
  96. FT_Int max_points;
  97. FT_Int max_contours;
  98. FT_Fixed x_scale;
  99. FT_Fixed y_scale;
  100. } T1_GlyphSlotRec;
  101. FT_LOCAL( FT_Error )
  102. T1_Face_Init( FT_Stream stream,
  103. FT_Face face,
  104. FT_Int face_index,
  105. FT_Int num_params,
  106. FT_Parameter* params );
  107. FT_LOCAL( void )
  108. T1_Face_Done( FT_Face face );
  109. FT_LOCAL( FT_Error )
  110. T1_GlyphSlot_Init( FT_GlyphSlot slot );
  111. FT_LOCAL( void )
  112. T1_GlyphSlot_Done( FT_GlyphSlot slot );
  113. FT_LOCAL( FT_Error )
  114. T1_Driver_Init( FT_Module driver );
  115. FT_LOCAL( void )
  116. T1_Driver_Done( FT_Module driver );
  117. FT_END_HEADER
  118. #endif /* __T1OBJS_H__ */
  119. /* END */