sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
svcid.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * svcid.h
4 *
5 * The FreeType CID font services (specification).
6 *
7 * Copyright (C) 2007-2025 by
8 * Derek Clegg and Michael Toftdal.
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 SVCID_H_
24#define SVCID_H_
25
27
28
29FT_BEGIN_HEADER
30
31
32#define FT_SERVICE_ID_CID "CID"
33
34 typedef FT_Error
35 (*FT_CID_GetRegistryOrderingSupplementFunc)( FT_Face face,
36 const char* *registry,
37 const char* *ordering,
38 FT_Int *supplement );
39 typedef FT_Error
40 (*FT_CID_GetIsInternallyCIDKeyedFunc)( FT_Face face,
41 FT_Bool *is_cid );
42 typedef FT_Error
43 (*FT_CID_GetCIDFromGlyphIndexFunc)( FT_Face face,
44 FT_UInt glyph_index,
45 FT_UInt *cid );
46
47 FT_DEFINE_SERVICE( CID )
48 {
49 FT_CID_GetRegistryOrderingSupplementFunc get_ros;
50 FT_CID_GetIsInternallyCIDKeyedFunc get_is_cid;
51 FT_CID_GetCIDFromGlyphIndexFunc get_cid_from_glyph_index;
52 };
53
54
55#define FT_DEFINE_SERVICE_CIDREC( class_, \
56 get_ros_, \
57 get_is_cid_, \
58 get_cid_from_glyph_index_ ) \
59 static const FT_Service_CIDRec class_ = \
60 { \
61 get_ros_, get_is_cid_, get_cid_from_glyph_index_ \
62 };
63
64 /* */
65
66
67FT_END_HEADER
68
69
70#endif /* SVCID_H_ */
71
72
73/* END */