21#include FT_INTERNAL_CALC_H
22#include FT_INTERNAL_DEBUG_H
23#include FT_INTERNAL_STREAM_H
25#include FT_INTERNAL_POSTSCRIPT_AUX_H
26#include FT_INTERNAL_CFF_TYPES_H
39#define FT_COMPONENT trace_t1gload
56#ifdef FT_CONFIG_OPTION_INCREMENTAL
58 face->root.internal->incremental_interface;
61#ifdef T1_CONFIG_OPTION_OLD_ENGINE
68#ifdef FT_CONFIG_OPTION_INCREMENTAL
74 glyph_index, char_string );
81 char_string->
pointer = type1->charstrings[glyph_index];
82 char_string->
length = (
FT_Int)type1->charstrings_len[glyph_index];
88#ifdef T1_CONFIG_OPTION_OLD_ENGINE
91 error = decoder_funcs->parse_charstrings_old(
107 psaux->ps_decoder_init( &psdecoder, decoder,
TRUE );
110 &
face->type1.private_dict, &subfont );
127 *force_scaling =
TRUE;
137#ifdef FT_CONFIG_OPTION_INCREMENTAL
171 decoder, glyph_index, &glyph_data,
175#ifdef FT_CONFIG_OPTION_INCREMENTAL
182 if (
face->root.internal->incremental_interface )
183 face->root.internal->incremental_interface->funcs->free_glyph_data(
184 face->root.internal->incremental_interface->object,
222#define decoder (*decoder)
270 for ( glyph_index = 0; glyph_index < type1->
num_glyphs; glyph_index++ )
304#define decoder (*decoder)
317 for ( nn = 0; nn <
count; nn++ )
356 for ( nn = 0; nn <
count; nn++ )
378 FT_Int32 load_flags )
387#define decoder (*decoder)
404#ifdef FT_CONFIG_OPTION_INCREMENTAL
409#ifdef FT_CONFIG_OPTION_INCREMENTAL
410 if ( glyph_index >= (
FT_UInt)
face->root.num_glyphs &&
411 !
face->root.internal->incremental_interface )
413 if ( glyph_index >= (
FT_UInt)
face->root.num_glyphs )
420 FT_TRACE1((
"T1_Load_Glyph: glyph index %d\n", glyph_index ));
429 glyph->
x_scale = t1size->metrics.x_scale;
430 glyph->
y_scale = t1size->metrics.y_scale;
438 t1glyph->outline.n_points = 0;
439 t1glyph->outline.n_contours = 0;
445 glyph->
hint = hinting;
461 must_finish_decoder =
TRUE;
467 decoder.
subrs = type1->subrs;
480#ifdef FT_CONFIG_OPTION_INCREMENTAL
481 glyph_data_loaded = 1;
484 hinting = glyph->
hint;
489 decoder_funcs->
done( &decoder );
491 must_finish_decoder =
FALSE;
508 t1glyph->metrics.horiBearingX =
510 t1glyph->metrics.horiAdvance =
513 internal->glyph_matrix = font_matrix;
514 internal->glyph_delta = font_offset;
526 t1glyph->linearHoriAdvance =
528 t1glyph->internal->glyph_transformed = 0;
533 metrics->vertAdvance = (
face->type1.font_bbox.yMax -
534 face->type1.font_bbox.yMin ) >> 16;
535 t1glyph->linearVertAdvance =
metrics->vertAdvance;
541 t1glyph->linearVertAdvance =
547 if ( t1size && t1size->metrics.y_ppem < 24 )
552 if ( font_matrix.
xx != 0x10000L || font_matrix.
yy != 0x10000L ||
553 font_matrix.
xy != 0 || font_matrix.
yx != 0 )
563 if ( font_offset.
x || font_offset.
y )
569 metrics->horiAdvance += font_offset.
x;
570 metrics->vertAdvance += font_offset.
y;
586 for (
n =
cur->n_points;
n > 0;
n--,
vec++ )
617 t1glyph->control_len = glyph_data.
length;
623#ifdef FT_CONFIG_OPTION_INCREMENTAL
624 if ( glyph_data_loaded &&
face->root.internal->incremental_interface )
626 face->root.internal->incremental_interface->funcs->free_glyph_data(
627 face->root.internal->incremental_interface->object,
632 t1glyph->control_data =
NULL;
633 t1glyph->control_len = 0;
637 if ( must_finish_decoder )
638 decoder_funcs->
done( &decoder );
ios_base &_STLP_CALL internal(ios_base &__s)
#define FT_LOAD_VERTICAL_LAYOUT
#define FT_LOAD_TARGET_MODE(x)
FT_BEGIN_HEADER struct FT_Glyph_Metrics_ FT_Glyph_Metrics
#define FT_LOAD_NO_RECURSE
#define FT_LOAD_NO_HINTING
FT_MulFix(FT_Long a, FT_Long b)
#define FT_CALLBACK_DEF(x)
#define FT_ASSERT(condition)
#define FT_TRACE1(varformat)
#define FT_HINTING_FREETYPE
#define FT_OUTLINE_HIGH_PRECISION
#define FT_OUTLINE_REVERSE_FILL
FT_BEGIN_HEADER typedef signed long FT_Pos
ft_synthesize_vertical_metrics(FT_Glyph_Metrics *metrics, FT_Pos advance)
#define FT_FACE_DRIVER(x)
FT_Outline_Translate(const FT_Outline *outline, FT_Pos xOffset, FT_Pos yOffset)
FT_Outline_Transform(const FT_Outline *outline, const FT_Matrix *matrix)
FT_Outline_Get_CBox(const FT_Outline *outline, FT_BBox *acbox)
smooth FT_Module_Constructor FT_Module_Destructor FT_Module_Requester FT_GLYPH_FORMAT_OUTLINE
FT_BEGIN_HEADER typedef unsigned char FT_Bool
GLuint GLuint GLsizei count
GLenum GLuint GLint GLenum face
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
struct @1646::@1647 driver
FT_BEGIN_HEADER struct PS_DriverRec_ * PS_Driver
struct PSAux_ServiceRec_ * PSAux_Service
FT_Incremental_GetGlyphDataFunc get_glyph_data
FT_Incremental_GetGlyphMetricsFunc get_glyph_metrics
const FT_Incremental_FuncsRec * funcs
const T1_Decoder_FuncsRec * t1_decoder_funcs
CFF_SubFont current_subfont
void(* done)(T1_Decoder decoder)
FT_Error(* parse_charstrings)(PS_Decoder *decoder, FT_Byte *charstring_base, FT_ULong charstring_len)
FT_Error(* parse_metrics)(T1_Decoder decoder, FT_Byte *base, FT_UInt len)
FT_Error(* init)(T1_Decoder decoder, FT_Face face, FT_Size size, FT_GlyphSlot slot, FT_Byte **glyph_names, PS_Blend blend, FT_Bool hinting, FT_Render_Mode hint_mode, T1_Decoder_Callback callback)
T1_Get_Advances(FT_Face t1face, FT_UInt first, FT_UInt count, FT_Int32 load_flags, FT_Fixed *advances)
T1_Compute_Max_Advance(T1_Face face, FT_Pos *max_advance)
T1_Load_Glyph(FT_GlyphSlot t1glyph, FT_Size t1size, FT_UInt glyph_index, FT_Int32 load_flags)
T1_Parse_Glyph(T1_Decoder decoder, FT_UInt glyph_index)
static FT_Error T1_Parse_Glyph_And_Get_Char_String(T1_Decoder decoder, FT_UInt glyph_index, FT_Data *char_string, FT_Bool *force_scaling)
struct T1_GlyphSlotRec_ * T1_GlyphSlot
struct T1_FaceRec_ * T1_Face