#include <ft2build.h>
#include "basepic.h"
Go to the source code of this file.
|
| 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_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) |
|
◆ FT_COMPONENT
#define FT_COMPONENT trace_glyph |
◆ ft_bitmap_glyph_bbox()
Definition at line 122 of file ftglyph.c.
FT_BEGIN_HEADER typedef signed long FT_Pos
struct FT_BitmapGlyphRec_ * FT_BitmapGlyph
◆ ft_bitmap_glyph_copy()
Definition at line 95 of file ftglyph.c.
struct FT_BitmapGlyphRec_ * FT_BitmapGlyph
FT_Bitmap_Copy(FT_Library library, const FT_Bitmap *source, FT_Bitmap *target)
◆ ft_bitmap_glyph_done()
ft_bitmap_glyph_done |
( |
FT_Glyph |
bitmap_glyph | ) |
|
Definition at line 111 of file ftglyph.c.
FT_Bitmap_Done(FT_Library library, FT_Bitmap *bitmap)
struct FT_BitmapGlyphRec_ * FT_BitmapGlyph
◆ ft_bitmap_glyph_init()
Definition at line 60 of file ftglyph.c.
68 if (
slot->format != FT_GLYPH_FORMAT_BITMAP )
#define FT_GLYPH_OWN_BITMAP
struct FT_BitmapGlyphRec_ * FT_BitmapGlyph
FT_BEGIN_HEADER FT_Bitmap_Init(FT_Bitmap *abitmap)
FT_Bitmap_Copy(FT_Library library, const FT_Bitmap *source, FT_Bitmap *target)
Referenced by FT_Glyph_To_Bitmap().
◆ FT_DEFINE_GLYPH() [1/2]
Definition at line 135 of file ftglyph.c.
struct FT_OutlineGlyphRec_ * FT_OutlineGlyph
FT_Outline_Copy(const FT_Outline *source, FT_Outline *target)
FT_Outline_New(FT_Library library, FT_UInt numPoints, FT_Int numContours, FT_Outline *anoutline)
smooth FT_Module_Constructor FT_Module_Destructor FT_Module_Requester FT_GLYPH_FORMAT_OUTLINE
◆ FT_DEFINE_GLYPH() [2/2]
Definition at line 265 of file ftglyph.c.
300 if ( !
FT_ALLOC( glyph, clazz->glyph_size ) )
303 glyph->
clazz = clazz;
304 glyph->
format = clazz->glyph_format;
#define FT_ALLOC(ptr, size)
const FT_Glyph_Class * clazz
static char memory[1024 *256]
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
◆ FT_Done_Glyph()
Definition at line 633 of file ftglyph.c.
641 if ( clazz->glyph_done )
642 clazz->glyph_done( glyph );
const FT_Glyph_Class * clazz
typedefFT_BEGIN_HEADER struct FT_Glyph_Class_ FT_Glyph_Class
static char memory[1024 *256]
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Referenced by FT_Get_Glyph(), FT_Glyph_Copy(), FT_Glyph_Stroke(), FT_Glyph_StrokeBorder(), FT_Glyph_To_Bitmap(), ftc_inode_free(), ftGdiGlyphCacheSet(), ftGdiGlyphSet(), IntExtTextOutW(), RemoveCachedEntry(), and TextIntGetTextExtentPoint().
◆ FT_Get_Glyph()
Definition at line 363 of file ftglyph.c.
374 return FT_THROW( Invalid_Slot_Handle );
379 return FT_THROW( Invalid_Argument );
382 if (
slot->format == FT_GLYPH_FORMAT_BITMAP )
396 clazz = &
render->glyph_class;
411 if (
slot->advance.x >= 0x8000L * 64 ||
412 slot->advance.x <= -0x8000L * 64 )
414 FT_ERROR((
"FT_Get_Glyph: advance width too large\n" ));
418 if (
slot->advance.y >= 0x8000L * 64 ||
419 slot->advance.y <= -0x8000L * 64 )
421 FT_ERROR((
"FT_Get_Glyph: advance height too large\n" ));
430 error = clazz->glyph_init( glyph,
slot );
typedefFT_BEGIN_HEADER struct FT_Glyph_Class_ FT_Glyph_Class
FT_Lookup_Renderer(FT_Library library, FT_Glyph_Format format, FT_ListNode *node)
FT_Done_Glyph(FT_Glyph glyph)
#define FT_ERROR(varformat)
smooth FT_Module_Constructor FT_Module_Destructor FT_Module_Requester FT_GLYPH_FORMAT_OUTLINE
#define FT_BITMAP_GLYPH_CLASS_GET
#define FT_OUTLINE_GLYPH_CLASS_GET
Referenced by ftc_basic_family_load_glyph(), ftGdiGlyphCacheSet(), and ftGdiGlyphSet().
◆ FT_Glyph_Copy()
Definition at line 316 of file ftglyph.c.
347 if ( clazz->glyph_copy )
typedefFT_BEGIN_HEADER struct FT_Glyph_Class_ FT_Glyph_Class
FT_Done_Glyph(FT_Glyph glyph)
INT copy(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], INT append, DWORD lpdwFlags, BOOL bTouch)
Referenced by FT_Glyph_Stroke(), and FT_Glyph_StrokeBorder().
◆ FT_Glyph_Get_CBox()
Definition at line 480 of file ftglyph.c.
492 if ( !glyph || !glyph->
clazz )
495 clazz = glyph->
clazz;
496 if ( !clazz->glyph_bbox )
500 clazz->glyph_bbox( glyph, acbox );
const FT_Glyph_Class * clazz
typedefFT_BEGIN_HEADER struct FT_Glyph_Class_ FT_Glyph_Class
◆ FT_Glyph_To_Bitmap()
Definition at line 527 of file ftglyph.c.
550 clazz = glyph->
clazz;
559 if ( !clazz->glyph_prepare )
567 dummy.internal = &dummy_internal;
569 dummy.format = clazz->glyph_format;
586 error = clazz->glyph_prepare( glyph, &
dummy );
const FT_Glyph_Class * clazz
typedefFT_BEGIN_HEADER struct FT_Glyph_Class_ FT_Glyph_Class
FT_Render_Glyph_Internal(FT_Library library, FT_GlyphSlot slot, FT_Render_Mode render_mode)
ft_bitmap_glyph_init(FT_Glyph bitmap_glyph, FT_GlyphSlot slot)
struct FT_BitmapGlyphRec_ * FT_BitmapGlyph
FT_Done_Glyph(FT_Glyph glyph)
GLboolean GLboolean GLboolean b
#define FT_BITMAP_GLYPH_CLASS_GET
void destroy(_Tp *__pointer)
FT_Glyph_Transform(FT_Glyph glyph, FT_Matrix *matrix, FT_Vector *delta)
Referenced by ftGdiGlyphCacheSet(), and ftGdiGlyphSet().
◆ FT_Glyph_Transform()
Definition at line 447 of file ftglyph.c.
454 if ( !glyph || !glyph->
clazz )
461 if ( clazz->glyph_transform )
464 clazz->glyph_transform( glyph,
matrix, delta );
const FT_Glyph_Class * clazz
typedefFT_BEGIN_HEADER struct FT_Glyph_Class_ FT_Glyph_Class
FT_Vector_Transform(FT_Vector *vec, const FT_Matrix *matrix)
Referenced by FT_Glyph_To_Bitmap().
◆ ft_outline_glyph_bbox()
Definition at line 240 of file ftglyph.c.
struct FT_OutlineGlyphRec_ * FT_OutlineGlyph
FT_Outline_Get_CBox(const FT_Outline *outline, FT_BBox *acbox)
◆ ft_outline_glyph_copy()
Definition at line 203 of file ftglyph.c.
214 source->outline.n_contours,
struct FT_OutlineGlyphRec_ * FT_OutlineGlyph
FT_Outline_Copy(const FT_Outline *source, FT_Outline *target)
FT_Outline_New(FT_Library library, FT_UInt numPoints, FT_Int numContours, FT_Outline *anoutline)
◆ ft_outline_glyph_done()
ft_outline_glyph_done |
( |
FT_Glyph |
outline_glyph | ) |
|
Definition at line 193 of file ftglyph.c.
struct FT_OutlineGlyphRec_ * FT_OutlineGlyph
FT_Outline_Done(FT_Library library, FT_Outline *outline)
◆ ft_outline_glyph_prepare()
Definition at line 251 of file ftglyph.c.
struct FT_OutlineGlyphRec_ * FT_OutlineGlyph
smooth FT_Module_Constructor FT_Module_Destructor FT_Module_Requester FT_GLYPH_FORMAT_OUTLINE
◆ ft_outline_glyph_transform()
Definition at line 224 of file ftglyph.c.
struct FT_OutlineGlyphRec_ * FT_OutlineGlyph
FT_Outline_Transform(const FT_Outline *outline, const FT_Matrix *matrix)
FT_Outline_Translate(const FT_Outline *outline, FT_Pos xOffset, FT_Pos yOffset)