ttsbit.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /***************************************************************************/
  2. /* */
  3. /* ttsbit.h */
  4. /* */
  5. /* TrueType and OpenType embedded bitmap support (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 __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_sbit_strikes( TT_Face face,
  24. FT_Stream stream );
  25. FT_LOCAL( void )
  26. tt_face_free_sbit_strikes( TT_Face face );
  27. FT_LOCAL( FT_Error )
  28. tt_face_set_sbit_strike( TT_Face face,
  29. FT_Int x_ppem,
  30. FT_Int y_ppem,
  31. FT_ULong *astrike_index );
  32. FT_LOCAL( FT_Error )
  33. tt_face_load_sbit_image( TT_Face face,
  34. FT_ULong strike_index,
  35. FT_UInt glyph_index,
  36. FT_UInt load_flags,
  37. FT_Stream stream,
  38. FT_Bitmap *map,
  39. TT_SBit_MetricsRec *metrics );
  40. FT_END_HEADER
  41. #endif /* __TTSBIT_H__ */
  42. /* END */