summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEwald Hew <ewaldhew@gmail.com>2017-08-21 14:15:12 +0800
committerEwald Hew <ewaldhew@gmail.com>2017-08-28 08:29:08 +0800
commitea2f74f98236b9adc1fabc3b01fa968e591ea6f6 (patch)
tree4cc57e1ef6331d24d9b80e1a85e98b9cc342df5e
parent14c9575aea8c73b1cf990ba5935a57191477d807 (diff)
downloadfreetype2-ea2f74f98236b9adc1fabc3b01fa968e591ea6f6.tar.gz
Documentation fixes.
-rw-r--r--include/freetype/internal/cffotypes.h16
-rw-r--r--include/freetype/internal/psaux.h3
-rw-r--r--include/freetype/internal/services/svcfftl.h11
-rw-r--r--src/cid/cidgload.c1
-rw-r--r--src/psaux/cffdecode.c9
-rw-r--r--src/psaux/cffdecode.h10
-rw-r--r--src/psaux/psarrst.c2
-rw-r--r--src/psaux/psarrst.h2
-rw-r--r--src/psaux/psblues.c2
-rw-r--r--src/psaux/psblues.h2
-rw-r--r--src/psaux/pserror.c2
-rw-r--r--src/psaux/pserror.h2
-rw-r--r--src/psaux/psfixed.h2
-rw-r--r--src/psaux/psfont.c2
-rw-r--r--src/psaux/psfont.h2
-rw-r--r--src/psaux/psft.c2
-rw-r--r--src/psaux/psft.h2
-rw-r--r--src/psaux/psglue.h2
-rw-r--r--src/psaux/pshints.c2
-rw-r--r--src/psaux/pshints.h2
-rw-r--r--src/psaux/psintrp.c10
-rw-r--r--src/psaux/psintrp.h2
-rw-r--r--src/psaux/psobjs.c2
-rw-r--r--src/psaux/psread.c2
-rw-r--r--src/psaux/psread.h2
-rw-r--r--src/psaux/psstack.c2
-rw-r--r--src/psaux/psstack.h2
-rw-r--r--src/psaux/pstypes.h2
-rw-r--r--src/type1/t1gload.c34
29 files changed, 94 insertions, 42 deletions
diff --git a/include/freetype/internal/cffotypes.h b/include/freetype/internal/cffotypes.h
index 32f7d32ad..570a92edf 100644
--- a/include/freetype/internal/cffotypes.h
+++ b/include/freetype/internal/cffotypes.h
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* */
+/* cffotypes.h */
+/* */
+/* Basic OpenType/CFF object type definitions (specification). */
+/* */
+/* Copyright notice here. */
+/* */
+/***************************************************************************/
+
+
#ifndef CFFOTYPES_H_
#define CFFOTYPES_H_
@@ -84,4 +95,7 @@ FT_BEGIN_HEADER
FT_END_HEADER
-#endif
+#endif /* CFFOTYPES_H_ */
+
+
+/* END */
diff --git a/include/freetype/internal/psaux.h b/include/freetype/internal/psaux.h
index c287974a5..d37b6e5d4 100644
--- a/include/freetype/internal/psaux.h
+++ b/include/freetype/internal/psaux.h
@@ -961,7 +961,6 @@ FT_BEGIN_HEADER
typedef void
(*CFF_Builder_Close_Contour_Func)( CFF_Builder* builder );
- /* static */
typedef FT_Error
(*CFF_Builder_Add_Contour_Func)( CFF_Builder* builder );
@@ -969,7 +968,6 @@ FT_BEGIN_HEADER
typedef struct CFF_Builder_FuncsRec_
{
- /* static */
void
(*init)( CFF_Builder* builder,
TT_Face face,
@@ -977,7 +975,6 @@ FT_BEGIN_HEADER
CFF_GlyphSlot glyph,
FT_Bool hinting );
- /* static */
void
(*done)( CFF_Builder* builder );
diff --git a/include/freetype/internal/services/svcfftl.h b/include/freetype/internal/services/svcfftl.h
index 46630415a..a47debf1f 100644
--- a/include/freetype/internal/services/svcfftl.h
+++ b/include/freetype/internal/services/svcfftl.h
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* */
+/* svcfftl.h */
+/* */
+/* The FreeType CFF tables loader service (specification). */
+/* */
+/* Copyright notice here */
+/* */
+/***************************************************************************/
+
+
#ifndef SVCFFTL_H_
#define SVCFFTL_H_
diff --git a/src/cid/cidgload.c b/src/cid/cidgload.c
index 2194151a6..e8a2be3ea 100644
--- a/src/cid/cidgload.c
+++ b/src/cid/cidgload.c
@@ -383,6 +383,7 @@
if ( error )
goto Exit;
+ /* Copy flags back for forced scaling */
hinting = glyph->hint;
scaled = glyph->scaled;
diff --git a/src/psaux/cffdecode.c b/src/psaux/cffdecode.c
index dceb91652..4fbb9d1e5 100644
--- a/src/psaux/cffdecode.c
+++ b/src/psaux/cffdecode.c
@@ -1,3 +1,12 @@
+/***************************************************************************/
+/* */
+/* cffdecode.c */
+/* */
+/* PostScript CFF (Type 2) decoding routines (body). */
+/* */
+/* Copyright notice here. */
+/* */
+/***************************************************************************/
#include <ft2build.h>
diff --git a/src/psaux/cffdecode.h b/src/psaux/cffdecode.h
index 1b021b720..4243ca699 100644
--- a/src/psaux/cffdecode.h
+++ b/src/psaux/cffdecode.h
@@ -1,3 +1,13 @@
+/***************************************************************************/
+/* */
+/* cffdecode.h */
+/* */
+/* PostScript CFF (Type 2) decoding routines (specification). */
+/* */
+/* Copyright notice here. */
+/* */
+/***************************************************************************/
+
#ifndef CFFDECODE_H_
#define CFFDECODE_H_
diff --git a/src/psaux/psarrst.c b/src/psaux/psarrst.c
index 9bd09972e..a8780947f 100644
--- a/src/psaux/psarrst.c
+++ b/src/psaux/psarrst.c
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2arrst.c */
+/* psarrst.c */
/* */
/* Adobe's code for Array Stacks (body). */
/* */
diff --git a/src/psaux/psarrst.h b/src/psaux/psarrst.h
index 095938db0..b7d114079 100644
--- a/src/psaux/psarrst.h
+++ b/src/psaux/psarrst.h
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2arrst.h */
+/* psarrst.h */
/* */
/* Adobe's code for Array Stacks (specification). */
/* */
diff --git a/src/psaux/psblues.c b/src/psaux/psblues.c
index 9c8b025e4..ae39d03c7 100644
--- a/src/psaux/psblues.c
+++ b/src/psaux/psblues.c
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2blues.c */
+/* psblues.c */
/* */
/* Adobe's code for handling Blue Zones (body). */
/* */
diff --git a/src/psaux/psblues.h b/src/psaux/psblues.h
index 48e8be83c..888de9f30 100644
--- a/src/psaux/psblues.h
+++ b/src/psaux/psblues.h
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2blues.h */
+/* psblues.h */
/* */
/* Adobe's code for handling Blue Zones (specification). */
/* */
diff --git a/src/psaux/pserror.c b/src/psaux/pserror.c
index 7b1d4b555..9169e5222 100644
--- a/src/psaux/pserror.c
+++ b/src/psaux/pserror.c
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2error.c */
+/* pserror.c */
/* */
/* Adobe's code for error handling (body). */
/* */
diff --git a/src/psaux/pserror.h b/src/psaux/pserror.h
index e2a44b902..4a631b8df 100644
--- a/src/psaux/pserror.h
+++ b/src/psaux/pserror.h
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2error.h */
+/* pserror.h */
/* */
/* Adobe's code for error handling (specification). */
/* */
diff --git a/src/psaux/psfixed.h b/src/psaux/psfixed.h
index a041184bd..b93163034 100644
--- a/src/psaux/psfixed.h
+++ b/src/psaux/psfixed.h
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2fixed.h */
+/* psfixed.h */
/* */
/* Adobe's code for Fixed Point Mathematics (specification only). */
/* */
diff --git a/src/psaux/psfont.c b/src/psaux/psfont.c
index 093e66ea8..ff69b828d 100644
--- a/src/psaux/psfont.c
+++ b/src/psaux/psfont.c
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2font.c */
+/* psfont.c */
/* */
/* Adobe's code for font instances (body). */
/* */
diff --git a/src/psaux/psfont.h b/src/psaux/psfont.h
index fc86f80ef..7f5341694 100644
--- a/src/psaux/psfont.h
+++ b/src/psaux/psfont.h
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2font.h */
+/* psfont.h */
/* */
/* Adobe's code for font instances (specification). */
/* */
diff --git a/src/psaux/psft.c b/src/psaux/psft.c
index b12d9d163..fd09414d8 100644
--- a/src/psaux/psft.c
+++ b/src/psaux/psft.c
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2ft.c */
+/* psft.c */
/* */
/* FreeType Glue Component to Adobe's Interpreter (body). */
/* */
diff --git a/src/psaux/psft.h b/src/psaux/psft.h
index 95e79542f..28bc49c19 100644
--- a/src/psaux/psft.h
+++ b/src/psaux/psft.h
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2ft.h */
+/* psft.h */
/* */
/* FreeType Glue Component to Adobe's Interpreter (specification). */
/* */
diff --git a/src/psaux/psglue.h b/src/psaux/psglue.h
index fba67377b..4fa544527 100644
--- a/src/psaux/psglue.h
+++ b/src/psaux/psglue.h
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2glue.h */
+/* psglue.h */
/* */
/* Adobe's code for shared stuff (specification only). */
/* */
diff --git a/src/psaux/pshints.c b/src/psaux/pshints.c
index f6234e7ee..cf40bc01a 100644
--- a/src/psaux/pshints.c
+++ b/src/psaux/pshints.c
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2hints.c */
+/* pshints.c */
/* */
/* Adobe's code for handling CFF hints (body). */
/* */
diff --git a/src/psaux/pshints.h b/src/psaux/pshints.h
index a8984542a..02fdc53cb 100644
--- a/src/psaux/pshints.h
+++ b/src/psaux/pshints.h
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2hints.h */
+/* pshints.h */
/* */
/* Adobe's code for handling CFF hints (body). */
/* */
diff --git a/src/psaux/psintrp.c b/src/psaux/psintrp.c
index 3e0590f92..61fc8f856 100644
--- a/src/psaux/psintrp.c
+++ b/src/psaux/psintrp.c
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2intrp.c */
+/* psintrp.c */
/* */
/* Adobe's CFF Interpreter (body). */
/* */
@@ -661,6 +661,9 @@
op1 == cf2_cmdENDCHAR ||
op1 >= 32 /* Numbers */ ) )
{
+ /* Skip outline commands first time round. */
+ /* `endchar' will trigger initial hintmap build */
+ /* and rewind the charstring. */
cf2_stack_clear( opStack );
continue;
}
@@ -787,6 +790,7 @@
}
}
+ /* Add left-sidebearing correction in Type 1 mode */
cf2_doStems( font,
opStack,
&hStemHintArray,
@@ -816,6 +820,7 @@
}
}
+ /* Add left-sidebearing correction in Type 1 mode */
cf2_doStems( font,
opStack,
&vStemHintArray,
@@ -1220,6 +1225,7 @@
SUB_INT32( SUB_INT32( v2, v1 ),
cf2_stack_getReal( opStack, 3 ) ) );
+ /* Add left-sidebearing correction */
cf2_doStems( font,
opStack,
isV ? &vStemHintArray : &hStemHintArray,
@@ -1755,6 +1761,8 @@
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( &hStemHintArray );
diff --git a/src/psaux/psintrp.h b/src/psaux/psintrp.h
index 01809a92a..ec22ddcb7 100644
--- a/src/psaux/psintrp.h
+++ b/src/psaux/psintrp.h
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2font.h */
+/* psintrp.h */
/* */
/* Adobe's CFF Interpreter (specification). */
/* */
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
index d643afeff..a62ee231e 100644
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -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 )
t1_make_subfont( FT_Face face,
PS_Private priv,
diff --git a/src/psaux/psread.c b/src/psaux/psread.c
index 237ab7b34..719863ce1 100644
--- a/src/psaux/psread.c
+++ b/src/psaux/psread.c
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2read.c */
+/* psread.c */
/* */
/* Adobe's code for stream handling (body). */
/* */
diff --git a/src/psaux/psread.h b/src/psaux/psread.h
index b0b0db803..9e2119509 100644
--- a/src/psaux/psread.h
+++ b/src/psaux/psread.h
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2read.h */
+/* psread.h */
/* */
/* Adobe's code for stream handling (specification). */
/* */
diff --git a/src/psaux/psstack.c b/src/psaux/psstack.c
index e97ec0097..69d063349 100644
--- a/src/psaux/psstack.c
+++ b/src/psaux/psstack.c
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2stack.c */
+/* psstack.c */
/* */
/* Adobe's code for emulating a CFF stack (body). */
/* */
diff --git a/src/psaux/psstack.h b/src/psaux/psstack.h
index ef08eefe4..1b9865dea 100644
--- a/src/psaux/psstack.h
+++ b/src/psaux/psstack.h
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2stack.h */
+/* psstack.h */
/* */
/* Adobe's code for emulating a CFF stack (specification). */
/* */
diff --git a/src/psaux/pstypes.h b/src/psaux/pstypes.h
index 5b7e1239a..9f31493f2 100644
--- a/src/psaux/pstypes.h
+++ b/src/psaux/pstypes.h
@@ -1,6 +1,6 @@
/***************************************************************************/
/* */
-/* cf2types.h */
+/* pstypes.h */
/* */
/* Adobe's code for defining data types (specification only). */
/* */
diff --git a/src/type1/t1gload.c b/src/type1/t1gload.c
index e5f88d0a0..341d71a0f 100644
--- a/src/type1/t1gload.c
+++ b/src/type1/t1gload.c
@@ -39,23 +39,6 @@
#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
T1_Parse_Glyph_And_Get_Char_String( T1_Decoder decoder,
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 )
T1_Compute_Max_Advance( T1_Face face,
FT_Pos* max_advance )