blob: 273bde25418617905e5dc1ad455927aea57a9504 [file] [log] [blame]
David Turner19ed8af2000-12-08 02:42:29 +00001/***************************************************************************/
2/* */
3/* cffload.h */
4/* */
5/* OpenType & CFF data/program tables loader (specification). */
6/* */
7/* Copyright 1996-2000 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
18
Werner Lemberg90d99642000-12-09 00:45:38 +000019#ifndef __CFFLOAD_H__
20#define __CFFLOAD_H__
David Turner19ed8af2000-12-08 02:42:29 +000021
Werner Lembergcc069be2000-12-08 16:17:16 +000022
David Turner19ed8af2000-12-08 02:42:29 +000023#include <ft2build.h>
24#include FT_INTERNAL_CFF_TYPES_H
25#include FT_INTERNAL_POSTSCRIPT_NAMES_H
26
Werner Lembergcc069be2000-12-08 16:17:16 +000027
David Turner19ed8af2000-12-08 02:42:29 +000028FT_BEGIN_HEADER
29
Werner Lemberg1429db62001-04-02 23:54:01 +000030 extern const FT_UShort cff_isoadobe_charset[];
31 extern const FT_UShort cff_expert_charset[];
32 extern const FT_UShort cff_expertsubset_charset[];
33 extern const FT_UShort cff_standard_encoding[];
34 extern const FT_UShort cff_expert_encoding[];
35
Werner Lemberg93616ec2001-06-27 19:46:12 +000036 FT_LOCAL FT_String*
37 CFF_Get_Name( CFF_Index* index,
38 FT_UInt element );
Werner Lembergcc069be2000-12-08 16:17:16 +000039
Werner Lemberg93616ec2001-06-27 19:46:12 +000040 FT_LOCAL FT_String*
41 CFF_Get_String( CFF_Index* index,
42 FT_UInt sid,
43 PSNames_Interface* interface );
David Turner19ed8af2000-12-08 02:42:29 +000044
45
Werner Lemberg93616ec2001-06-27 19:46:12 +000046 FT_LOCAL FT_Error
47 CFF_Access_Element( CFF_Index* index,
48 FT_UInt element,
49 FT_Byte** pbytes,
50 FT_ULong* pbyte_len );
Werner Lembergcc069be2000-12-08 16:17:16 +000051
Werner Lemberg93616ec2001-06-27 19:46:12 +000052 FT_LOCAL void
53 CFF_Forget_Element( CFF_Index* index,
54 FT_Byte** pbytes );
David Turner19ed8af2000-12-08 02:42:29 +000055
56
Werner Lemberg93616ec2001-06-27 19:46:12 +000057 FT_LOCAL FT_Error
58 CFF_Load_Font( FT_Stream stream,
59 FT_Int face_index,
60 CFF_Font* font );
Werner Lembergcc069be2000-12-08 16:17:16 +000061
Werner Lemberg93616ec2001-06-27 19:46:12 +000062 FT_LOCAL void
63 CFF_Done_Font( CFF_Font* font );
David Turner19ed8af2000-12-08 02:42:29 +000064
65
Werner Lemberg93616ec2001-06-27 19:46:12 +000066 FT_LOCAL FT_Byte
67 CFF_Get_FD( CFF_FD_Select* select,
68 FT_UInt glyph_index );
David Turner19ed8af2000-12-08 02:42:29 +000069
70
David Turner19ed8af2000-12-08 02:42:29 +000071FT_END_HEADER
72
Werner Lemberg90d99642000-12-09 00:45:38 +000073#endif /* __CFFLOAD_H__ */
David Turner19ed8af2000-12-08 02:42:29 +000074
75
76/* END */