ReactOS 0.4.16-dev-1019-g2c2cdfd
ftcmanag.c File Reference
#include <ft2build.h>
#include "ftcmanag.h"
#include "ftccback.h"
#include "ftcerror.h"
Include dependency graph for ftcmanag.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FTC_SizeNodeRec_
 
struct  FTC_FaceNodeRec_
 

Macros

#define FT_COMPONENT   cache
 
#define FTC_SIZE_NODE(x)   ( (FTC_SizeNode)( x ) )
 
#define FTC_FACE_NODE(x)   ( ( FTC_FaceNode )( x ) )
 

Typedefs

typedef struct FTC_SizeNodeRec_ FTC_SizeNodeRec
 
typedef struct FTC_SizeNodeRec_FTC_SizeNode
 
typedef struct FTC_FaceNodeRec_ FTC_FaceNodeRec
 
typedef struct FTC_FaceNodeRec_FTC_FaceNode
 

Functions

static FT_Error ftc_scaler_lookup_size (FTC_Manager manager, FTC_Scaler scaler, FT_Size *asize)
 
 ftc_size_node_done (FTC_MruNode ftcnode, FT_Pointer data)
 
 ftc_size_node_compare (FTC_MruNode ftcnode, FT_Pointer ftcscaler)
 
 ftc_size_node_init (FTC_MruNode ftcnode, FT_Pointer ftcscaler, FT_Pointer ftcmanager)
 
 ftc_size_node_reset (FTC_MruNode ftcnode, FT_Pointer ftcscaler, FT_Pointer ftcmanager)
 
static FT_Bool ftc_size_node_compare_faceid (FTC_MruNode ftcnode, FT_Pointer ftcface_id)
 
 FTC_Manager_LookupSize (FTC_Manager manager, FTC_Scaler scaler, FT_Size *asize)
 
 ftc_face_node_init (FTC_MruNode ftcnode, FT_Pointer ftcface_id, FT_Pointer ftcmanager)
 
 ftc_face_node_done (FTC_MruNode ftcnode, FT_Pointer ftcmanager)
 
 ftc_face_node_compare (FTC_MruNode ftcnode, FT_Pointer ftcface_id)
 
 FTC_Manager_LookupFace (FTC_Manager manager, FTC_FaceID face_id, FT_Face *aface)
 
 FTC_Manager_New (FT_Library library, FT_UInt max_faces, FT_UInt max_sizes, FT_ULong max_bytes, FTC_Face_Requester requester, FT_Pointer req_data, FTC_Manager *amanager)
 
 FTC_Manager_Done (FTC_Manager manager)
 
 FTC_Manager_Reset (FTC_Manager manager)
 
 FTC_Manager_Compress (FTC_Manager manager)
 
 FTC_Manager_RegisterCache (FTC_Manager manager, FTC_CacheClass clazz, FTC_Cache *acache)
 
 FTC_Manager_FlushN (FTC_Manager manager, FT_UInt count)
 
 FTC_Manager_RemoveFaceID (FTC_Manager manager, FTC_FaceID face_id)
 
 FTC_Node_Unref (FTC_Node node, FTC_Manager manager)
 

Variables

static const FTC_MruListClassRec ftc_size_list_class
 
static const FTC_MruListClassRec ftc_face_list_class
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   cache

Definition at line 31 of file ftcmanag.c.

◆ FTC_FACE_NODE

#define FTC_FACE_NODE (   x)    ( ( FTC_FaceNode )( x ) )

Definition at line 227 of file ftcmanag.c.

◆ FTC_SIZE_NODE

#define FTC_SIZE_NODE (   x)    ( (FTC_SizeNode)( x ) )

Definition at line 82 of file ftcmanag.c.

Typedef Documentation

◆ FTC_FaceNode

◆ FTC_FaceNodeRec

◆ FTC_SizeNode

◆ FTC_SizeNodeRec

Function Documentation

◆ ftc_face_node_compare()

ftc_face_node_compare ( FTC_MruNode  ftcnode,
FT_Pointer  ftcface_id 
)

Definition at line 280 of file ftcmanag.c.

282 {
283 FTC_FaceNode node = (FTC_FaceNode)ftcnode;
284 FTC_FaceID face_id = (FTC_FaceID)ftcface_id;
285
286
287 return FT_BOOL( node->face_id == face_id );
288 }
FT_BEGIN_HEADER typedef FT_Pointer FTC_FaceID
Definition: ftcache.h:172
struct FTC_FaceNodeRec_ * FTC_FaceNode
#define FT_BOOL(x)
Definition: fttypes.h:591
Definition: dlist.c:348

Referenced by FTC_Manager_LookupFace(), and FTC_Manager_RemoveFaceID().

◆ ftc_face_node_done()

ftc_face_node_done ( FTC_MruNode  ftcnode,
FT_Pointer  ftcmanager 
)

Definition at line 259 of file ftcmanag.c.

261 {
262 FTC_FaceNode node = (FTC_FaceNode)ftcnode;
263 FTC_Manager manager = (FTC_Manager)ftcmanager;
264
265
266 /* we must begin by removing all scalers for the target face */
267 /* from the manager's list */
270 node->face_id );
271
272 /* all right, we can discard the face now */
273 FT_Done_Face( node->face );
274 node->face = NULL;
275 node->face_id = NULL;
276 }
#define NULL
Definition: types.h:112
FT_Done_Face(FT_Face face)
Definition: ftobjs.c:2765
struct FTC_ManagerRec_ * FTC_Manager
Definition: ftcache.h:251
static FT_Bool ftc_size_node_compare_faceid(FTC_MruNode ftcnode, FT_Pointer ftcface_id)
Definition: ftcmanag.c:165
FTC_MruList_RemoveSelection(FTC_MruList list, FTC_MruNode_CompareFunc selection, FT_Pointer key)
Definition: ftcmru.c:327
FTC_MruListRec sizes
Definition: ftcmanag.h:105

◆ ftc_face_node_init()

ftc_face_node_init ( FTC_MruNode  ftcnode,
FT_Pointer  ftcface_id,
FT_Pointer  ftcmanager 
)

Definition at line 231 of file ftcmanag.c.

234 {
235 FTC_FaceNode node = (FTC_FaceNode)ftcnode;
236 FTC_FaceID face_id = (FTC_FaceID)ftcface_id;
237 FTC_Manager manager = (FTC_Manager)ftcmanager;
239
240
241 node->face_id = face_id;
242
243 error = manager->request_face( face_id,
244 manager->library,
245 manager->request_data,
246 &node->face );
247 if ( !error )
248 {
249 /* destroy initial size object; it will be re-created later */
250 if ( node->face->size )
251 FT_Done_Size( node->face->size );
252 }
253
254 return error;
255 }
FT_Done_Size(FT_Size size)
Definition: ftobjs.c:2871
int FT_Error
Definition: fttypes.h:299
#define error(str)
Definition: mkdosfs.c:1605
FT_Pointer request_data
Definition: ftcmanag.h:107
FTC_Face_Requester request_face
Definition: ftcmanag.h:108
FT_Library library
Definition: ftcmanag.h:93

◆ FTC_Manager_Compress()

FTC_Manager_Compress ( FTC_Manager  manager)

Definition at line 534 of file ftcmanag.c.

535 {
537
538
539 if ( !manager )
540 return;
541
542 first = manager->nodes_list;
543
544#ifdef FT_DEBUG_ERROR
545 FTC_Manager_Check( manager );
546
547 FT_TRACE0(( "compressing, weight = %ld, max = %ld, nodes = %d\n",
548 manager->cur_weight, manager->max_weight,
549 manager->num_nodes ));
550#endif
551
552 if ( manager->cur_weight < manager->max_weight || !first )
553 return;
554
555 /* go to last node -- it's a circular list */
557 do
558 {
559 FTC_Node prev;
560
561
562 prev = ( node == first ) ? NULL : FTC_NODE_PREV( node );
563
564 if ( node->ref_count <= 0 )
565 ftc_node_destroy( node, manager );
566
567 node = prev;
568
569 } while ( node && manager->cur_weight > manager->max_weight );
570 }
ftc_node_destroy(FTC_Node node, FTC_Manager manager)
Definition: ftccache.c:273
#define FTC_NODE_PREV(x)
Definition: ftccache.h:73
#define FT_TRACE0(varformat)
Definition: ftdebug.h:185
const GLint * first
Definition: glext.h:5794
FT_Offset cur_weight
Definition: ftcmanag.h:98
FT_Offset max_weight
Definition: ftcmanag.h:97
FTC_Node nodes_list
Definition: ftcmanag.h:96
FT_UInt num_nodes
Definition: ftcmanag.h:99

Referenced by ftc_cache_add().

◆ FTC_Manager_Done()

FTC_Manager_Done ( FTC_Manager  manager)

Definition at line 413 of file ftcmanag.c.

414 {
416 FT_UInt idx;
417
418
419 if ( !manager || !manager->library )
420 return;
421
422 memory = manager->memory;
423
424 /* now discard all caches */
425 for (idx = manager->num_caches; idx-- > 0; )
426 {
427 FTC_Cache cache = manager->caches[idx];
428
429
430 if ( cache )
431 {
432 cache->clazz.cache_done( cache );
433 FT_FREE( cache );
434 manager->caches[idx] = NULL;
435 }
436 }
437 manager->num_caches = 0;
438
439 /* discard faces and sizes */
440 FTC_MruList_Done( &manager->sizes );
441 FTC_MruList_Done( &manager->faces );
442
443 manager->library = NULL;
444 manager->memory = NULL;
445
446 FT_FREE( manager );
447 }
unsigned int idx
Definition: utils.c:41
FTC_MruList_Done(FTC_MruList list)
Definition: ftcmru.c:195
#define FT_FREE(ptr)
Definition: ftmemory.h:328
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:65
unsigned int FT_UInt
Definition: fttypes.h:231
static char memory[1024 *256]
Definition: process.c:116
FT_UInt num_caches
Definition: ftcmanag.h:102
FTC_Cache caches[FTC_MAX_CACHES]
Definition: ftcmanag.h:101
FTC_MruListRec faces
Definition: ftcmanag.h:104
FT_Memory memory
Definition: ftcmanag.h:94
Definition: cache.c:49

◆ FTC_Manager_FlushN()

FTC_Manager_FlushN ( FTC_Manager  manager,
FT_UInt  count 
)

Definition at line 628 of file ftcmanag.c.

630 {
631 FTC_Node first = manager->nodes_list;
634
635
636 /* try to remove `count' nodes from the list */
637 if ( !first ) /* empty list! */
638 return 0;
639
640 /* go to last node - it's a circular list */
642 for ( result = 0; result < count; )
643 {
644 FTC_Node prev = FTC_NODE_PREV( node );
645
646
647 /* don't touch locked nodes */
648 if ( node->ref_count <= 0 )
649 {
650 ftc_node_destroy( node, manager );
651 result++;
652 }
653
654 if ( node == first )
655 break;
656
657 node = prev;
658 }
659 return result;
660 }
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLuint64EXT * result
Definition: glext.h:11304

Referenced by FTC_Manager_Reset().

◆ FTC_Manager_LookupFace()

FTC_Manager_LookupFace ( FTC_Manager  manager,
FTC_FaceID  face_id,
FT_Face aface 
)

Definition at line 306 of file ftcmanag.c.

309 {
311 FTC_MruNode mrunode;
312
313
314 if ( !aface )
315 return FT_THROW( Invalid_Argument );
316
317 *aface = NULL;
318
319 if ( !manager )
320 return FT_THROW( Invalid_Cache_Handle );
321
322 /* we break encapsulation for the sake of speed */
323#ifdef FTC_INLINE
324
326 mrunode, error );
327
328#else
329 error = FTC_MruList_Lookup( &manager->faces, face_id, &mrunode );
330#endif
331
332 if ( !error )
333 *aface = FTC_FACE_NODE( mrunode )->face;
334
335 return error;
336 }
#define FTC_FACE_NODE(x)
Definition: ftcmanag.c:227
ftc_face_node_compare(FTC_MruNode ftcnode, FT_Pointer ftcface_id)
Definition: ftcmanag.c:280
#define FTC_MRULIST_LOOKUP_CMP(list, key, compare, node, error)
Definition: ftcmru.h:164
typedefFT_BEGIN_HEADER struct FTC_MruNodeRec_ * FTC_MruNode
Definition: ftcmru.h:61
#define FT_THROW(e)
Definition: ftdebug.h:241

Referenced by ftc_basic_family_get_count(), FTC_CMapCache_Lookup(), and ftc_scaler_lookup_size().

◆ FTC_Manager_LookupSize()

FTC_Manager_LookupSize ( FTC_Manager  manager,
FTC_Scaler  scaler,
FT_Size asize 
)

Definition at line 179 of file ftcmanag.c.

182 {
184 FTC_MruNode mrunode;
185
186
187 if ( !asize || !scaler )
188 return FT_THROW( Invalid_Argument );
189
190 *asize = NULL;
191
192 if ( !manager )
193 return FT_THROW( Invalid_Cache_Handle );
194
195#ifdef FTC_INLINE
196
198 mrunode, error );
199
200#else
201 error = FTC_MruList_Lookup( &manager->sizes, scaler, &mrunode );
202#endif
203
204 if ( !error )
205 *asize = FTC_SIZE_NODE( mrunode )->size;
206
207 return error;
208 }
ftc_size_node_compare(FTC_MruNode ftcnode, FT_Pointer ftcscaler)
Definition: ftcmanag.c:100
#define FTC_SIZE_NODE(x)
Definition: ftcmanag.c:82

Referenced by ftc_basic_family_load_bitmap(), and ftc_basic_family_load_glyph().

◆ FTC_Manager_New()

FTC_Manager_New ( FT_Library  library,
FT_UInt  max_faces,
FT_UInt  max_sizes,
FT_ULong  max_bytes,
FTC_Face_Requester  requester,
FT_Pointer  req_data,
FTC_Manager amanager 
)

Definition at line 351 of file ftcmanag.c.

358 {
361 FTC_Manager manager = 0;
362
363
364 if ( !library )
365 return FT_THROW( Invalid_Library_Handle );
366
367 if ( !amanager || !requester )
368 return FT_THROW( Invalid_Argument );
369
371
372 if ( FT_NEW( manager ) )
373 goto Exit;
374
375 if ( max_faces == 0 )
376 max_faces = FTC_MAX_FACES_DEFAULT;
377
378 if ( max_sizes == 0 )
379 max_sizes = FTC_MAX_SIZES_DEFAULT;
380
381 if ( max_bytes == 0 )
382 max_bytes = FTC_MAX_BYTES_DEFAULT;
383
384 manager->library = library;
385 manager->memory = memory;
386 manager->max_weight = max_bytes;
387
388 manager->request_face = requester;
389 manager->request_data = req_data;
390
391 FTC_MruList_Init( &manager->faces,
393 max_faces,
394 manager,
395 memory );
396
397 FTC_MruList_Init( &manager->sizes,
399 max_sizes,
400 manager,
401 memory );
402
403 *amanager = manager;
404
405 Exit:
406 return error;
407 }
FT_Library library
Definition: cffdrivr.c:661
static const FTC_MruListClassRec ftc_size_list_class
Definition: ftcmanag.c:152
static const FTC_MruListClassRec ftc_face_list_class
Definition: ftcmanag.c:292
#define FTC_MAX_BYTES_DEFAULT
Definition: ftcmanag.h:85
#define FTC_MAX_SIZES_DEFAULT
Definition: ftcmanag.h:84
#define FTC_MAX_FACES_DEFAULT
Definition: ftcmanag.h:83
FTC_MruList_Init(FTC_MruList list, FTC_MruListClass clazz, FT_UInt max_nodes, FT_Pointer data, FT_Memory memory)
Definition: ftcmru.c:169
#define FT_NEW(ptr)
Definition: ftmemory.h:330
static void Exit(void)
Definition: sock.c:1330
FT_Memory memory
Definition: ftobjs.h:897

◆ FTC_Manager_RegisterCache()

FTC_Manager_RegisterCache ( FTC_Manager  manager,
FTC_CacheClass  clazz,
FTC_Cache acache 
)

Definition at line 576 of file ftcmanag.c.

579 {
580 FT_Error error = FT_ERR( Invalid_Argument );
582
583
584 if ( manager && clazz && acache )
585 {
586 FT_Memory memory = manager->memory;
587
588
589 if ( manager->num_caches >= FTC_MAX_CACHES )
590 {
591 error = FT_THROW( Too_Many_Caches );
592 FT_ERROR(( "FTC_Manager_RegisterCache:"
593 " too many registered caches\n" ));
594 goto Exit;
595 }
596
597 if ( !FT_ALLOC( cache, clazz->cache_size ) )
598 {
599 cache->manager = manager;
600 cache->memory = memory;
601 cache->clazz = clazz[0];
602 cache->org_class = clazz;
603
604 /* THIS IS VERY IMPORTANT! IT WILL WRETCH THE MANAGER */
605 /* IF IT IS NOT SET CORRECTLY */
606 cache->index = manager->num_caches;
607
608 error = clazz->cache_init( cache );
609 if ( error )
610 {
611 clazz->cache_done( cache );
612 FT_FREE( cache );
613 goto Exit;
614 }
615
616 manager->caches[manager->num_caches++] = cache;
617 }
618 }
619
620 Exit:
621 if ( acache )
622 *acache = cache;
623 return error;
624 }
#define FTC_MAX_CACHES
Definition: ftcmanag.h:88
#define FT_ERROR(varformat)
Definition: ftdebug.h:209
#define FT_ALLOC(ptr, size)
Definition: ftmemory.h:302
#define FT_ERR(e)
Definition: fttypes.h:599
FTC_Cache_DoneFunc cache_done
Definition: ftccache.h:137
FT_Offset cache_size
Definition: ftccache.h:135
FTC_Cache_InitFunc cache_init
Definition: ftccache.h:136

Referenced by FTC_CMapCache_New(), and FTC_GCache_New().

◆ FTC_Manager_RemoveFaceID()

FTC_Manager_RemoveFaceID ( FTC_Manager  manager,
FTC_FaceID  face_id 
)

Definition at line 666 of file ftcmanag.c.

668 {
669 FT_UInt nn;
670
671
672 if ( !manager )
673 return;
674
675 /* this will remove all FTC_SizeNode that correspond to
676 * the face_id as well
677 */
680 face_id );
681
682 for ( nn = 0; nn < manager->num_caches; nn++ )
683 FTC_Cache_RemoveFaceID( manager->caches[nn], face_id );
684 }
FTC_Cache_RemoveFaceID(FTC_Cache cache, FTC_FaceID face_id)
Definition: ftccache.c:564

◆ FTC_Manager_Reset()

FTC_Manager_Reset ( FTC_Manager  manager)

Definition at line 453 of file ftcmanag.c.

454 {
455 if ( !manager )
456 return;
457
458 FTC_MruList_Reset( &manager->sizes );
459 FTC_MruList_Reset( &manager->faces );
460
461 FTC_Manager_FlushN( manager, manager->num_nodes );
462 }
FTC_Manager_FlushN(FTC_Manager manager, FT_UInt count)
Definition: ftcmanag.c:628
FTC_MruList_Reset(FTC_MruList list)
Definition: ftcmru.c:185

◆ FTC_Node_Unref()

FTC_Node_Unref ( FTC_Node  node,
FTC_Manager  manager 
)

Definition at line 690 of file ftcmanag.c.

692 {
693 if ( node &&
694 manager &&
695 (FT_UInt)node->cache_index < manager->num_caches )
696 node->ref_count--;
697 }

◆ ftc_scaler_lookup_size()

static FT_Error ftc_scaler_lookup_size ( FTC_Manager  manager,
FTC_Scaler  scaler,
FT_Size asize 
)
static

Definition at line 35 of file ftcmanag.c.

38 {
42
43
44 error = FTC_Manager_LookupFace( manager, scaler->face_id, &face );
45 if ( error )
46 goto Exit;
47
49 if ( error )
50 goto Exit;
51
53
54 if ( scaler->pixel )
55 error = FT_Set_Pixel_Sizes( face, scaler->width, scaler->height );
56 else
58 (FT_F26Dot6)scaler->width,
59 (FT_F26Dot6)scaler->height,
60 scaler->x_res,
61 scaler->y_res );
62 if ( error )
63 {
65 size = NULL;
66 }
67
68 Exit:
69 *asize = size;
70 return error;
71 }
WORD face[3]
Definition: mesh.c:4747
FT_Set_Pixel_Sizes(FT_Face face, FT_UInt pixel_width, FT_UInt pixel_height)
Definition: ftobjs.c:3353
FT_Set_Char_Size(FT_Face face, FT_F26Dot6 char_width, FT_F26Dot6 char_height, FT_UInt horz_resolution, FT_UInt vert_resolution)
Definition: ftobjs.c:3311
FTC_Manager_LookupFace(FTC_Manager manager, FTC_FaceID face_id, FT_Face *aface)
Definition: ftcmanag.c:306
FT_Activate_Size(FT_Size size)
Definition: ftobjs.c:4273
FT_BEGIN_HEADER FT_New_Size(FT_Face face, FT_Size *size)
Definition: ftobjs.c:2806
signed long FT_F26Dot6
Definition: fttypes.h:275
GLsizeiptr size
Definition: glext.h:5919
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
FT_UInt width
Definition: ftcache.h:445
FT_UInt x_res
Definition: ftcache.h:448
FTC_FaceID face_id
Definition: ftcache.h:444
FT_UInt height
Definition: ftcache.h:446
FT_Int pixel
Definition: ftcache.h:447
FT_UInt y_res
Definition: ftcache.h:449

Referenced by ftc_size_node_init(), and ftc_size_node_reset().

◆ ftc_size_node_compare()

ftc_size_node_compare ( FTC_MruNode  ftcnode,
FT_Pointer  ftcscaler 
)

Definition at line 100 of file ftcmanag.c.

102 {
103 FTC_SizeNode node = (FTC_SizeNode)ftcnode;
104 FTC_Scaler scaler = (FTC_Scaler)ftcscaler;
105 FTC_Scaler scaler0 = &node->scaler;
106
107
108 if ( FTC_SCALER_COMPARE( scaler0, scaler ) )
109 {
110 FT_Activate_Size( node->size );
111 return 1;
112 }
113 return 0;
114 }
struct FTC_ScalerRec_ * FTC_Scaler
Definition: ftcache.h:462
struct FTC_SizeNodeRec_ * FTC_SizeNode
#define FTC_SCALER_COMPARE(a, b)
Definition: ftcmanag.h:155

Referenced by FTC_Manager_LookupSize().

◆ ftc_size_node_compare_faceid()

static FT_Bool ftc_size_node_compare_faceid ( FTC_MruNode  ftcnode,
FT_Pointer  ftcface_id 
)
static

Definition at line 165 of file ftcmanag.c.

167 {
168 FTC_SizeNode node = (FTC_SizeNode)ftcnode;
169 FTC_FaceID face_id = (FTC_FaceID)ftcface_id;
170
171
172 return FT_BOOL( node->scaler.face_id == face_id );
173 }

Referenced by ftc_face_node_done().

◆ ftc_size_node_done()

ftc_size_node_done ( FTC_MruNode  ftcnode,
FT_Pointer  data 
)

Definition at line 86 of file ftcmanag.c.

88 {
90 FT_Size size = node->size;
91 FT_UNUSED( data );
92
93
94 if ( size )
96 }
#define FT_UNUSED(arg)
Definition: ftconfig.h:100
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950

◆ ftc_size_node_init()

ftc_size_node_init ( FTC_MruNode  ftcnode,
FT_Pointer  ftcscaler,
FT_Pointer  ftcmanager 
)

Definition at line 118 of file ftcmanag.c.

121 {
122 FTC_SizeNode node = (FTC_SizeNode)ftcnode;
123 FTC_Scaler scaler = (FTC_Scaler)ftcscaler;
124 FTC_Manager manager = (FTC_Manager)ftcmanager;
125
126
127 node->scaler = scaler[0];
128
129 return ftc_scaler_lookup_size( manager, scaler, &node->size );
130 }
static FT_Error ftc_scaler_lookup_size(FTC_Manager manager, FTC_Scaler scaler, FT_Size *asize)
Definition: ftcmanag.c:35

◆ ftc_size_node_reset()

ftc_size_node_reset ( FTC_MruNode  ftcnode,
FT_Pointer  ftcscaler,
FT_Pointer  ftcmanager 
)

Definition at line 134 of file ftcmanag.c.

137 {
138 FTC_SizeNode node = (FTC_SizeNode)ftcnode;
139 FTC_Scaler scaler = (FTC_Scaler)ftcscaler;
140 FTC_Manager manager = (FTC_Manager)ftcmanager;
141
142
143 FT_Done_Size( node->size );
144
145 node->scaler = scaler[0];
146
147 return ftc_scaler_lookup_size( manager, scaler, &node->size );
148 }

Variable Documentation

◆ ftc_face_list_class

const FTC_MruListClassRec ftc_face_list_class
static
Initial value:
=
{
sizeof ( FTC_FaceNodeRec),
NULL,
}
ftc_face_node_done(FTC_MruNode ftcnode, FT_Pointer ftcmanager)
Definition: ftcmanag.c:259
struct FTC_FaceNodeRec_ FTC_FaceNodeRec
ftc_face_node_init(FTC_MruNode ftcnode, FT_Pointer ftcface_id, FT_Pointer ftcmanager)
Definition: ftcmanag.c:231

Definition at line 292 of file ftcmanag.c.

Referenced by FTC_Manager_New().

◆ ftc_size_list_class

const FTC_MruListClassRec ftc_size_list_class
static
Initial value:
=
{
sizeof ( FTC_SizeNodeRec ),
}
ftc_size_node_done(FTC_MruNode ftcnode, FT_Pointer data)
Definition: ftcmanag.c:86
struct FTC_SizeNodeRec_ FTC_SizeNodeRec
ftc_size_node_reset(FTC_MruNode ftcnode, FT_Pointer ftcscaler, FT_Pointer ftcmanager)
Definition: ftcmanag.c:134
ftc_size_node_init(FTC_MruNode ftcnode, FT_Pointer ftcscaler, FT_Pointer ftcmanager)
Definition: ftcmanag.c:118

Definition at line 152 of file ftcmanag.c.

Referenced by FTC_Manager_New().