sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
svpsinfo.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * svpsinfo.h
4 *
5 * The FreeType PostScript info service (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 SVPSINFO_H_
24#define SVPSINFO_H_
25
28
29
30FT_BEGIN_HEADER
31
32
33#define FT_SERVICE_ID_POSTSCRIPT_INFO "postscript-info"
34
35
36 typedef FT_Error
37 (*PS_GetFontInfoFunc)( FT_Face face,
38 PS_FontInfoRec* afont_info );
39
40 typedef FT_Error
41 (*PS_GetFontExtraFunc)( FT_Face face,
42 PS_FontExtraRec* afont_extra );
43
44 typedef FT_Int
45 (*PS_HasGlyphNamesFunc)( FT_Face face );
46
47 typedef FT_Error
48 (*PS_GetFontPrivateFunc)( FT_Face face,
49 PS_PrivateRec* afont_private );
50
51 typedef FT_Long
52 (*PS_GetFontValueFunc)( FT_Face face,
53 PS_Dict_Keys key,
54 FT_UInt idx,
55 void *value,
56 FT_Long value_len );
57
58
59 FT_DEFINE_SERVICE( PsInfo )
60 {
61 PS_GetFontInfoFunc ps_get_font_info;
62 PS_GetFontExtraFunc ps_get_font_extra;
63 PS_HasGlyphNamesFunc ps_has_glyph_names;
64 PS_GetFontPrivateFunc ps_get_font_private;
65 PS_GetFontValueFunc ps_get_font_value;
66 };
67
68
69#define FT_DEFINE_SERVICE_PSINFOREC( class_, \
70 get_font_info_, \
71 ps_get_font_extra_, \
72 has_glyph_names_, \
73 get_font_private_, \
74 get_font_value_ ) \
75 static const FT_Service_PsInfoRec class_ = \
76 { \
77 get_font_info_, ps_get_font_extra_, has_glyph_names_, \
78 get_font_private_, get_font_value_ \
79 };
80
81 /* */
82
83
84FT_END_HEADER
85
86
87#endif /* SVPSINFO_H_ */
88
89
90/* END */