cidload.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /***************************************************************************/
  2. /* */
  3. /* cidload.h */
  4. /* */
  5. /* CID-keyed Type1 font 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 __CIDLOAD_H__
  18. #define __CIDLOAD_H__
  19. #include <ft2build.h>
  20. #include FT_INTERNAL_STREAM_H
  21. #include "cidparse.h"
  22. FT_BEGIN_HEADER
  23. typedef struct CID_Loader_
  24. {
  25. CID_Parser parser; /* parser used to read the stream */
  26. FT_Int num_chars; /* number of characters in encoding */
  27. } CID_Loader;
  28. FT_LOCAL( FT_Long )
  29. cid_get_offset( FT_Byte** start,
  30. FT_Byte offsize );
  31. FT_LOCAL( void )
  32. cid_decrypt( FT_Byte* buffer,
  33. FT_Offset length,
  34. FT_UShort seed );
  35. FT_LOCAL( FT_Error )
  36. cid_face_open( CID_Face face );
  37. FT_END_HEADER
  38. #endif /* __CIDLOAD_H__ */
  39. /* END */