ReactOS 0.4.16-dev-1067-ge98bba2
ftglyph.c File Reference
#include <ft2build.h>
Include dependency graph for ftglyph.c:

Go to the source code of this file.

Macros

#define FT_COMPONENT   glyph
 

Functions

 ft_bitmap_glyph_init (FT_Glyph bitmap_glyph, FT_GlyphSlot slot)
 
 ft_bitmap_glyph_copy (FT_Glyph bitmap_source, FT_Glyph bitmap_target)
 
 ft_bitmap_glyph_done (FT_Glyph bitmap_glyph)
 
 ft_bitmap_glyph_bbox (FT_Glyph bitmap_glyph, FT_BBox *cbox)
 
 FT_DEFINE_GLYPH (ft_bitmap_glyph_class, sizeof(FT_BitmapGlyphRec), FT_GLYPH_FORMAT_BITMAP, ft_bitmap_glyph_init, ft_bitmap_glyph_done, ft_bitmap_glyph_copy, NULL, ft_bitmap_glyph_bbox, NULL)
 
 ft_outline_glyph_done (FT_Glyph outline_glyph)
 
 ft_outline_glyph_copy (FT_Glyph outline_source, FT_Glyph outline_target)
 
 ft_outline_glyph_transform (FT_Glyph outline_glyph, const FT_Matrix *matrix, const FT_Vector *delta)
 
 ft_outline_glyph_bbox (FT_Glyph outline_glyph, FT_BBox *bbox)
 
 ft_outline_glyph_prepare (FT_Glyph outline_glyph, FT_GlyphSlot slot)
 
 FT_DEFINE_GLYPH (ft_outline_glyph_class, sizeof(FT_OutlineGlyphRec), FT_GLYPH_FORMAT_OUTLINE, ft_outline_glyph_init, ft_outline_glyph_done, ft_outline_glyph_copy, ft_outline_glyph_transform, ft_outline_glyph_bbox, ft_outline_glyph_prepare)
 
 FT_Glyph_Copy (FT_Glyph source, FT_Glyph *target)
 
 FT_New_Glyph (FT_Library library, FT_Glyph_Format format, FT_Glyph *aglyph)
 
 FT_Get_Glyph (FT_GlyphSlot slot, FT_Glyph *aglyph)
 
 FT_Glyph_Transform (FT_Glyph glyph, FT_Matrix *matrix, FT_Vector *delta)
 
 FT_Glyph_Get_CBox (FT_Glyph glyph, FT_UInt bbox_mode, FT_BBox *acbox)
 
 FT_Glyph_To_Bitmap (FT_Glyph *the_glyph, FT_Render_Mode render_mode, FT_Vector *origin, FT_Bool destroy)
 
 FT_Done_Glyph (FT_Glyph glyph)
 

Macro Definition Documentation

◆ FT_COMPONENT

#define FT_COMPONENT   glyph

Definition at line 47 of file ftglyph.c.

Function Documentation

◆ ft_bitmap_glyph_bbox()

ft_bitmap_glyph_bbox ( FT_Glyph  bitmap_glyph,
FT_BBox cbox 
)

Definition at line 121 of file ftglyph.c.

123 {
124 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph;
125
126
127 cbox->xMin = glyph->left * 64;
128 cbox->xMax = cbox->xMin + (FT_Pos)( glyph->bitmap.width * 64 );
129 cbox->yMax = glyph->top * 64;
130 cbox->yMin = cbox->yMax - (FT_Pos)( glyph->bitmap.rows * 64 );
131 }
struct FT_BitmapGlyphRec_ * FT_BitmapGlyph
Definition: ftglyph.h:132
FT_BEGIN_HEADER typedef signed long FT_Pos
Definition: ftimage.h:58
FT_Pos xMin
Definition: ftimage.h:121
FT_Pos yMax
Definition: ftimage.h:122
FT_Pos yMin
Definition: ftimage.h:121
FT_Pos xMax
Definition: ftimage.h:122
FT_Bitmap bitmap
Definition: ftglyph.h:173
unsigned int width
Definition: ftimage.h:264
unsigned int rows
Definition: ftimage.h:263

◆ ft_bitmap_glyph_copy()

ft_bitmap_glyph_copy ( FT_Glyph  bitmap_source,
FT_Glyph  bitmap_target 
)

Definition at line 94 of file ftglyph.c.

96 {
97 FT_Library library = bitmap_source->library;
98 FT_BitmapGlyph source = (FT_BitmapGlyph)bitmap_source;
99 FT_BitmapGlyph target = (FT_BitmapGlyph)bitmap_target;
100
101
102 target->left = source->left;
103 target->top = source->top;
104
105 return FT_Bitmap_Copy( library, &source->bitmap, &target->bitmap );
106 }
FT_Library library
Definition: cffdrivr.c:661
FT_Bitmap_Copy(FT_Library library, const FT_Bitmap *source, FT_Bitmap *target)
Definition: ftbitmap.c:64
GLenum target
Definition: glext.h:7315
FT_Library library
Definition: ftglyph.h:115

◆ ft_bitmap_glyph_done()

ft_bitmap_glyph_done ( FT_Glyph  bitmap_glyph)

Definition at line 110 of file ftglyph.c.

111 {
112 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph;
113 FT_Library library = FT_GLYPH( glyph )->library;
114
115
116 FT_Bitmap_Done( library, &glyph->bitmap );
117 }
FT_Bitmap_Done(FT_Library library, FT_Bitmap *bitmap)
Definition: ftbitmap.c:1190
#define FT_GLYPH(x)
Definition: ftobjs.h:738

◆ ft_bitmap_glyph_init()

ft_bitmap_glyph_init ( FT_Glyph  bitmap_glyph,
FT_GlyphSlot  slot 
)

Definition at line 59 of file ftglyph.c.

61 {
62 FT_BitmapGlyph glyph = (FT_BitmapGlyph)bitmap_glyph;
64 FT_Library library = FT_GLYPH( glyph )->library;
65
66
67 if ( slot->format != FT_GLYPH_FORMAT_BITMAP )
68 {
69 error = FT_THROW( Invalid_Glyph_Format );
70 goto Exit;
71 }
72
73 glyph->left = slot->bitmap_left;
74 glyph->top = slot->bitmap_top;
75
76 /* do lazy copying whenever possible */
77 if ( slot->internal->flags & FT_GLYPH_OWN_BITMAP )
78 {
79 glyph->bitmap = slot->bitmap;
80 slot->internal->flags &= ~FT_GLYPH_OWN_BITMAP;
81 }
82 else
83 {
84 FT_Bitmap_Init( &glyph->bitmap );
85 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap );
86 }
87
88 Exit:
89 return error;
90 }
return FT_Err_Ok
Definition: ftbbox.c:527
FT_BEGIN_HEADER FT_Bitmap_Init(FT_Bitmap *abitmap)
Definition: ftbitmap.c:44
#define FT_THROW(e)
Definition: ftdebug.h:241
#define FT_GLYPH_OWN_BITMAP
Definition: ftobjs.h:423
int FT_Error
Definition: fttypes.h:299
#define error(str)
Definition: mkdosfs.c:1605
static void Exit(void)
Definition: sock.c:1330
Definition: vfat.h:185

Referenced by FT_Glyph_To_Bitmap().

◆ FT_DEFINE_GLYPH() [1/2]

FT_DEFINE_GLYPH ( ft_bitmap_glyph_class  ,
sizeof(FT_BitmapGlyphRec ,
FT_GLYPH_FORMAT_BITMAP  ,
ft_bitmap_glyph_init  ,
ft_bitmap_glyph_done  ,
ft_bitmap_glyph_copy  ,
NULL  ,
ft_bitmap_glyph_bbox  ,
NULL   
)

Definition at line 134 of file ftglyph.c.

161 {
162 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
164 FT_Library library = FT_GLYPH( glyph )->library;
165 FT_Outline* source = &slot->outline;
166 FT_Outline* target = &glyph->outline;
167
168
169 /* check format in glyph slot */
170 if ( slot->format != FT_GLYPH_FORMAT_OUTLINE )
171 {
172 error = FT_THROW( Invalid_Glyph_Format );
173 goto Exit;
174 }
175
176 /* allocate new outline */
178 (FT_UInt)source->n_points,
179 source->n_contours,
180 &glyph->outline );
181 if ( error )
182 goto Exit;
183
185
186 Exit:
187 return error;
188 }
struct FT_OutlineGlyphRec_ * FT_OutlineGlyph
Definition: ftglyph.h:187
FT_Outline_New(FT_Library library, FT_UInt numPoints, FT_Int numContours, FT_Outline *anoutline)
Definition: ftoutln.c:295
FT_Outline_Copy(const FT_Outline *source, FT_Outline *target)
Definition: ftoutln.c:388
smooth FT_Module_Constructor FT_Module_Destructor FT_Module_Requester FT_GLYPH_FORMAT_OUTLINE
Definition: ftsmooth.c:465
unsigned int FT_UInt
Definition: fttypes.h:231
FT_Outline outline
Definition: ftglyph.h:221

◆ FT_DEFINE_GLYPH() [2/2]

Definition at line 264 of file ftglyph.c.

291 {
294 FT_Glyph glyph = NULL;
295
296
297 *aglyph = NULL;
298
299 if ( !FT_ALLOC( glyph, clazz->glyph_size ) )
300 {
301 glyph->library = library;
302 glyph->clazz = clazz;
303 glyph->format = clazz->glyph_format;
304
305 *aglyph = glyph;
306 }
307
308 return error;
309 }
#define NULL
Definition: types.h:112
#define FT_ALLOC(ptr, size)
Definition: ftmemory.h:302
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:65
static char memory[1024 *256]
Definition: process.c:116
FT_Glyph_Format format
Definition: ftglyph.h:117
const FT_Glyph_Class * clazz
Definition: ftglyph.h:116
FT_Memory memory
Definition: ftobjs.h:897

◆ FT_Done_Glyph()

FT_Done_Glyph ( FT_Glyph  glyph)

Definition at line 640 of file ftglyph.c.

641 {
642 if ( glyph )
643 {
644 FT_Memory memory = glyph->library->memory;
645 const FT_Glyph_Class* clazz = glyph->clazz;
646
647
648 if ( clazz->glyph_done )
649 clazz->glyph_done( glyph );
650
651 FT_FREE( glyph );
652 }
653 }
typedefFT_BEGIN_HEADER struct FT_Glyph_Class_ FT_Glyph_Class
Definition: ftglyph.h:70
#define FT_FREE(ptr)
Definition: ftmemory.h:328

Referenced by FT_Get_Glyph(), FT_Glyph_Copy(), FT_Glyph_Stroke(), FT_Glyph_StrokeBorder(), FT_Glyph_To_Bitmap(), ftc_inode_free(), IntGetBitmapGlyphWithCache(), and RemoveCachedEntry().

◆ FT_Get_Glyph()

FT_Get_Glyph ( FT_GlyphSlot  slot,
FT_Glyph aglyph 
)

Definition at line 400 of file ftglyph.c.

402 {
404 FT_Glyph glyph;
405
406
407 if ( !slot )
408 return FT_THROW( Invalid_Slot_Handle );
409
410 if ( !aglyph )
411 return FT_THROW( Invalid_Argument );
412
413 /* create FT_Glyph object */
414 error = FT_New_Glyph( slot->library, slot->format, &glyph );
415 if ( error )
416 goto Exit;
417
418 /* copy advance while converting 26.6 to 16.16 format */
419 if ( slot->advance.x >= 0x8000L * 64 ||
420 slot->advance.x <= -0x8000L * 64 )
421 {
422 FT_ERROR(( "FT_Get_Glyph: advance width too large\n" ));
423 error = FT_THROW( Invalid_Argument );
424 goto Exit2;
425 }
426 if ( slot->advance.y >= 0x8000L * 64 ||
427 slot->advance.y <= -0x8000L * 64 )
428 {
429 FT_ERROR(( "FT_Get_Glyph: advance height too large\n" ));
430 error = FT_THROW( Invalid_Argument );
431 goto Exit2;
432 }
433
434 glyph->advance.x = slot->advance.x * 1024;
435 glyph->advance.y = slot->advance.y * 1024;
436
437 /* now import the image from the glyph slot */
438 error = glyph->clazz->glyph_init( glyph, slot );
439
440 Exit2:
441 /* if an error occurred, destroy the glyph */
442 if ( error )
443 FT_Done_Glyph( glyph );
444 else
445 *aglyph = glyph;
446
447 Exit:
448 return error;
449 }
#define FT_ERROR(varformat)
Definition: ftdebug.h:209
FT_Done_Glyph(FT_Glyph glyph)
Definition: ftglyph.c:640
FT_New_Glyph(FT_Library library, FT_Glyph_Format format, FT_Glyph *aglyph)
Definition: ftglyph.c:362
FT_Vector advance
Definition: ftglyph.h:118
FT_Pos x
Definition: ftimage.h:78
FT_Pos y
Definition: ftimage.h:79

Referenced by ftc_basic_family_load_glyph(), and IntGetBitmapGlyphWithCache().

◆ FT_Glyph_Copy()

FT_Glyph_Copy ( FT_Glyph  source,
FT_Glyph target 
)

Definition at line 315 of file ftglyph.c.

317 {
320 const FT_Glyph_Class* clazz;
321
322
323 /* check arguments */
324 if ( !target || !source || !source->clazz )
325 {
326 error = FT_THROW( Invalid_Argument );
327 goto Exit;
328 }
329
330 *target = NULL;
331
332 if ( !source || !source->clazz )
333 {
334 error = FT_THROW( Invalid_Argument );
335 goto Exit;
336 }
337
338 clazz = source->clazz;
339 error = ft_new_glyph( source->library, clazz, &copy );
340 if ( error )
341 goto Exit;
342
343 copy->advance = source->advance;
344 copy->format = source->format;
345
346 if ( clazz->glyph_copy )
347 error = clazz->glyph_copy( source, copy );
348
349 if ( error )
351 else
352 *target = copy;
353
354 Exit:
355 return error;
356 }
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
Definition: copy.c:51

Referenced by FT_Glyph_Stroke(), and FT_Glyph_StrokeBorder().

◆ FT_Glyph_Get_CBox()

FT_Glyph_Get_CBox ( FT_Glyph  glyph,
FT_UInt  bbox_mode,
FT_BBox acbox 
)

Definition at line 488 of file ftglyph.c.

491 {
492 const FT_Glyph_Class* clazz;
493
494
495 if ( !acbox )
496 return;
497
498 acbox->xMin = acbox->yMin = acbox->xMax = acbox->yMax = 0;
499
500 if ( !glyph || !glyph->clazz )
501 return;
502
503 clazz = glyph->clazz;
504 if ( !clazz->glyph_bbox )
505 return;
506
507 /* retrieve bbox in 26.6 coordinates */
508 clazz->glyph_bbox( glyph, acbox );
509
510 /* perform grid fitting if needed */
511 if ( bbox_mode == FT_GLYPH_BBOX_GRIDFIT ||
512 bbox_mode == FT_GLYPH_BBOX_PIXELS )
513 {
514 acbox->xMin = FT_PIX_FLOOR( acbox->xMin );
515 acbox->yMin = FT_PIX_FLOOR( acbox->yMin );
516 acbox->xMax = FT_PIX_CEIL_LONG( acbox->xMax );
517 acbox->yMax = FT_PIX_CEIL_LONG( acbox->yMax );
518 }
519
520 /* convert to integer pixels if needed */
521 if ( bbox_mode == FT_GLYPH_BBOX_TRUNCATE ||
522 bbox_mode == FT_GLYPH_BBOX_PIXELS )
523 {
524 acbox->xMin >>= 6;
525 acbox->yMin >>= 6;
526 acbox->xMax >>= 6;
527 acbox->yMax >>= 6;
528 }
529 }
@ FT_GLYPH_BBOX_GRIDFIT
Definition: ftglyph.h:374
@ FT_GLYPH_BBOX_PIXELS
Definition: ftglyph.h:376
@ FT_GLYPH_BBOX_TRUNCATE
Definition: ftglyph.h:375
#define FT_PIX_FLOOR(x)
Definition: ftobjs.h:91
#define FT_PIX_CEIL_LONG(x)
Definition: ftobjs.h:102

◆ FT_Glyph_To_Bitmap()

FT_Glyph_To_Bitmap ( FT_Glyph the_glyph,
FT_Render_Mode  render_mode,
FT_Vector origin,
FT_Bool  destroy 
)

Definition at line 535 of file ftglyph.c.

539 {
541 FT_GlyphSlot_InternalRec dummy_internal;
543 FT_Glyph b, glyph;
545 const FT_Glyph_Class* clazz;
546
548
549
550 /* check argument */
551 if ( !the_glyph )
552 goto Bad;
553 glyph = *the_glyph;
554 if ( !glyph )
555 goto Bad;
556
557 clazz = glyph->clazz;
558 library = glyph->library;
559 if ( !library || !clazz )
560 goto Bad;
561
562 /* when called with a bitmap glyph, do nothing and return successfully */
563 if ( clazz == &ft_bitmap_glyph_class )
564 goto Exit;
565
566 if ( !clazz->glyph_prepare )
567 goto Bad;
568
569 /* we render the glyph into a glyph bitmap using a `dummy' glyph slot */
570 /* then calling FT_Render_Glyph_Internal() */
571
572 FT_ZERO( &dummy );
573 FT_ZERO( &dummy_internal );
574 dummy.internal = &dummy_internal;
575 dummy.library = library;
576 dummy.format = clazz->glyph_format;
577
578 /* create result bitmap glyph */
579 error = ft_new_glyph( library, &ft_bitmap_glyph_class, &b );
580 if ( error )
581 goto Exit;
583
584#if 1
585 /* if `origin' is set, translate the glyph image */
586 if ( origin )
587 FT_Glyph_Transform( glyph, 0, origin );
588#else
589 FT_UNUSED( origin );
590#endif
591
592 /* prepare dummy slot for rendering */
593 error = clazz->glyph_prepare( glyph, &dummy );
594 if ( !error )
595 error = FT_Render_Glyph_Internal( glyph->library, &dummy, render_mode );
596
597#if 1
598 if ( !destroy && origin )
599 {
600 FT_Vector v;
601
602
603 v.x = -origin->x;
604 v.y = -origin->y;
605 FT_Glyph_Transform( glyph, 0, &v );
606 }
607#endif
608
609 if ( error )
610 goto Exit;
611
612 /* in case of success, copy the bitmap to the glyph bitmap */
614 if ( error )
615 goto Exit;
616
617 /* copy advance */
618 bitmap->root.advance = glyph->advance;
619
620 if ( destroy )
621 FT_Done_Glyph( glyph );
622
623 *the_glyph = FT_GLYPH( bitmap );
624
625 Exit:
626 if ( error && bitmap )
628
629 return error;
630
631 Bad:
632 error = FT_THROW( Invalid_Argument );
633 goto Exit;
634 }
void destroy(_Tp *__pointer)
Definition: _construct.h:278
#define FT_UNUSED(arg)
Definition: ftconfig.h:100
ft_bitmap_glyph_init(FT_Glyph bitmap_glyph, FT_GlyphSlot slot)
Definition: ftglyph.c:59
FT_Glyph_Transform(FT_Glyph glyph, FT_Matrix *matrix, FT_Vector *delta)
Definition: ftglyph.c:455
#define FT_ZERO(p)
Definition: ftmemory.h:237
FT_Render_Glyph_Internal(FT_Library library, FT_GlyphSlot slot, FT_Render_Mode render_mode)
Definition: ftobjs.c:4528
const GLdouble * v
Definition: gl.h:2040
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
voidpf uLong int origin
Definition: ioapi.h:144
#define b
Definition: ke_i.h:79
Definition: uimain.c:89

Referenced by IntGetBitmapGlyphWithCache().

◆ FT_Glyph_Transform()

FT_Glyph_Transform ( FT_Glyph  glyph,
FT_Matrix matrix,
FT_Vector delta 
)

Definition at line 455 of file ftglyph.c.

458 {
460
461
462 if ( !glyph || !glyph->clazz )
463 error = FT_THROW( Invalid_Argument );
464 else
465 {
466 const FT_Glyph_Class* clazz = glyph->clazz;
467
468
469 if ( clazz->glyph_transform )
470 {
471 /* transform glyph image */
472 clazz->glyph_transform( glyph, matrix, delta );
473
474 /* transform advance vector */
475 if ( matrix )
477 }
478 else
479 error = FT_THROW( Invalid_Glyph_Format );
480 }
481 return error;
482 }
FT_Vector_Transform(FT_Vector *vector, const FT_Matrix *matrix)
Definition: ftoutln.c:675
GLuint GLenum matrix
Definition: glext.h:9407

Referenced by FT_Glyph_To_Bitmap().

◆ FT_New_Glyph()

FT_New_Glyph ( FT_Library  library,
FT_Glyph_Format  format,
FT_Glyph aglyph 
)

Definition at line 362 of file ftglyph.c.

365 {
366 const FT_Glyph_Class* clazz = NULL;
367
368 if ( !library || !aglyph )
369 return FT_THROW( Invalid_Argument );
370
371 /* if it is a bitmap, that's easy :-) */
372 if ( format == FT_GLYPH_FORMAT_BITMAP )
373 clazz = &ft_bitmap_glyph_class;
374
375 /* if it is an outline */
376 else if ( format == FT_GLYPH_FORMAT_OUTLINE )
377 clazz = &ft_outline_glyph_class;
378
379 else
380 {
381 /* try to find a renderer that supports the glyph image format */
383
384
385 if ( render )
386 clazz = &render->glyph_class;
387 }
388
389 if ( !clazz )
390 return FT_THROW( Invalid_Glyph_Format );
391
392 /* create FT_Glyph object */
393 return ft_new_glyph( library, clazz, aglyph );
394 }
FT_Lookup_Renderer(FT_Library library, FT_Glyph_Format format, FT_ListNode *node)
Definition: ftobjs.c:4307
FT_CALLBACK_TABLE const FT_Glyph_Class ft_outline_glyph_class
Definition: ftstroke.c:30
static void render(void)
Definition: ssstars.c:272
Definition: format.c:58

Referenced by FT_Get_Glyph().

◆ ft_outline_glyph_bbox()

ft_outline_glyph_bbox ( FT_Glyph  outline_glyph,
FT_BBox bbox 
)

Definition at line 239 of file ftglyph.c.

241 {
242 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
243
244
245 FT_Outline_Get_CBox( &glyph->outline, bbox );
246 }
FT_BBox bbox
Definition: ftbbox.c:468
FT_Outline_Get_CBox(const FT_Outline *outline, FT_BBox *acbox)
Definition: ftoutln.c:459

◆ ft_outline_glyph_copy()

ft_outline_glyph_copy ( FT_Glyph  outline_source,
FT_Glyph  outline_target 
)

Definition at line 202 of file ftglyph.c.

204 {
205 FT_OutlineGlyph source = (FT_OutlineGlyph)outline_source;
206 FT_OutlineGlyph target = (FT_OutlineGlyph)outline_target;
208 FT_Library library = FT_GLYPH( source )->library;
209
210
212 (FT_UInt)source->outline.n_points,
213 source->outline.n_contours,
214 &target->outline );
215 if ( !error )
216 FT_Outline_Copy( &source->outline, &target->outline );
217
218 return error;
219 }

◆ ft_outline_glyph_done()

ft_outline_glyph_done ( FT_Glyph  outline_glyph)

Definition at line 192 of file ftglyph.c.

193 {
194 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
195
196
197 FT_Outline_Done( FT_GLYPH( glyph )->library, &glyph->outline );
198 }
FT_Outline_Done(FT_Library library, FT_Outline *outline)
Definition: ftoutln.c:427

◆ ft_outline_glyph_prepare()

ft_outline_glyph_prepare ( FT_Glyph  outline_glyph,
FT_GlyphSlot  slot 
)

Definition at line 250 of file ftglyph.c.

252 {
253 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
254
255
257 slot->outline = glyph->outline;
258 slot->outline.flags &= ~FT_OUTLINE_OWNER;
259
260 return FT_Err_Ok;
261 }

◆ ft_outline_glyph_transform()

ft_outline_glyph_transform ( FT_Glyph  outline_glyph,
const FT_Matrix matrix,
const FT_Vector delta 
)

Definition at line 223 of file ftglyph.c.

226 {
227 FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph;
228
229
230 if ( matrix )
232
233 if ( delta )
234 FT_Outline_Translate( &glyph->outline, delta->x, delta->y );
235 }
FT_Outline_Translate(const FT_Outline *outline, FT_Pos xOffset, FT_Pos yOffset)
Definition: ftoutln.c:509
FT_Outline_Transform(const FT_Outline *outline, const FT_Matrix *matrix)
Definition: ftoutln.c:698