40 #include FT_INTERNAL_DEBUG_H 46 #define CF2_MAX_SIZE cf2_intToFixed( 2000 ) 65 FT_ASSERT( transform->
b == 0 && transform->
c == 0 );
68 if ( unitsPerEm > 0x7FFF )
73 if ( transform->
a > maxScale || transform->
d > maxScale )
95 cf2_free_instance(
void*
ptr )
324 FT_ASSERT( charstring_base + charstring_len >= charstring_base );
328 buf.ptr = charstring_base;
329 buf.end = charstring_base + charstring_len;
333 cf2_getScaleAndHintFlag( decoder,
342 if ( scaled && !driver->no_stem_darkening )
349 error2 = cf2_checkTransform( &transform, font->
unitsPerEm );
355 return FT_ERR( Invalid_File_Format );
357 cf2_setGlyphWidth( &font->
outline, glyphWidth );
450 FT_ASSERT( decoder && decoder->current_subfont );
452 *count = decoder->current_subfont->private_dict.num_other_blues;
454 &decoder->current_subfont->private_dict.other_blues;
463 FT_ASSERT( decoder && decoder->current_subfont );
465 *count = decoder->current_subfont->private_dict.num_family_blues;
467 &decoder->current_subfont->private_dict.family_blues;
476 FT_ASSERT( decoder && decoder->current_subfont );
478 *count = decoder->current_subfont->private_dict.num_family_other_blues;
480 &decoder->current_subfont->private_dict.family_other_blues;
487 FT_ASSERT( decoder && decoder->current_subfont );
489 return decoder->current_subfont->private_dict.language_group;
535 return FT_THROW( Invalid_Glyph_Format );
548 buf->start = charstring;
549 buf->end = charstring +
len;
cf2_getStdVW(CFF_Decoder *decoder)
cff_builder_close_contour(CFF_Builder *builder)
#define FT_ALLOC(ptr, size)
cf2_getFamilyOtherBlues(CFF_Decoder *decoder, size_t *count, FT_Pos **data)
FT_DivFix(FT_Long a, FT_Long b)
cf2_freeSeacComponent(CFF_Decoder *decoder, CF2_Buffer buf)
FT_BEGIN_HEADER typedef signed long FT_Pos
struct CF2_FontRec_ * CF2_Font
FT_BEGIN_HEADER struct CF2_BufferRec_ CF2_BufferRec
FT_Generic_Finalizer finalizer
cff_get_glyph_data(TT_Face face, FT_UInt glyph_index, FT_Byte **pointer, FT_ULong *length)
#define FT_MEM_ZERO(dest, count)
cf2_getOtherBlues(CFF_Decoder *decoder, size_t *count, FT_Pos **data)
cff_builder_add_point1(CFF_Builder *builder, FT_Pos x, FT_Pos y)
void(* FT_Generic_Finalizer)(void *object)
return FT_THROW(Missing_Property)
#define CF2_FlagsDarkened
cff_lookup_glyph_by_stdcharcode(CFF_Font cff, FT_Int charcode)
CF2_OutlineCallbacksRec root
struct CF2_OutlineRec_ * CF2_Outline
cf2_getFamilyBlues(CFF_Decoder *decoder, size_t *count, FT_Pos **data)
GLint GLint GLsizei width
cf2_initLocalRegionBuffer(CFF_Decoder *decoder, CF2_UInt idx, CF2_Buffer buf)
cf2_getSeacComponent(CFF_Decoder *decoder, CF2_UInt code, CF2_Buffer buf)
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
cf2_getBlueValues(CFF_Decoder *decoder, size_t *count, FT_Pos **data)
#define FT_FACE_DRIVER(x)
FT_BEGIN_HEADER typedef unsigned char FT_Bool
cf2_getLanguageGroup(CFF_Decoder *decoder)
GLenum GLuint GLenum GLsizei const GLchar * buf
CF2_RenderingFlags renderingFlags
#define FT_ASSERT(condition)
FT_GlyphLoader_Add(FT_GlyphLoader loader)
cf2_getGlyphWidth(CF2_Font font, CF2_Buffer charstring, const CF2_Matrix *transform, CF2_F16Dot16 *glyphWidth)
cf2_getSubfont(CFF_Decoder *decoder)
cf2_getDefaultWidthX(CFF_Decoder *decoder)
GLsizei GLsizei GLenum GLenum const GLvoid * data
#define cf2_intToFixed(i)
#define cf2_fixedToInt(x)
CFF_PrivateRec private_dict
cf2_outline_reset(CF2_Outline outline)
cf2_getBlueMetrics(CFF_Decoder *decoder, CF2_Fixed *blueScale, CF2_Fixed *blueShift, CF2_Fixed *blueFuzz)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
cff_check_points(CFF_Builder *builder, FT_Int count)
cf2_getNominalWidthX(CFF_Decoder *decoder)
if(!abbox) return FT_THROW(Invalid_Argument)
GLenum const GLfloat * params
cff_builder_add_point(CFF_Builder *builder, FT_Pos x, FT_Pos y, FT_Byte flag)
typedefFT_BEGIN_HEADER struct CFF_DriverRec_ * CFF_Driver
cf2_getPpemY(CFF_Decoder *decoder)
FT_GlyphLoader_Rewind(FT_GlyphLoader loader)
cf2_outline_close(CF2_Outline outline)
GLuint GLenum GLenum transform
GLuint GLuint GLsizei count
cf2_initGlobalRegionBuffer(CFF_Decoder *decoder, CF2_UInt idx, CF2_Buffer buf)
cf2_getStdHW(CFF_Decoder *decoder)
cff_free_glyph_data(TT_Face face, FT_Byte **pointer, FT_ULong length)
cf2_decoder_parse_charstrings(CFF_Decoder *decoder, FT_Byte *charstring_base, FT_ULong charstring_len)
CFF_SubFont current_subfont
FT_BEGIN_HEADER struct CF2_BufferRec_ * CF2_Buffer
cff_builder_start_point(CFF_Builder *builder, FT_Pos x, FT_Pos y)