As any module can be added or replaced anytime, any third party
vendor has the ability to provide its own set of modules (under
@@ -327,7 +327,7 @@ ubiquitous products.
is covered by the Apple patents. However, this piece of code is never
compiled by default in this release (unlike in previous betas) making
a default build of the library Note that in order to compile the interpreter, one needs to define
the configuration macro TT_CONFIG_OPTION_BYTECODE_INTERPRETER configuration
macro in the file "ftoption.h". More details are available in
diff --git a/docs/ft2faq.html b/docs/ft2faq.html
index 845aaa8ad..19b3f5ab8 100644
--- a/docs/ft2faq.html
+++ b/docs/ft2faq.html
@@ -161,7 +161,7 @@
FreeType 2
Finally, it would have been hard to distribute such a library without
- an alternative technology to replace the patented bytecode interpreter.
+ an alternative technology to replace the patented bytecode interpreter.
This involved significant research work that could only be performed
correctly full-time, and we had to found a company to fund such a
development and still make it available under a BSD-like license. Huge
@@ -199,7 +199,7 @@
connection to the XFree people, but we have been asked so frequently
about it that it deserves a prominent place in this FAQ :-)
- FreeType has been capable of anti-aliasing since version 1.0.
+
FreeType has been capable of anti-aliasing since version 1.0.
The reason why XFree doesn't support it is directly related to the
limitations of the design and specification of X11. More
specifically:
@@ -283,7 +283,7 @@
The library can be compiled in various ways, and a detailed
- documentation is available in the file freetype2/docs/BUILD.
+ documentation is available in the file freetype2/docs/BUILD.
However, we will summarize the process to a few cases:
Well, the process is vastly similar to the one described in b.,
- except that you need to set the include paths, source code paths, etc.
+ except that you need to set the include paths, source code paths, etc.
in dialog boxes before running the compilation.
@@ -403,7 +403,7 @@
is in the file src/base/ftinit.c.
The list of default modules used by ftinit.c is located in
- the configuration file include/freetype/config/ftmodule.h.
+ the configuration file include/freetype/config/ftmodule.h.
Normally, it is automatically generated by the build system by invoking
the "make modules" command in the top level
FreeType 2 directory (Note: this only works with GNU Make; you can
@@ -572,11 +572,11 @@
Well, the engine already reads OpenType/CFF files perfectly. What it
doesn't do is handle "OpenType Layout" tables yet.
-
+
FreeType 1 comes with a set of extensions that are used to load
and manage OpenType Layout tables. It even has a demonstration program
named "ftstrtto" to show its capabilities.
-
+
For FreeType 2, we have decided that the layout operations
provided through these tables are better placed in a specific
text-layout library, (many people having asked for such a thing). This
diff --git a/docs/glnames.py b/docs/glnames.py
index 7b72669c3..f0e69043e 100644
--- a/docs/glnames.py
+++ b/docs/glnames.py
@@ -86,11 +86,11 @@ mac_standard_names = \
# 120
"ntilde", "oacute", "ograve", "ocircumflex", "odieresis",
"otilde", "uacute", "ugrave", "ucircumflex", "udieresis",
-
+
# 130
"dagger", "degree", "cent", "sterling", "section",
"bullet", "paragraph", "germandbls", "registered", "copyright",
-
+
# 140
"trademark", "acute", "dieresis", "notequal", "AE",
"Oslash", "infinity", "plusminus", "lessequal", "greaterequal",
@@ -1502,7 +1502,7 @@ def count_extra_glyphs( alist, filter ):
filtered_index = filter.index( name )
except:
extras.append( name )
-
+
return extras
@@ -1521,7 +1521,7 @@ def dump_mac_indices( file ):
except:
write( " " + repr( count ) + ",\n" )
count = count + 1
-
+
write( " 0\n" )
write( " };\n" )
write( "\n" )
@@ -1555,7 +1555,7 @@ def dump_glyph_list( file, glyph_list, adobe_extra ):
write( " };\n" )
write( "\n" )
write( "\n" )
-
+
return name_list
@@ -1570,7 +1570,7 @@ def dump_unicode_values( file, base_list, adobe_list ):
write( " static const unsigned short names_to_unicode[" + \
repr( len( base_list ) + len( adobe_list ) + 1 ) + "] =\n" )
write( " {\n" )
-
+
for name in base_list:
try:
index = adobe_glyphs.index( name )
@@ -1626,13 +1626,13 @@ def main():
write = file.write
count_sid = len( t1_standard_strings )
-
+
# build mac index table & supplemental glyph names
mac_list = count_extra_glyphs( mac_standard_names, t1_standard_strings )
- count_mac = len( mac_list )
+ count_mac = len( mac_list )
t1_bias = count_mac
base_list = mac_list + t1_standard_strings
-
+
# build adobe unicode index table & supplemental glyph names
adobe_list = the_adobe_glyph_list()
adobe_list = count_extra_glyphs( adobe_list, base_list )
@@ -1664,7 +1664,7 @@ def main():
# dump glyph list
name_list = dump_glyph_list( file, base_list, adobe_list )
-
+
# dump t1_standard_list
write( " static const char** t1_standard_glyphs = " \
+ "standard_glyph_names + " + repr( t1_bias ) + ";\n" )
@@ -1684,17 +1684,17 @@ def main():
write( "\n" )
# dump mac indices table
- dump_mac_indices( file )
+ dump_mac_indices( file )
# discard mac names from base list
base_list = base_list[t1_bias:]
-
+
# dump unicode values table
dump_unicode_values( file, base_list, adobe_list )
dump_encoding( file, "t1_standard_encoding", t1_standard_encoding )
dump_encoding( file, "t1_expert_encoding", t1_expert_encoding )
-
+
write( "/* END */\n" )
diff --git a/docs/tutorial/step1.html b/docs/tutorial/step1.html
index 94fa25b3b..8af5c1921 100644
--- a/docs/tutorial/step1.html
+++ b/docs/tutorial/step1.html
@@ -234,7 +234,7 @@
As you can see, FT_New_Memory_Face() takes a pointer to
- the font file buffer and its size in bytes instead of a file pathname.
+ the font file buffer and its size in bytes instead of a file pathname.
Other than that, it has exactly the same semantics as
FT_New_Face().
diff --git a/docs/tutorial/step2.html b/docs/tutorial/step2.html
index 1c8c94d73..dd00d5f58 100644
--- a/docs/tutorial/step2.html
+++ b/docs/tutorial/step2.html
@@ -1431,7 +1431,7 @@
in an abstract grid called the design space, with coordinates
expressed in nominal font units. When a glyph image is loaded,
the font driver usually scales the outline to device space according to
- the current character pixel size found in a FT_Size object.
+ the current character pixel size found in a FT_Size object.
The driver may also modify the scaled outline in order to significantly
improve its appearance on a pixel-based surface (a process known as
hinting or grid-fitting).
diff --git a/include/freetype/cache/ftcchunk.h b/include/freetype/cache/ftcchunk.h
index 0a493cb1c..7ef2f8ac6 100644
--- a/include/freetype/cache/ftcchunk.h
+++ b/include/freetype/cache/ftcchunk.h
@@ -69,7 +69,7 @@
FT_UShort cset_index;
FT_UShort num_elements;
FT_Byte* elements;
-
+
} FTC_ChunkNodeRec;
@@ -153,7 +153,7 @@
FTC_CacheRec root;
FT_Lru csets_lru; /* static chunk set lru list */
FTC_ChunkSet last_cset; /* small cache :-) */
-
+
} FTC_Chunk_CacheRec;
diff --git a/include/freetype/cache/ftcsbits.h b/include/freetype/cache/ftcsbits.h
index d95a81719..bc10fed1a 100644
--- a/include/freetype/cache/ftcsbits.h
+++ b/include/freetype/cache/ftcsbits.h
@@ -20,7 +20,7 @@
#define FTCSBITS_H
-#include
+#include
#ifdef __cplusplus
@@ -34,7 +34,7 @@
/* handle to small bitmap cache */
typedef struct FTC_SBit_CacheRec_* FTC_SBit_Cache;
- /* a compact structure used to hold a single small bitmap */
+ /* a compact structure used to hold a single small bitmap */
typedef struct FTC_SBitRec_
{
FT_Byte width;
@@ -48,7 +48,7 @@
FT_Char yadvance;
FT_Byte* buffer;
-
+
} FTC_SBitRec;
diff --git a/include/freetype/cache/ftlru.h b/include/freetype/cache/ftlru.h
index 9e81681ad..71dd55782 100644
--- a/include/freetype/cache/ftlru.h
+++ b/include/freetype/cache/ftlru.h
@@ -77,7 +77,7 @@
{
FT_ListNodeRec root;
FT_LruKey key;
-
+
} FT_LruNodeRec, *FT_LruNode;
@@ -90,26 +90,26 @@
typedef struct FT_Lru_Class_
{
FT_UInt lru_size; /* object size in bytes */
-
+
/* this method is used to initialize a new list element node */
FT_Error (*init_element)( FT_Lru lru,
FT_LruNode node );
-
+
/* this method is used to finalize a given list element node */
void (*done_element)( FT_Lru lru,
FT_LruNode node );
-
+
/* If defined, this method is called when the list if full */
/* during the lookup process -- it is used to change the contents */
/* of a list element node, instead of calling `done_element()', */
- /* then `init_element'. Set it to 0 for default behaviour. */
+ /* then `init_element'. Set it to 0 for default behaviour. */
FT_Error (*flush_element)( FT_Lru lru,
FT_LruNode node,
- FT_LruKey new_key );
+ FT_LruKey new_key );
/* If defined, this method is used to compare a list element node */
/* with a given key during a lookup. If set to 0, the `key' */
- /* fields will be directly compared instead. */
+ /* fields will be directly compared instead. */
FT_Bool (*compare_element)( FT_LruNode node,
FT_LruKey key );
@@ -133,11 +133,11 @@
FT_ListRec elements;
FT_Memory memory;
FT_Pointer user_data;
-
+
/* the following fields are only meaningful for static lru containers */
FT_ListRec free_nodes;
FT_LruNode nodes;
-
+
} FT_LruRec;
@@ -148,9 +148,9 @@
FT_Bool pre_alloc,
FT_Lru* alru );
- FT_EXPORT_DEF( void ) FT_Lru_Reset( FT_Lru lru );
+ FT_EXPORT_DEF( void ) FT_Lru_Reset( FT_Lru lru );
- FT_EXPORT_DEF( void ) FT_Lru_Done ( FT_Lru lru );
+ FT_EXPORT_DEF( void ) FT_Lru_Done ( FT_Lru lru );
FT_EXPORT_DEF( FT_Error ) FT_Lru_Lookup_Node( FT_Lru lru,
@@ -163,7 +163,7 @@
FT_EXPORT_DEF( void ) FT_Lru_Remove_Node( FT_Lru lru,
- FT_LruNode node );
+ FT_LruNode node );
FT_EXPORT_DEF( void ) FT_Lru_Remove_Selection( FT_Lru lru,
FT_Lru_Selector selector,
diff --git a/include/freetype/ftcache.h b/include/freetype/ftcache.h
index 538740997..0c14fdf43 100644
--- a/include/freetype/ftcache.h
+++ b/include/freetype/ftcache.h
@@ -312,7 +312,7 @@
FTC_Font font,
FT_Face* aface,
FT_Size* asize );
-
+
/* a cache class is used to describe a unique cache type to the manager */
typedef struct FTC_Cache_Class_ FTC_Cache_Class;
diff --git a/include/freetype/internal/autohint.h b/include/freetype/internal/autohint.h
index bea7c92f0..cb9daf59a 100644
--- a/include/freetype/internal/autohint.h
+++ b/include/freetype/internal/autohint.h
@@ -64,7 +64,7 @@
/* I initially thought that it would be a good idea to cache the glyph */
/* hints too. However, my general idea now is that if you really need */
/* to cache these too, you are simply in need of a new font format, */
- /* where all this information could be stored within the font file and */
+ /* where all this information could be stored within the font file and */
/* decoded on the fly. */
/* */
/*************************************************************************/
diff --git a/include/freetype/internal/ftobjs.h b/include/freetype/internal/ftobjs.h
index a2577b063..f6bc4d5ce 100644
--- a/include/freetype/internal/ftobjs.h
+++ b/include/freetype/internal/ftobjs.h
@@ -112,7 +112,7 @@
FT_Library library;
FT_Memory memory;
FT_Generic generic;
-
+
} FT_ModuleRec;
@@ -186,7 +186,7 @@
#define FT_FACE( x ) ((FT_Face)(x))
#define FT_SIZE( x ) ((FT_Size)(x))
#define FT_SLOT( x ) ((FT_GlyphSlot)(x))
-
+
#define FT_FACE_DRIVER( x ) FT_FACE( x )->driver
#define FT_FACE_LIBRARY( x ) FT_FACE_DRIVER( x )->root.library
#define FT_FACE_MEMORY( x ) FT_FACE( x )->memory
@@ -258,7 +258,7 @@
FT_UInt num_subglyphs; /* number of subglyphs */
FT_SubGlyph* subglyphs; /* subglyphs */
FT_Vector* extra_points; /* extra points table */
-
+
} FT_GlyphLoad;
@@ -274,27 +274,27 @@
FT_GlyphLoad current;
void* other; /* for possible future extension? */
-
+
};
BASE_DEF( FT_Error ) FT_GlyphLoader_New( FT_Memory memory,
FT_GlyphLoader** aloader );
-
+
BASE_DEF( FT_Error ) FT_GlyphLoader_Create_Extra(
- FT_GlyphLoader* loader );
-
+ FT_GlyphLoader* loader );
+
BASE_DEF( void ) FT_GlyphLoader_Done( FT_GlyphLoader* loader );
-
+
BASE_DEF( void ) FT_GlyphLoader_Reset( FT_GlyphLoader* loader );
-
+
BASE_DEF( void ) FT_GlyphLoader_Rewind( FT_GlyphLoader* loader );
-
+
BASE_DEF( FT_Error ) FT_GlyphLoader_Check_Points(
FT_GlyphLoader* loader,
FT_UInt n_points,
FT_UInt n_contours );
-
+
BASE_DEF( FT_Error ) FT_GlyphLoader_Check_Subglyphs(
FT_GlyphLoader* loader,
FT_UInt n_subs );
@@ -336,7 +336,7 @@
FT_Raster raster;
FT_Raster_Render_Func raster_render;
FTRenderer_render render;
-
+
} FT_RendererRec;
@@ -391,10 +391,10 @@
{
FT_ModuleRec root;
FT_Driver_Class* clazz;
-
+
FT_ListRec faces_list;
void* extensions;
-
+
FT_GlyphLoader* glyph_loader;
} FT_DriverRec;
diff --git a/include/freetype/internal/ftstream.h b/include/freetype/internal/ftstream.h
index 7b35a53b8..cc273efb0 100644
--- a/include/freetype/internal/ftstream.h
+++ b/include/freetype/internal/ftstream.h
@@ -72,7 +72,7 @@
ft_frame_uoff3_le = FT_MAKE_FRAME_OP( FT_FRAME_OP_OFF3, 0, 1 ),
ft_frame_off3_be = FT_MAKE_FRAME_OP( FT_FRAME_OP_OFF3, 1, 0 ),
ft_frame_off3_le = FT_MAKE_FRAME_OP( FT_FRAME_OP_OFF3, 1, 1 ),
-
+
ft_frame_bytes = FT_MAKE_FRAME_OP( FT_FRAME_OP_BYTES, 0, 0 ),
ft_frame_skip = FT_MAKE_FRAME_OP( FT_FRAME_OP_BYTES, 0, 1 )
@@ -133,7 +133,7 @@
FT_FIELD_OFFSET( field ) \
}
#define FT_FRAME_SKIP_BYTES( count ) { ft_frame_skip, count, 0 }
-
+
/*************************************************************************/
@@ -330,7 +330,7 @@
#define EXTRACT_Frame( size, bytes ) \
FT_SET_ERROR( FT_Extract_Frame( stream, size, \
(FT_Byte**)&(bytes) ) )
-
+
#define RELEASE_Frame( bytes ) \
FT_Release_Frame( stream, (FT_Byte**)&(bytes) )
diff --git a/include/freetype/internal/psaux.h b/include/freetype/internal/psaux.h
index 83ac00c55..7f8716d61 100644
--- a/include/freetype/internal/psaux.h
+++ b/include/freetype/internal/psaux.h
@@ -63,16 +63,16 @@
FT_Error (*init) ( PS_Table* table,
FT_Int count,
FT_Memory memory );
-
- void (*done) ( PS_Table* table );
-
+
+ void (*done) ( PS_Table* table );
+
FT_Error (*add) ( PS_Table* table,
FT_Int index,
void* object,
FT_Int length );
- void (*release)( PS_Table* table );
-
+ void (*release)( PS_Table* table );
+
} PS_Table_Funcs;
@@ -186,7 +186,7 @@
/* do not remove */
t1_field_location_max
-
+
} T1_Field_Location;
@@ -297,10 +297,10 @@
FT_Memory memory );
void (*done) ( T1_Parser* parser );
-
+
void (*skip_spaces) ( T1_Parser* parser );
void (*skip_alpha) ( T1_Parser* parser );
-
+
FT_Long (*to_int) ( T1_Parser* parser );
FT_Fixed (*to_fixed) ( T1_Parser* parser,
FT_Int power_ten );
@@ -310,21 +310,21 @@
FT_Int (*to_fixed_array)( T1_Parser* parser,
FT_Int max_values,
FT_Fixed* values,
- FT_Int power_ten );
-
+ FT_Int power_ten );
+
void (*to_token) ( T1_Parser* parser,
T1_Token* token );
void (*to_token_array)( T1_Parser* parser,
T1_Token* tokens,
FT_UInt max_tokens,
FT_Int* pnum_tokens );
-
+
FT_Error (*load_field) ( T1_Parser* parser,
const T1_Field* field,
void** objects,
FT_UInt max_objects,
FT_ULong* pflags );
-
+
FT_Error (*load_field_table)( T1_Parser* parser,
const T1_Field* field,
void** objects,
@@ -333,7 +333,7 @@
} T1_Parser_Funcs;
-
+
/*************************************************************************/
/* */
/* */
@@ -362,7 +362,7 @@
FT_Byte* limit;
FT_Error error;
FT_Memory memory;
-
+
T1_Parser_Funcs funcs;
};
@@ -382,16 +382,16 @@
typedef FT_Error (*T1_Builder_Check_Points_Func) ( T1_Builder* builder,
FT_Int count );
-
+
typedef void (*T1_Builder_Add_Point_Func) ( T1_Builder* builder,
FT_Pos x,
FT_Pos y,
- FT_Byte flag );
-
+ FT_Byte flag );
+
typedef FT_Error (*T1_Builder_Add_Point1_Func) ( T1_Builder* builder,
FT_Pos x,
FT_Pos y );
-
+
typedef FT_Error (*T1_Builder_Add_Contour_Func) ( T1_Builder* builder );
typedef FT_Error (*T1_Builder_Start_Point_Func) ( T1_Builder* builder,
@@ -407,16 +407,16 @@
FT_Face face,
FT_Size size,
FT_GlyphSlot slot );
-
+
void (*done)( T1_Builder* builder );
-
+
T1_Builder_Check_Points_Func check_points;
T1_Builder_Add_Point_Func add_point;
T1_Builder_Add_Point1_Func add_point1;
T1_Builder_Add_Contour_Func add_contour;
T1_Builder_Start_Point_Func start_point;
T1_Builder_Close_Contour_Func close_contour;
-
+
} T1_Builder_Funcs;
@@ -543,7 +543,7 @@
FT_Byte* cursor;
FT_Byte* base;
FT_Byte* limit;
-
+
} T1_Decoder_Zone;
@@ -564,9 +564,9 @@
FT_Byte** glyph_names,
T1_Blend* blend,
T1_Decoder_Callback callback );
-
+
void (*done) ( T1_Decoder* decoder );
-
+
FT_Error (*parse_charstrings)( T1_Decoder* decoder,
FT_Byte* base,
FT_UInt len );
@@ -600,7 +600,7 @@
FT_Vector flex_vectors[7];
T1_Blend* blend; /* for multiple master support */
-
+
T1_Decoder_Callback parse_callback;
T1_Decoder_Funcs funcs;
};
diff --git a/include/freetype/internal/psnames.h b/include/freetype/internal/psnames.h
index c7eb22c6a..7254ca792 100644
--- a/include/freetype/internal/psnames.h
+++ b/include/freetype/internal/psnames.h
@@ -105,7 +105,7 @@
/* */
/* */
/* This function will not be compiled if the configuration macro */
- /* FT_CONFIG_OPTION_POSTSCRIPT_NAMES is undefined. */
+ /* FT_CONFIG_OPTION_POSTSCRIPT_NAMES is undefined. */
/* */
typedef const char* (*PS_Macintosh_Name_Func)( FT_UInt name_index );
diff --git a/include/freetype/internal/sfnt.h b/include/freetype/internal/sfnt.h
index 033925854..087288191 100644
--- a/include/freetype/internal/sfnt.h
+++ b/include/freetype/internal/sfnt.h
@@ -450,7 +450,7 @@
TT_Load_Face_Func load_face;
TT_Done_Face_Func done_face;
SFNT_Get_Interface_Func get_interface;
-
+
TT_Load_Any_Func load_any;
TT_Load_SFNT_Header_Func load_sfnt_header;
TT_Load_Directory_Func load_directory;
diff --git a/include/freetype/internal/t1types.h b/include/freetype/internal/t1types.h
index a8a1cf408..b25f653df 100644
--- a/include/freetype/internal/t1types.h
+++ b/include/freetype/internal/t1types.h
@@ -128,7 +128,7 @@
{
FT_UInt num_subrs;
FT_Byte** code;
-
+
} CID_Subrs;
@@ -185,7 +185,7 @@
CID_Info cid;
void* afm_data;
CID_Subrs* subrs;
-
+
} CID_FaceRec;
diff --git a/include/freetype/internal/t2types.h b/include/freetype/internal/t2types.h
index 2f9c9b80e..c2a23ae91 100644
--- a/include/freetype/internal/t2types.h
+++ b/include/freetype/internal/t2types.h
@@ -89,7 +89,7 @@
FT_ULong private_size;
FT_Long synthetic_base;
FT_UInt embedded_postscript;
- FT_UInt base_font_name;
+ FT_UInt base_font_name;
FT_UInt postscript;
/* these should only be used for the top-level font dictionary */
@@ -107,26 +107,26 @@
FT_UInt cid_font_name;
} CFF_Font_Dict;
-
-
+
+
typedef struct CFF_Private_
{
FT_Byte num_blue_values;
FT_Byte num_other_blues;
FT_Byte num_family_blues;
FT_Byte num_family_other_blues;
-
+
FT_Pos blue_values[14];
FT_Pos other_blues[10];
FT_Pos family_blues[14];
FT_Pos family_other_blues[10];
-
+
FT_Fixed blue_scale;
FT_Pos blue_shift;
FT_Pos blue_fuzz;
FT_Pos standard_width;
FT_Pos standard_height;
-
+
FT_Byte num_snap_widths;
FT_Byte num_snap_heights;
FT_Pos snap_widths[13];
@@ -140,7 +140,7 @@
FT_ULong local_subrs_offset;
FT_Pos default_width;
FT_Pos nominal_width;
-
+
} CFF_Private;
@@ -157,7 +157,7 @@
FT_UInt cache_first;
FT_UInt cache_count;
FT_Byte cache_fd;
-
+
} CFF_FD_Select;
@@ -167,7 +167,7 @@
{
CFF_Font_Dict font_dict;
CFF_Private private_dict;
-
+
CFF_Index local_subrs_index;
FT_UInt num_local_subrs;
FT_Byte** local_subrs;
@@ -177,7 +177,7 @@
/* maximum number of sub-fonts in a CID-keyed file */
#define CFF_MAX_CID_FONTS 16
-
+
typedef struct CFF_Font_
{
@@ -185,20 +185,20 @@
FT_Memory memory;
FT_UInt num_faces;
FT_UInt num_glyphs;
-
+
FT_Byte version_major;
FT_Byte version_minor;
FT_Byte header_size;
FT_Byte absolute_offsize;
-
+
CFF_Index name_index;
CFF_Index top_dict_index;
CFF_Index string_index;
CFF_Index global_subrs_index;
-
+
/* we don't load the Encoding and CharSet tables */
-
+
CFF_Index charstrings_index;
CFF_Index font_dict_index;
CFF_Index private_index;
diff --git a/include/freetype/internal/tttypes.h b/include/freetype/internal/tttypes.h
index 6dc50f5ca..d81726894 100644
--- a/include/freetype/internal/tttypes.h
+++ b/include/freetype/internal/tttypes.h
@@ -99,7 +99,7 @@
FT_UShort search_range;
FT_UShort entry_selector;
FT_UShort range_shift;
-
+
} SFNT_Header;
@@ -965,7 +965,7 @@
TT_CMap4Segment* segments;
FT_UShort* glyphIdArray;
FT_UShort numGlyphId; /* control value */
-
+
TT_CMap4Segment* last_segment; /* last used segment; this is a small */
/* cache to potentially increase speed */
} TT_CMap4;
@@ -1162,7 +1162,7 @@
FT_ULong offset,
FT_UInt byte_count );
-
+
/*************************************************************************/
/* */
/* */
@@ -1180,7 +1180,7 @@
/* */
typedef
FT_Error (*TT_Load_Glyph_Element_Func)( TT_Loader* loader );
-
+
/*************************************************************************/
/* */
@@ -1574,7 +1574,7 @@
TT_ExecContext exec;
FT_Byte* instructions;
FT_ULong ins_pos;
-
+
/* for possible extensibility in other formats */
void* other;
diff --git a/src/autohint/CatharonLicense.txt b/src/autohint/CatharonLicense.txt
index e68bc2305..789c8c9fe 100644
--- a/src/autohint/CatharonLicense.txt
+++ b/src/autohint/CatharonLicense.txt
@@ -4,7 +4,7 @@
2000-Jul-04
Copyright (C) 2000 by Catharon Productions, Inc.
-
+
Introduction
diff --git a/src/autohint/ahglyph.c b/src/autohint/ahglyph.c
index 348a8133e..030e55bb2 100644
--- a/src/autohint/ahglyph.c
+++ b/src/autohint/ahglyph.c
@@ -180,21 +180,21 @@
n = ah_test_extrema( outline, indices.xMin );
if ( n )
goto Exit;
-
+
n = ah_test_extrema( outline, indices.yMin );
if ( n )
goto Exit;
-
+
n = ah_test_extrema( outline, indices.xMax );
if ( n )
goto Exit;
-
+
n = ah_test_extrema( outline, indices.yMax );
if ( !n )
n = 1;
Exit:
- return n;
+ return n;
}
@@ -367,7 +367,7 @@
{
outline->vert_major_dir = ah_dir_down;
outline->horz_major_dir = ah_dir_right;
- }
+ }
#else
diff --git a/src/autohint/ahhint.c b/src/autohint/ahhint.c
index fcef73033..9c1a963a7 100644
--- a/src/autohint/ahhint.c
+++ b/src/autohint/ahhint.c
@@ -1115,7 +1115,7 @@
( new_width + new_lsb - old_width - old_lsb );
hinter->pp1.x = ( ( new_lsb - old_lsb ) + 32 ) & -64;
- hinter->pp2.x = ( ( edge2->pos +
+ hinter->pp2.x = ( ( edge2->pos +
( old_advance - edge2->opos ) ) + 32 ) & -64;
}
diff --git a/src/autohint/ahoptim.c b/src/autohint/ahoptim.c
index d301dd7ee..deb440d49 100644
--- a/src/autohint/ahoptim.c
+++ b/src/autohint/ahoptim.c
@@ -143,7 +143,7 @@
LOG(( " [%d-%d:%.1f:%1.f:%.1f]",
spring->stem1 - stems, spring->stem2 - stems,
FLOAT( spring->owidth ),
- FLOAT( spring->stem2->pos -
+ FLOAT( spring->stem2->pos -
( spring->stem1->pos + spring->stem1->width ) ),
FLOAT( spring->tension ) ));
}
diff --git a/src/autohint/mather.py b/src/autohint/mather.py
index b416fdfcb..8ad8b5535 100644
--- a/src/autohint/mather.py
+++ b/src/autohint/mather.py
@@ -22,18 +22,18 @@ ag_pi = 256
def print_arctan( atan_bits ):
atan_base = 1 << atan_bits
-
+
print " static AH_Angle ag_arctan[1L << AG_ATAN_BITS] ="
print " {"
-
+
count = 0
line = " "
-
+
for n in range( atan_base ):
comma = ","
if ( n == atan_base - 1 ):
comma = ""
-
+
angle = math.atan( n * 1.0 / atan_base ) / math.pi * ag_pi
line = line + " " + repr( int( angle + 0.5 ) ) + comma
count = count + 1;
@@ -41,7 +41,7 @@ def print_arctan( atan_bits ):
count = 0
print line
line = " "
-
+
if ( count > 0 ):
print line
print " };"
@@ -55,7 +55,7 @@ def print_sines():
count = 0
line = " "
-
+
for n in range( ag_pi / 2 ):
sinus = math.sin( n * math.pi / ag_pi )
line = line + " " + repr( int( 65536.0 * sinus ) ) + ","
@@ -64,7 +64,7 @@ def print_sines():
count = 0
print line
line = " "
-
+
if ( count > 0 ):
print line
print " 65536"
diff --git a/src/autohint/module.mk b/src/autohint/module.mk
index adbdc2313..edc9f4e1a 100644
--- a/src/autohint/module.mk
+++ b/src/autohint/module.mk
@@ -1,5 +1,5 @@
#
-# FreeType 2 auto-hinter module definition
+# FreeType 2 auto-hinter module definition
#
diff --git a/src/base/ftcalc.c b/src/base/ftcalc.c
index 85c4116f7..e78f3ba72 100644
--- a/src/base/ftcalc.c
+++ b/src/base/ftcalc.c
@@ -300,7 +300,7 @@
{
FT_Int64 z;
-
+
z = (FT_Int64)(x) << 16;
return FT_Sqrt64( z );
}
@@ -773,7 +773,7 @@
{
FT_Int64 z;
-
+
z.hi = (FT_UInt32)((FT_Int32)(x) >> 16);
z.lo = (FT_UInt32)( x << 16 );
return FT_Sqrt64( &z );
diff --git a/src/base/ftglyph.c b/src/base/ftglyph.c
index 3026170e7..490f9badf 100644
--- a/src/base/ftglyph.c
+++ b/src/base/ftglyph.c
@@ -831,7 +831,7 @@
/* copy advance - thanks Karsten ;-) */
bitmap->root.advance = glyph->advance;
-
+
*the_glyph = FT_GLYPH( bitmap );
}
diff --git a/src/base/ftinit.c b/src/base/ftinit.c
index 5b56b8ccb..d00a73c0c 100644
--- a/src/base/ftinit.c
+++ b/src/base/ftinit.c
@@ -174,7 +174,7 @@ const FT_Module_Class* const ft_default_modules[] =
/* Discard the library object */
FT_Done_Library( library );
-
+
/* discard memory manager */
FT_Done_Memory( memory );
}
diff --git a/src/base/ftnames.c b/src/base/ftnames.c
index 2791e7c20..8c9bd7c75 100644
--- a/src/base/ftnames.c
+++ b/src/base/ftnames.c
@@ -44,8 +44,8 @@
{
return face && ( FT_IS_SFNT( face ) ? ((TT_Face)face)->num_names : 0 );
}
-
-
+
+
/*************************************************************************/
/* */
/* */
@@ -78,17 +78,17 @@
FT_SfntName* aname )
{
FT_Error error = FT_Err_Invalid_Argument;
-
+
if ( aname && face && FT_IS_SFNT( face ) )
{
TT_Face ttface = (TT_Face)face;
-
+
if ( index < ttface->num_names )
{
TT_NameRec* name = ttface->name_table.names + index;
-
+
aname->platform_id = name->platformID;
aname->encoding_id = name->encodingID;
@@ -96,13 +96,13 @@
aname->name_id = name->nameID;
aname->string = (FT_Byte*)name->string;
aname->string_len = name->stringLength;
-
+
error = FT_Err_Ok;
}
}
-
+
return error;
- }
+ }
#endif /* TT_CONFIG_OPTION_SFNT_NAMES */
diff --git a/src/base/ftsynth.c b/src/base/ftsynth.c
index 6f7f860d6..fd2a708bd 100644
--- a/src/base/ftsynth.c
+++ b/src/base/ftsynth.c
@@ -37,24 +37,24 @@
FT_Pos* advance )
{
FT_Matrix transform;
-
+
FT_UNUSED( original );
/* we don't touch the advance width */
FT_UNUSED( advance );
-
+
/* For italic, simply apply a shear transform, with an angle */
/* of about 12 degrees. */
-
+
transform.xx = 0x10000L;
transform.yx = 0x00000L;
-
+
transform.xy = 0x06000L;
transform.yy = 0x10000L;
-
+
FT_Outline_Transform( outline, &transform );
-
+
return 0;
}
@@ -272,15 +272,15 @@
n = ft_test_extrema( outline, indices.xMin );
if ( n )
goto Exit;
-
+
n = ft_test_extrema( outline, indices.yMin );
if ( n )
goto Exit;
-
+
n = ft_test_extrema( outline, indices.xMax );
if ( n )
goto Exit;
-
+
n = ft_test_extrema( outline, indices.yMax );
if ( !n )
n = 1;
diff --git a/src/cache/ftcchunk.c b/src/cache/ftcchunk.c
index f07fa2be4..334718260 100644
--- a/src/cache/ftcchunk.c
+++ b/src/cache/ftcchunk.c
@@ -56,7 +56,7 @@
/* allocate elements array */
FT_Memory memory;
-
+
memory = cache->root.memory;
error = MEM_Alloc( node->elements, cset->element_size *
cset->element_count );
@@ -71,7 +71,7 @@
/* remove from parent set table */
cset->chunks[ node->cset_index ] = 0;
-
+
/* destroy the node */
cset->clazz->destroy_node( node );
}
@@ -135,7 +135,7 @@
goto Exit;
/* compute maximum number of nodes */
- cset->num_chunks = (cset->element_max +
+ cset->num_chunks = (cset->element_max +
cset->element_count - 1) / cset->element_count;
/* allocate chunk pointers table */
@@ -223,7 +223,7 @@
FT_UInt chunk_index = glyph_index/chunk_size;
FTC_ChunkNode* pnode = cset->chunks + chunk_index;
FTC_ChunkNode node = *pnode;
-
+
if (!node)
{
/* we didn't found the glyph image, we will now create a new one */
diff --git a/src/cache/ftcglyph.c b/src/cache/ftcglyph.c
index 27ce5d2fd..961f8406b 100644
--- a/src/cache/ftcglyph.c
+++ b/src/cache/ftcglyph.c
@@ -61,12 +61,12 @@
FT_LruNode gset_lru = cache->gsets_lru->nodes + node->gset_index;
FTC_GlyphSet gset = (FTC_GlyphSet)gset_lru->root.data;
FT_UInt hash = node->glyph_index % gset->hash_size;
-
+
/* remove the node from its gset's bucket list */
{
FTC_GlyphNode* pnode = gset->buckets + hash;
FTC_GlyphNode cur;
-
+
for (;;)
{
cur = *pnode;
@@ -77,7 +77,7 @@
" trying to delete an unlisted node !!!!" ));
return;
}
-
+
if (cur == node)
{
*pnode = cur->gset_next;
@@ -239,20 +239,20 @@
*anode = 0;
-
+
for ( ;; )
{
node = *pnode;
if (!node)
break;
-
+
if ( node->glyph_index == glyph_index )
{
/* we found it! -- move glyph to start of the lists */
*pnode = node->gset_next;
node->gset_next = bucket[0];
bucket[0] = node;
-
+
FT_List_Up( &manager->global_lru, FTC_GLYPHNODE_TO_LRUNODE( node ) );
*anode = node;
return 0;
diff --git a/src/cache/ftcimage.c b/src/cache/ftcimage.c
index 5d504e59d..dcc3c7b9e 100644
--- a/src/cache/ftcimage.c
+++ b/src/cache/ftcimage.c
@@ -36,14 +36,14 @@
{
FTC_GlyphSetRec root;
FTC_Image_Desc description;
-
+
} FTC_ImageSetRec, *FTC_ImageSet;
typedef struct FTC_Image_CacheRec_
{
FTC_Glyph_CacheRec root;
-
+
} FTC_Image_CacheRec;
diff --git a/src/cache/ftcmanag.c b/src/cache/ftcmanag.c
index 994ff3a88..ab70dd556 100644
--- a/src/cache/ftcmanag.c
+++ b/src/cache/ftcmanag.c
@@ -411,7 +411,7 @@
/* this should never happen! */
FT_ERROR(( "FTC_Manager_Compress: Cache Manager is corrupted!\n" ));
}
-
+
/* check, just in case of general corruption :-) */
if (manager->num_nodes <= 0)
{
@@ -464,7 +464,7 @@
cache->manager = manager;
cache->memory = memory;
cache->clazz = clazz;
-
+
/* THIS IS VERY IMPORTANT, THIS WILL WRECH THE MANAGER */
/* IF IT IS NOT SET CORRECTLY.. */
cache->cache_index = index;
diff --git a/src/cache/ftcsbits.c b/src/cache/ftcsbits.c
index 93d8fdb42..7d414ec30 100644
--- a/src/cache/ftcsbits.c
+++ b/src/cache/ftcsbits.c
@@ -15,7 +15,7 @@
typedef struct FTC_SBit_CacheRec_
{
FTC_Chunk_CacheRec root;
-
+
} FTC_SBit_CacheRec;
@@ -36,7 +36,7 @@
FT_Memory memory = cset->memory;
FT_UInt count = node->num_elements;
FTC_SBit sbit = (FTC_SBit)node->elements;
-
+
for ( ; count > 0; sbit++, count-- )
FREE( sbit->buffer );
@@ -124,7 +124,7 @@
/* always render glyphs to bitmaps */
load_flags |= FT_LOAD_RENDER;
-
+
if ( image_type & ftc_image_flag_unhinted )
load_flags |= FT_LOAD_NO_HINTING;
@@ -138,7 +138,7 @@
{
/* by default, indicates a "missing" glyph */
sbit->buffer = 0;
-
+
error = FT_Load_Glyph( face, glyph_index, load_flags );
if (!error)
{
@@ -150,7 +150,7 @@
/* check that our values fit in 8-bit containers !! */
/* if this is not the case, our bitmap is too large */
/* and we will leave it as "missing" with sbit.buffer = 0 */
-
+
#define CHECK_CHAR(d) ( temp = (FT_Char)d, temp == d )
#define CHECK_BYTE(d) ( temp = (FT_Byte)d, temp == d )
@@ -159,7 +159,7 @@
/* horizontal advance in pixels */
xadvance = (slot->metrics.horiAdvance+32) >> 6;
yadvance = (slot->metrics.vertAdvance+32) >> 6;
-
+
if ( CHECK_BYTE ( bitmap->rows ) &&
CHECK_BYTE ( bitmap->width ) &&
CHECK_CHAR ( bitmap->pitch ) &&
@@ -231,7 +231,7 @@
pitch = sbit->pitch;
if (pitch < 0)
pitch = -pitch;
-
+
/* add the size of a given glyph image */
size += pitch * sbit->height;
}
@@ -256,19 +256,19 @@
{
FT_Error error;
FT_Face face;
-
+
cset->element_count = FTC_SBITSET_ELEMENT_COUNT;
cset->element_size = sizeof(FTC_SBitRec);
-
+
/* lookup the FT_Face to obtain the number of glyphs */
error = FTC_Manager_Lookup_Face( cset->manager,
desc->font.face_id, &face );
if (!error)
cset->element_max = face->num_glyphs;
-
+
return error;
}
-
+
LOCAL_FUNC_X
diff --git a/src/cache/ftlru.c b/src/cache/ftlru.c
index 4b912993a..53331eb64 100644
--- a/src/cache/ftlru.c
+++ b/src/cache/ftlru.c
@@ -28,7 +28,7 @@
{
FT_LruNode node = nodes;
FT_LruNode limit = node + count;
-
+
free_list->head = free_list->tail = 0;
for ( ; node < limit; node++ )
@@ -45,7 +45,7 @@
{
FT_Error error;
FT_Lru lru;
-
+
if ( !alru )
return FT_Err_Invalid_Argument;
@@ -61,11 +61,11 @@
FREE( lru );
goto Exit;
}
-
+
/* build the `free_nodes' list from the array */
lru_build_free_list( lru->nodes, max_elements, &lru->free_nodes );
}
-
+
/* initialize common fields */
lru->clazz = (FT_Lru_Class*)clazz;
lru->max_elements = max_elements;
@@ -80,13 +80,13 @@
}
-
+
FT_EXPORT_DEF( void ) FT_Lru_Reset( FT_Lru lru )
{
FT_ListNode node;
FT_Lru_Class* clazz;
FT_Memory memory;
-
+
if ( !lru )
return;
@@ -98,15 +98,15 @@
while ( node )
{
FT_ListNode next = node->next;
-
+
clazz->done_element( lru, (FT_LruNode)node );
if ( !lru->nodes )
FREE( node );
-
+
node = next;
}
-
+
/* rebuild free list if necessary */
if ( lru->nodes )
lru_build_free_list( lru->nodes, lru->max_elements, &lru->free_nodes );
@@ -119,7 +119,7 @@
FT_EXPORT_DEF( void ) FT_Lru_Done( FT_Lru lru )
{
FT_Memory memory;
-
+
if ( !lru )
return;
@@ -138,9 +138,9 @@
FT_Error error = 0;
FT_ListNode node;
FT_Lru_Class* clazz;
- FT_LruNode found = 0;
+ FT_LruNode found = 0;
FT_Memory memory;
-
+
if ( !lru || !key || !anode )
return FT_Err_Invalid_Argument;
@@ -167,7 +167,7 @@
break;
}
}
-
+
if ( !found )
{
/* we haven't found the relevant element. We will now try */
@@ -177,12 +177,12 @@
/* this lru list is full; we will now flush */
/* the oldest node */
FT_LruNode lru_node;
-
-
+
+
node = lru->elements.tail;
lru_node = (FT_LruNode)node;
found = lru_node;
-
+
if ( clazz->flush_element )
error = clazz->flush_element( lru, lru_node, key );
else
@@ -203,19 +203,19 @@
/* in case of error, the node must be discarded */
FT_List_Remove( &lru->elements, node );
lru->num_elements--;
-
+
if ( lru->nodes )
FT_List_Insert( &lru->free_nodes, node );
else
FREE( lru_node );
-
+
found = 0;
}
}
else
- {
+ {
FT_LruNode lru_node;
-
+
/* create a new lru list node, then the element for it */
if ( lru->nodes )
@@ -223,18 +223,18 @@
node = lru->free_nodes.head;
lru_node = (FT_LruNode)node;
lru_node->key = key;
-
+
error = clazz->init_element( lru, lru_node );
if ( error )
goto Exit;
-
+
FT_List_Remove( &lru->free_nodes, node );
}
else
{
if ( ALLOC( lru_node, sizeof ( *lru_node ) ) )
goto Exit;
-
+
lru_node->key = key;
error = clazz->init_element( lru, lru_node );
if ( error )
@@ -243,17 +243,17 @@
goto Exit;
}
}
-
- found = lru_node;
+
+ found = lru_node;
node = (FT_ListNode)lru_node;
FT_List_Insert( &lru->elements, node );
lru->num_elements++;
}
}
-
- Exit:
+
+ Exit:
*anode = found;
- return error;
+ return error;
}
@@ -263,7 +263,7 @@
{
FT_Error error;
FT_LruNode node;
-
+
/* check for valid `lru' and `key' delayed to FT_Lru_Lookup_Node() */
@@ -274,7 +274,7 @@
error = FT_Lru_Lookup_Node( lru, key, &node );
if ( !error )
*aobject = node->root.data;
-
+
return error;
}
@@ -289,7 +289,7 @@
{
FT_List_Remove( &lru->elements, (FT_ListNode)node );
lru->clazz->done_element( lru, node );
-
+
if ( lru->nodes )
FT_List_Insert( &lru->free_nodes, (FT_ListNode)node );
else
@@ -317,7 +317,7 @@
FT_ListNode node = lru->elements.head;
FT_ListNode next;
-
+
while ( node )
{
next = node->next;
diff --git a/src/cff/module.mk b/src/cff/module.mk
index aae9bd7fe..68789c98a 100644
--- a/src/cff/module.mk
+++ b/src/cff/module.mk
@@ -1,5 +1,5 @@
#
-# FreeType 2 CFF module definition
+# FreeType 2 CFF module definition
#
diff --git a/src/cid/cidgload.c b/src/cid/cidgload.c
index 94d56217b..75e713843 100644
--- a/src/cid/cidgload.c
+++ b/src/cid/cidgload.c
@@ -145,7 +145,7 @@
FT_Error error;
T1_Decoder decoder;
FT_Int glyph_index;
-
+
PSAux_Interface* psaux = (PSAux_Interface*)face->psaux;
@@ -161,7 +161,7 @@
cid_load_glyph );
if ( error )
return error;
-
+
decoder.builder.metrics_only = 1;
decoder.builder.load_points = 0;
@@ -259,7 +259,7 @@
{
glyph->root.outline.flags &= ft_outline_owner;
glyph->root.outline.flags |= ft_outline_reverse_fill;
-
+
/* for composite glyphs, return only left side bearing and */
/* advance width */
if ( load_flags & FT_LOAD_NO_RECURSE )
diff --git a/src/cid/cidload.c b/src/cid/cidload.c
index 09735a02c..811234418 100644
--- a/src/cid/cidload.c
+++ b/src/cid/cidload.c
@@ -154,7 +154,7 @@
}
dummy_object = object;
-
+
/* now, load the keyword data in the object's field(s) */
if ( keyword->type == t1_field_integer_array ||
keyword->type == t1_field_fixed_array )
@@ -219,7 +219,7 @@
matrix->yx = temp[1];
matrix->xy = temp[2];
matrix->yy = temp[3];
-
+
/* note that the font offsets are expressed in integer font units */
offset->x = temp[4] >> 16;
offset->y = temp[5] >> 16;
diff --git a/src/cid/cidobjs.c b/src/cid/cidobjs.c
index 0349f4f58..cbcec1114 100644
--- a/src/cid/cidobjs.c
+++ b/src/cid/cidobjs.c
@@ -157,7 +157,7 @@
{
psaux = (PSAux_Interface*)FT_Get_Module_Interface(
FT_FACE_LIBRARY( face ), "psaux" );
-
+
face->psaux = psaux;
}
diff --git a/src/cid/cidparse.c b/src/cid/cidparse.c
index c1594351f..6628401fc 100644
--- a/src/cid/cidparse.c
+++ b/src/cid/cidparse.c
@@ -72,7 +72,7 @@
MEM_Set( parser, 0, sizeof ( *parser ) );
psaux->t1_parser_funcs->init( &parser->root, 0, 0, memory );
-
+
parser->stream = stream;
base_offset = FILE_Pos();
diff --git a/src/psaux/psauxmod.c b/src/psaux/psauxmod.c
index c425960b6..e4248e350 100644
--- a/src/psaux/psauxmod.c
+++ b/src/psaux/psauxmod.c
@@ -75,7 +75,7 @@
&t1_parser_funcs,
&t1_builder_funcs,
&t1_decoder_funcs,
-
+
T1_Decrypt
};
@@ -87,9 +87,9 @@
"psaux",
0x10000L,
0x20000L,
-
+
&psaux_interface, /* module-specific interface */
-
+
(FT_Module_Constructor)0,
(FT_Module_Destructor) 0,
(FT_Module_Requester) 0
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
index 764589128..4355fa6bb 100644
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -879,7 +879,7 @@
if ( pflags )
*pflags |= 1L << field->flag_bit;
#else
- FT_UNUSED( pflags );
+ FT_UNUSED( pflags );
#endif
error = FT_Err_Ok;
@@ -944,7 +944,7 @@
if ( pflags )
*pflags |= 1L << field->flag_bit;
#else
- FT_UNUSED( pflags );
+ FT_UNUSED( pflags );
#endif
parser->cursor = old_cursor;
@@ -1025,7 +1025,7 @@
parser->cursor = base;
parser->memory = memory;
parser->funcs = t1_parser_funcs;
- }
+ }
LOCAL_FUNC
@@ -1098,7 +1098,7 @@
builder->left_bearing.y = 0;
builder->advance.x = 0;
builder->advance.y = 0;
-
+
builder->funcs = t1_builder_funcs;
}
diff --git a/src/psaux/psobjs.h b/src/psaux/psobjs.h
index c13a451eb..a631928ac 100644
--- a/src/psaux/psobjs.h
+++ b/src/psaux/psobjs.h
@@ -45,12 +45,12 @@
LOCAL_VAR
const T1_Builder_Funcs t1_builder_funcs;
-
+
LOCAL_DEF
FT_Error PS_Table_New( PS_Table* table,
FT_Int count,
FT_Memory memory );
-
+
LOCAL_DEF
FT_Error PS_Table_Add( PS_Table* table,
FT_Int index,
@@ -89,21 +89,21 @@
T1_Token* tokens,
FT_UInt max_tokens,
FT_Int* pnum_tokens );
-
+
LOCAL_DEF
FT_Error T1_Load_Field( T1_Parser* parser,
const T1_Field* field,
void** objects,
FT_UInt max_objects,
FT_ULong* pflags );
-
+
LOCAL_DEF
FT_Error T1_Load_Field_Table( T1_Parser* parser,
const T1_Field* field,
void** objects,
FT_UInt max_objects,
FT_ULong* pflags );
-
+
LOCAL_DEF
FT_Long T1_ToInt( T1_Parser* parser );
@@ -151,11 +151,11 @@
LOCAL_DEF
void T1_Builder_Done( T1_Builder* builder );
-
+
LOCAL_DEF
FT_Error T1_Builder_Check_Points( T1_Builder* builder,
FT_Int count );
-
+
LOCAL_DEF
void T1_Builder_Add_Point( T1_Builder* builder,
FT_Pos x,
@@ -166,10 +166,10 @@
FT_Error T1_Builder_Add_Point1( T1_Builder* builder,
FT_Pos x,
FT_Pos y );
-
+
LOCAL_DEF
FT_Error T1_Builder_Add_Contour( T1_Builder* builder );
-
+
LOCAL_DEF
FT_Error T1_Builder_Start_Point( T1_Builder* builder,
diff --git a/src/psaux/t1decode.c b/src/psaux/t1decode.c
index d17f9d79e..5d8067ced 100644
--- a/src/psaux/t1decode.c
+++ b/src/psaux/t1decode.c
@@ -206,7 +206,7 @@
FT_ERROR(( " glyph names table not available in this font!\n" ));
return T1_Err_Syntax_Error;
}
-
+
bchar_index = t1_lookup_glyph_by_stdcharcode( decoder, bchar );
achar_index = t1_lookup_glyph_by_stdcharcode( decoder, achar );
@@ -919,12 +919,12 @@
zone++;
zone->base = decoder->subrs[index] + decoder->lenIV;
-
+
if (decoder->subrs_len)
zone->limit = zone->base + decoder->subrs_len[index];
else
zone->limit = decoder->subrs[index+1];
-
+
zone->cursor = zone->base;
if ( !zone->base )
@@ -1036,11 +1036,11 @@
T1_Decoder_Callback parse_callback )
{
MEM_Set( decoder, 0, sizeof ( *decoder ) );
-
+
/* retrieve PSNames interface from list of current modules */
{
PSNames_Interface* psnames = 0;
-
+
psnames = (PSNames_Interface*)FT_Get_Module_Interface(
FT_FACE_LIBRARY(face), "psnames" );
@@ -1050,16 +1050,16 @@
FT_ERROR(( "the `psnames' module is not available\n" ));
return FT_Err_Unimplemented_Feature;
}
-
+
decoder->psnames = psnames;
}
T1_Builder_Init( &decoder->builder, face, size, slot );
-
+
decoder->num_glyphs = face->num_glyphs;
decoder->glyph_names = glyph_names;
decoder->blend = blend;
decoder->parse_callback = parse_callback;
-
+
decoder->funcs = t1_decoder_funcs;
return 0;
diff --git a/src/sfnt/sfdriver.c b/src/sfnt/sfdriver.c
index 908e09e5f..336975b94 100644
--- a/src/sfnt/sfdriver.c
+++ b/src/sfnt/sfdriver.c
@@ -100,23 +100,23 @@
{
FT_String* gname;
FT_Error error;
-
+
error = TT_Get_PS_Name( face, glyph_index, &gname );
if ( !error && buffer_max > 0 )
{
FT_UInt len = strlen( gname );
-
+
if ( len >= buffer_max )
len = buffer_max - 1;
-
+
MEM_Copy( buffer, gname, len );
((FT_Byte*)buffer)[len] = 0;
}
-
+
return error;
- }
+ }
#endif /* TT_CONFIG_OPTION_POSTSCRIPT_NAMES */
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 1da8ff578..e682489cd 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -516,15 +516,15 @@
root->ascender = face->horizontal.Ascender;
root->descender = face->horizontal.Descender;
-
+
root->height = root->ascender - root->descender +
face->horizontal.Line_Gap;
-
+
/* if the line_gap is 0, we add an extra 15% to the text height -- */
/* this computation is based on various versions of Times New Roman */
if ( face->horizontal.Line_Gap == 0 )
root->height = ( root->height * 115 + 50 ) / 100;
-
+
#if 0
/* some fonts have the OS/2 "sTypoAscender", "sTypoDescender" & */
@@ -532,11 +532,11 @@
if ( face->os2.version != 0xFFFF && root->ascender )
{
FT_Int height;
-
+
root->ascender = face->os2.sTypoAscender;
root->descender = -face->os2.sTypoDescender;
-
+
height = root->ascender + root->descender + face->os2.sTypoLineGap;
if ( height > root->height )
root->height = height;
diff --git a/src/truetype/ttdriver.c b/src/truetype/ttdriver.c
index 522df0b05..02b60697f 100644
--- a/src/truetype/ttdriver.c
+++ b/src/truetype/ttdriver.c
@@ -439,7 +439,7 @@
ft_module_driver_has_hinter,
#else
0,
-#endif
+#endif
sizeof ( TT_DriverRec ),
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index ad5bf3fe7..c636d91b9 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -545,7 +545,7 @@
FT_UNUSED( debug ); /* used by truetype interpreter only */
-
+
n_ins = load->glyph->control_len;
/* add shadow points */
@@ -648,7 +648,7 @@
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
Exit:
-#endif
+#endif
return error;
}
diff --git a/src/type1/t1driver.c b/src/type1/t1driver.c
index 68c1f427d..3fb1d8d20 100644
--- a/src/type1/t1driver.c
+++ b/src/type1/t1driver.c
@@ -57,24 +57,24 @@
FT_UInt buffer_max )
{
FT_String* gname;
-
+
gname = face->type1.glyph_names[glyph_index];
if ( buffer_max > 0 )
{
FT_UInt len = strlen( gname );
-
+
if (len >= buffer_max)
len = buffer_max - 1;
-
+
MEM_Copy( buffer, gname, len );
((FT_Byte*)buffer)[len] = 0;
}
return T1_Err_Ok;
- }
+ }
/*************************************************************************/
diff --git a/src/type1/t1gload.c b/src/type1/t1gload.c
index e7ccaaf6d..fcda9f3e1 100644
--- a/src/type1/t1gload.c
+++ b/src/type1/t1gload.c
@@ -104,7 +104,7 @@
T1_Parse_Glyph );
if ( error )
return error;
-
+
decoder.builder.metrics_only = 1;
decoder.builder.load_points = 0;
@@ -168,7 +168,7 @@
glyph->root.outline.n_points = 0;
glyph->root.outline.n_contours = 0;
-
+
hinting = ( load_flags & FT_LOAD_NO_SCALE ) == 0 &&
( load_flags & FT_LOAD_NO_HINTING ) == 0;
@@ -183,13 +183,13 @@
T1_Parse_Glyph );
if ( error )
goto Exit;
-
+
decoder.builder.no_recurse = ( ( load_flags & FT_LOAD_NO_RECURSE ) != 0 );
decoder.num_subrs = type1->num_subrs;
decoder.subrs = type1->subrs;
decoder.subrs_len = type1->subrs_len;
-
+
/* now load the unscaled outline */
error = T1_Parse_Glyph( &decoder, glyph_index );
@@ -209,7 +209,7 @@
{
glyph->root.outline.flags &= ft_outline_owner;
glyph->root.outline.flags |= ft_outline_reverse_fill;
-
+
/* for composite glyphs, return only left side bearing and */
/* advance width */
if ( load_flags & FT_LOAD_NO_RECURSE )
diff --git a/src/type1/t1load.c b/src/type1/t1load.c
index eb1ab2aee..7bb4b25de 100644
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -130,7 +130,7 @@
if ( blend->num_designs == 0 )
{
FT_UInt nn;
-
+
/* allocate the blend `private' and `font_info' dictionaries */
if ( ALLOC_ARRAY( blend->font_infos[1], num_designs, T1_FontInfo ) ||
@@ -142,13 +142,13 @@
blend->font_infos[0] = &face->type1.font_info;
blend->privates [0] = &face->type1.private_dict;
-
+
for ( nn = 2; nn <= num_designs; nn++ )
{
blend->privates[nn] = blend->privates [nn - 1] + 1;
blend->font_infos[nn] = blend->font_infos[nn - 1] + 1;
}
-
+
blend->num_designs = num_designs;
}
else if ( blend->num_designs != num_designs )
@@ -912,7 +912,7 @@
matrix->yx = temp[1];
matrix->xy = temp[2];
matrix->yy = temp[3];
-
+
/* note that the offsets must be expressed in integer font units */
offset->x = temp[4] >> 16;
offset->y = temp[5] >> 16;
@@ -926,7 +926,7 @@
T1_ParserRec* parser = &loader->parser;
FT_Byte* cur = parser->root.cursor;
FT_Byte* limit = parser->root.limit;
-
+
PSAux_Interface* psaux = (PSAux_Interface*)face->psaux;
@@ -972,7 +972,7 @@
/* We need to `zero' out encoding_table.elements */
for ( n = 0; n < count; n++ )
{
- char* notdef = ".notdef";
+ char* notdef = ".notdef";
T1_Add_Table( char_table, n, notdef, 8 );
@@ -1091,7 +1091,7 @@
PSAux_Interface* psaux = (PSAux_Interface*)face->psaux;
-
+
loader->num_subrs = T1_ToInt( parser );
if ( parser->root.error )
return;
@@ -1123,7 +1123,7 @@
break;
index = T1_ToInt( parser );
-
+
if ( !read_binary_data( parser, &size, &base ) )
return;
@@ -1296,7 +1296,7 @@
/* index 0. Then take end of table name/code and place it into index */
/* notdef_index. */
- error = T1_Add_Table( name_table, n,
+ error = T1_Add_Table( name_table, n,
name_table->elements[0],
name_table->lengths [0] );
if ( error )
@@ -1339,7 +1339,7 @@
/* charstrings dictionary. Worry about /.notdef undefined. */
/* we take index 0 and add it to the end of the table(s) */
/* and add our own /.notdef glyph to index 0. */
-
+
/* 0 333 hsbw endchar */
FT_Byte notdef_glyph[] = {0x8B, 0xF7, 0xE1, 0x0D, 0x0E};
char* notdef_name = ".notdef";
@@ -1578,7 +1578,7 @@
T1_ParserRec* parser;
T1_Font* type1 = &face->type1;
FT_Error error;
-
+
PSAux_Interface* psaux = (PSAux_Interface*)face->psaux;
diff --git a/src/type1/t1objs.c b/src/type1/t1objs.c
index 57ee657a1..fa81eae40 100644
--- a/src/type1/t1objs.c
+++ b/src/type1/t1objs.c
@@ -183,7 +183,7 @@
{
psaux = (PSAux_Interface*)
FT_Get_Module_Interface( FT_FACE_LIBRARY( face ), "psaux" );
-
+
face->psaux = psaux;
}
diff --git a/src/type1/t1parse.c b/src/type1/t1parse.c
index 00b29ab03..71ddffc61 100644
--- a/src/type1/t1parse.c
+++ b/src/type1/t1parse.c
@@ -85,7 +85,7 @@
{
FT_UShort tag;
FT_Long size;
-
+
} PFB_Tag;
@@ -247,7 +247,7 @@
/* free the base dictionary only when we have a disk stream */
if ( !parser->in_memory )
FREE( parser->base_dict );
-
+
parser->root.funcs.done( &parser->root );
}
diff --git a/src/winfonts/winfnt.c b/src/winfonts/winfnt.c
index aedbb81dd..2964b2f21 100644
--- a/src/winfonts/winfnt.c
+++ b/src/winfonts/winfnt.c
@@ -462,7 +462,7 @@
if ( cur->header.pixel_height == size->root.metrics.y_ppem )
{
size->font = cur;
-
+
size->root.metrics.ascender = cur->header.ascent * 64;
size->root.metrics.descender = ( cur->header.pixel_height -
cur->header.ascent ) * 64;
@@ -528,7 +528,7 @@
glyph_index--;
else
glyph_index = font->header.default_char - font->header.first_char;
-
+
new_format = font->header.version == 0x300;
len = new_format ? 6 : 4;