/modules/freetype2/src/cff/cffload.h

http://github.com/zpao/v8monkey · C Header · 83 lines · 40 code · 26 blank · 17 comment · 0 complexity · a75a9c4446a624fc2b538dec3efdeae9 MD5 · raw file

  1. /***************************************************************************/
  2. /* */
  3. /* cffload.h */
  4. /* */
  5. /* OpenType & CFF data/program tables loader (specification). */
  6. /* */
  7. /* Copyright 1996-2001, 2002, 2003, 2007, 2008, 2010 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 __CFFLOAD_H__
  18. #define __CFFLOAD_H__
  19. #include <ft2build.h>
  20. #include "cfftypes.h"
  21. FT_BEGIN_HEADER
  22. FT_LOCAL( FT_UShort )
  23. cff_get_standard_encoding( FT_UInt charcode );
  24. FT_LOCAL( FT_String* )
  25. cff_index_get_string( CFF_Font font,
  26. FT_UInt element );
  27. FT_LOCAL( FT_String* )
  28. cff_index_get_sid_string( CFF_Font font,
  29. FT_UInt sid );
  30. FT_LOCAL( FT_Error )
  31. cff_index_access_element( CFF_Index idx,
  32. FT_UInt element,
  33. FT_Byte** pbytes,
  34. FT_ULong* pbyte_len );
  35. FT_LOCAL( void )
  36. cff_index_forget_element( CFF_Index idx,
  37. FT_Byte** pbytes );
  38. FT_LOCAL( FT_String* )
  39. cff_index_get_name( CFF_Font font,
  40. FT_UInt element );
  41. FT_LOCAL( FT_UInt )
  42. cff_charset_cid_to_gindex( CFF_Charset charset,
  43. FT_UInt cid );
  44. FT_LOCAL( FT_Error )
  45. cff_font_load( FT_Library library,
  46. FT_Stream stream,
  47. FT_Int face_index,
  48. CFF_Font font,
  49. FT_Bool pure_cff );
  50. FT_LOCAL( void )
  51. cff_font_done( CFF_Font font );
  52. FT_LOCAL( FT_Byte )
  53. cff_fd_select_get( CFF_FDSelect fdselect,
  54. FT_UInt glyph_index );
  55. FT_END_HEADER
  56. #endif /* __CFFLOAD_H__ */
  57. /* END */