ttload.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /***************************************************************************/
  2. /* */
  3. /* ttload.h */
  4. /* */
  5. /* Load the basic TrueType tables, i.e., tables that can be either in */
  6. /* TTF or OTF fonts (specification). */
  7. /* */
  8. /* Copyright 1996-2001, 2002 by */
  9. /* David Turner, Robert Wilhelm, and Werner Lemberg. */
  10. /* */
  11. /* This file is part of the FreeType project, and may only be used, */
  12. /* modified, and distributed under the terms of the FreeType project */
  13. /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
  14. /* this file you indicate that you have read the license and */
  15. /* understand and accept it fully. */
  16. /* */
  17. /***************************************************************************/
  18. #ifndef __TTLOAD_H__
  19. #define __TTLOAD_H__
  20. #include <ft2build.h>
  21. #include FT_INTERNAL_STREAM_H
  22. #include FT_INTERNAL_TRUETYPE_TYPES_H
  23. FT_BEGIN_HEADER
  24. FT_LOCAL( TT_Table )
  25. tt_face_lookup_table( TT_Face face,
  26. FT_ULong tag );
  27. FT_LOCAL( FT_Error )
  28. tt_face_goto_table( TT_Face face,
  29. FT_ULong tag,
  30. FT_Stream stream,
  31. FT_ULong* length );
  32. FT_LOCAL( FT_Error )
  33. tt_face_load_sfnt_header( TT_Face face,
  34. FT_Stream stream,
  35. FT_Long face_index,
  36. SFNT_Header sfnt );
  37. FT_LOCAL( FT_Error )
  38. tt_face_load_directory( TT_Face face,
  39. FT_Stream stream,
  40. SFNT_Header sfnt );
  41. FT_LOCAL( FT_Error )
  42. tt_face_load_any( TT_Face face,
  43. FT_ULong tag,
  44. FT_Long offset,
  45. FT_Byte* buffer,
  46. FT_ULong* length );
  47. FT_LOCAL( FT_Error )
  48. tt_face_load_header( TT_Face face,
  49. FT_Stream stream );
  50. FT_LOCAL( FT_Error )
  51. tt_face_load_metrics_header( TT_Face face,
  52. FT_Stream stream,
  53. FT_Bool vertical );
  54. FT_LOCAL( FT_Error )
  55. tt_face_load_cmap( TT_Face face,
  56. FT_Stream stream );
  57. FT_LOCAL( FT_Error )
  58. tt_face_load_max_profile( TT_Face face,
  59. FT_Stream stream );
  60. FT_LOCAL( FT_Error )
  61. tt_face_load_names( TT_Face face,
  62. FT_Stream stream );
  63. FT_LOCAL( FT_Error )
  64. tt_face_load_os2( TT_Face face,
  65. FT_Stream stream );
  66. FT_LOCAL( FT_Error )
  67. tt_face_load_postscript( TT_Face face,
  68. FT_Stream stream );
  69. FT_LOCAL( FT_Error )
  70. tt_face_load_hdmx( TT_Face face,
  71. FT_Stream stream );
  72. FT_LOCAL( FT_Error )
  73. tt_face_load_pclt( TT_Face face,
  74. FT_Stream stream );
  75. FT_LOCAL( void )
  76. tt_face_free_names( TT_Face face );
  77. FT_LOCAL( void )
  78. tt_face_free_hdmx ( TT_Face face );
  79. FT_LOCAL( FT_Error )
  80. tt_face_load_kern( TT_Face face,
  81. FT_Stream stream );
  82. FT_LOCAL( FT_Error )
  83. tt_face_load_gasp( TT_Face face,
  84. FT_Stream stream );
  85. #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS
  86. FT_LOCAL( FT_Error )
  87. tt_face_load_bitmap_header( TT_Face face,
  88. FT_Stream stream );
  89. #endif /* TT_CONFIG_OPTION_EMBEDDED_BITMAPS */
  90. FT_END_HEADER
  91. #endif /* __TTLOAD_H__ */
  92. /* END */