sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
svcfftl.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * svcfftl.h
4 *
5 * The FreeType CFF tables loader service (specification).
6 *
7 * Copyright (C) 2017-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 SVCFFTL_H_
24#define SVCFFTL_H_
25
28
29
30FT_BEGIN_HEADER
31
32
33#define FT_SERVICE_ID_CFF_LOAD "cff-load"
34
35
36 typedef FT_UShort
37 (*FT_Get_Standard_Encoding_Func)( FT_UInt charcode );
38
39 typedef FT_Error
40 (*FT_Load_Private_Dict_Func)( CFF_Font font,
41 CFF_SubFont subfont,
42 FT_UInt lenNDV,
43 FT_Fixed* NDV );
44
45 typedef FT_Byte
46 (*FT_FD_Select_Get_Func)( CFF_FDSelect fdselect,
47 FT_UInt glyph_index );
48
49 typedef FT_Bool
50 (*FT_Blend_Check_Vector_Func)( CFF_Blend blend,
51 FT_UInt vsindex,
52 FT_UInt lenNDV,
53 FT_Fixed* NDV );
54
55 typedef FT_Error
56 (*FT_Blend_Build_Vector_Func)( CFF_Blend blend,
57 FT_UInt vsindex,
58 FT_UInt lenNDV,
59 FT_Fixed* NDV );
60
61
62 FT_DEFINE_SERVICE( CFFLoad )
63 {
64 FT_Get_Standard_Encoding_Func get_standard_encoding;
65 FT_Load_Private_Dict_Func load_private_dict;
66 FT_FD_Select_Get_Func fd_select_get;
67 FT_Blend_Check_Vector_Func blend_check_vector;
68 FT_Blend_Build_Vector_Func blend_build_vector;
69 };
70
71
72#define FT_DEFINE_SERVICE_CFFLOADREC( class_, \
73 get_standard_encoding_, \
74 load_private_dict_, \
75 fd_select_get_, \
76 blend_check_vector_, \
77 blend_build_vector_ ) \
78 static const FT_Service_CFFLoadRec class_ = \
79 { \
80 get_standard_encoding_, \
81 load_private_dict_, \
82 fd_select_get_, \
83 blend_check_vector_, \
84 blend_build_vector_ \
85 };
86
87
88FT_END_HEADER
89
90
91#endif
92
93
94/* END */