2695 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT 2696 #define IS_DEFAULT_INSTANCE ( !( FT_IS_NAMED_INSTANCE( glyph->face ) || \ 2697 FT_IS_VARIATION( glyph->face ) ) ) 2699 #define IS_DEFAULT_INSTANCE 1 2703 FT_TRACE1((
"TT_Load_Glyph: glyph index %d\n", glyph_index ));
2705 #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS 2708 if (
size->strike_index != 0xFFFFFFFFUL &&
2712 error = load_sbit_image(
size, glyph, glyph_index, load_flags );
2720 FT_Short left_bearing = 0, top_bearing = 0;
2721 FT_UShort advance_width = 0, advance_height = 0;
2729 if ( !
face->horz_metrics_size )
2747 glyph->
metrics.horiBearingX = left_bearing;
2748 glyph->
metrics.horiBearingY = 0;
2749 glyph->
metrics.horiAdvance = advance_width;
2751 glyph->
metrics.vertBearingX = 0;
2752 glyph->
metrics.vertBearingY = top_bearing;
2753 glyph->
metrics.vertAdvance = advance_height;
2755 glyph->
format = FT_GLYPH_FORMAT_BITMAP;
2786 size->metrics->x_scale );
2790 size->metrics->y_scale );
2824 if ( glyph->
format == FT_GLYPH_FORMAT_COMPOSITE )
2842 #ifdef TT_USE_BYTECODE_INTERPRETER 2886 size->metrics->y_ppem < 24 )
2890 #ifdef FT_DEBUG_LEVEL_TRACE 2892 FT_TRACE1((
" failed (error code 0x%x)\n",
#define FT_OUTLINE_SINGLE_PASS
#define FT_LOAD_SBITS_ONLY
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
#define IS_DEFAULT_INSTANCE
#define FT_OUTLINE_IGNORE_DROPOUTS
FT_Fixed linearHoriAdvance
FT_Fixed linearVertAdvance
static void tt_loader_done(TT_Loader loader)
#define FT_TRACE1(varformat)
TT_Get_VMetrics(TT_Face face, FT_UInt idx, FT_Pos yMax, FT_Short *tsb, FT_UShort *ah)
struct TT_FaceRec_ * TT_Face
TT_Get_HMetrics(TT_Face face, FT_UInt idx, FT_Short *lsb, FT_UShort *aw)
#define FT_OUTLINE_HIGH_PRECISION
smooth FT_Module_Constructor FT_Module_Destructor FT_Module_Requester FT_GLYPH_FORMAT_OUTLINE
static FT_Error compute_glyph_metrics(TT_Loader loader, FT_UInt glyph_index)
#define FT_OUTLINE_INCLUDE_STUBS
FT_MulFix(FT_Long a, FT_Long b)
static FT_Error load_truetype_glyph(TT_Loader loader, FT_UInt glyph_index, FT_UInt recurse_count, FT_Bool header_only)
#define FT_OUTLINE_SMART_DROPOUTS
FT_Outline_Translate(const FT_Outline *outline, FT_Pos xOffset, FT_Pos yOffset)
#define FT_LOAD_NO_BITMAP
static FT_Error tt_loader_init(TT_Loader loader, TT_Size size, TT_GlyphSlot glyph, FT_Int32 load_flags, FT_Bool glyf_table_only)
#define FT_IS_SCALABLE(face)
GLenum GLuint GLint GLenum face