Prepare source code for amalgamation (6/6).
* src/cff/cffdrivr.c: s/Load_Glyph/cff_glyph_load/. * src/cid/cidload.c: s/parse_font_matrix/cid_parse_font_matrix/. s/t1_init_loader/cid_init_loader/. s/t1_done_loader/cid_done_loader/. * src/pxaux/t1cmap.c: s/t1_get_glyph_name/psaux_get_glyph_name/. * src/truetype/ttdriver.c: s/Load_Glyph/tt_glyph_load/. * src/type1/t1load.c: s/parse_font_matrix/t1_parse_font_matrix/.
This commit is contained in:
parent
1b99d0a01c
commit
6b5b6f39e7
16
ChangeLog
16
ChangeLog
|
@ -1,3 +1,19 @@
|
|||
2012-02-24 Vinnie Falco <vinnie.falco@gmail.com>
|
||||
|
||||
Prepare source code for amalgamation (6/6).
|
||||
|
||||
* src/cff/cffdrivr.c: s/Load_Glyph/cff_glyph_load/.
|
||||
|
||||
* src/cid/cidload.c: s/parse_font_matrix/cid_parse_font_matrix/.
|
||||
s/t1_init_loader/cid_init_loader/.
|
||||
s/t1_done_loader/cid_done_loader/.
|
||||
|
||||
* src/pxaux/t1cmap.c: s/t1_get_glyph_name/psaux_get_glyph_name/.
|
||||
|
||||
* src/truetype/ttdriver.c: s/Load_Glyph/tt_glyph_load/.
|
||||
|
||||
* src/type1/t1load.c: s/parse_font_matrix/t1_parse_font_matrix/.
|
||||
|
||||
2012-02-24 Vinnie Falco <vinnie.falco@gmail.com>
|
||||
|
||||
Prepare source code for amalgamation (5/6).
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* OpenType font driver implementation (body). */
|
||||
/* */
|
||||
/* Copyright 1996-2011 by */
|
||||
/* Copyright 1996-2012 by */
|
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
@ -125,7 +125,7 @@
|
|||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Function> */
|
||||
/* Load_Glyph */
|
||||
/* cff_glyph_load */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* A driver method used to load a glyph within a given glyph slot. */
|
||||
|
@ -149,10 +149,10 @@
|
|||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
FT_CALLBACK_DEF( FT_Error )
|
||||
Load_Glyph( FT_GlyphSlot cffslot, /* CFF_GlyphSlot */
|
||||
FT_Size cffsize, /* CFF_Size */
|
||||
FT_UInt glyph_index,
|
||||
FT_Int32 load_flags )
|
||||
cff_glyph_load( FT_GlyphSlot cffslot, /* CFF_GlyphSlot */
|
||||
FT_Size cffsize, /* CFF_Size */
|
||||
FT_UInt glyph_index,
|
||||
FT_Int32 load_flags )
|
||||
{
|
||||
FT_Error error;
|
||||
CFF_GlyphSlot slot = (CFF_GlyphSlot)cffslot;
|
||||
|
@ -203,7 +203,7 @@
|
|||
|
||||
for ( nn = 0; nn < count; nn++ )
|
||||
{
|
||||
error = Load_Glyph( slot, face->size, start + nn, flags );
|
||||
error = cff_glyph_load( slot, face->size, start + nn, flags );
|
||||
if ( error )
|
||||
break;
|
||||
|
||||
|
@ -673,7 +673,7 @@
|
|||
ft_stub_set_char_sizes, /* FT_CONFIG_OPTION_OLD_INTERNALS */
|
||||
ft_stub_set_pixel_sizes, /* FT_CONFIG_OPTION_OLD_INTERNALS */
|
||||
|
||||
Load_Glyph,
|
||||
cff_glyph_load,
|
||||
|
||||
cff_get_kerning,
|
||||
0, /* FT_Face_AttachFunc */
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* CID-keyed Type1 font loader (body). */
|
||||
/* */
|
||||
/* Copyright 1996-2006, 2009, 2011 by */
|
||||
/* Copyright 1996-2006, 2009, 2011-2012 by */
|
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
@ -147,8 +147,8 @@
|
|||
|
||||
|
||||
FT_CALLBACK_DEF( FT_Error )
|
||||
parse_font_matrix( CID_Face face,
|
||||
CID_Parser* parser )
|
||||
cid_parse_font_matrix( CID_Face face,
|
||||
CID_Parser* parser )
|
||||
{
|
||||
FT_Matrix* matrix;
|
||||
FT_Vector* offset;
|
||||
|
@ -268,7 +268,7 @@
|
|||
#include "cidtoken.h"
|
||||
|
||||
T1_FIELD_CALLBACK( "FDArray", parse_fd_array, 0 )
|
||||
T1_FIELD_CALLBACK( "FontMatrix", parse_font_matrix, 0 )
|
||||
T1_FIELD_CALLBACK( "FontMatrix", cid_parse_font_matrix, 0 )
|
||||
T1_FIELD_CALLBACK( "ExpansionFactor", parse_expansion_factor, 0 )
|
||||
|
||||
{ 0, T1_FIELD_LOCATION_CID_INFO, T1_FIELD_TYPE_NONE, 0, 0, 0, 0, 0, 0 }
|
||||
|
@ -513,8 +513,8 @@
|
|||
|
||||
|
||||
static void
|
||||
t1_init_loader( CID_Loader* loader,
|
||||
CID_Face face )
|
||||
cid_init_loader( CID_Loader* loader,
|
||||
CID_Face face )
|
||||
{
|
||||
FT_UNUSED( face );
|
||||
|
||||
|
@ -522,8 +522,8 @@
|
|||
}
|
||||
|
||||
|
||||
static void
|
||||
t1_done_loader( CID_Loader* loader )
|
||||
static void
|
||||
cid_done_loader( CID_Loader* loader )
|
||||
{
|
||||
CID_Parser* parser = &loader->parser;
|
||||
|
||||
|
@ -641,7 +641,7 @@
|
|||
FT_Error error;
|
||||
|
||||
|
||||
t1_init_loader( &loader, face );
|
||||
cid_init_loader( &loader, face );
|
||||
|
||||
parser = &loader.parser;
|
||||
error = cid_parser_new( parser, face->root.stream, face->root.memory,
|
||||
|
@ -682,7 +682,7 @@
|
|||
error = cid_read_subrs( face );
|
||||
|
||||
Exit:
|
||||
t1_done_loader( &loader );
|
||||
cid_done_loader( &loader );
|
||||
return error;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* Type 1 character map support (body). */
|
||||
/* */
|
||||
/* Copyright 2002, 2003, 2006, 2007 by */
|
||||
/* Copyright 2002, 2003, 2006, 2007, 2012 by */
|
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
@ -264,8 +264,8 @@
|
|||
/*************************************************************************/
|
||||
|
||||
FT_CALLBACK_DEF( const char * )
|
||||
t1_get_glyph_name( T1_Face face,
|
||||
FT_UInt idx )
|
||||
psaux_get_glyph_name( T1_Face face,
|
||||
FT_UInt idx )
|
||||
{
|
||||
return face->type1.glyph_names[idx];
|
||||
}
|
||||
|
@ -282,7 +282,7 @@
|
|||
return psnames->unicodes_init( memory,
|
||||
unicodes,
|
||||
face->type1.num_glyphs,
|
||||
(PS_GetGlyphNameFunc)&t1_get_glyph_name,
|
||||
(PS_GetGlyphNameFunc)&psaux_get_glyph_name,
|
||||
(PS_FreeGlyphNameFunc)NULL,
|
||||
(FT_Pointer)face );
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* TrueType font driver implementation (body). */
|
||||
/* */
|
||||
/* Copyright 1996-2011 by */
|
||||
/* Copyright 1996-2012 by */
|
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
@ -258,7 +258,7 @@
|
|||
/*************************************************************************/
|
||||
/* */
|
||||
/* <Function> */
|
||||
/* Load_Glyph */
|
||||
/* tt_glyph_load */
|
||||
/* */
|
||||
/* <Description> */
|
||||
/* A driver method used to load a glyph within a given glyph slot. */
|
||||
|
@ -282,10 +282,10 @@
|
|||
/* FreeType error code. 0 means success. */
|
||||
/* */
|
||||
static FT_Error
|
||||
Load_Glyph( FT_GlyphSlot ttslot, /* TT_GlyphSlot */
|
||||
FT_Size ttsize, /* TT_Size */
|
||||
FT_UInt glyph_index,
|
||||
FT_Int32 load_flags )
|
||||
tt_glyph_load( FT_GlyphSlot ttslot, /* TT_GlyphSlot */
|
||||
FT_Size ttsize, /* TT_Size */
|
||||
FT_UInt glyph_index,
|
||||
FT_Int32 load_flags )
|
||||
{
|
||||
TT_GlyphSlot slot = (TT_GlyphSlot)ttslot;
|
||||
TT_Size size = (TT_Size)ttsize;
|
||||
|
@ -488,7 +488,7 @@
|
|||
ft_stub_set_char_sizes, /* FT_CONFIG_OPTION_OLD_INTERNALS */
|
||||
ft_stub_set_pixel_sizes, /* FT_CONFIG_OPTION_OLD_INTERNALS */
|
||||
|
||||
Load_Glyph,
|
||||
tt_glyph_load,
|
||||
|
||||
tt_get_kerning,
|
||||
0, /* FT_Face_AttachFunc */
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* Type 1 font loader (body). */
|
||||
/* */
|
||||
/* Copyright 1996-2011 by */
|
||||
/* Copyright 1996-2012 by */
|
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
@ -1075,8 +1075,8 @@
|
|||
/* and `/CharStrings' dictionaries. */
|
||||
|
||||
static void
|
||||
parse_font_matrix( T1_Face face,
|
||||
T1_Loader loader )
|
||||
t1_parse_font_matrix( T1_Face face,
|
||||
T1_Loader loader )
|
||||
{
|
||||
T1_Parser parser = &loader->parser;
|
||||
FT_Matrix* matrix = &face->type1.font_matrix;
|
||||
|
@ -1099,7 +1099,7 @@
|
|||
|
||||
if ( temp_scale == 0 )
|
||||
{
|
||||
FT_ERROR(( "parse_font_matrix: invalid font matrix\n" ));
|
||||
FT_ERROR(( "t1_parse_font_matrix: invalid font matrix\n" ));
|
||||
parser->root.error = T1_Err_Invalid_File_Format;
|
||||
return;
|
||||
}
|
||||
|
@ -1772,7 +1772,7 @@
|
|||
#include "t1tokens.h"
|
||||
|
||||
/* now add the special functions... */
|
||||
T1_FIELD_CALLBACK( "FontMatrix", parse_font_matrix,
|
||||
T1_FIELD_CALLBACK( "FontMatrix", t1_parse_font_matrix,
|
||||
T1_FIELD_DICT_FONTDICT )
|
||||
T1_FIELD_CALLBACK( "Encoding", parse_encoding,
|
||||
T1_FIELD_DICT_FONTDICT )
|
||||
|
|
|
@ -465,7 +465,7 @@
|
|||
root->bbox.xMax = ( type1->font_bbox.xMax + 0xFFFF ) >> 16;
|
||||
root->bbox.yMax = ( type1->font_bbox.yMax + 0xFFFF ) >> 16;
|
||||
|
||||
/* Set units_per_EM if we didn't set it in parse_font_matrix. */
|
||||
/* Set units_per_EM if we didn't set it in t1_parse_font_matrix. */
|
||||
if ( !root->units_per_EM )
|
||||
root->units_per_EM = 1000;
|
||||
|
||||
|
|
Loading…
Reference in New Issue