Go to the source code of this file.
|
| FT_Get_Multi_Master (FT_Face face, FT_Multi_Master *amaster) |
|
| FT_Get_MM_Var (FT_Face face, FT_MM_Var **amaster) |
|
| FT_Done_MM_Var (FT_Library library, FT_MM_Var *amaster) |
|
| FT_Set_MM_Design_Coordinates (FT_Face face, FT_UInt num_coords, FT_Long *coords) |
|
| FT_Set_Var_Design_Coordinates (FT_Face face, FT_UInt num_coords, FT_Fixed *coords) |
|
| FT_Get_Var_Design_Coordinates (FT_Face face, FT_UInt num_coords, FT_Fixed *coords) |
|
| FT_Set_MM_Blend_Coordinates (FT_Face face, FT_UInt num_coords, FT_Fixed *coords) |
|
| FT_Get_MM_Blend_Coordinates (FT_Face face, FT_UInt num_coords, FT_Fixed *coords) |
|
| FT_Set_Var_Blend_Coordinates (FT_Face face, FT_UInt num_coords, FT_Fixed *coords) |
|
| FT_Get_Var_Blend_Coordinates (FT_Face face, FT_UInt num_coords, FT_Fixed *coords) |
|
| FT_Set_MM_WeightVector (FT_Face face, FT_UInt len, FT_Fixed *weightvector) |
|
| FT_Get_MM_WeightVector (FT_Face face, FT_UInt *len, FT_Fixed *weightvector) |
|
| FT_Get_Var_Axis_Flags (FT_MM_Var *master, FT_UInt axis_index, FT_UInt *flags) |
|
| FT_Set_Named_Instance (FT_Face face, FT_UInt instance_index) |
|
◆ FT_VAR_AXIS_FLAG_HIDDEN
#define FT_VAR_AXIS_FLAG_HIDDEN 1 |
◆ FT_MM_Axis
◆ FT_MM_Var
◆ FT_Multi_Master
◆ FT_Var_Axis
◆ FT_Var_Named_Style
◆ FT_Done_MM_Var()
Definition at line 151 of file ftmm.c.
153 {
155
156
158 return FT_THROW( Invalid_Library_Handle );
159
162
164 }
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
static char memory[1024 *256]
◆ FT_Get_MM_Blend_Coordinates()
Definition at line 441 of file ftmm.c.
444 {
446 FT_Service_MultiMasters service;
447
448
449
450
452 return FT_THROW( Invalid_Argument );
453
456 {
458 if ( service->get_mm_blend )
460 }
461
463 }
static FT_Error ft_face_get_mm_service(FT_Face face, FT_Service_MultiMasters *aservice)
GLenum GLuint GLint GLenum face
◆ FT_Get_MM_Var()
Definition at line 124 of file ftmm.c.
126 {
128 FT_Service_MultiMasters service;
129
130
131
132
133 if ( !amaster )
134 return FT_THROW( Invalid_Argument );
135
138 {
140 if ( service->get_mm_var )
141 error = service->get_mm_var(
face, amaster );
142 }
143
145 }
◆ FT_Get_MM_WeightVector()
Definition at line 238 of file ftmm.c.
241 {
243 FT_Service_MultiMasters service;
244
245
246
247
248 if (
len && !weightvector )
249 return FT_THROW( Invalid_Argument );
250
253 {
255 if ( service->get_mm_weightvector )
256 error = service->get_mm_weightvector(
face,
len, weightvector );
257 }
258
260 }
◆ FT_Get_Multi_Master()
Definition at line 97 of file ftmm.c.
99 {
101 FT_Service_MultiMasters service;
102
103
104
105
106 if ( !amaster )
107 return FT_THROW( Invalid_Argument );
108
111 {
113 if ( service->get_mm )
114 error = service->get_mm(
face, amaster );
115 }
116
118 }
◆ FT_Get_Var_Axis_Flags()
Definition at line 500 of file ftmm.c.
503 {
505
506
507 if ( !master || !
flags )
508 return FT_THROW( Invalid_Argument );
509
510 if ( axis_index >= master->
num_axis )
511 return FT_THROW( Invalid_Argument );
512
513
515 *
flags = axis_flags[axis_index];
516
518 }
◆ FT_Get_Var_Blend_Coordinates()
Definition at line 472 of file ftmm.c.
475 {
477 FT_Service_MultiMasters service;
478
479
480
481
483 return FT_THROW( Invalid_Argument );
484
487 {
489 if ( service->get_mm_blend )
491 }
492
494 }
◆ FT_Get_Var_Design_Coordinates()
Definition at line 314 of file ftmm.c.
317 {
319 FT_Service_MultiMasters service;
320
321
322
323
325 return FT_THROW( Invalid_Argument );
326
329 {
331 if ( service->get_var_design )
333 }
334
336 }
◆ FT_Set_MM_Blend_Coordinates()
Definition at line 342 of file ftmm.c.
345 {
347 FT_Service_MultiMasters service_mm =
NULL;
348 FT_Service_MetricsVariations service_mvar =
NULL;
349
350
351
352
353 if ( num_coords && !
coords )
354 return FT_THROW( Invalid_Argument );
355
358 {
360 if ( service_mm->set_mm_blend )
362
363
366 }
367
369 {
371
372 if ( service_mvar && service_mvar->metrics_adjust )
373 service_mvar->metrics_adjust(
face );
374 }
375
376
377 if ( !
error &&
face->autohint.finalizer )
378 {
379 face->autohint.finalizer(
face->autohint.data );
381 }
382
384 }
static FT_Error ft_face_get_mvar_service(FT_Face face, FT_Service_MetricsVariations *aservice)
◆ FT_Set_MM_Design_Coordinates()
Definition at line 170 of file ftmm.c.
173 {
175 FT_Service_MultiMasters service;
176
177
178
179
180 if ( num_coords && !
coords )
181 return FT_THROW( Invalid_Argument );
182
185 {
187 if ( service->set_mm_design )
189 }
190
191
192 if ( !
error &&
face->autohint.finalizer )
193 {
194 face->autohint.finalizer(
face->autohint.data );
196 }
197
199 }
◆ FT_Set_MM_WeightVector()
Definition at line 205 of file ftmm.c.
208 {
210 FT_Service_MultiMasters service;
211
212
213
214
215 if (
len && !weightvector )
216 return FT_THROW( Invalid_Argument );
217
220 {
222 if ( service->set_mm_weightvector )
223 error = service->set_mm_weightvector(
face,
len, weightvector );
224 }
225
226
227 if ( !
error &&
face->autohint.finalizer )
228 {
229 face->autohint.finalizer(
face->autohint.data );
231 }
232
234 }
◆ FT_Set_Named_Instance()
Definition at line 524 of file ftmm.c.
526 {
528
529 FT_Service_MultiMasters service_mm =
NULL;
530 FT_Service_MetricsVariations service_mvar =
NULL;
531
532
533
534
537 {
539 if ( service_mm->set_instance )
540 error = service_mm->set_instance(
face, instance_index );
541 }
542
544 {
546
547 if ( service_mvar && service_mvar->metrics_adjust )
548 service_mvar->metrics_adjust(
face );
549 }
550
551
552 if ( !
error &&
face->autohint.finalizer )
553 {
554 face->autohint.finalizer(
face->autohint.data );
556 }
557
559 {
560 face->face_index = ( instance_index << 16 ) |
561 (
face->face_index & 0xFFFFL );
562 face->face_flags &= ~FT_FACE_FLAG_VARIATION;
563 }
564
566 }
◆ FT_Set_Var_Blend_Coordinates()
Definition at line 393 of file ftmm.c.
396 {
398 FT_Service_MultiMasters service_mm =
NULL;
399 FT_Service_MetricsVariations service_mvar =
NULL;
400
401
402
403
404 if ( num_coords && !
coords )
405 return FT_THROW( Invalid_Argument );
406
409 {
411 if ( service_mm->set_mm_blend )
413
414
417 }
418
420 {
422
423 if ( service_mvar && service_mvar->metrics_adjust )
424 service_mvar->metrics_adjust(
face );
425 }
426
427
428 if ( !
error &&
face->autohint.finalizer )
429 {
430 face->autohint.finalizer(
face->autohint.data );
432 }
433
435 }
◆ FT_Set_Var_Design_Coordinates()
Definition at line 266 of file ftmm.c.
269 {
271 FT_Service_MultiMasters service_mm =
NULL;
272 FT_Service_MetricsVariations service_mvar =
NULL;
273
274
275
276
277 if ( num_coords && !
coords )
278 return FT_THROW( Invalid_Argument );
279
282 {
284 if ( service_mm->set_var_design )
286
287
290 }
291
293 {
295
296 if ( service_mvar && service_mvar->metrics_adjust )
297 service_mvar->metrics_adjust(
face );
298 }
299
300
301 if ( !
error &&
face->autohint.finalizer )
302 {
303 face->autohint.finalizer(
face->autohint.data );
305 }
306
308 }