cffload.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /***************************************************************************/
  2. /* */
  3. /* cffload.h */
  4. /* */
  5. /* OpenType & CFF data/program tables loader (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 __CFFLOAD_H__
  18. #define __CFFLOAD_H__
  19. #include <ft2build.h>
  20. #include FT_INTERNAL_CFF_TYPES_H
  21. #include FT_INTERNAL_POSTSCRIPT_NAMES_H
  22. FT_BEGIN_HEADER
  23. FT_LOCAL( FT_UShort )
  24. cff_get_standard_encoding( FT_UInt charcode );
  25. FT_LOCAL( FT_String* )
  26. cff_index_get_name( CFF_Index idx,
  27. FT_UInt element );
  28. FT_LOCAL( FT_String* )
  29. cff_index_get_sid_string( CFF_Index idx,
  30. FT_UInt sid,
  31. PSNames_Service psnames_interface );
  32. FT_LOCAL( FT_Error )
  33. cff_index_access_element( CFF_Index idx,
  34. FT_UInt element,
  35. FT_Byte** pbytes,
  36. FT_ULong* pbyte_len );
  37. FT_LOCAL( void )
  38. cff_index_forget_element( CFF_Index idx,
  39. FT_Byte** pbytes );
  40. FT_LOCAL( FT_Error )
  41. cff_font_load( FT_Stream stream,
  42. FT_Int face_index,
  43. CFF_Font font );
  44. FT_LOCAL( void )
  45. cff_font_done( CFF_Font font );
  46. FT_LOCAL( FT_Byte )
  47. cff_fd_select_get( CFF_FDSelect select,
  48. FT_UInt glyph_index );
  49. FT_END_HEADER
  50. #endif /* __CFFLOAD_H__ */
  51. /* END */