zenilib: zenilib/jni/external/freetype2/src/truetype/ttdriver.c Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ttdriver.c
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* ttdriver.c */
4 /* */
5 /* TrueType font driver implementation (body). */
6 /* */
7 /* Copyright 1996-2012 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 #include <ft2build.h>
20 #include FT_INTERNAL_DEBUG_H
21 #include FT_INTERNAL_STREAM_H
22 #include FT_INTERNAL_SFNT_H
23 #include FT_SERVICE_XFREE86_NAME_H
24
25 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
26 #include FT_MULTIPLE_MASTERS_H
27 #include FT_SERVICE_MULTIPLE_MASTERS_H
28 #endif
29
30 #include FT_SERVICE_TRUETYPE_ENGINE_H
31 #include FT_SERVICE_TRUETYPE_GLYF_H
32
33 #include "ttdriver.h"
34 #include "ttgload.h"
35 #include "ttpload.h"
36
37 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
38 #include "ttgxvar.h"
39 #endif
40
41 #include "tterrors.h"
42
43 #include "ttpic.h"
44
45 /*************************************************************************/
46 /* */
47 /* The macro FT_COMPONENT is used in trace mode. It is an implicit */
48 /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */
49 /* messages during execution. */
50 /* */
51 #undef FT_COMPONENT
52 #define FT_COMPONENT trace_ttdriver
53
54
55 /*************************************************************************/
56 /*************************************************************************/
57 /*************************************************************************/
58 /**** ****/
59 /**** ****/
60 /**** F A C E S ****/
61 /**** ****/
62 /**** ****/
63 /*************************************************************************/
64 /*************************************************************************/
65 /*************************************************************************/
66
67
68 #undef PAIR_TAG
69 #define PAIR_TAG( left, right ) ( ( (FT_ULong)left << 16 ) | \
70 (FT_ULong)right )
71
72
73 /*************************************************************************/
74 /* */
75 /* <Function> */
76 /* tt_get_kerning */
77 /* */
78 /* <Description> */
79 /* A driver method used to return the kerning vector between two */
80 /* glyphs of the same face. */
81 /* */
82 /* <Input> */
83 /* face :: A handle to the source face object. */
84 /* */
85 /* left_glyph :: The index of the left glyph in the kern pair. */
86 /* */
87 /* right_glyph :: The index of the right glyph in the kern pair. */
88 /* */
89 /* <Output> */
90 /* kerning :: The kerning vector. This is in font units for */
91 /* scalable formats, and in pixels for fixed-sizes */
92 /* formats. */
93 /* */
94 /* <Return> */
95 /* FreeType error code. 0 means success. */
96 /* */
97 /* <Note> */
98 /* Only horizontal layouts (left-to-right & right-to-left) are */
99 /* supported by this function. Other layouts, or more sophisticated */
100 /* kernings, are out of scope of this method (the basic driver */
101 /* interface is meant to be simple). */
102 /* */
103 /* They can be implemented by format-specific interfaces. */
104 /* */
105 static FT_Error
106 tt_get_kerning( FT_Face ttface, /* TT_Face */
107 FT_UInt left_glyph,
108 FT_UInt right_glyph,
109 FT_Vector* kerning )
110 {
111 TT_Face face = (TT_Face)ttface;
112 SFNT_Service sfnt = (SFNT_Service)face->sfnt;
113
114
115 kerning->x = 0;
116 kerning->y = 0;
117
118 if ( sfnt )
119 kerning->x = sfnt->get_kerning( face, left_glyph, right_glyph );
120
121 return 0;
122 }
123
124
125 #undef PAIR_TAG
126
127
128 static FT_Error
129 tt_get_advances( FT_Face ttface,
130 FT_UInt start,
131 FT_UInt count,
132 FT_Int32 flags,
133 FT_Fixed *advances )
134 {
135 FT_UInt nn;
136 TT_Face face = (TT_Face) ttface;
137
138
139 /* XXX: TODO: check for sbits */
140
141 if ( flags & FT_LOAD_VERTICAL_LAYOUT )
142 {
143 for ( nn = 0; nn < count; nn++ )
144 {
145 FT_Short tsb;
146 FT_UShort ah;
147
148
149 TT_Get_VMetrics( face, start + nn, &tsb, &ah );
150 advances[nn] = ah;
151 }
152 }
153 else
154 {
155 for ( nn = 0; nn < count; nn++ )
156 {
157 FT_Short lsb;
158 FT_UShort aw;
159
160
161 TT_Get_HMetrics( face, start + nn, &lsb, &aw );
162 advances[nn] = aw;
163 }
164 }
165
166 return TT_Err_Ok;
167 }
168
169 /*************************************************************************/
170 /*************************************************************************/
171 /*************************************************************************/
172 /**** ****/
173 /**** ****/
174 /**** S I Z E S ****/
175 /**** ****/
176 /**** ****/
177 /*************************************************************************/
178 /*************************************************************************/
179 /*************************************************************************/
180
181
182 #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS
183
184 static FT_Error
185 tt_size_select( FT_Size size,
186 FT_ULong strike_index )
187 {
188 TT_Face ttface = (TT_Face)size->face;
189 TT_Size ttsize = (TT_Size)size;
190 FT_Error error = TT_Err_Ok;
191
192
193 ttsize->strike_index = strike_index;
194
195 if ( FT_IS_SCALABLE( size->face ) )
196 {
197 /* use the scaled metrics, even when tt_size_reset fails */
198 FT_Select_Metrics( size->face, strike_index );
199
200 tt_size_reset( ttsize );
201 }
202 else
203 {
204 SFNT_Service sfnt = (SFNT_Service) ttface->sfnt;
205 FT_Size_Metrics* metrics = &size->metrics;
206
207
208 error = sfnt->load_strike_metrics( ttface, strike_index, metrics );
209 if ( error )
210 ttsize->strike_index = 0xFFFFFFFFUL;
211 }
212
213 return error;
214 }
215
216 #endif /* TT_CONFIG_OPTION_EMBEDDED_BITMAPS */
217
218
219 static FT_Error
220 tt_size_request( FT_Size size,
221 FT_Size_Request req )
222 {
223 TT_Size ttsize = (TT_Size)size;
224 FT_Error error = TT_Err_Ok;
225
226
227 #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS
228
229 if ( FT_HAS_FIXED_SIZES( size->face ) )
230 {
231 TT_Face ttface = (TT_Face)size->face;
232 SFNT_Service sfnt = (SFNT_Service) ttface->sfnt;
233 FT_ULong strike_index;
234
235
236 error = sfnt->set_sbit_strike( ttface, req, &strike_index );
237
238 if ( error )
239 ttsize->strike_index = 0xFFFFFFFFUL;
240 else
241 return tt_size_select( size, strike_index );
242 }
243
244 #endif /* TT_CONFIG_OPTION_EMBEDDED_BITMAPS */
245
246 FT_Request_Metrics( size->face, req );
247
248 if ( FT_IS_SCALABLE( size->face ) )
249 {
250 error = tt_size_reset( ttsize );
251 ttsize->root.metrics = ttsize->metrics;
252 }
253
254 return error;
255 }
256
257
258 /*************************************************************************/
259 /* */
260 /* <Function> */
261 /* tt_glyph_load */
262 /* */
263 /* <Description> */
264 /* A driver method used to load a glyph within a given glyph slot. */
265 /* */
266 /* <Input> */
267 /* slot :: A handle to the target slot object where the glyph */
268 /* will be loaded. */
269 /* */
270 /* size :: A handle to the source face size at which the glyph */
271 /* must be scaled, loaded, etc. */
272 /* */
273 /* glyph_index :: The index of the glyph in the font file. */
274 /* */
275 /* load_flags :: A flag indicating what to load for this glyph. The */
276 /* FT_LOAD_XXX constants can be used to control the */
277 /* glyph loading process (e.g., whether the outline */
278 /* should be scaled, whether to load bitmaps or not, */
279 /* whether to hint the outline, etc). */
280 /* */
281 /* <Return> */
282 /* FreeType error code. 0 means success. */
283 /* */
284 static FT_Error
285 tt_glyph_load( FT_GlyphSlot ttslot, /* TT_GlyphSlot */
286 FT_Size ttsize, /* TT_Size */
287 FT_UInt glyph_index,
288 FT_Int32 load_flags )
289 {
290 TT_GlyphSlot slot = (TT_GlyphSlot)ttslot;
291 TT_Size size = (TT_Size)ttsize;
292 FT_Face face = ttslot->face;
293 FT_Error error;
294
295
296 if ( !slot )
297 return TT_Err_Invalid_Slot_Handle;
298
299 if ( !size )
300 return TT_Err_Invalid_Size_Handle;
301
302 if ( !face )
303 return TT_Err_Invalid_Argument;
304
305 #ifdef FT_CONFIG_OPTION_INCREMENTAL
306 if ( glyph_index >= (FT_UInt)face->num_glyphs &&
307 !face->internal->incremental_interface )
308 #else
309 if ( glyph_index >= (FT_UInt)face->num_glyphs )
310 #endif
311 return TT_Err_Invalid_Argument;
312
313 if ( load_flags & FT_LOAD_NO_HINTING )
314 {
315 /* both FT_LOAD_NO_HINTING and FT_LOAD_NO_AUTOHINT */
316 /* are necessary to disable hinting for tricky fonts */
317
318 if ( FT_IS_TRICKY( face ) )
319 load_flags &= ~FT_LOAD_NO_HINTING;
320
321 if ( load_flags & FT_LOAD_NO_AUTOHINT )
322 load_flags |= FT_LOAD_NO_HINTING;
323 }
324
325 if ( load_flags & ( FT_LOAD_NO_RECURSE | FT_LOAD_NO_SCALE ) )
326 {
327 load_flags |= FT_LOAD_NO_BITMAP | FT_LOAD_NO_SCALE;
328
329 if ( !FT_IS_TRICKY( face ) )
330 load_flags |= FT_LOAD_NO_HINTING;
331 }
332
333 /* now load the glyph outline if necessary */
334 error = TT_Load_Glyph( size, slot, glyph_index, load_flags );
335
336 /* force drop-out mode to 2 - irrelevant now */
337 /* slot->outline.dropout_mode = 2; */
338
339 return error;
340 }
341
342
343 /*************************************************************************/
344 /*************************************************************************/
345 /*************************************************************************/
346 /**** ****/
347 /**** ****/
348 /**** D R I V E R I N T E R F A C E ****/
349 /**** ****/
350 /**** ****/
351 /*************************************************************************/
352 /*************************************************************************/
353 /*************************************************************************/
354
355 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
356 FT_DEFINE_SERVICE_MULTIMASTERSREC(tt_service_gx_multi_masters,
357 (FT_Get_MM_Func) NULL,
358 (FT_Set_MM_Design_Func) NULL,
359 (FT_Set_MM_Blend_Func) TT_Set_MM_Blend,
360 (FT_Get_MM_Var_Func) TT_Get_MM_Var,
361 (FT_Set_Var_Design_Func)TT_Set_Var_Design
362 )
363 #endif
364
365 static const FT_Service_TrueTypeEngineRec tt_service_truetype_engine =
366 {
367 #ifdef TT_USE_BYTECODE_INTERPRETER
368
369 #ifdef TT_CONFIG_OPTION_UNPATENTED_HINTING
370 FT_TRUETYPE_ENGINE_TYPE_UNPATENTED
371 #else
372 FT_TRUETYPE_ENGINE_TYPE_PATENTED
373 #endif
374
375 #else /* !TT_USE_BYTECODE_INTERPRETER */
376
377 FT_TRUETYPE_ENGINE_TYPE_NONE
378
379 #endif /* TT_USE_BYTECODE_INTERPRETER */
380 };
381
382 FT_DEFINE_SERVICE_TTGLYFREC(tt_service_truetype_glyf,
383 (TT_Glyf_GetLocationFunc)tt_face_get_location
384 )
385
386 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
387 FT_DEFINE_SERVICEDESCREC4(tt_services,
388 FT_SERVICE_ID_XF86_NAME, FT_XF86_FORMAT_TRUETYPE,
389 FT_SERVICE_ID_MULTI_MASTERS, &FT_TT_SERVICE_GX_MULTI_MASTERS_GET,
390 FT_SERVICE_ID_TRUETYPE_ENGINE, &tt_service_truetype_engine,
391 FT_SERVICE_ID_TT_GLYF, &FT_TT_SERVICE_TRUETYPE_GLYF_GET
392 )
393 #else
394 FT_DEFINE_SERVICEDESCREC3(tt_services,
395 FT_SERVICE_ID_XF86_NAME, FT_XF86_FORMAT_TRUETYPE,
396 FT_SERVICE_ID_TRUETYPE_ENGINE, &tt_service_truetype_engine,
397 FT_SERVICE_ID_TT_GLYF, &FT_TT_SERVICE_TRUETYPE_GLYF_GET
398 )
399 #endif
400
401 FT_CALLBACK_DEF( FT_Module_Interface )
402 tt_get_interface( FT_Module driver, /* TT_Driver */
403 const char* tt_interface )
404 {
405 FT_Library library;
406 FT_Module_Interface result;
407 FT_Module sfntd;
408 SFNT_Service sfnt;
409
410
411 /* FT_TT_SERVICES_GET derefers `library' in PIC mode */
412 #ifdef FT_CONFIG_OPTION_PIC
413 if ( !driver )
414 return NULL;
415 library = driver->library;
416 if ( !library )
417 return NULL;
418 #endif
419
420 result = ft_service_list_lookup( FT_TT_SERVICES_GET, tt_interface );
421 if ( result != NULL )
422 return result;
423
424 #ifndef FT_CONFIG_OPTION_PIC
425 if ( !driver )
426 return NULL;
427 library = driver->library;
428 if ( !library )
429 return NULL;
430 #endif
431
432 /* only return the default interface from the SFNT module */
433 sfntd = FT_Get_Module( library, "sfnt" );
434 if ( sfntd )
435 {
436 sfnt = (SFNT_Service)( sfntd->clazz->module_interface );
437 if ( sfnt )
438 return sfnt->get_interface( driver, tt_interface );
439 }
440
441 return 0;
442 }
443
444
445 /* The FT_DriverInterface structure is defined in ftdriver.h. */
446
447 #ifdef TT_USE_BYTECODE_INTERPRETER
448 #define TT_HINTER_FLAG FT_MODULE_DRIVER_HAS_HINTER
449 #else
450 #define TT_HINTER_FLAG 0
451 #endif
452
453 #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS
454 #define TT_SIZE_SELECT tt_size_select
455 #else
456 #define TT_SIZE_SELECT 0
457 #endif
458
459 FT_DEFINE_DRIVER( tt_driver_class,
460
461 FT_MODULE_FONT_DRIVER |
462 FT_MODULE_DRIVER_SCALABLE |
463 TT_HINTER_FLAG,
464
465 sizeof ( TT_DriverRec ),
466
467 "truetype", /* driver name */
468 0x10000L, /* driver version == 1.0 */
469 0x20000L, /* driver requires FreeType 2.0 or above */
470
471 (void*)0, /* driver specific interface */
472
473 tt_driver_init,
474 tt_driver_done,
475 tt_get_interface,
476
477 sizeof ( TT_FaceRec ),
478 sizeof ( TT_SizeRec ),
479 sizeof ( FT_GlyphSlotRec ),
480
481 tt_face_init,
482 tt_face_done,
483 tt_size_init,
484 tt_size_done,
485 tt_slot_init,
486 0, /* FT_Slot_DoneFunc */
487
488 ft_stub_set_char_sizes, /* FT_CONFIG_OPTION_OLD_INTERNALS */
489 ft_stub_set_pixel_sizes, /* FT_CONFIG_OPTION_OLD_INTERNALS */
490
491 tt_glyph_load,
492
493 tt_get_kerning,
494 0, /* FT_Face_AttachFunc */
495 tt_get_advances,
496
497 tt_size_request,
498 TT_SIZE_SELECT
499 )
500
501
502 /* END */
FT_SERVICE_ID_MULTI_MASTERS
#define FT_SERVICE_ID_MULTI_MASTERS
Definition: svmm.h:35
FT_SizeRec_::face
FT_Face face
Definition: freetype.h:1397
ft_service_list_lookup
ft_service_list_lookup(FT_ServiceDesc service_descriptors, const char *service_id)
Definition: ftobjs.c:47
FT_SizeRec_
Definition: freetype.h:1395
FT_Error
int FT_Error
Definition: fttypes.h:296
FT_LOAD_VERTICAL_LAYOUT
#define FT_LOAD_VERTICAL_LAYOUT
Definition: freetype.h:2516
TT_FaceRec_::sfnt
void * sfnt
Definition: tttypes.h:1298
tt_get_advances
static FT_Error tt_get_advances(FT_Face ttface, FT_UInt start, FT_UInt count, FT_Int32 flags, FT_Fixed *advances)
Definition: ttdriver.c:129
SFNT_Interface_::load_strike_metrics
TT_Load_Strike_Metrics_Func load_strike_metrics
Definition: sfnt.h:746
SFNT_Service
SFNT_Interface * SFNT_Service
Definition: sfnt.h:754
FT_TT_SERVICE_TRUETYPE_GLYF_GET
#define FT_TT_SERVICE_TRUETYPE_GLYF_GET
Definition: ttpic.h:28
FT_ULong
unsigned long FT_ULong
Definition: fttypes.h:249
FT_GlyphSlotRec_
Definition: freetype.h:1605
tt_size_done
tt_size_done(FT_Size ttsize)
Definition: ttobjs.c:1099
TT_HINTER_FLAG
#define TT_HINTER_FLAG
Definition: ttdriver.c:450
FT_SERVICE_ID_TRUETYPE_ENGINE
FT_SERVICE_ID_TRUETYPE_ENGINE
Definition: ttdriver.c:395
FT_Select_Metrics
FT_Select_Metrics(FT_Face face, FT_ULong strike_index)
Definition: ftobjs.c:2590
ttpload.h
FT_ModuleRec_
Definition: ftobjs.h:439
NULL
#define NULL
Definition: ftobjs.h:61
start
GLuint start
Definition: glew.h:1239
TT_SizeRec_::strike_index
FT_ULong strike_index
Definition: ttobjs.h:298
FT_XF86_FORMAT_TRUETYPE
FT_XF86_FORMAT_TRUETYPE
Definition: ttdriver.c:395
FT_ModuleRec_::clazz
FT_Module_Class * clazz
Definition: ftobjs.h:441
FT_LOAD_NO_HINTING
#define FT_LOAD_NO_HINTING
Definition: freetype.h:2513
ttgload.h
metrics
GLuint GLsizei GLsizei GLfloat * metrics
Definition: glew.h:12394
tt_slot_init
tt_slot_init(FT_GlyphSlot slot)
Definition: ttobjs.c:1280
FT_LOAD_NO_RECURSE
#define FT_LOAD_NO_RECURSE
Definition: freetype.h:2521
FT_Get_MM_Func
FT_Error(* FT_Get_MM_Func)(FT_Face face, FT_Multi_Master *master)
Definition: svmm.h:39
library
FT_Library library
Definition: cffdrivr.c:409
FT_MODULE_DRIVER_SCALABLE
#define FT_MODULE_DRIVER_SCALABLE
Definition: ftmodapi.h:60
tt_size_init
tt_size_init(FT_Size ttsize)
Definition: ttobjs.c:1070
TT_SIZE_SELECT
#define TT_SIZE_SELECT
Definition: ttdriver.c:456
FT_TRUETYPE_ENGINE_TYPE_UNPATENTED
Definition: ftmodapi.h:445
if
if(!yyg->yy_init)
Definition: glslang_lex.cpp:1037
FT_LOAD_NO_SCALE
#define FT_LOAD_NO_SCALE
Definition: freetype.h:2512
FT_FaceRec_::internal
FT_Face_Internal internal
Definition: freetype.h:964
TT_GlyphSlot
FT_GlyphSlot TT_GlyphSlot
Definition: ttobjs.h:65
tt_face_init
tt_face_init(FT_Stream stream, FT_Face ttface, FT_Int face_index, FT_Int num_params, FT_Parameter *params)
Definition: ttobjs.c:484
FT_GlyphSlotRec_::face
FT_Face face
Definition: freetype.h:1608
TT_Glyf_GetLocationFunc
FT_ULong(* TT_Glyf_GetLocationFunc)(FT_Face face, FT_UInt gindex, FT_ULong *psize)
Definition: svttglyf.h:31
FT_SERVICE_ID_TT_GLYF
FT_SERVICE_ID_TT_GLYF
Definition: ttdriver.c:395
tt_size_reset
tt_size_reset(TT_Size size)
Definition: ttobjs.c:1126
TT_Get_MM_Var
TT_Get_MM_Var(TT_Face face, FT_MM_Var **master)
TT_SizeRec_::root
FT_SizeRec root
Definition: ttobjs.h:290
TT_DriverRec_
Definition: ttobjs.h:346
FT_DEFINE_SERVICEDESCREC3
TT_CMap_Info_GetFunc tt_get_cmap_info FT_DEFINE_SERVICEDESCREC3(sfnt_services, FT_SERVICE_ID_SFNT_TABLE,&FT_SFNT_SERVICE_SFNT_TABLE_GET, FT_SERVICE_ID_POSTSCRIPT_FONT_NAME,&FT_SFNT_SERVICE_PS_NAME_GET, FT_SERVICE_ID_TT_CMAP,&FT_TT_SERVICE_GET_CMAP_INFO_GET) sfnt_get_interface(FT_Module module
TT_Get_VMetrics
TT_Get_VMetrics(TT_Face face, FT_UInt idx, FT_Short *tsb, FT_UShort *ah)
Definition: ttgload.c:94
FT_DEFINE_SERVICE_MULTIMASTERSREC
#define FT_DEFINE_SERVICE_MULTIMASTERSREC(class_,get_mm_,set_mm_design_,set_mm_blend_,get_mm_var_,set_var_design_)
Definition: svmm.h:74
result
GLuint64EXT * result
Definition: glew.h:12708
TT_Face
struct TT_FaceRec_ * TT_Face
Definition: tttypes.h:951
FT_DEFINE_SERVICEDESCREC4
#define FT_DEFINE_SERVICEDESCREC4(class_,serv_id_1, serv_data_1,serv_id_2, serv_data_2,serv_id_3, serv_data_3,serv_id_4, serv_data_4)
Definition: ftserv.h:219
FT_TRUETYPE_ENGINE_TYPE_NONE
Definition: ftmodapi.h:444
FT_Request_Metrics
FT_Request_Metrics(FT_Face face, FT_Size_Request req)
Definition: ftobjs.c:2637
FT_FaceRec_
Definition: freetype.h:912
SFNT_Interface_::get_kerning
TT_Face_GetKerningFunc get_kerning
Definition: sfnt.h:733
error
FT_Error error
Definition: cffdrivr.c:407
FT_Vector_::x
FT_Pos x
Definition: ftimage.h:77
FT_SERVICE_ID_XF86_NAME
#define FT_SERVICE_ID_XF86_NAME
Definition: svxf86nm.h:34
TT_Get_HMetrics
TT_Get_HMetrics(TT_Face face, FT_UInt idx, FT_Short *lsb, FT_UShort *aw)
Definition: ttgload.c:71
FT_Set_MM_Design_Func
FT_Error(* FT_Set_MM_Design_Func)(FT_Face face, FT_UInt num_coords, FT_Long *coords)
Definition: svmm.h:47
count
GLint GLsizei count
Definition: gl2ext.h:1011
FT_HAS_FIXED_SIZES
#define FT_HAS_FIXED_SIZES(face)
Definition: freetype.h:1190
FT_Get_MM_Var_Func
FT_Error(* FT_Get_MM_Var_Func)(FT_Face face, FT_MM_Var **master)
Definition: svmm.h:43
ttgxvar.h
face
GLenum face
Definition: gl2ext.h:1490
FT_Size_RequestRec_
Definition: freetype.h:2185
tt_driver_done
tt_driver_done(FT_Module ttdriver)
Definition: ttobjs.c:1246
FT_IS_TRICKY
#define FT_IS_TRICKY(face)
Definition: freetype.h:1263
FT_Vector_::y
FT_Pos y
Definition: ftimage.h:78
FT_Module_Interface
FT_Pointer FT_Module_Interface
Definition: ftmodapi.h:79
FT_TT_SERVICES_GET
#define FT_TT_SERVICES_GET
Definition: ttpic.h:26
tterrors.h
FT_Module_Class_::module_interface
const void * module_interface
Definition: ftmodapi.h:167
TT_Set_MM_Blend
TT_Set_MM_Blend(TT_Face face, FT_UInt num_coords, FT_Fixed *coords)
FT_TT_SERVICE_GX_MULTI_MASTERS_GET
#define FT_TT_SERVICE_GX_MULTI_MASTERS_GET
Definition: ttpic.h:27
FT_Vector_
Definition: ftimage.h:75
FT_CALLBACK_DEF
#define FT_CALLBACK_DEF(x)
Definition: ftconfig.h:554
FT_Set_Var_Design_Func
FT_Error(* FT_Set_Var_Design_Func)(FT_Face face, FT_UInt num_coords, FT_Fixed *coords)
Definition: svmm.h:52
FT_MODULE_FONT_DRIVER
#define FT_MODULE_FONT_DRIVER
Definition: ftmodapi.h:55
TT_Set_Var_Design
TT_Set_Var_Design(TT_Face face, FT_UInt num_coords, FT_Fixed *coords)
FT_LibraryRec_
Definition: ftobjs.h:824
FT_Short
signed short FT_Short
Definition: fttypes.h:194
tt_service_truetype_engine
static const FT_Service_TrueTypeEngineRec tt_service_truetype_engine
Definition: ttdriver.c:365
tt_face_done
tt_face_done(FT_Face ttface)
Definition: ttobjs.c:651
tt_glyph_load
static FT_Error tt_glyph_load(FT_GlyphSlot ttslot, FT_Size ttsize, FT_UInt glyph_index, FT_Int32 load_flags)
Definition: ttdriver.c:285
TT_SizeRec_
Definition: ttobjs.h:288
const
#define const
Definition: zconf.h:91
ft2build.h
FT_Fixed
signed long FT_Fixed
Definition: fttypes.h:284
flags
GLenum GLsizei GLsizei GLsizei GLsizei GLbitfield flags
Definition: glew.h:2767
FT_FaceRec_::num_glyphs
FT_Long num_glyphs
Definition: freetype.h:920
FT_DEFINE_SERVICE_TTGLYFREC
FT_DEFINE_SERVICE_TTGLYFREC(tt_service_truetype_glyf,(TT_Glyf_GetLocationFunc) tt_face_get_location) FT_DEFINE_SERVICEDESCREC3(tt_services
SFNT_Interface_::get_interface
FT_Module_Requester get_interface
Definition: sfnt.h:656
FT_UInt
unsigned int FT_UInt
Definition: fttypes.h:227
tt_get_kerning
static FT_Error tt_get_kerning(FT_Face ttface, FT_UInt left_glyph, FT_UInt right_glyph, FT_Vector *kerning)
Definition: ttdriver.c:106
tt_get_interface
&FT_TT_SERVICE_TRUETYPE_GLYF_GET tt_get_interface(FT_Module driver, const char *tt_interface)
Definition: ttdriver.c:402
tt_driver_init
tt_driver_init(FT_Module ttdriver)
Definition: ttobjs.c:1213
FT_DEFINE_DRIVER
#define FT_DEFINE_DRIVER(class_,flags_, size_, name_, version_, requires_,interface_, init_, done_, get_interface_,face_object_size_, size_object_size_,slot_object_size_, init_face_, done_face_,init_size_, done_size_, init_slot_, done_slot_,old_set_char_sizes_, old_set_pixel_sizes_,load_glyph_, get_kerning_, attach_file_,get_advances_, request_size_, select_size_)
Definition: ftdriver.h:291
FT_LOAD_NO_AUTOHINT
#define FT_LOAD_NO_AUTOHINT
Definition: freetype.h:2525
FT_Size_Metrics_
Definition: freetype.h:1360
FT_Get_Module
FT_Get_Module(FT_Library library, const char *module_name)
Definition: ftobjs.c:4256
tt_size_request
static FT_Error tt_size_request(FT_Size size, FT_Size_Request req)
Definition: ttdriver.c:220
FT_LOAD_NO_BITMAP
#define FT_LOAD_NO_BITMAP
Definition: freetype.h:2515
TT_Load_Glyph
TT_Load_Glyph(TT_Size size, TT_GlyphSlot glyph, FT_UInt glyph_index, FT_Int32 load_flags)
Definition: ttgload.c:1981
FT_UShort
unsigned short FT_UShort
Definition: fttypes.h:205
ttdriver.h
FT_IS_SCALABLE
#define FT_IS_SCALABLE(face)
Definition: freetype.h:1141
TT_FaceRec_
Definition: tttypes.h:1258
FT_Set_MM_Blend_Func
FT_Error(* FT_Set_MM_Blend_Func)(FT_Face face, FT_UInt num_coords, FT_Long *coords)
Definition: svmm.h:57
SFNT_Interface_
Definition: sfnt.h:649
TT_Size
struct TT_SizeRec_ * TT_Size
Definition: ttobjs.h:50
FT_SizeRec_::metrics
FT_Size_Metrics metrics
Definition: freetype.h:1399
tt_face_get_location
tt_face_get_location(TT_Face face, FT_UInt gindex, FT_UInt *asize)
Definition: ttpload.c:173
FT_TRUETYPE_ENGINE_TYPE_PATENTED
Definition: ftmodapi.h:446
TT_SizeRec_::metrics
FT_Size_Metrics metrics
Definition: ttobjs.h:294
ttpic.h
size
GLsizei size
Definition: gl2ext.h:1467