sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
svgldict.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * svgldict.h
4 *
5 * The FreeType glyph dictionary services (specification).
6 *
7 * Copyright (C) 2003-2025 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
23#ifndef SVGLDICT_H_
24#define SVGLDICT_H_
25
27
28
29FT_BEGIN_HEADER
30
31
32 /*
33 * A service used to retrieve glyph names, as well as to find the index of
34 * a given glyph name in a font.
35 *
36 */
37
38#define FT_SERVICE_ID_GLYPH_DICT "glyph-dict"
39
40
41 typedef FT_Error
42 (*FT_GlyphDict_GetNameFunc)( FT_Face face,
43 FT_UInt glyph_index,
44 FT_Pointer buffer,
45 FT_UInt buffer_max );
46
47 typedef FT_UInt
48 (*FT_GlyphDict_NameIndexFunc)( FT_Face face,
49 const FT_String* glyph_name );
50
51
52 FT_DEFINE_SERVICE( GlyphDict )
53 {
54 FT_GlyphDict_GetNameFunc get_name;
55 FT_GlyphDict_NameIndexFunc name_index; /* optional */
56 };
57
58
59#define FT_DEFINE_SERVICE_GLYPHDICTREC( class_, \
60 get_name_, \
61 name_index_ ) \
62 static const FT_Service_GlyphDictRec class_ = \
63 { \
64 get_name_, name_index_ \
65 };
66
67 /* */
68
69
70FT_END_HEADER
71
72
73#endif /* SVGLDICT_H_ */
74
75
76/* END */