ReactOS 0.4.15-dev-7942-gd23573b
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 2017-2018 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
19#ifndef SVCFFTL_H_
20#define SVCFFTL_H_
21
22#include FT_INTERNAL_SERVICE_H
23#include FT_INTERNAL_CFF_TYPES_H
24
25
27
28
29#define FT_SERVICE_ID_CFF_LOAD "cff-load"
30
31
32 typedef FT_UShort
34
35 typedef FT_Error
37 CFF_SubFont subfont,
38 FT_UInt lenNDV,
39 FT_Fixed* NDV );
40
41 typedef FT_Byte
43 FT_UInt glyph_index );
44
45 typedef FT_Bool
47 FT_UInt vsindex,
48 FT_UInt lenNDV,
49 FT_Fixed* NDV );
50
51 typedef FT_Error
53 FT_UInt vsindex,
54 FT_UInt lenNDV,
55 FT_Fixed* NDV );
56
57
59 {
60 FT_Get_Standard_Encoding_Func get_standard_encoding;
61 FT_Load_Private_Dict_Func load_private_dict;
62 FT_FD_Select_Get_Func fd_select_get;
63 FT_Blend_Check_Vector_Func blend_check_vector;
64 FT_Blend_Build_Vector_Func blend_build_vector;
65 };
66
67
68#ifndef FT_CONFIG_OPTION_PIC
69
70#define FT_DEFINE_SERVICE_CFFLOADREC( class_, \
71 get_standard_encoding_, \
72 load_private_dict_, \
73 fd_select_get_, \
74 blend_check_vector_, \
75 blend_build_vector_ ) \
76 static const FT_Service_CFFLoadRec class_ = \
77 { \
78 get_standard_encoding_, \
79 load_private_dict_, \
80 fd_select_get_, \
81 blend_check_vector_, \
82 blend_build_vector_ \
83 };
84
85#else /* FT_CONFIG_OPTION_PIC */
86
87#define FT_DEFINE_SERVICE_CFFLOADREC( class_, \
88 get_standard_encoding_, \
89 load_private_dict_, \
90 fd_select_get_, \
91 blend_check_vector_, \
92 blend_build_vector_ ) \
93 void \
94 FT_Init_Class_ ## class_( FT_Service_CFFLoadRec* clazz ) \
95 { \
96 clazz->get_standard_encoding = get_standard_encoding_; \
97 clazz->load_private_dict = load_private_dict_; \
98 clazz->fd_select_get = fd_select_get_; \
99 clazz->blend_check_vector = blend_check_vector_; \
100 clazz->blend_build_vector = blend_build_vector_; \
101 }
102
103#endif /* FT_CONFIG_OPTION_PIC */
104
105
107
108
109#endif
110
111
112/* END */
#define FT_END_HEADER
Definition: ftheader.h:54
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
#define FT_DEFINE_SERVICE(name)
Definition: ftserv.h:975
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:108
unsigned char FT_Byte
Definition: fttypes.h:154
signed long FT_Fixed
Definition: fttypes.h:288
int FT_Error
Definition: fttypes.h:300
unsigned short FT_UShort
Definition: fttypes.h:209
unsigned int FT_UInt
Definition: fttypes.h:231
Definition: mk_font.cpp:20
FT_Bool(* FT_Blend_Check_Vector_Func)(CFF_Blend blend, FT_UInt vsindex, FT_UInt lenNDV, FT_Fixed *NDV)
Definition: svcfftl.h:46
FT_Error(* FT_Load_Private_Dict_Func)(CFF_Font font, CFF_SubFont subfont, FT_UInt lenNDV, FT_Fixed *NDV)
Definition: svcfftl.h:36
FT_Byte(* FT_FD_Select_Get_Func)(CFF_FDSelect fdselect, FT_UInt glyph_index)
Definition: svcfftl.h:42
FT_UShort(* FT_Get_Standard_Encoding_Func)(FT_UInt charcode)
Definition: svcfftl.h:33
FT_Error(* FT_Blend_Build_Vector_Func)(CFF_Blend blend, FT_UInt vsindex, FT_UInt lenNDV, FT_Fixed *NDV)
Definition: svcfftl.h:52