t42objs.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /***************************************************************************/
  2. /* */
  3. /* t42objs.h */
  4. /* */
  5. /* Type 42 objects manager (specification). */
  6. /* */
  7. /* Copyright 2002 by Roberto Alameda. */
  8. /* */
  9. /* This file is part of the FreeType project, and may only be used, */
  10. /* modified, and distributed under the terms of the FreeType project */
  11. /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
  12. /* this file you indicate that you have read the license and */
  13. /* understand and accept it fully. */
  14. /* */
  15. /***************************************************************************/
  16. #ifndef __T42OBJS_H__
  17. #define __T42OBJS_H__
  18. #include <ft2build.h>
  19. #include FT_FREETYPE_H
  20. #include FT_TYPE1_TABLES_H
  21. #include FT_INTERNAL_TYPE1_TYPES_H
  22. #include FT_INTERNAL_TYPE42_TYPES_H
  23. #include FT_INTERNAL_OBJECTS_H
  24. #include FT_INTERNAL_DRIVER_H
  25. #include FT_INTERNAL_POSTSCRIPT_NAMES_H
  26. #include FT_INTERNAL_POSTSCRIPT_HINTS_H
  27. FT_BEGIN_HEADER
  28. /* Type42 size */
  29. typedef struct T42_SizeRec_
  30. {
  31. FT_SizeRec root;
  32. FT_Size ttsize;
  33. } T42_SizeRec, *T42_Size;
  34. /* Type42 slot */
  35. typedef struct T42_GlyphSlotRec_
  36. {
  37. FT_GlyphSlotRec root;
  38. FT_GlyphSlot ttslot;
  39. } T42_GlyphSlotRec, *T42_GlyphSlot;
  40. /* Type 42 driver */
  41. typedef struct T42_DriverRec_
  42. {
  43. FT_DriverRec root;
  44. FT_Driver_Class ttclazz;
  45. void* extension_component;
  46. } T42_DriverRec, *T42_Driver;
  47. /* */
  48. FT_LOCAL( FT_Error )
  49. T42_Face_Init( FT_Stream stream,
  50. T42_Face face,
  51. FT_Int face_index,
  52. FT_Int num_params,
  53. FT_Parameter* params );
  54. FT_LOCAL( void )
  55. T42_Face_Done( T42_Face face );
  56. FT_LOCAL( FT_Error )
  57. T42_Size_Init( T42_Size size );
  58. FT_LOCAL( FT_Error )
  59. T42_Size_SetChars( T42_Size size,
  60. FT_F26Dot6 char_width,
  61. FT_F26Dot6 char_height,
  62. FT_UInt horz_resolution,
  63. FT_UInt vert_resolution );
  64. FT_LOCAL( FT_Error )
  65. T42_Size_SetPixels( T42_Size size,
  66. FT_UInt pixel_width,
  67. FT_UInt pixel_height );
  68. FT_LOCAL( void )
  69. T42_Size_Done( T42_Size size );
  70. FT_LOCAL( FT_Error )
  71. T42_GlyphSlot_Init( T42_GlyphSlot slot );
  72. FT_LOCAL( FT_Error )
  73. T42_GlyphSlot_Load( FT_GlyphSlot glyph,
  74. FT_Size size,
  75. FT_Int glyph_index,
  76. FT_Int32 load_flags );
  77. FT_LOCAL( void )
  78. T42_GlyphSlot_Done( T42_GlyphSlot slot );
  79. FT_LOCAL( FT_Error )
  80. T42_Driver_Init( T42_Driver driver );
  81. FT_LOCAL( void )
  82. T42_Driver_Done( T42_Driver driver );
  83. /* */
  84. FT_END_HEADER
  85. #endif /* __T42OBJS_H__ */
  86. /* END */