/src/freetype/src/sfnt/ttkern.h

https://bitbucket.org/cabalistic/ogredeps/ · C++ Header · 52 lines · 18 code · 16 blank · 18 comment · 1 complexity · 2a15895764bf6c9f7dab50992538619c MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* ttkern.h */
  4. /* */
  5. /* Load the basic TrueType kerning table. This doesn't handle */
  6. /* kerning data within the GPOS table at the moment. */
  7. /* */
  8. /* Copyright 1996-2001, 2002, 2005, 2007 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 __TTKERN_H__
  19. #define __TTKERN_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( FT_Error )
  25. tt_face_load_kern( TT_Face face,
  26. FT_Stream stream );
  27. FT_LOCAL( void )
  28. tt_face_done_kern( TT_Face face );
  29. FT_LOCAL( FT_Int )
  30. tt_face_get_kerning( TT_Face face,
  31. FT_UInt left_glyph,
  32. FT_UInt right_glyph );
  33. #define TT_FACE_HAS_KERNING( face ) ( (face)->kern_avail_bits != 0 )
  34. FT_END_HEADER
  35. #endif /* __TTKERN_H__ */
  36. /* END */