Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
ttgload.c File Reference
#include <ft2build.h>
#include "ttgload.h"
#include "ttpload.h"
#include "tterrors.h"
#include "ttsubpix.h"

Go to the source code of this file.

Macros

#define FT_COMPONENT   trace_ttgload
 
#define ARGS_ARE_WORDS   0x0001
 
#define ARGS_ARE_XY_VALUES   0x0002
 
#define ROUND_XY_TO_GRID   0x0004
 
#define WE_HAVE_A_SCALE   0x0008
 
#define MORE_COMPONENTS   0x0020
 
#define WE_HAVE_AN_XY_SCALE   0x0040
 
#define WE_HAVE_A_2X2   0x0080
 
#define WE_HAVE_INSTR   0x0100
 
#define USE_MY_METRICS   0x0200
 
#define OVERLAP_COMPOUND   0x0400
 
#define SCALED_COMPONENT_OFFSET   0x0800
 
#define UNSCALED_COMPONENT_OFFSET   0x1000
 
#define TT_LOADER_SET_PP(loader)
 

Functions

 TT_Get_HMetrics (TT_Face face, FT_UInt idx, FT_Short *lsb, FT_UShort *aw)
 
 TT_Get_VMetrics (TT_Face face, FT_UInt idx, FT_Short *tsb, FT_UShort *ah)
 
 TT_Access_Glyph_Frame (TT_Loader loader, FT_UInt glyph_index, FT_ULong offset, FT_UInt byte_count)
 
 TT_Forget_Glyph_Frame (TT_Loader loader)
 
 TT_Load_Glyph_Header (TT_Loader loader)
 
 TT_Load_Simple_Glyph (TT_Loader load)
 
 TT_Load_Composite_Glyph (TT_Loader loader)
 
 TT_Init_Glyph_Loading (TT_Face face)
 
 TT_Load_Glyph (TT_Size size, TT_GlyphSlot glyph, FT_UInt glyph_index, FT_Int32 load_flags)
 

Macro Definition Documentation

◆ ARGS_ARE_WORDS

#define ARGS_ARE_WORDS   0x0001

Definition at line 52 of file ttgload.c.

Referenced by TT_Load_Composite_Glyph().

◆ ARGS_ARE_XY_VALUES

#define ARGS_ARE_XY_VALUES   0x0002

Definition at line 53 of file ttgload.c.

◆ FT_COMPONENT

#define FT_COMPONENT   trace_ttgload

Definition at line 45 of file ttgload.c.

◆ MORE_COMPONENTS

#define MORE_COMPONENTS   0x0020

Definition at line 57 of file ttgload.c.

Referenced by TT_Load_Composite_Glyph().

◆ OVERLAP_COMPOUND

#define OVERLAP_COMPOUND   0x0400

Definition at line 62 of file ttgload.c.

◆ ROUND_XY_TO_GRID

#define ROUND_XY_TO_GRID   0x0004

Definition at line 54 of file ttgload.c.

◆ SCALED_COMPONENT_OFFSET

#define SCALED_COMPONENT_OFFSET   0x0800

Definition at line 63 of file ttgload.c.

◆ TT_LOADER_SET_PP

#define TT_LOADER_SET_PP (   loader)
Value:
do { \
(loader)->pp1.x = (loader)->bbox.xMin - (loader)->left_bearing; \
(loader)->pp1.y = 0; \
(loader)->pp2.x = (loader)->pp1.x + (loader)->advance; \
(loader)->pp2.y = 0; \
(loader)->pp3.x = 0; \
(loader)->pp3.y = (loader)->top_bearing + (loader)->bbox.yMax; \
(loader)->pp4.x = 0; \
(loader)->pp4.y = (loader)->pp3.y - (loader)->vadvance; \
} while ( 0 )
FT_BBox bbox
Definition: ftbbox.c:565
FT_Pos yMax
Definition: ftimage.h:119

Definition at line 1232 of file ttgload.c.

◆ UNSCALED_COMPONENT_OFFSET

#define UNSCALED_COMPONENT_OFFSET   0x1000

Definition at line 64 of file ttgload.c.

◆ USE_MY_METRICS

#define USE_MY_METRICS   0x0200

Definition at line 61 of file ttgload.c.

◆ WE_HAVE_A_2X2

#define WE_HAVE_A_2X2   0x0080

Definition at line 59 of file ttgload.c.

Referenced by TT_Load_Composite_Glyph().

◆ WE_HAVE_A_SCALE

#define WE_HAVE_A_SCALE   0x0008

Definition at line 55 of file ttgload.c.

Referenced by TT_Load_Composite_Glyph().

◆ WE_HAVE_AN_XY_SCALE

#define WE_HAVE_AN_XY_SCALE   0x0040

Definition at line 58 of file ttgload.c.

Referenced by TT_Load_Composite_Glyph().

◆ WE_HAVE_INSTR

#define WE_HAVE_INSTR   0x0100

Definition at line 60 of file ttgload.c.

Function Documentation

◆ TT_Access_Glyph_Frame()

TT_Access_Glyph_Frame ( TT_Loader  loader,
FT_UInt  glyph_index,
FT_ULong  offset,
FT_UInt  byte_count 
)

◆ TT_Forget_Glyph_Frame()

TT_Forget_Glyph_Frame ( TT_Loader  loader)

Definition at line 300 of file ttgload.c.

References FT_CALLBACK_DEF, FT_FRAME_EXIT, and TT_LoaderRec_::stream.

Referenced by TT_Init_Glyph_Loading().

◆ TT_Get_HMetrics()

TT_Get_HMetrics ( TT_Face  face,
FT_UInt  idx,
FT_Short lsb,
FT_UShort aw 
)

Definition at line 72 of file ttgload.c.

References FT_LOCAL_DEF, and FT_TRACE5.

◆ TT_Get_VMetrics()

TT_Get_VMetrics ( TT_Face  face,
FT_UInt  idx,
FT_Short tsb,
FT_UShort ah 
)

Definition at line 95 of file ttgload.c.

References FT_TRACE5, and idx.

◆ TT_Init_Glyph_Loading()

TT_Init_Glyph_Loading ( TT_Face  face)

◆ TT_Load_Composite_Glyph()

TT_Load_Composite_Glyph ( TT_Loader  loader)

◆ TT_Load_Glyph()

TT_Load_Glyph ( TT_Size  size,
TT_GlyphSlot  glyph,
FT_UInt  glyph_index,
FT_Int32  load_flags 
)

Definition at line 2139 of file ttgload.c.

References error, FT_Err_Ok, FT_IS_SCALABLE, FT_LOAD_NO_BITMAP, and void().

◆ TT_Load_Glyph_Header()

TT_Load_Glyph_Header ( TT_Loader  loader)

◆ TT_Load_Simple_Glyph()

TT_Load_Simple_Glyph ( TT_Loader  load)