blob: 9b0bc5ca66c7ee27b0aa5551b691b3fd69f05280 [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 Lembergcc069be2000-12-08 16:17:16 +000036 FT_LOCAL
37 FT_String* CFF_Get_Name( CFF_Index* index,
38 FT_UInt element );
39
40 FT_LOCAL
41 FT_String* CFF_Get_String( CFF_Index* index,
42 FT_UInt sid,
43 PSNames_Interface* interface );
David Turner19ed8af2000-12-08 02:42:29 +000044
45
Werner Lembergcc069be2000-12-08 16:17:16 +000046 FT_LOCAL
47 FT_Error CFF_Access_Element( CFF_Index* index,
48 FT_UInt element,
49 FT_Byte** pbytes,
50 FT_ULong* pbyte_len );
51
52 FT_LOCAL
53 void CFF_Forget_Element( CFF_Index* index,
54 FT_Byte** pbytes );
David Turner19ed8af2000-12-08 02:42:29 +000055
56
Werner Lembergcc069be2000-12-08 16:17:16 +000057 FT_LOCAL
58 FT_Error CFF_Load_Font( FT_Stream stream,
59 FT_Int face_index,
60 CFF_Font* font );
61
62 FT_LOCAL
63 void CFF_Done_Font( CFF_Font* font );
David Turner19ed8af2000-12-08 02:42:29 +000064
65
Werner Lembergcc069be2000-12-08 16:17:16 +000066 FT_LOCAL
67 FT_Byte 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 */