Documentation fixes.

This commit is contained in:
Ewald Hew 2017-08-21 14:15:12 +08:00
parent 480b026b72
commit fd7441a3b7
29 changed files with 94 additions and 42 deletions

View File

@ -1,3 +1,14 @@
/***************************************************************************/
/* */
/* cffotypes.h */
/* */
/* Basic OpenType/CFF object type definitions (specification). */
/* */
/* Copyright notice here. */
/* */
/***************************************************************************/
#ifndef CFFOTYPES_H_ #ifndef CFFOTYPES_H_
#define CFFOTYPES_H_ #define CFFOTYPES_H_
@ -84,4 +95,7 @@ FT_BEGIN_HEADER
FT_END_HEADER FT_END_HEADER
#endif #endif /* CFFOTYPES_H_ */
/* END */

View File

@ -961,7 +961,6 @@ FT_BEGIN_HEADER
typedef void typedef void
(*CFF_Builder_Close_Contour_Func)( CFF_Builder* builder ); (*CFF_Builder_Close_Contour_Func)( CFF_Builder* builder );
/* static */
typedef FT_Error typedef FT_Error
(*CFF_Builder_Add_Contour_Func)( CFF_Builder* builder ); (*CFF_Builder_Add_Contour_Func)( CFF_Builder* builder );
@ -969,7 +968,6 @@ FT_BEGIN_HEADER
typedef struct CFF_Builder_FuncsRec_ typedef struct CFF_Builder_FuncsRec_
{ {
/* static */
void void
(*init)( CFF_Builder* builder, (*init)( CFF_Builder* builder,
TT_Face face, TT_Face face,
@ -977,7 +975,6 @@ FT_BEGIN_HEADER
CFF_GlyphSlot glyph, CFF_GlyphSlot glyph,
FT_Bool hinting ); FT_Bool hinting );
/* static */
void void
(*done)( CFF_Builder* builder ); (*done)( CFF_Builder* builder );

View File

@ -1,3 +1,14 @@
/***************************************************************************/
/* */
/* svcfftl.h */
/* */
/* The FreeType CFF tables loader service (specification). */
/* */
/* Copyright notice here */
/* */
/***************************************************************************/
#ifndef SVCFFTL_H_ #ifndef SVCFFTL_H_
#define SVCFFTL_H_ #define SVCFFTL_H_

View File

@ -383,6 +383,7 @@
if ( error ) if ( error )
goto Exit; goto Exit;
/* Copy flags back for forced scaling */
hinting = glyph->hint; hinting = glyph->hint;
scaled = glyph->scaled; scaled = glyph->scaled;

View File

@ -1,3 +1,12 @@
/***************************************************************************/
/* */
/* cffdecode.c */
/* */
/* PostScript CFF (Type 2) decoding routines (body). */
/* */
/* Copyright notice here. */
/* */
/***************************************************************************/
#include <ft2build.h> #include <ft2build.h>

View File

@ -1,3 +1,13 @@
/***************************************************************************/
/* */
/* cffdecode.h */
/* */
/* PostScript CFF (Type 2) decoding routines (specification). */
/* */
/* Copyright notice here. */
/* */
/***************************************************************************/
#ifndef CFFDECODE_H_ #ifndef CFFDECODE_H_
#define CFFDECODE_H_ #define CFFDECODE_H_

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2arrst.c */ /* psarrst.c */
/* */ /* */
/* Adobe's code for Array Stacks (body). */ /* Adobe's code for Array Stacks (body). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2arrst.h */ /* psarrst.h */
/* */ /* */
/* Adobe's code for Array Stacks (specification). */ /* Adobe's code for Array Stacks (specification). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2blues.c */ /* psblues.c */
/* */ /* */
/* Adobe's code for handling Blue Zones (body). */ /* Adobe's code for handling Blue Zones (body). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2blues.h */ /* psblues.h */
/* */ /* */
/* Adobe's code for handling Blue Zones (specification). */ /* Adobe's code for handling Blue Zones (specification). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2error.c */ /* pserror.c */
/* */ /* */
/* Adobe's code for error handling (body). */ /* Adobe's code for error handling (body). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2error.h */ /* pserror.h */
/* */ /* */
/* Adobe's code for error handling (specification). */ /* Adobe's code for error handling (specification). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2fixed.h */ /* psfixed.h */
/* */ /* */
/* Adobe's code for Fixed Point Mathematics (specification only). */ /* Adobe's code for Fixed Point Mathematics (specification only). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2font.c */ /* psfont.c */
/* */ /* */
/* Adobe's code for font instances (body). */ /* Adobe's code for font instances (body). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2font.h */ /* psfont.h */
/* */ /* */
/* Adobe's code for font instances (specification). */ /* Adobe's code for font instances (specification). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2ft.c */ /* psft.c */
/* */ /* */
/* FreeType Glue Component to Adobe's Interpreter (body). */ /* FreeType Glue Component to Adobe's Interpreter (body). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2ft.h */ /* psft.h */
/* */ /* */
/* FreeType Glue Component to Adobe's Interpreter (specification). */ /* FreeType Glue Component to Adobe's Interpreter (specification). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2glue.h */ /* psglue.h */
/* */ /* */
/* Adobe's code for shared stuff (specification only). */ /* Adobe's code for shared stuff (specification only). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2hints.c */ /* pshints.c */
/* */ /* */
/* Adobe's code for handling CFF hints (body). */ /* Adobe's code for handling CFF hints (body). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2hints.h */ /* pshints.h */
/* */ /* */
/* Adobe's code for handling CFF hints (body). */ /* Adobe's code for handling CFF hints (body). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2intrp.c */ /* psintrp.c */
/* */ /* */
/* Adobe's CFF Interpreter (body). */ /* Adobe's CFF Interpreter (body). */
/* */ /* */
@ -661,6 +661,9 @@
op1 == cf2_cmdENDCHAR || op1 == cf2_cmdENDCHAR ||
op1 >= 32 /* Numbers */ ) ) op1 >= 32 /* Numbers */ ) )
{ {
/* Skip outline commands first time round. */
/* `endchar' will trigger initial hintmap build */
/* and rewind the charstring. */
cf2_stack_clear( opStack ); cf2_stack_clear( opStack );
continue; continue;
} }
@ -787,6 +790,7 @@
} }
} }
/* Add left-sidebearing correction in Type 1 mode */
cf2_doStems( font, cf2_doStems( font,
opStack, opStack,
&hStemHintArray, &hStemHintArray,
@ -816,6 +820,7 @@
} }
} }
/* Add left-sidebearing correction in Type 1 mode */
cf2_doStems( font, cf2_doStems( font,
opStack, opStack,
&vStemHintArray, &vStemHintArray,
@ -1220,6 +1225,7 @@
SUB_INT32( SUB_INT32( v2, v1 ), SUB_INT32( SUB_INT32( v2, v1 ),
cf2_stack_getReal( opStack, 3 ) ) ); cf2_stack_getReal( opStack, 3 ) ) );
/* Add left-sidebearing correction */
cf2_doStems( font, cf2_doStems( font,
opStack, opStack,
isV ? &vStemHintArray : &hStemHintArray, isV ? &vStemHintArray : &hStemHintArray,
@ -1755,6 +1761,8 @@
if ( initial_map_ready ) if ( initial_map_ready )
{ {
/* do not clear hints if initial hintmap */
/* is not ready - we need to collate all */
cf2_arrstack_clear( &vStemHintArray ); cf2_arrstack_clear( &vStemHintArray );
cf2_arrstack_clear( &hStemHintArray ); cf2_arrstack_clear( &hStemHintArray );

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2font.h */ /* psintrp.h */
/* */ /* */
/* Adobe's CFF Interpreter (specification). */ /* Adobe's CFF Interpreter (specification). */
/* */ /* */

View File

@ -2409,6 +2409,8 @@
} }
/* Synthesize a SubFont object for Type 1 fonts, for use in the */
/* new interpreter to access Private dict data */
FT_LOCAL_DEF( void ) FT_LOCAL_DEF( void )
t1_make_subfont( FT_Face face, t1_make_subfont( FT_Face face,
PS_Private priv, PS_Private priv,

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2read.c */ /* psread.c */
/* */ /* */
/* Adobe's code for stream handling (body). */ /* Adobe's code for stream handling (body). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2read.h */ /* psread.h */
/* */ /* */
/* Adobe's code for stream handling (specification). */ /* Adobe's code for stream handling (specification). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2stack.c */ /* psstack.c */
/* */ /* */
/* Adobe's code for emulating a CFF stack (body). */ /* Adobe's code for emulating a CFF stack (body). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2stack.h */ /* psstack.h */
/* */ /* */
/* Adobe's code for emulating a CFF stack (specification). */ /* Adobe's code for emulating a CFF stack (specification). */
/* */ /* */

View File

@ -1,6 +1,6 @@
/***************************************************************************/ /***************************************************************************/
/* */ /* */
/* cf2types.h */ /* pstypes.h */
/* */ /* */
/* Adobe's code for defining data types (specification only). */ /* Adobe's code for defining data types (specification only). */
/* */ /* */

View File

@ -39,23 +39,6 @@
#define FT_COMPONENT trace_t1gload #define FT_COMPONENT trace_t1gload
/*************************************************************************/
/*************************************************************************/
/*************************************************************************/
/********** *********/
/********** COMPUTE THE MAXIMUM ADVANCE WIDTH *********/
/********** *********/
/********** The following code is in charge of computing *********/
/********** the maximum advance width of the font. It *********/
/********** quickly processes each glyph charstring to *********/
/********** extract the value from either a `sbw' or `seac' *********/
/********** operator. *********/
/********** *********/
/*************************************************************************/
/*************************************************************************/
/*************************************************************************/
static FT_Error static FT_Error
T1_Parse_Glyph_And_Get_Char_String( T1_Decoder decoder, T1_Parse_Glyph_And_Get_Char_String( T1_Decoder decoder,
FT_UInt glyph_index, FT_UInt glyph_index,
@ -195,6 +178,23 @@
} }
/*************************************************************************/
/*************************************************************************/
/*************************************************************************/
/********** *********/
/********** COMPUTE THE MAXIMUM ADVANCE WIDTH *********/
/********** *********/
/********** The following code is in charge of computing *********/
/********** the maximum advance width of the font. It *********/
/********** quickly processes each glyph charstring to *********/
/********** extract the value from either a `sbw' or `seac' *********/
/********** operator. *********/
/********** *********/
/*************************************************************************/
/*************************************************************************/
/*************************************************************************/
FT_LOCAL_DEF( FT_Error ) FT_LOCAL_DEF( FT_Error )
T1_Compute_Max_Advance( T1_Face face, T1_Compute_Max_Advance( T1_Face face,
FT_Pos* max_advance ) FT_Pos* max_advance )