1
/***************************************************************************/
5
/* The FreeType PostScript charmap service (specification). */
7
/* Copyright 2003 by */
8
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
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. */
16
/***************************************************************************/
19
#ifndef __SVPSCMAP_H__
20
#define __SVPSCMAP_H__
26
#define FT_SERVICE_ID_POSTSCRIPT_CMAPS "postscript-cmaps"
30
* Adobe glyph name to unicode value
33
(*PS_Unicode_ValueFunc)( const char* glyph_name );
36
* Unicode value to Adobe glyph name index. 0xFFFF if not found.
39
(*PS_Unicode_Index_Func)( FT_UInt num_glyphs,
40
const char** glyph_names,
44
* Macintosh name id to glyph name. NULL if invalid index.
47
(*PS_Macintosh_Name_Func)( FT_UInt name_index );
50
* Adobe standard string ID to glyph name. NULL if invalid index.
53
(*PS_Adobe_Std_Strings_Func)( FT_UInt string_index );
56
* Simple unicode -> glyph index charmap built from font glyph names
59
typedef struct PS_UniMap_
67
typedef struct PS_Unicodes_
76
(*PS_Unicodes_InitFunc)( FT_Memory memory,
78
const char** glyph_names,
79
PS_Unicodes* unicodes );
82
(*PS_Unicodes_CharIndexFunc)( PS_Unicodes* unicodes,
86
(*PS_Unicodes_CharNextFunc)( PS_Unicodes* unicodes,
90
FT_DEFINE_SERVICE( PsCMaps )
92
PS_Unicode_ValueFunc unicode_value;
94
PS_Unicodes_InitFunc unicodes_init;
95
PS_Unicodes_CharIndexFunc unicodes_char_index;
96
PS_Unicodes_CharNextFunc unicodes_char_next;
98
PS_Macintosh_Name_Func macintosh_name;
99
PS_Adobe_Std_Strings_Func adobe_std_strings;
100
const unsigned short* adobe_std_encoding;
101
const unsigned short* adobe_expert_encoding;
110
#endif /* __SVPSCMAP_H__ */