/modules/freetype2/src/sfnt/ttsbit.h

http://github.com/zpao/v8monkey · C Header · 79 lines · 41 code · 21 blank · 17 comment · 0 complexity · e00f4a553a0d3a1b210394de74e36ced MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* ttsbit.h */
  4. /* */
  5. /* TrueType and OpenType embedded bitmap support (specification). */
  6. /* */
  7. /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 __TTSBIT_H__
  18. #define __TTSBIT_H__
  19. #include <ft2build.h>
  20. #include "ttload.h"
  21. FT_BEGIN_HEADER
  22. FT_LOCAL( FT_Error )
  23. tt_face_load_eblc( TT_Face face,
  24. FT_Stream stream );
  25. FT_LOCAL( void )
  26. tt_face_free_eblc( TT_Face face );
  27. FT_LOCAL( FT_Error )
  28. tt_face_set_sbit_strike( TT_Face face,
  29. FT_Size_Request req,
  30. FT_ULong* astrike_index );
  31. FT_LOCAL( FT_Error )
  32. tt_face_load_strike_metrics( TT_Face face,
  33. FT_ULong strike_index,
  34. FT_Size_Metrics* metrics );
  35. #ifdef FT_CONFIG_OPTION_OLD_INTERNALS
  36. FT_LOCAL( FT_Error )
  37. tt_find_sbit_image( TT_Face face,
  38. FT_UInt glyph_index,
  39. FT_ULong strike_index,
  40. TT_SBit_Range *arange,
  41. TT_SBit_Strike *astrike,
  42. FT_ULong *aglyph_offset );
  43. FT_LOCAL( FT_Error )
  44. tt_load_sbit_metrics( FT_Stream stream,
  45. TT_SBit_Range range,
  46. TT_SBit_Metrics metrics );
  47. #endif /* FT_CONFIG_OPTION_OLD_INTERNALS */
  48. FT_LOCAL( FT_Error )
  49. tt_face_load_sbit_image( TT_Face face,
  50. FT_ULong strike_index,
  51. FT_UInt glyph_index,
  52. FT_UInt load_flags,
  53. FT_Stream stream,
  54. FT_Bitmap *map,
  55. TT_SBit_MetricsRec *metrics );
  56. FT_END_HEADER
  57. #endif /* __TTSBIT_H__ */
  58. /* END */