#include <ft2build.h>
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_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 380 of file ftmm.c.
383 {
385 FT_Service_MultiMasters service;
386
387
388
389
391 return FT_THROW( Invalid_Argument );
392
395 {
397 if ( service->get_mm_blend )
399 }
400
402 }
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_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 439 of file ftmm.c.
442 {
444
445
446 if ( !master || !
flags )
447 return FT_THROW( Invalid_Argument );
448
449 if ( axis_index >= master->
num_axis )
450 return FT_THROW( Invalid_Argument );
451
452
454 *
flags = axis_flags[axis_index];
455
457 }
◆ FT_Get_Var_Blend_Coordinates()
Definition at line 411 of file ftmm.c.
414 {
416 FT_Service_MultiMasters service;
417
418
419
420
422 return FT_THROW( Invalid_Argument );
423
426 {
428 if ( service->get_mm_blend )
430 }
431
433 }
◆ FT_Get_Var_Design_Coordinates()
Definition at line 253 of file ftmm.c.
256 {
258 FT_Service_MultiMasters service;
259
260
261
262
264 return FT_THROW( Invalid_Argument );
265
268 {
270 if ( service->get_var_design )
272 }
273
275 }
◆ FT_Set_MM_Blend_Coordinates()
Definition at line 281 of file ftmm.c.
284 {
286 FT_Service_MultiMasters service_mm =
NULL;
287 FT_Service_MetricsVariations service_mvar =
NULL;
288
289
290
291
292 if ( num_coords && !
coords )
293 return FT_THROW( Invalid_Argument );
294
297 {
299 if ( service_mm->set_mm_blend )
301
302
305 }
306
308 {
310
311 if ( service_mvar && service_mvar->metrics_adjust )
312 service_mvar->metrics_adjust(
face );
313 }
314
315
316 if ( !
error &&
face->autohint.finalizer )
317 {
318 face->autohint.finalizer(
face->autohint.data );
320 }
321
323 }
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_Named_Instance()
Definition at line 463 of file ftmm.c.
465 {
467
468 FT_Service_MultiMasters service_mm =
NULL;
469 FT_Service_MetricsVariations service_mvar =
NULL;
470
471
472
473
476 {
478 if ( service_mm->set_instance )
479 error = service_mm->set_instance(
face, instance_index );
480 }
481
483 {
485
486 if ( service_mvar && service_mvar->metrics_adjust )
487 service_mvar->metrics_adjust(
face );
488 }
489
490
491 if ( !
error &&
face->autohint.finalizer )
492 {
493 face->autohint.finalizer(
face->autohint.data );
495 }
496
498 {
499 face->face_index = ( instance_index << 16 ) |
500 (
face->face_index & 0xFFFFL );
501 face->face_flags &= ~FT_FACE_FLAG_VARIATION;
502 }
503
505 }
◆ FT_Set_Var_Blend_Coordinates()
Definition at line 332 of file ftmm.c.
335 {
337 FT_Service_MultiMasters service_mm =
NULL;
338 FT_Service_MetricsVariations service_mvar =
NULL;
339
340
341
342
343 if ( num_coords && !
coords )
344 return FT_THROW( Invalid_Argument );
345
348 {
350 if ( service_mm->set_mm_blend )
352
353
356 }
357
359 {
361
362 if ( service_mvar && service_mvar->metrics_adjust )
363 service_mvar->metrics_adjust(
face );
364 }
365
366
367 if ( !
error &&
face->autohint.finalizer )
368 {
369 face->autohint.finalizer(
face->autohint.data );
371 }
372
374 }
◆ FT_Set_Var_Design_Coordinates()
Definition at line 205 of file ftmm.c.
208 {
210 FT_Service_MultiMasters service_mm =
NULL;
211 FT_Service_MetricsVariations service_mvar =
NULL;
212
213
214
215
216 if ( num_coords && !
coords )
217 return FT_THROW( Invalid_Argument );
218
221 {
223 if ( service_mm->set_var_design )
225
226
229 }
230
232 {
234
235 if ( service_mvar && service_mvar->metrics_adjust )
236 service_mvar->metrics_adjust(
face );
237 }
238
239
240 if ( !
error &&
face->autohint.finalizer )
241 {
242 face->autohint.finalizer(
face->autohint.data );
244 }
245
247 }