cidobjs.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. /***************************************************************************/
  2. /* */
  3. /* cidobjs.h */
  4. /* */
  5. /* CID 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 __CIDOBJS_H__
  18. #define __CIDOBJS_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 CID_Size_Hints_ CID_Size_Hints;
  26. typedef struct CID_Glyph_Hints_ CID_Glyph_Hints;
  27. /*************************************************************************/
  28. /* */
  29. /* <Type> */
  30. /* CID_Driver */
  31. /* */
  32. /* <Description> */
  33. /* A handle to a Type 1 driver object. */
  34. /* */
  35. typedef struct CID_DriverRec_* CID_Driver;
  36. /*************************************************************************/
  37. /* */
  38. /* <Type> */
  39. /* CID_Size */
  40. /* */
  41. /* <Description> */
  42. /* A handle to a Type 1 size object. */
  43. /* */
  44. typedef struct CID_SizeRec_* CID_Size;
  45. /*************************************************************************/
  46. /* */
  47. /* <Type> */
  48. /* CID_GlyphSlot */
  49. /* */
  50. /* <Description> */
  51. /* A handle to a Type 1 glyph slot object. */
  52. /* */
  53. typedef struct CID_GlyphSlotRec_* CID_GlyphSlot;
  54. /*************************************************************************/
  55. /* */
  56. /* <Type> */
  57. /* CID_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 CID_CharMapRec_* CID_CharMap;
  68. /*************************************************************************/
  69. /* */
  70. /* HERE BEGINS THE TYPE 1 SPECIFIC STUFF */
  71. /* */
  72. /*************************************************************************/
  73. typedef struct CID_SizeRec_
  74. {
  75. FT_SizeRec root;
  76. FT_Bool valid;
  77. } CID_SizeRec;
  78. typedef struct CID_GlyphSlotRec_
  79. {
  80. FT_GlyphSlotRec root;
  81. FT_Bool hint;
  82. FT_Bool scaled;
  83. FT_Fixed x_scale;
  84. FT_Fixed y_scale;
  85. } CID_GlyphSlotRec;
  86. FT_LOCAL( void )
  87. cid_slot_done( CID_GlyphSlot slot );
  88. FT_LOCAL( FT_Error )
  89. cid_slot_init( CID_GlyphSlot slot );
  90. FT_LOCAL( void )
  91. cid_size_done( CID_Size size );
  92. FT_LOCAL( FT_Error )
  93. cid_size_init( CID_Size size );
  94. FT_LOCAL( FT_Error )
  95. cid_size_reset( CID_Size size );
  96. FT_LOCAL( FT_Error )
  97. cid_face_init( FT_Stream stream,
  98. CID_Face face,
  99. FT_Int face_index,
  100. FT_Int num_params,
  101. FT_Parameter* params );
  102. FT_LOCAL( void )
  103. cid_face_done( CID_Face face );
  104. FT_LOCAL( FT_Error )
  105. cid_driver_init( CID_Driver driver );
  106. FT_LOCAL( void )
  107. cid_driver_done( CID_Driver driver );
  108. FT_END_HEADER
  109. #endif /* __CIDOBJS_H__ */
  110. /* END */