blob: 0e6357eca9d3bc3114d4eab2ba563bb5d94cb6b7 [file] [log] [blame]
2002-10-25 David Turner <>
* include/freetype/ftcache.h (FT_POINTER_TO_ULONG): New macro.
2002-10-22 Giuseppe Ghibò <>
* include/freetype/freetype.h (FT_Encoding): Fix entry for latin-2.
2002-10-07 Werner Lemberg <>
* include/freetype/freetype.h (FT_Open_Face): Use `const' for `args'
(suggested by Graham).
* src/base/ftobjs.c (FT_Open_Face): Updated.
(ft_input_stream_new): Ditto.
2002-10-05 David Turner <>
Adding support for embedded bitmaps to the PFR driver, and rewriting
its kerning loader/handler to use all kerning pairs in a physical
font (and not just the first item).
* src/pfr/pfr.c: Include `pfrsbit.c'.
* src/pfr/pfrgload.c: Include `pfrsbit.h'.
* src/pfr/pfrload.c (pfr_extra_item_load_kerning_pairs): Rewritten.
(pfr_phy_font_done, pfr_phy_font_load): Updated.
* src/pfr/pfrobks.c: Include `pfrsbit.h'.
(pfr_face_init): Handle kerning and embedded bitmaps.
(pfr_slot_load): Load embedded bitmaps.
(PFR_KERN_INDEX): Removed.
(pfr_face_get_kerning): Rewritten.
* src/pfr/pfrsbit.c, src/pfr/pfrsbit.h: New files.
* src/pfr/pfrtypes.h (PFR_KernItemRec): New structure.
(PFR_KERN_INDEX): New macro.
(PFR_PhyFontRec): Add items for kerning and embedded bitmaps.
* src/pfr/Jamfile (_sources) [FT2_MULTI]: Add `pfrsbit'.
* src/base/ftobjs.c (FT_Load_Glyph): Don't load bitmap fonts if
Load embedded bitmaps only if FT_LOAD_NO_BITMAP isn't set.
* src/tools/docmaker/, src/tools/docmaker/,
src/tools/docmaker/ Fixing a few nasty bugs.
* src/sfnt/ttcmap0.c (tt_cmap4_validate): The validator for format 4
sub-tables is now capable of dealing with invalid "length" fields at
the start of the sub-table. This allows fonts like "mg______.ttf"
(i.e. Marriage) to return accurate charmaps.
* docs/CHANGES: Updated.
2002-10-05 Werner Lemberg <>
* src/smooth/ftgrays.c (SUBPIXELS): Add cast to `TPos'.
Update all callers.
(TRUNC): Add cast to `TCoord'.
Update all callers.
(TRaster): Use `TPos' for min_ex, max_ex, min_ey, max_ey, and
Update all casts.
(gray_render_line): Fix casts for `p' and `first'.
2002-10-02 Detlef Würkner <>
* src/bdf/bdflib.c (bdf_load_font): Allocate the _bdf_parse_t
structure with FT_ALLOC instead of using the stack.
2002-09-27 Werner Lemberg <>
* src/include/freetype/internal/tttypes.h (num_sbit_strikes,
num_sbit_scales): Use `FT_ULong'.
* src/sfnt/sfobjs.c (sfnt_load_face): Updated accordingly.
* src/sfnt/ttsbit.c (tt_face_set_sbit_strike): Ditto.
(find_sbit_image): Remove cast.
* src/raster/ftrend1.c (ft_raster1_render): Fix cast.
2002-09-27 Wolfgang Domröse <>
* src/sfnt/ttload.c (tt_face_load_names): Use cast.
* src/sfnt/ttcmap.c (code_to_next2): Use long constant.
(code_to_index4): Use cast.
(code_to_index8_12): Fix cast.
* src/sfnt/ttcmap0.c (tt_cmap4_char_next, tt_cmap8_char_index,
tt_cmap12_char_index): Use cast for `result'.
(tt_face_build_cmaps): Use cast.
* src/sfnt/sfobjs.c (tt_name_entry_ascii_from_ucs4): Use cast for
(sfnt_load_face): Use FT_Int32 for `flags'.
* src/smooth/ftgrays.c (gray_render_scanline, gray_render_line,
gray_compute_cbox, gray_convert_glyph, gray_raster_reset): Add casts
to `TCoord' and `int'.
More 16bit fixes.
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Add casts.
2002-09-26 Werner Lemberg <>
* src/sfnt/ttpost.c (load_post_names, tt_face_free_ps_names,
tt_face_get_ps_name): Replace switch statement with if clauses to
make it more portable.
* src/cff/cffobjs.c (cff_face_init): Ditto.
* include/freetype/ftmodule.h (FT_Module_Class): Use `FT_Long' for
* include/freetype/ftrender.h (FT_Glyph_Class_): Use `FT_Long' for
* src/base/ftobjs.c (FT_Render_Glyph): Change second parameter to
(FT_Render_Glyph_Internal): Change third parameter to
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Change second parameter
to `FT_Render_Mode'.
* src/raster/ftrend1.c (ft_raster1_render): Change third parameter
to `FT_Render_Mode'.
* src/smooth/ftsmooth.c (ft_smooth_render, ft_smooth_render_lcd,
ft_smooth_render_lcd_v): Ditto.
(ft_smooth_render_generic): Change third and fifth parameter to
* include/freetype/freetype.h, include/freetype/internal/ftobjs.h,
include/freetype/ftglyph.h: Updated.
* src/cff/cffdrivr.c (Load_Glyph), src/pcf/pcfdriver.c
(PCF_Glyph_Load), src/pfr/pfrobjs.c (pfr_slot_load),
src/winfonts/winfnt.c (FNT_Load_Glyph), src/t42/t42objs.c
(T42_GlyphSlot_Load), src/bdf/bdfdrivr.c (BDF_Glyph_Load): Change
fourth parameter to `FT_Int32'.
* src/pfr/pfrobjs.c (pfr_face_init): Add two missing parameters
and declare them as unused.
* src/cid/cidparse.h (CID_Parser): Use FT_Long for `postscript_len'.
* src/psnames/psnames.h (PS_Unicode_Value_Func): Change return
value to FT_UInt32.
* src/psnames/psmodule.c (ps_unicode_value, ps_build_unicode_table):
Updated accordingly.
2002-09-26 Wolfgang Domröse <>
* src/cff/cffdrivr.c (Get_Kerning): Use FT_Long for `middle'.
(cff_get_glyph_name): Use cast for result of ft_strlen.
* src/cff/cffparse.c (cff_parse_real): User cast for assigning
* src/cff/cffload.c (cff_index_get_pointers): Use FT_ULong for
some local variables.
(cff_charset_load, cff_encoding_load): Use casts to FT_UInt for some
switch statements.
(cff_font_load): Use cast in call to CFF_Load_FD_Select.
* src/cff/cffobjs.c (cff_size_init): Use more casts.
(cff_face_init): Use FT_Int32 for `flags'.
* src/cff/cffgload.c (cff_operator_seac): Use cast for assigning
`adx' and `ady'.
(cff_decoder_parse_charstrings): Use FT_ULong for third parameter.
Use more casts.
* src/cff/cffcmap.c (cff_cmap_unicode_init): Use cast for `count'.
* src/cid/cidload.c (cid_read_subrs): Use FT_ULong for `len'.
* src/cid/cidgload.c (cid_load_glyph): Add missing cast for
* src/psaux/t1decode.c (t1_decoder_parse_charstrings) <18>: Use
cast for `num_points'.
(t1_decoder_init): Use cast for assigning `decoder->num_glyphs'.
* src/base/ftdebug.c (ft_debug_init): Use FT_Int.
* include/freetype/internal/ftdriver.h (FT_Slot_LoadFunc): Use
`FT_Int32' for fourth parameter.
* src/base/ftobjs.c (open_face): Use cast for calling
* src/raster/ftraster.c (Set_High_Precision): Use `1' instead of
(Finalize_Profile_Table, Line_Up, ft_black_init): Use casts.
* src/raster/ftrend1.c (ft_raster1_render): Ditto.
* src/sfnt/sfnt_dir_check: Compare `magic' with unsigned long
2002-09-26 Detlef Würkner <>
* builds/amiga/include/freetype/config/ftmodule.h: Updated.
2002-09-25 David Turner <>
* src/autohint/ahtypes.h (AH_HINT_METRICS): Disabling metrics
hinting in the auto-hinter. This produces much better anti-aliased
* docs/CHANGES: Updating the changes documentation.
2002-09-25 Anthony Fok <>
* src/sfnt/ttcmap0.c (tt_cmap4_validate, tt_cmap4_char_index,
tt_cmap4_char_next): Added support for opens___.ttf (it contains a
charmap that uses offset=0xFFFFU instead of 0x0000 to indicate a
missing glyph).
2002-09-21 Wolfgang Domröse <>
* src/truetype/ttdriver.c (Load_Glyph): Fourth parameter must be
* src/truetype/ttgload.c, src/truetype/ttgload.h (TT_Load_Glyph):
2002-09-19 Wolfgang Domröse <>
More 16bit fixes.
* src/autohint/ahglobal.c (sort_values): Use FT_Pos for `swap'.
(ah_hinter_compute_widths): Use FT_Pos for `dist'.
* src/autohint/ahglyph.c (ah_outline_scale_blue_edges): Use FT_Pos
for `delta'.
(ah_outline_compute_edges): Replace some ints with FT_Int and
(ah_test_extrema): Clean up code.
(ah_get_orientation): Use 4 FT_Int variables instead of FT_BBox to
hold indices.
* src/autohint/ahtypes.h (AH_SegmentRec): Change type of `score'
to FT_Pos.
2002-09-19 Werner Lemberg <>
* builds/unix/config.guess, builds/unix/config.sub: Updated to
recent versions.
2002-09-18 David Turner <>
* src/base/ftobjs.c (FT_Library_Version): Bugfix.
* FreeType 2.1.3rc2 (release candidate 2) is released!
2002-09-17 David Turner <>
* include/freetype/freetype.h, include/freetype/ftimage.h,
include/freetype/ftstroker.h, include/freetype/ftsysio.h,
include/freetype/ftsysmem.h, include/freetype/ttnameid.h: Updating
the in-source documentation.
* src/tools/docmaker/ Updating the HTML formatter in the
DocMaker tool.
* src/tools/ Removed.
2002-09-17 Werner Lemberg <>
More 16bit fixes.
* src/psaux/psobjs.c (reallocate_t1_table): Use FT_Long for
second parameter.
2002-09-16 Werner Lemberg <>
16bit fixes from Wolfgang Domröse.
* src/type1/t1parse.h (T1_ParserRec): Change type of `base_len'
and `private_len' to FT_Long.
* src/type1/t1parse.c (T1_Get_Private_Dict): Remove cast for
* src/type1/t1load.c: Use FT_Int cast for most calls of T1_ToInt.
Use FT_PtrDist where appropriate.
(parse_encoding): Use FT_Long for `count' and `n'.
(read_binary_data): Use FT_Long* for second parameter.
* src/type1/t1afm.c (afm_atoindex): Use FT_PtrDist.
* src/cache/ftcsbits.c (ftc_sbit_node_load): Remove unused label.
* src/pshinter/pshalgo3.c (psh3_hint_align): Remove unused variable.
2002-09-14 Werner Lemberg <>
Making ftgrays.c compile stand-alone again.
* include/freetype/ftimage.h: Include ft2build.h only if _STANDALONE_
isn't defined.
* src/smooth/ftgrays.c [_STANDALONE_]: Define ft_memset,
(FT_MEM_ZERO): Define.
(TRaster) [GRAYS_USE_GAMMA]: Use `unsigned char' instead of FT_Byte.
(gray_render_span, gray_init_gamma): Don't use `FT_UInt'.
Don't cast with `FT_Byte'.
(grays_init_gamma): Don't use `FT_UInt'.
2002-09-14 Werner Lemberg <>
* src/base/ftinit.c (FT_Add_Default_Modules): Improve error message.
* src/pcf/pcfdriver.c (PCF_Face_Done): Improve tracing message.
* include/freetype/config/ftoption.h (FT_MAX_MODULES): Increased
to 32.
2002-09-10 Werner Lemberg <>
* builds/unix/ (version_info): Set to 9:2:3.
* builds/unix/configure: Regenerated.
* docs/VERSION.DLL: Updated.
2002-09-09 David Turner <>
* src/pshinter/pshalgo2.c (psh2_glyph_find_strong_points),
src/pshinter/pshalgo3.c (psh3_glyph_find_strong_points): Adding fix
to prevent seg fault when hints are provided in an empty glyph.
* src/cache/ftccache.i (GEN_CACHE_LOOKUP) [FT_DEBUG_LEVEL_ERROR]:
Removed conditional code. This fixes a bug that prevented
compilation in debug mode of template instantiation.
* include/freetype/ftimage.h: Removed incorrect "zft_" definitions
and updated constants documentation comments.
* src/cff/cffparse.c (cff_parser_run): Fixed the CFF table loader.
It didn't accept empty arrays, and this prevented the loading of
certain fonts.
* include/freetype/freetype.h (FT_FaceRec): Updating documentation
comment. The "descender" value is always *negative*, not positive.
2002-09-09 Owen Taylor <>
* src/pcf/pcfdriver.c (PCF_Glyph_Load): Fixing incorrect computation
of bitmap metrics.
2002-09-08 David Turner <>
Various updates to correctly support sub-pixel rendering.
* include/freetype/config/ftmodule.h: Add two renderers for LCD.
* src/base/ftobjs.c (FT_Load_Glyph): Updated.
* src/smooth/ftsmooth.c (ft_smooth_render_lcd,
ft_smooth_render_lcd_v): Set FT_PIXEL_MODE_LCD and
FT_PIXEL_MODE_LCD_V, respectively.
* include/freetype/cache/ftcimage.h (FTC_ImageTypeRec): New
Updated all users.
(FTC_ImageDesc): Removed.
(FTC_ImageCache_Lookup): Second parameter is now of type
Updated all users.
(FTC_IMAGE_DESC_COMPARE): Updated and renamed to...
(FTC_IMAGE_DESC_HASH): Updated and renamed to...
* include/freetype/cache/ftcsbits.h (FTC_SBitRec): Field `num_grays'
replaced with `max_grays'.
`pitch' is now FT_Short.
(FTC_SBitCache_Lookup): Second parameter is now of type
Updated all users.
* src/cache/ftcimage.c (FTC_ImageQueryRec, FTC_ImageFamilyRec):
(ftc_image_node_init): Updated.
Moved code to convert type flags to load flags to...
(FTC_Image_Cache_Lookup): This function.
(ftc_image_family_init): Updated.
* src/cache/ftcsbit.c (FTC_SBitQueryRec, FTC_SBitFamilyRec):
(ftc_sbit_node_load): Updated.
Moved code to convert type flags to load flags to...
(FTC_SBitCache_Lookup): This function.
* src/autohint/ahtypes.h (AH_HinterRec): Replace `no_*_hints' with
Update all users (with negation).
* src/autohint/ahhint.c (ah_compute_stem_width): Fix threshold for
`dist' for `delta' < 40.
* src/pshinter/pshalgo3.h (PSH3_GlyphRec): Replace `no_*_hints' with
Update all users (with negation).
* src/pshinter/pshalgo3.c (psh3_dimension_quantize_len): New
(psh3_hint_align): Use it.
Improve hinting code.
[STRONGER]: Removed.
(STRONGER): Removed.
* include/freetype/freetype.h (FT_Set_Hint_Flags, FT_HINT_*):
2002-09-05 Werner Lemberg <>
* src/cid/cidobjs.c (CID_Size_Init): Renamed to...
(cid_size_init): This.
* src/psaux/psobjs.c (T1_Builder_Add_Point1): Renamed to...
(t1_builder_add_point1): This.
Updated all affected code.
* src/pshinter/pshalgo3.c (psh3_hint_align): Fix compiler warnings.
* src/type1/t1gload.c (T1_Compute_Max_Advance): Ditto.
2002-09-04 David Turner <>
* include/freetype/freetype.h: Corrected the definition of
ft_encoding_symbol to be FT_ENCODING_MS_SYMBOL (instead of
the erroneous FT_ENCODING_SYMBOL).
* builds/unix/ (datadir): Initialize it (thanks to
Anthony Fok).
2002-08-29 David Turner <>
Slight modification to the Postscript hinter to slightly increase
the contrast of smooth hinting. This is very similar to what the
auto-hinter does when it comes to stem width computations. However,
it produces better results with well-hinted fonts.
* include/freetype/internal/psaux.h (T1_Decoder_FuncsRec): Add hint
mode to `init' member function.
(T1_DecoderRec): Add hint mode.
* include/freetype/internal/pshints (T1_Hints_ApplyFunc,
T2_Hints_ApplyFunc): Pass `hint_mode', not `hint_flags'.
* src/psaux/t1decode.c (t1_decoder_init): Add hint mode argument.
* src/pshinter/pshalgo1.c (ps1_hints_apply): Pass hint mode, not
hint flags.
* src/pshinter/pshalgo2.c (ps2_hints_apply): Ditto.
* src/pshinter/pshalgo3.c (ps3_hints_apply): Ditto.
(STRONGER): New macro.
(psh3_hint_align, psh3_hint_table_align_hints): Pass `glyph' instead
of `hint_flags'.
Implement announced changes.
* src/pshinter/pshalgo3.h (PSH3_GlyphRec): Add flags to control
vertical and horizontal hints and snapping.
* README, docs/CHANGES: Updating for the 2.1.3 release.
2002-08-27 David Turner <>
* Massive re-formatting changes to many, many source files. I don't
want to list them all here. The operations performed were all
logical transformations of the sources:
- trying to convert all enums and constants to CAPITALIZED_STYLE,
#with define definitions like
#define my_old_constants MY_NEW_CONSTANT
- big, big update of the documentation comments
* include/freetype/freetype.h, src/base/ftobjs.c,
src/smooth/ftsmooth.c, include/freetype/ftimage.h: Adding support
for LCD-optimized rendering though the new constants/enums:
This is still work in progress, don't expect everything to work
correctly though most of the features have been implemented.
* Adding new FT_LOAD_XXX flags, used to specify both hinting and
rendering targets:
FT_LOAD_TARGET_NORMAL :: anti-aliased hinting & rendering
FT_LOAD_TARGET_MONO :: monochrome bitmaps
FT_LOAD_TARGET_LCD :: horizontal RGB/BGR decimated
hinting & rendering
FT_LOAD_TARGET_LCD_V :: vertical RGB/BGR decimated
hinting & rendering
Note that FT_LOAD_TARGET_NORMAL is 0, which means that the default
behaviour of the font engine is _unchanged_.
* include/freetype/ftimage.h
(FT_Outline_{Move,Line,Conic,Cubic}To_Func): Renamed to...
(FT_Outline_{Move,Line,Conic,Cubic}ToFunc): This.
(FT_Raster_Span_Func): Renamed to ...
(FT_SpanFunc): This.
(FT_Raster_{New,Done,Reset,Set_Mode,Render}_Func): Renamed to ...
(FT_Raster_{New,Done,Reset,SetMode,Render}Func}: This.
Updated all affected code.
* include/freetype/ftrender.h
(FT_Glyph_{Init,Done,Transform,BBox,Copy,Prepare}_Func): Renamed
to ...
(FT_Glyph_{Init,Done,Transform,GetBBox,Copy,Prepare}Func): This.
(FTRenderer_{render,transform,getCBox,setMode}): Renamed to ...
Updated all affected code.
* src/autohint/ahtypes.h (AH_Point, AH_Segment, AH_Edge, AH_Globals,
AH_Face_Globals, AH_Outline, AH_Hinter): These typedefs are now
pointers to the corresponding `*Rec' structures. All source files
have been updated accordingly.
* src/cff/cffgload.c (cff_decoder_init): Add hint mode as parameter.
* src/cff/cffgload.h (CFF_Decoder): Add `hint_mode' element.
* src/cid/cidgload.c (CID_Compute_Max_Advance): Renamed to...
(cid_face_compute_max_advance): This.
(CID_Load_Glyph): Renamed to...
(cid_slot_load_glyph): This.
* src/cid/cidload.c (CID_Open_Face): Renamed to...
(cid_face_open): This.
* src/cid/cidobjs.c (CID_GlyphSlot_{Done,Init}): Renamed to...
(cid_slot_{done,init}): This.
(CID_Size_{Get_Globals_Funcs,Done,Reset): Renamed to...
(cid_size_{get_globals_funcs,done,reset): This.
(CID_Face_{Done,Init}): Renamed to...
(cid_face_{done,init}): This.
(CID_Driver_{Done,Init}: Renamed to...
(cid_driver_{done,init}: This.
* src/cid/cidparse.c (CID_{New,Done}_Parser): Renamed to...
(cid_parser_{new,done}): This.
* src/cid/cidparse.h (CID_Skip_{Spaces,Alpha}): Renamed to...
(cid_parser_skip_{spaces,alpha}): This.
(CID_To{Int,Fixed,CoordArray,FixedArray,Token,TokenArray}): Renamed
(CID_Load_{Field,Field_Table): Renamed to...
(cid_parser_load_{field,field_table}): This.
* src/cid/cidriver.c (CID_Get_Interface): Renamed to...
(cid_get_interface): This.
Updated all affected code.
* src/psaux/psobjs.c (PS_Table_*): Renamed to...
(ps_table_*): This.
(T1_Builder_*): Renamed to...
(t1_builder_*): This.
* src/psaux/t1decode.c (T1_Decoder_*): Renamed to...
(t1_decoder_*): This.
* src/psnames/psmodule.c (PS_*): Renamed to...
(ps_*): This.
Updated all affected code.
* src/sfnt/sfdriver (SFNT_Get_Interface): Renamed to...
(sfnt_get_interface): This.
* src/sfnt/sfobjs.c (SFNT_*): Renamed to...
(sfnt_*): This.
* src/sfnt/ttcmap.c (TT_CharMap_{Load,Free}): Renamed to...
(tt_face_{load,free}_charmap): This.
* src/sfnt/ttcmap0.c (TT_Build_CMaps): Renamed to...
(tt_face_build_cmaps): This.
* src/sfnt/ttload.c (TT_*): Renamed to...
(tt_face_*): This.
* src/sfnt/ttpost.c (TT_Post_Default_Names): Renamed to...
(tt_post_default_names): This.
(Load_*): Renamed to...
(load_*): This.
(TT_*): Renamed to...
(tt_face_*): This.
* src/sfnt/ttsbit.c (TT_*): Renamed to...
(tt_face_*): This.
({Find,Load,Crop}_*): Renamed to...
({find,load,crop}_*): This.
Updated all affected code.
* src/smooth/ftsmooth.c (ft_smooth_render): Renamed to...
(ft_smooth_render_generic): This.
Make function more generic by adding vertical and horizontal scaling
(ft_smooth_render, ft_smooth_render_lcd, ft_smooth_render_lcd_v):
New functions.
(ft_smooth_locd_renderer_class, ft_smooth_lcdv_renderer_class): New
* src/truetype/ttobjs.c (TT_{Done,New}_GlyphZone): Renamed to...
(tt_glyphzone_{done,new}): This.
(TT_{Face,Size,Driver}_*): Renamed to...
(tt_{face,size,driver}_*): This.
* src/truetype/ttpload.c (TT_Load_Locations): Renamed to...
(tt_face_load_loca): This.
(TT_Load_Programs): Renamed to...
(tt_face_load_fpgm): This.
(TT_*): Renamed to...
(tt_face_*): This.
2002-08-27 Werner Lemberg <>
* docs/VERSION.DLL: New file.
2002-08-23 Graham Asher <>
* src/cff/cffgload.c (cff_operator_seac)
[FT_CONFIG_OPTION_INCREMENTAL]: Incremental fonts (actually not
incremental in the case of CFF but just using callbacks to get glyph
recipes) pass the character code, not the glyph index, to the
get_glyph_data function; they have no valid charset table.
* src/cff/cffload.c (cff_font_load): Removed special cases for
FT_CONFIG_OPTION_INCREMENTAL, which are no longer necessary; CFF
fonts provided via the incremental interface now have to conform
more closely to the CFF font format.
* src/cff/cffload.h (cff_font_load): Removed argument now unneeded.
* src/cff/cffobjs.c (cff_face_init): Changed call to cff_font_load
to conform with new signature.
2002-08-22 David Turner <>
* src/base/ftobject.c, src/base/ftsynth.c, src/base/ftstroker.c,
src/bdf/bdfdrivr.c: Removed compiler warnings.
2002-08-21 Werner Lemberg <>
* src/pshinter/pshalgo3.c (psh3_glyph_compute_inflections,
psh3_glyph_compute_extrema, psh3_hint_table_find_strong_point): Fix
compiler warnings and resolve shadowing of local variables.
2002-08-21 David Turner <>
The automatic and Postscript hinter now automatically detect
inflection points in glyph outlines and treats them specially. This
is very useful to prevent nasty effect like the disappearing
diagonals of "S" and "s" in many, many fonts.
* src/autohint/ahtypes.h (ah_flag_inflection): New macro.
* src/autohint/ahangles.c (ah_angle_diff): New function.
* src/autohint/ahangles.h: Updated.
* src/autohint/ahglyph.c (ah_outline_compute_inflections): New
(ah_outline_detect_features): Use it.
* src/autohint/ahhint.c (ah_hinter_align_strong_points)
* src/tools/docmaker/, src/tools/docmaker/,
src/tools/docmaker/ Updating the DocMaker tool.
* include/freetype/freetype.h: Changing the type of the "load_flags"
parameter from "FT_Int" to "FT_Int32", this in order to support more
options. This should only break binary and/or source compatibility
on 16-bit platforms (Atari?).
* src/base/ftobjs.c (FT_Load_Glyph): Updated.
(FT_Load_Char): Updated.
* src/pshinter/pshalgo3.c, src/base/ftobjs.c, src/base/ftobject.c,
src/autohint/ahglyph.c, include/freetype/freetype.h: Fixing typos
and removing compiler warnings.
2002-08-20 Werner Lemberg <>
* src/truetype/ttgload.c (TT_Get_Metrics): Add guard for k = 0.
2002-08-20 David Turner <>
* src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.c,
src/pshinter/pshglob.c, src/pshinter/pshrec.c,
src/autohint/ahmodule.c [DEBUG_HINTER]: Removing compiler warnings
(only used in development builds anyway).
Improve support of local extrema and stem edge points.
* src/pshinter/pshalgo3.h (PSH3_Hint_TableRec): Use PSH3_ZoneRec
for `zones'.
(PSH3_DIR_UP, PSH3_DIR_DOWN): Exchange values.
(PSH3_POINT_INFLEX): New enum.
(psh3_point_{is,set}_{off,inflex}): New macros.
enum values.
New macros.
(PSH3_PointRec): New members `flags2' and `org_v'.
* src/pshinter/pshalgo3.c [DEBUG_HINTER]: Removing compiler
(psh3_hint_align): Simplify some basic arithmetic computations.
(psh3_point_is_extremum): Removed.
(psh3_glyph_compute_inflections) [COMPUTE_INFLEXS]: New function.
(psh3_glyph_init) [COMPUTE_INFLEXS]: Use it.
(psh3_glyph_compute_extrema): New function.
(PSH3_STRONG_THRESHOLD): Increased to 30.
(psh3_hint_table_find_strong_point): Improved.
psh3_glyph_interpolate_strong_points): Updated.
(psh3_hints_apply): Use psh3_glyph_compute_extrema.
* test/gview.c (draw_ps3_hint, ps3_draw_control_points): New
Other small updates.
* Jamfile: Small updates.
2002-08-18 Arkadiusz Miskiewicz <misiek@pld.ORG.PL>
* builds/unix/ (install, uninstall): Add $(DESTDIR) to
make life easier for package maintainers.
2002-08-18 Werner Lemberg <>
* src/pcf/pcfdriver.c (PCF_Glyph_Load): Fix computation of
* src/bdf/bdfdrivr.c (BDF_GlyphLoad): Fix computation of
2002-08-16 George Williams <>
Add support for Apple composite glyphs.
* include/freetype/config/ftoption.h
UNSCALED_COMPONENT_OFFSET): New macros for additional OpenType
glyph loading flags.
(load_truetype_glyph): Implement it.
2002-08-16 Werner Lemberg <>
* src/cff/cffgload.c (cff_free_glyph_data),
src/cff/cffload.c (cff_font_load): Use FT_UNUSED.
2002-08-15 Werner Lemberg <>
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Initialize `error'.
* src/sfnt/sfobjs.c (SFNT_Load_Face): Fix compiler warning.
2002-08-15 Graham Asher <>
Implemented the incremental font loading system for the CFF driver.
Tested using the GhostScript-to-FreeType bridge (under development).
* src/cff/cffgload.c (cff_get_glyph_data, cff_free_glyph_data): New
(cff_operator_seac, cff_compute_max_advance, cff_slot_load): Use
* src/cff/cffload.c (cff_font_load): Add `face' parameter.
Load charset and encoding only if there are glyphs.
[FT_CONFIG_OPTION_INCREMENTAL]: Incremental fonts don't need
character recipes.
* src/cff/cffload.h, src/cff/cffobjs.c: Updated.
* src/cid/cidgload.c (cid_load_glyph)
[FT_CONFIG_OPTION_INCREMENTAL]: Corrected the incremental font
loading implementation to use the new system introduced on
2002-08-06 Werner Lemberg <>
* src/cff/cffcmap.c: Remove compiler warnings.
* src/cache/ftccache.c, src/cache/ftccache.i,
src/pfr/pfrload.c, src/pfr/pfrgload.c: s/index/idx/.
* src/cff/cffload.c: s/select/fdselect/.
* src/raster/ftraster.c: s/wait/waiting/.
2002-08-01 Graham Asher <>
* src/type1/t1load.c (T1_Open_Face): Tolerate a face with no
charstrings if there is an incremental loading interface. Type 1
faces supplied by PostScript interpreters like GhostScript will
typically not provide any charstrings at load time, so this is
essential if they are to work.
2002-08-01 Graham Asher <>
Modified incremental loading interface to be closer to David's
preferences. The header freetype.h is not now affected, the
interface is specified via an FT_Parameter, the pointer to the
interface is hidden in an internal part of the face record, and all
the definitions are in ftincrem.h.
* include/freetype/freeetype.h [FT_CONFIG_OPTION_INCREMENTAL]:
* include/freetype/internal/ftobjs.h [FT_CONFIG_OPTION_INCREMENTAL]:
* src/base/ftobjs.c (open_face, FT_Open_Face)
* src/sfnt/sfobjs.c (SFNT_Load_Face) [FT_CONFIG_OPTION_INCREMENTAL]:
* src/truetype/ttgload.c (load_truetype_glyph)
Free loaded glyph data properly.
(compute_glyph_metrics, TT_Load_Glyph)
* src/truetype/ttobjs.c (TT_Face_Init)
* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String)
Free loaded glyph data properly.
(T1_Load_Glyph): Updated.
[FT_CONFIG_OPTION_INCREMENTAL]: Free loaded glyph data properly.
2002-07-30 David Turner <>
* include/freetype/ftincrem.h: Adding new experimental header file
to demonstrate a "cleaner" API to support incremental font loading.
* include/freetype/config/ftheader.h (FT_INCREMENTAL_H): New macro.
* src/tools/docmaker/*: Adding new (more advanced) version of
the DocMaker tool, using Python's sophisticated regexps.
2002-07-28 Werner Lemberg <>
s/FT_MEM_SET/FT_MEM_ZERO/ where appropriate.
2002-07-27 Werner Lemberg <>
* src/sfnt/ttload.c (sfnt_dir_check): Make it work with TTCs.
2002-07-26 Werner Lemberg <>
* src/truetype/ttgload.c (load_truetype_glyph)
[FT_CONFIG_OPTION_INCREMENTAL]: s/memset/ft_memset/.
* src/autohint/ahhint.c (ah_hint_edges_3): Fix compiler warning.
* src/cff/cffload.c (cff_encoding_load): Remove `memory' variable.
* src/cff/cffcmap.c (cff_cmap_encoding_init): Remove `psnames'
* src/truetype/ttgload.c (load_truetype_glyph): Remove statement
without effect.
* src/truetype/ttdriver (Get_Char_Index, Get_Next_Char): Removed.
* src/pshinter/pshalgo3.c (psh3_hint_table_record,
psh3_hint_table_init, psh3_hint_table_activate_mask): Fix error
2002-07-24 Graham Asher <>
* src/truetype/ttobjs.c: Fix for bug reported by Sven Neumann
[] on the FreeType development forum: "If
FT_CONFIG_OPTION_INCREMENTAL is undefined (this is the default), the
TrueType loader crashes in line 852 of src/truetype/ttgload.c when
it tries to access face->glyph_locations."
2002-07-18 Graham Asher <>
Added types and structures to support incremental typeface loading.
The FT_Incremental_Interface structure, defined in freetype.h, is
designed to be passed to FT_Open_Face to provide callback functions
to obtain glyph recipes and metrics, for fonts like those passed
from PostScript that do not necessarily provide all, or any, glyph
information, when first opened.
* include/freetype/config/ftoption.h (FT_CONFIG_OPTION_INCREMENTAL):
New configuration macro to enable incremental face loading. By
default it is not defined.
* include/freetype/freetype.h (FT_Basic_Glyph_Metrics,
FT_Get_Glyph_Data_Func, FT_Get_Glyph_Metrics_Func,
FT_Incremental_Interface_Funcs, FT_Incremental_Interface)
(FT_Open_Args, FT_FaceRec) [FT_CONFIG_OPTION_INCREMENTAL]: New field
* include/freetype/fttypes.h: Include FT_CONFIG_CONFIG_H.
(FT_Data): New structure to represent binary data.
* src/base/ftobjs.c (open_face) [FT_CONFIG_OPTION_INCREMENTAL]:
Add parameter for incremental loading.
(FT_Open_Face) [FT_CONFIG_OPTION_INCREMENTAL]: Use incremental
* src/truetype/ttgload.c (load_truetype_glyph)
[FT_CONFIG_OPTION_INCREMENTAL]: Added the incremental loading system
for the TrueType driver.
(compute_glyph_metrics): Return FT_Error.
[FT_CONFIG_OPTION_INCREMENTAL]: Check for overriding metrics.
(TT_Load_Glyph) [FT_CONFIG_OPTION_INCREMENTAL]: Don't look for
the glyph table while handling an incremental font.
Get glyph offset.
* src/truetype/ttobjs.c (TT_Face_Init)
[FT_CONFIG_OPTION_INCOREMENTAL]: Added the incremental loading
system for the TrueType driver.
* src/cid/cidgload.c (cid_load_glyph)
[FT_CONFIG_OPTION_INCREMENTAL]: Added the incremental loading system
for the CID driver.
* src/sfnt/sfobjs.c (SFNT_Load_Face) [FT_CONFIG_OPTION_INCREMENTAL]:
Changes to support incremental Type 42 fonts: Assume a font has
glyphs if it has an incremental interface object.
* src/type1/t1gload.c (T1_Parse_Glyph): Renamed to...
(T1_Parse_Glyph_And_Get_Char_String): This.
[FT_CONFIG_OPTION_INCREMENTAL]: Added support for incrementally
loaded Type 1 faces.
(T1_Parse_Glyph): New function.
(T1_Load_Glyph): Updated.
2002-07-17 David Turner <>
Cleaning up the cache sub-system code; linear hashing is now the
* include/freetype/cache/ftccache.h, src/cache/ftccache.i,
src/cache/ftccache.c [!FTC_CACHE_USE_LINEAR_HASHING]: Removed.
FT_CONFIG_OPTION_USE_CMAPS is now the default.
* include/freetype/internal/ftdriver.h (FT_Driver_ClassRec): Remove
`get_char_index' and `get_next_char'.
* include/freetype/config/ftoption.h,
include/freetype/internal/tttypes.h, src/base/ftobjs.c,
src/bdf/bdfdrivr.c, src/cff/cffobjs.c, src/pcf/pcfdrivr.c,
src/pfr/pfrdrivr.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c,
src/sfnt/ttcmap0.h, src/sfnt/ttload.c, src/type1/t1objs.c,
src/type42/t42objs.c, src/winfonts/winfnt.c
[!FT_CONFIG_OPTION_USE_CMAPS]: Removed. The new cmap code is now
the default.
* src/type42/t42objs.c (T42_CMap_CharIndex, T42_CMap_CharNext):
* src/type42/t42objs.h: Updated.
* src/cid/cidriver.c (Cid_Get_Char_Index, Cid_Get_Next_Char):
(t1_cid_driver_class): Updated.
* src/truetype/ttdriver.c (tt_driver_class): Updated.
* src/type1/t1driver.c (Get_Char_Index, Get_Next_Char): Removed
(t1_driver_class): Updated.
* src/type42/t42drivr.c (t42_driver_class): Updated.
* src/base/ftobjs.c (open_face): Select Unicode cmap by default.
* src/sfnt/ttload.c (TT_Load_SFNT_Header): Fixed a recent bug that
prevented OpenType fonts to be recognized by FreeType.
2002-07-11 David Turner <>
Changing the SFNT loader to check for SFNT-based font files
differently. We now ignore the range "helper" fields and check the
"head" table's magic number instead.
* include/freetype/internal/tttypes.h (SFNT_HeaderRec): Add `offset'
* src/sfnt/ttload.c (sfnt_dir_check): New function.
(TT_Load_SFNT_HeaderRec): Renamed to...
(TT_Load_SFNT_Header): This.
Implement new functionality.
* src/sfnt/ttload.h: Updated.
* src/sfnt/sfdriver.c (sfnt_interface): Updated.
* src/base/ftobject.c, src/base/fthash.c: Updated object sub-system
and dynamic hash table implementation (still experimental, don't
* include/freetype/internal/fthash.h: Updated.
* include/freetype/internal/ftobjs.h (FT_LibraryRec): New member
Fixing a bug in the Type 1 loader that prevented valid font bounding
boxes to be loaded from multiple master fonts.
* include/freetype/t1tables.h (PS_BlendRec): Add `bboxes' field.
* include/freetype/internal/psaux.h (T1_FieldType): Add
(T1_FieldLocation): Add `T1_FIELD_LOCATION_BBOX'.
(T1_FIELD_BBOX): New macro.
* src/psaux/psobjs.c (PS_Parser_LoadField): Handle T1_FIELD_TYPE_BBOX.
* src/type1/t1load.c (t1_allocate_blend): Create blend->bboxes.
(T1_Done_Blend): Free blend->bboxes.
(t1_load_keyword): Handle T1_FIELD_LOCATION_BBOX.
(parse_font_bbox): Commented out.
(t1_keywords): Comment out `parse_font_bbox'.
* src/type1/t1tokens.h: Define `FontBBox' field.
2002-07-10 David Turner <>
* src/cff/cffobjs.c: Small fix to select the Unicode charmap by
default when needed.
Small fix to allow OpenType fonts to support Adobe charmaps when
* src/cff/cffcmap.c, src/cff/cffcmap.h: New files to support
charmaps for CFF fonts.
* src/cff/cff.c, src/cff/Jamfile, src/cff/ Updated.
* include/freetype/internal/cfftypes.h (CFF_EncodingRec): Use
fixed-length arrays for `sids' and `codes'. Add `count' member.
(CFF_FontRec): Add `psnames' member.
* src/cff/cffdrivr.c, src/cff/cffload.c, src/cff/cffload.h,
src/cff/cffobjs.c, src/cff/cffobjs.h, src/cff/cffparse.c,
src/cffparse.h, src/cff/cffgload.c, src/cff/cffgload.h: Adding
support for CFF charmaps, reformatting the sources, and removing
some bugs in the Encoding and Charset loaders.
Many fonts renamed to use lowercase only:
CFF_Builder_Init -> cff_builder_init
CFF_Builder_Done -> cff_builder_done
CFF_Init_Decoder -> cff_decoder_init
CFF_Parse_CharStrings -> cff_decoder_parse_charstrings
CFF_Load_Glyph -> cff_slot_load
CFF_Init_Decoder -> cff_decoder_init
CFF_Prepare_Decoder -> cff_decoder_prepare
CFF_Get_Standard_Encoding -> cff_get_standard_encoding
CFF_Access_Element -> cff_index_access_element
CFF_Forget_Element -> cff_index_forget_element
CFF_Get_Name -> cff_index_get_name
CFF_Get_String -> cff_index_get_sid_string
CFF_Get_FD -> cff_fd_select_get
CFF_Done_Charset -> cff_charset_done
CFF_Load_Charset -> cff_charset_load
CFF_Done_Encoding -> cff_encoding_done
CFF_Load_Encoding -> cff_encoding_load
CFF_Done_SubFont -> cff_subfont_done
CFF_Load_Font -> cff_font_load
CFF_Done_Font -> cff_font_done
CFF_Size_Get_Global_Funcs -> cff_size_get_global_funcs
CFF_Size_Done -> cff_size_done
CFF_Size_Init -> cff_size_init
CFF_Size_Reset -> cff_size_reset
CFF_GlyphSlot_Done -> cff_slot_done
CFF_GlyphSlot_Init -> cff_slot_init
CFF_StrCopy -> cff_strcpy
CFF_Face_Init -> cff_face_init
CFF_Face_Done -> cff_face_done
CFF_Driver_Init -> cff_driver_init
CFF_Driver_Done -> cff_driver_done
CFF_Parser_Init -> cff_parser_init
CFF_Parser_Run -> cff_parser_run
add_point -> cff_builder_add_point
add_point1 -> cff_builder_add_point1
add_contour -> cff_builder_add_contour
close_contour -> cff_builder_close_contour
cff_explicit_index -> cff_index_get_pointers
2002-07-09 Owen Taylor <>
* src/pshinter/pshglob.c (psh_globals_new): Fixed a bug that
prevented the hinter from using correct standard width and height
values, resulting in hinting bugs with certain fonts (e.g. Utopia).
2002-07-07 David Turner <>
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Added code to return
successfully when the function is called with a bitmap glyph (the
previous code simply returned with an error).
* docs/DEBUG.TXT: Adding debugging support documentation.
* src/base/ftdebug.c (ft_debug_init), builds/win32/ftdebug.c
(ft_debug_init), builds/amiga/src/ftdebug.c (ft_debug_init): Changed
the syntax of the FT2_DEBUG environment variable used to control
debugging output (i.e. logging and error messages). It must now
look like:
any:6 memory:4 io:3 or
any:6,memory:4,io:3 or
2002-07-07 Owen Taylor <>
* src/pshinter/pshglob.c (psh_blues_snap_stem): Adding support for
blue fuzz.
* src/pshinter/pshglob.h (PSH_BluesRec): Add `blue_fuzz' field.
* src/type1/t1load.c (T1_Open_Face): Initialize `blue_fuzz'.
Adding support for hinter-specific bit flags, and the new
FT_Set_Hint_Flags high-level API.
* include/freetype/freetype.h (FT_Set_Hint_Flags): New function.
* include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Add
`hint_flags' member.
* src/base/ftobjs.c (FT_Set_Hint_Flags): New function.
* include/freetype/internal/psaux.h (T1_DecoderRec): Add `hint_flags'
* include/freetype/internal/pshints.h (T1_Hints_ApplyFunc,
T2_Hints_ApplyFunc): Add parameter to pass hint flags.
* src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings,
T1_Decoder_Init): Use decoder->hint_flags.
* src/cff/cffgload.h (CFF_Builder): Add `hint_flags' field.
* src/cff/cffgload.c (CFF_Builder_Init): Set builder->hint_flags.
(CFF_Parse_CharStrings): Updated.
* src/pshinter/pshalgo1.c (ps1_hints_apply): Add parameter to handle
hint flags (unused).
* src/pshinter/pshalgo1.h: Updated.
* src/pshinter/pshalgo2.c (ps2_hints_apply): Add parameter to handle
hint flags (unused).
* src/pshinter/pshalgo2.h: Updated.
* src/pshinter/pshalgo3.c (ps3_hints_apply): Add parameter to handle
hint flags.
* src/pshinter/pshalgo3.h: Updated.
2002-07-04 David Turner <>
* src/pfr/pfrobjs.c (pfr_slot_load): Fixed a small bug that returned
incorrect advances when the outline resolution was different from
the metrics resolution.
* src/autohint/ahhint.c: Removing compiler warnings.
* src/autohint/ahglyph.c: s/FT_MEM_SET/FT_ZERO/ where appropriate.
(ah_outline_link_segments): Slight improvements to the serif
detection code. More work is needed though.
2002-07-03 David Turner <>
Small improvements to the automatic hinter. Uneven stem-widths have
now disappeared and everything looks much better, even if there are
still issues with serifed fonts.
* src/autohint/ahtypes.h (AH_Globals): Added `stds' array.
* src/autohint/ahhint.c (OPTIM_STEM_SNAP): New #define.
(ah_snap_width): Commented out.
(ah_align_linked_edge): Renamed to...
(ah_compute_stem_width): This.
Don't allow uneven stem-widths.
(ah_align_linked_edge): New function.
(ah_align_serifed_edge): Don't strengthen serifs.
(ah_hint_edges_3, ah_hinter_scale_globals): Updated.
2002-07-03 Owen Taylor <>
Adding new algorithm based on Owen Taylor's recent work.
* src/pshinter/pshalgo3.c, src/pshinter/pshalgo3.h: New files.
* src/pshinter/pshalgo.h: Updated.
Use pshalgo3 by default.
* src/pshinter/pshinter.c: Include pshalgo3.c.
* src/pshinter/Jamfile, src/pshinter/ Updated.
2002-07-01 Owen Taylor <>
* src/pshinter/pshalgo2.c (psh2_glyph_find_strong_points): Fix a bug
where, if a glyph has more than hint mask, the second mask gets
applied to points that should have been covered by the first mask.
2002-07-01 Keith Packard <>
* src/sfnt/ttcmap0.c (tt_cmap8_char_next, tt_cmap12_char_next):
Fixing the cmap 8 and 12 parsing routines.
2002-07-01 David Turner <>
* src/base/ftsynth.c: Include FT_TRIGONOMETRY_H.
(FT_Outline_Embolden): Renamed to...
(FT_GlyphSlot_Embolden): This.
Updated to new trigonometric functions.
(FT_Outline_Oblique): Renamed to...
(FT_GlyphSlot_Oblique): This.
(ft_norm): Removed.
* include/freetype/ftsynth.h: Updated.
2002-06-26 David Turner <>
* include/freetype/internal/ftobject.h: Updating the object
sub-system definitions (still experimental).
* src/base/fthash.c (ft_hash_remove): Fixing a small reallocation
* src/base/fttrigon.c (FT_Vector_From_Polar, FT_Angle_Diff): New
* include/freetype/fttrigon.h: Updated.
Adding path stroker component (work in progress).
* include/freetype/ftstroker.h, src/base/ftstroker.c: New files.
* src/base/Jamfile: Updated.
* include/freetype/config/ftheader.h (FT_STROKER_H): New macro.
* src/truetype/ttgload.c (TT_Load_Composite_Glyph),
src/base/ftoutln.c (FT_Vector_Transform): Fixed Werner's latest fix.
FT_Vector_Transform wasn't buggy, the TrueType composite loader was.
2002-06-24 Werner Lemberg <>
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
2002-06-21 David Turner <>
* Version 2.1.2 released.
2002-06-21 Roberto Alameda <>.
* include/freetype/internal/t42types.h (T42_Font): Removed since
it is already in t42objs.h.
(T42_Face): Use T1_FontRec.
* src/base/fttype1.c (FT_Get_PS_Font_Info): Updated.
(FT_Has_PS_Glyph_Names): Check for type42 driver name also.
* src/type42/t42objs.h: Include FT_INTERNAL_TYPE42_TYPES_H.
(T42_Face): Removed since it is already in t42types.h.
2002-06-21 Detlef Würkner <>
* src/pfrgload.c (pfr_glyph_load_compound): Fix loading of composite
2002-06-21 Sven Neumann <>
* src/prf/pfrtypes.h (PFR_KernPair): New structure.
(PFR_PhyFont): Use it.
(PFR_KernFlags): New enumeration.
* src/pfr/pfrload.c (pfr_extra_item_load_kerning_pairs): New
(pfr_phy_font_extra_items): Use it.
(pfr_phy_font_done): Updated.
* src/pfr/pfrobjs.c (pfr_face_init): Set kerning flag conditionally.
(pfr_face_get_kerning): New function.
* src/pfr/pfrobjs.h: Updated.
* src/pfr/pfrdrivr.c (pfr_driver_class): Updated.
2002-06-21 David Turner <>
* README, docs/CHANGES: Preparing the 2.1.2 release.
2002-06-19 Detlef Würkner <>
* src/base/fttype1.c: Include FT_INTERNAL_TYPE42_TYPES_H.
(t1_face_check_cast): Removed.
(FT_Get_PS_Font_Info): Make it work with CID and Type 42 drivers
2002-06-19 Sebastien BARRE <>
* src/type42/t42parse.c (t42_parse_sfnts): Fix compiler warning.
2002-06-19 Werner Lemberg <>
* src/base/ftoutln.c (FT_Vector_Transform): Fix serious typo
(xy <-> yx).
* src/truetype/ttgload.c (load_truetype_glyph): Replace `|' with
`||' to make code easier to read.
2002-06-18 Roberto Alameda <>.
* src/type42/t42objs.c (t42_check_size_change): Removed.
(T42_Size_SetChars, T42_Size_SetPixels): Use FT_Activate_Size
(T42_GlyphSlot_Load): Remove call to t42_check_size_change.
2002-06-18 Detlef Würkner <>
* src/psaux/t1cmap.c (t1_cmap_custom_char_index,
t1_cmap_custom_char_next): Fix index computation -- indices start
with 0 and not with cmap->first.
Provide default charmaps.
* src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfdriver.c
(PCF_Face_Init), src/pfr/pfrobjs.c (pfr_face_init),
src/type1/t1objs (T1_Face_Init), src/winfonts/winfnt.c
(FNT_Face_Init): Implement it.
2002-06-17 Sven Neumann <>
* src/pfr/pfrobjs.c (pfr_face_init): Fix typo.
2002-06-16 Leonard Rosenthol <>
Updated Win32/VC++ projects to include the new PFR driver.
* builds/win32/visualc/freetype.dsp: Updated.
2002-06-16 Anthony Fok <>
Install freetype2.m4.
* builds/unix/ (install, uninstall): Handle it.
2002-06-16 Detlef Würkner <>
Same fix for PFR driver.
* src/pfr/pfrcmap.c (pfr_cmap_char_index, pfr_cmap_char_next):
Increase return value by 1.
* src/pfr/pfrobjs.c (pfr_slot_load): Decrease index by 1.
2002-06-15 Detlef Würkner <>
Fix glyph indices to make index zero always the undefined glyph.
* src/bdf/bdfdrivr.c (bdf_cmap_init): Don't decrease
(bdf_cmap_char_index, bdf_cmap_char_next, BDF_Get_Char_Index):
Increase result by 1 for normal cases.
(BDF_Glyph_Load): Decrease index by 1.
* src/pcf/pcfdriver.c (pcf_cmap_char_index, pcf_cmap_char_next,
PCF_Char_Get_Index): Increase result by 1 for normal cases.
(PCF_Glyph_Load): Decrease index by 1.
* src/pcf/pcfread.c (pcf_get_encodings): Don't decrease j for
allocating `encoding'.
* src/base/ftobjs.c (FT_Load_Glyph, FT_Get_Glyph_Name): Fix
bounding tests.
2002-06-14 Detlef Würkner <>
Add new cmap support to BDF driver.
* src/bdf/bdfdrivr.c (BDF_CMapRec) [FT_CONFIG_OPTION_USE_CMAPS]:
New structure.
(bdf_cmap_init, bdf_cmap_done, bdf_cmap_char_index,
bdf_cmap_char_next) [FT_CONFIG_OPTION_USE_CMAPS]: New functions.
(BDF_Get_Char_Index) [!FT_CONFIG_OPTION_USE_CMAPS]: Use only
(BDF_Face_Init): Handle `AVERAGE_WIDTH' and `POINT_SIZE' keywords.
Implement new cmap handling.
(bdf_driver_class): Updated.
2002-06-14 Werner Lemberg <>
* Makefile, configure, */*.mk, builds/unix/,
2002-06-12 Werner Lemberg <>
* src/bdf/bdflib.c: s/FT_Short/short/ for consistency.
2002-06-11 David Turner <>
* builds/win32/ftdebug.c: Added a missing #endif.
* src/sfnt/ttload.c, src/bdf/bdflib.c: Removing compiler warnings.
Removed the bug in Type 42 driver that prevented un-hinted outlines
to be loaded.
* src/type42/t42objs.c (T42_Face_Init): Call FT_Done_Size.
(T42_Size_Init): Call FT_Activate_Size.
(t42_check_size_change): New function.
(T42_Size_SetChars, T42_Size_SetPixels): Use it.
(ft_glyphslot_clear): Replace FT_MEM_SET with FT_ZERO.
(T42_GlyphSlot_Load): Use t42_check_size_change.
Initialize more fields of `glyph'.
* builds/win32/visualc/freetype.dsp: Updated.
2002-06-09 David Turner <>
* Version 2.1.1 released.
2002-06-08 Juliusz Chroboczek <>
* include/freetype/internal/ftobjs.h, src/autohint/ahglyph.c,
src/base/ftobjs.c, src/sfnt/ttcmap0.c, src/smooth/ftgrays.c: Don't
use `setjmp', `longjmp', and `jmp_buf' but `ft_setjmp', `ft_longjmp',
and `ft_jmp_buf'.
Removed direct references to <stdio.h> and <setjmp.h> when
appropriate, to eventually replace them with a
FT_CONFIG_STANDARD_LIBRARY_H. Useful for the XFree86 Font Server
backend based on FT2.
* src/base/fttype1.c (FT_Has_PS_Glyph_Names): Fix return value.
2002-06-08 David Turner <>
* src/pcf/pcfdriver.c (pcf_cmap_char_next): Fixed a bug that caused
the function to return invalid values.
* src/cache/ftccache.i: Removing a typo that prevented
the source's compilation.
* src/cache/ftccache.c (ftc_node_hash_unlink): Fixed a
bug that caused nasty memory overwrites. The hash table's
buckets array wasn't correctly resized when shrinked.
2002-06-08 Detlef Würkner <>
* builds/amiga/smakefile, builds/amiga/makefile: Updated.
2002-06-08 Werner Lemberg <>
* src/cache/ftccache.c (ftc_node_hash_unlink, ftc_node_hash_link)
[FTC_CACHE_USE_LINEAR_HASHING]: Fix returned error code.
Fix debugging messages.
* src/cache/ftccache.i (GEN_CACHE_LOOKUP): Move declaration of
`family' and `hash' up to make it compilable with g++.
* src/type42/t42error.h: New file.
* src/type42/t42drivr.c, src/type42/t42objs.c,
src/type42/t42parse.c: Use t42 error codes.
* src/type42/ Updated.
* src/base/ftnames.c: Include FT_INTERNAL_STREAM_H.
2002-06-08 David Turner <>
* src/cache/ftccmap.c: GEN_CACHE_FAMILY_COMPARE,
New macros.
(ftc_cmap_cache_lookup) [!FTC_CACHE_USE_INLINE]: Typedef to
(FTC_CMapCache_Lookup): Updated.
Adding various experimental optimizations to the cache manager.
* include/freetype/cache/ftccache.h (FTC_CACHE_USE_INLINE,
(FTC_CacheRec) [FTC_CACHE_USE_LINEAR_HASHING]: New elements `p',
`mask', and `slack'.
* src/cache/ftccache.c (FTC_HASH_MAX_LOAD, FTC_HASH_MIN_LOAD,
(ftc_node_mru_link, ftc_node_mru_up): Optimized.
(ftc_node_hash_unlink, ftc_node_hash_link)
(FTC_PRIMES_MIN, FTC_PRIMES_MAX, ftc_primes, ftc_prime_closest,
FTC_CACHE_RESIZE_TEST, ftc_cache_resize)
[!FTC_CACHE_USE_LINEAR_HASHING]: Define it conditionally.
(ftc_cache_init, ftc_cache_clear) [FTC_CACHE_USE_LINEAR_HASHING]:
(ftc_cache_lookup) [FTC_CACHE_USE_LINEAR_HASHING]: Implement it.
* src/cache/ftccache.i: New file.
* src/cache/ftcsbits.c (GEN_CACHE_FAMILY_COMPARE,
New macros.
(ftc_sbit_cache_lookup) [!FTC_CACHE_USE_INLINE]: Typedef to
(FTC_SBitCache_Lookup): Updated.
* src/type42/t42parse.c: Removing duplicate function.
2002-06-07 Graham Asher <>
* src/base/ftobjs.c (FT_Render_Glyph_Internal): Changed definition
2002-06-07 David Turner <>
Fixed the bug that prevented the correct display of fonts with
* src/type42/t42drivr.c: Split into...
* src/type42/t42drivr.h, src/type42/t42parse.c,
src/type42/t42parse.h, src/type42/t42objs.h, src/type42/t42objs.c,
src/type42/type42.c: New files.
(t42_get_glyph_name, t42_get_ps_name, t42_get_name_index): Use
(Get_Interface): Renamed to...
(T42_Get_Interface): This.
(T42_Open_Face, T42_Face_Done): Updated.
(T42_Face_Init): Add new cmap support.
(T42_Driver_Init, T42_Driver_Done, T42_Size_Init, T42_Size_Done,
T42_GlyphSlot_Init, T42_GlyphSlot_Done): Updated.
(Get_Char_Index, Get_Next_Char): Renamed to...
(T42_CMap_CharIndex, T42_CMap_CharNext): This.
(T42_Char_Size, T42_Pixel_Size): Renamed to...
(T42_Size_SetChars, T42_Size_SetPixels): This.
(T42_Load_Glyph): Renamed to...
(T42_GlyphSlot_Load): This.
(t42_init_loader, t42_done_loader): Renamed to...
(t42_loader_init, t42_loader_done): This.
(T42_New_Parser, T42_Finalize_Parser): Renamed to...
(t42_parser_init, t42_parser_done): This.
(parse_dict): Renamed to...
(t42_parse_dict): This.
(is_alpha, is_space, hexval): Renamed to...
(t42_is_alpha, t42_is_space, t42_hexval): This.
(parse_font_name, parse_font_bbox, parse_font_matrix,
parse_encoding, parse_sfnts, parse_charstrings, parse_dict):
Renamed to...
(t42_parse_font_name, t42_parse_font_bbox, t42_parse_font_matrix,
t42_parse_encoding, t42_parse_sfnts, t42_parse_charstrings,
t42_parse_dict): This.
(t42_keywords): Updated.
* src/type42/Jamfile, src/type42/descrip.mms: Updated.
2002-06-03 Werner Lemberg <>
Add 8bpp support to BDF driver.
* src/bdf/bdflib.c (_bdf_parse_start): Handle 8bpp.
* src/bdf/bdfdrivr.c (BDF_Glyph_Load): Ditto.
* src/bdf/README: Updated.
2002-06-02 Detlef Würkner <>
* src/pfr/pfrload.c (pfr_phy_font_done): Free `blue_values' array.
2002-05-29 Detlef Würkner <>
* src/bdf/bdflib.c (_bdf_readstream): Allocate `buf' dynamically.
(_bdf_parse_glyphs): Use correct size for allocating
(bdf_load_font): Free array conditionally.
Return proper error code in case of failure.
* src/bdf/bdfdrivr.c (BDF_Face_Init): Make it more robust against
unusual fonts.
2002-05-29 Werner Lemberg <>
* src/bdf/descrip.mms, src/type42/descrip.mms: New files.
* descrip.mms (all): Updated.
* src/bdf/bdflib.c (_bdf_parse_glyphs): Fix typo which prevented
* src/pshglob.c (psh_blues_scale_zones): Fix compiler warning.
2002-05-28 Detlef Würkner <>
* builds/amiga/makefile, builds/amiga/smakefile,
amiga/include/freetype/config/ftmodule.h: Updated to include
support for BDF and Type42 drivers.
* docs/modules.txt: Updated.
2005-05-28 David Turner <>
* docs/CHANGES: Updating file for next release (2.1.1).
* src/bdf/bdflib.c: Removing compiler warnings.
* include/freetype/ftxf86.h, src/base/ftxf86.c: New files.
They provide a new API (FT_Get_X11_Font_Format) to retrieve an
X11-compatible string describing the font format of a given face.
This was put in a new optional base source file, corresponding to a
new public header (named FT_XFREE86_H since this function should
only be used within the XFree86 font server IMO).
* include/freetype/config/ftheader.h (FT_XFREE86_H): New macro (not
documented yet).
* src/base/fttype1.c: New file, provoding two new API functions
(FT_Get_PS_Font_Info and FT_Has_PS_Glyph_Names).
* include/freetype/t1tables.h: Updated.
* src/base/Jamfile, src/base/, src/base/descrip.mms:
Updating build control files for the new files "ftxf86.c" and
"fttype1.c" in src/base.
* src/pshinter/pshglob.c (psh_blues_scale_zones): Fixed a bug that
prevented family blue zones substitution from hapenning correctly.
* include/freetype/ftbdf.h FT_Get_BDF_Charset_ID): Adding
documentation comment.
2002-05-28 Werner Lemberg <>
* src/base/ftnames.c (FT_Get_Sfnt_Name): Don't use FT_STREAM_READ_AT
Declare `stream' variable.
* src/bdf/bdflib.c (_bdf_parse_glyphs): Replace floating point math
with calls to `FT_MulDiv'.
2002-05-28 David Turner <>
Fixing the SFNT name table loader to support various buggy fonts.
It now ignores empty name entries, entries with invalid pointer
Offsets and certain fonts containing tables with broken
"storageOffset" fields.
Name strings are now loaded on demand, which reduces the memory
requirements for a given FT_Face tremendously (for example, the name
table of Arial.ttf is about 10Kb and contains 70 names).
This is a temporary fix. The whole name table loader and interface
will be rewritten in a much more cleanly way shortly, once CSEH have
been introduced in the sources.
* include/freetype/internal/tttypes.h (TT_NameEntryRec): Change
type of `stringOffset' to FT_ULong.
(TT_NameTableRec): Change type of `numNameRecords' and
`storageOffset' to FT_UInt.
Replace `storage' with `stream'.
* src/base/ftnames.c (FT_Get_Sfnt_Name): Load name on demand.
* src/sfnt/sfdriver.c (get_sfnt_postscript_name): Ditto.
Make code more robust.
* src/sfnt/sfobjs.c (TT_NameEntry_ConvertFunc): New typedef.
(tt_face_get_name): Use it.
Make code more robust.
* src/sfnt/ttload.c (TT_Load_Names): Use `static' for arrays.
Handle invalid `storageOffset' data better.
Set length fields to zero for invalid or ignored data.
Remove code within FT_DEBUG_LEVEL_TRACE.
(TT_Free_Names): Updated.
2002-05-24 Tim Mooney <>
* builds/unix/ft-munmap.m4: New file, extracted FT_MUNMAP_DECL and
FT_MUNMAP_PARAM from aclocal.m4 into here, so aclocal.m4 can be
rebuilt from sources. Set macro serial to 1, and use third argument
to AC_DEFINE for our two custom symbols, so could one day
be rebuilt with autoheader (not recommended now, is a
custom source file)
2002-05-22 Werner Lemberg <>
* include/freetype/config/ftheader.h (FT_BEZIER_H): Removed.
(FT_BDF_H): New macro for accessing `ftbdf.h'.
* src/type42/t42drivr.c (hexval): Fix typo.
2002-05-21 Martin Muskens <>
* src/psaux/psobjs.c (T1Radix): New function.
(t1_toint): Use it to handle numbers in radix format.
* src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Add dummy
for undocumented, obsolete opcode 15.
2002-05-21 David Turner <>
* src/bdf/bdflib.c: Removed compiler warning, and changed all tables
to the "static const" storage specifier (instead of simply
* src/type42/t42drivr.c (hexval): Use more efficient code.
Removing compiler warnings.
* src/bdf/bdfdrivr.c: Removing compiler warnings.
* include/freetype/internal/ftbdf.h, src/base/ftbdf.c,
src/base/descrip.mms, src/base/Jamfile, src/base/
(FT_Get_BDF_Charset_ID): New API to retrieve BDF-specific strings
from a face. This is much cleaner than accessing the internal types
"BDF_Public_Face" defined in FT_INTERNAL_BDF_TYPES_H.
2002-05-21 Werner Lemberg <>
* src/bdf/README: Mention Microsoft's SBIT tool.
* src/cff/cffdrivr.c, src/cid/cidriver.c, src/pcf/pcfdriver.c,
src/truetype/ttdriver.c, src/type1/t1driver.c,
src/winfonts/winfnt.c, src/type42/t42drivr.c, src/bdf/bdfdrivr.c
[FT_CONFIG_OPTION_DYNAMIC_DRIVERS]: Completely removed. It has
been never used.
2002-05-21 Roberto Alameda <>.
* src/type42/t42drivr.c: s/T42_ENCODING_TYPE_/T1_ENCODING_TYPE_/.
(parse_font_matrix): Remove unnecessary code.
(parse_sfnts): Initialize some variables.
ft_module_driver_has_hinter conditionally.
Moved some type 42 specific structure definitions to...
* include/freetype/internal/t42types.h: New file.
* include/freetype/internal/internal.h (FT_INTERNAL_T42_TYPES_H):
New macro.
2002-05-20 Werner Lemberg <>
* include/freetype/cache/ftcsbits.h (FTC_SBit): Added a new field
`num_grays' for specifying the number of used gray levels.
* src/cache/ftcsbits.c (ftc_sbit_node_load): Initialize it.
2002-05-19 Werner Lemberg <>
Adding a driver for BDF fonts written by Francesco Zappa Nardelli
<>. Heavily modified by me to
better adapt it to FreeType, removing unneeded stuff. Additionally,
it now supports Mark Leisher's BDF extension for anti-aliased
bitmap glyphs with 2 and 4 bpp.
* src/bdf/*: New driver.
* include/freetype/internal/bdftypes.h: New file.
* include/freetype/internal/fttrace.h: Added BDF driver components.
* include/freetype/fterrdef.h: Added error codes for BDF driver.
* include/freetype/config/ftmodule.h, src/Jamfile: Updated.
* include/freetype/internal/internal.h (FT_INTERNAL_BDF_TYPES_H):
New macro.
* include/freetype/config/ftstdlib.h (ft_sprintf): New alias for
2002-05-18 Werner Lemberg <>
* include/freetype/internal/fttrace.h: Added Type 42 driver
* src/type42/t42drivr.c: Use it.
* include/freetype/internal/internal.h (FT_INTERNAL_PCF_TYPES_H):
New macro.
2002-05-17 Werner Lemberg <>
* src/type42/Jamfile: New file.
2002-05-14 Werner Lemberg <>
Adding a driver for Type42 fonts written by Roberto Alameda
* src/type42/*: New driver.
* include/freetype/config/ftmodule.h, src/Jamfile: Updated.
* include/freetype/config/ftstdlib.h (ft_xdigit, ft_memcmp,
ft_atoi): New aliases for xdigit, memcmp, and atoi, respectively.
2002-05-12 Owen Taylor <>
* src/sfnt/ttload.c (TT_LookUp_Table): Protect against tables
with a zero length value.
2002-05-12 Michael Pfeiffer <>
* builds/beos/ Include `'.
2002-05-12 Werner Lemberg <>
* src/type1/t1load.h (T1_Loader): Renamed to...
(T1_LoaderRec): This.
(T1_Loader): Now pointer to T1_LoaderRec.
* src/type1/t1load.c: Updated.
* include/freetype/internal/t1types.h, src/type1/t1load.c,
2002-05-06 Werner Lemberg <>
* README: Add a note regarding libttf vs. libfreetype.
2002-05-05 Werner Lemberg <>
FreeType 2 can now be built in an external directory with the
configure script also.
* builds/ (INCLUDES): Add `OBJ_DIR'.
* builds/unix/ (have_mk): New variable to test for
external build.
( Defined according to value of `have_mk'.
* builds/unix/ (have_mk): New variable to test for
external build.
Select include paths for and according
to value of `have_mk'.
* builds/unix/ (OBJ_BUILD): New variable.
(DISTCLEAN): Use it.
* builds/unix/ (LIBTOOL): Define default value only
if not yet defined.
* builds/unix/ (install): Use `OBJ_BUILD' for installing
* configure: Don't depend on bash features.
(ft2_dir, abs_curr_dir, abs_ft2_dir): New variables (code
partially taken from Autoconf).
Build a dummy Makefile if not building in source tree.
* docs/INSTALL: Document it.
2002-05-04 David Turner <>
* src/truetype/ttgload.c (TT_Load_Glyph): Finally fixing the last
bug that prevented FreeType 2.x and FreeType 1.x to produce
bit-by-bit identical monochrome glyph bitmaps with native TrueType
hinting. The culprit was a single-bit flag that wasn't set
correctly by the TrueType glyph loader.
* src/otlayout/otlayout.h, src/otlayout/otlbase.c,
src/otlayout/otlbase.h, src/otlayout/otlconf.h,
src/otlayout/otlgdef.c, src/otlayout/otlgdef.h,
src/otlayout/otlgpos.c, src/otlayout/otlgpos.h,
src/otlayout/otlgsub.c, src/otlayout/otlgsub.h,
src/otlayout/otljstf.c, src/otlayout/otljstf.h,
src/otlayout/otltable.c, src/otlayout/otltable.h,
src/otlayout/otltags.h: New OpenType Layout source files. The
module is still incomplete.
2002-05-02 Werner Lemberg <>
* src/sfnt/ttcmap0.c (tt_cmap4_char_index): Fix serious typo
(0xFFFU -> 0xFFFFU).
2002-05-01 Werner Lemberg <>
* docs/INSTALL: Fix URL of makepp.
2002-05-01 David Turner <>
* src/sfnt/sfobjs.c (tt_face_get_name): Fixing a bug that caused
FreeType to crash when certain broken fonts (e.g. "hya6gb.ttf")
were opened.
* src/sfnt/ttload.c (TT_Load_Names): Applied a small work-around to
manage fonts containing a broken name table (e.g. "hya6gb.ttf").
* src/sfnt/ttcmap0.c (tt_cmap4_validate): Fixed over-restrictive
validation test. The charmap validator now accepts overlapping
ranges in format 4 charmaps.
* src/sfnt/ttcmap0.c (tt_cmap4_char_index): Switched to a binary
search algorithm. Certain fonts contain more than 170 distinct
* include/freetype/config/ftstdlib.h: Adding an alias for the `exit'
function. This will be used in the near future to panic in case of
unexpected exception (which shouldn't happen in theory).
* include/freetype/internal/fthash.h, src/base/fthash.c: New files.
This is generic implementation of dynamic hash tables using a linear
algorithm (to get rid of `stalls' during resizes). In the future
this will be used in at least three parts of the library: the cache
sub-system, the object sub-system, and the memory debugger.
* src/base/Jamfile: Updated.
* include/freetype/internal/internal.h (FT_INTERNAL_HASH_H,
* include/freetype/internal/ftcore.h: New file to group all new
definitions related to exception handling and memory management. It
is very likely that this file will disappear or be renamed in the
* include/freetype/internal/ftobject.h, include/freetype/ftsysmem.h:
Adding comments to better explain the object sub-system as well as
the new memory manager interface.
2002-04-30 Wenlin Institute (Tom Bishop) <>
* src/base/ftmac.c (p2c_str): Removed.
(file_spec_from_path) [TARGET_API_MAC_CARBON]: Added support for
(is_dfont) [TARGET_API_MAC_CARBON]: Define only for OS X.
Handle `nameLen' <= 6 also.
(parse_fond): Remove unused variable `name_table'.
Use functionality of old p2c_str directly.
Add safety checks.
(read_lwfn): Initialize `size_p'.
Check for size_p == NULL.
(new_memory_stream, open_face_from_buffer): Updated to FreeType 2.1.
(FT_New_Face_From_LWFN): Remove unused variable `memory'.
Remove some dead code.
(FT_New_Face_From_SFNT): Remove unused variable `stream'.
(FT_New_Face_From_dfont) [TARGET_API_MAC_CARBON]: Define only for
(FT_New_Face_From_FOND): Remove unused variable `error'.
(ResourceForkSize): New function.
(FT_New_Face): Use it.
Handle empty resource forks.
Conditionalize some code for OS X.
Add code to call normal loader as a fallback.
2002-04-30 Werner Lemberg <>
`interface' is reserved on the Mac.
* include/freetype/ftoutln.h, include/freetype/internal/sfnt.h,
src/base/ftoutln.c: s/interface/func_interface/.
* src/base/ftbbox.c (FT_Outline_Get_BBox):
* src/cff/cffdrivr.c: s/interface/module_interface/.
* src/cff/cffload.c, src/cff/cffload.h:
* src/cid/cidriver.c: s/interface/cid_interface/.
* src/sfnt/sfdriver.c: s/interface/module_interface/.
* src/smooth/ftgrays.c: s/interface/func_interface/.
* src/truetype/ttdriver.c: s/interface/tt_interface/.
* src/type1/t1driver.c: s/interface/t1_interface/.
Some more variable renames to avoid troubles on the Mac.
* src/raster/ftraster.c:
* src/smooth/ftgrays.c: s/TScan/TCoord/.
Other changes for the Mac.
* include/freetype/config/ftconfig.h: Define FT_MACINTOSH for
Mac platforms.
* src/base/ftobjs.c: s/macintosh/FT_MACINTOSH/.
* src/raster/ftrend1.c (ft_raster1_render): Make `pitch' always
an even number.
2002-04-29 Jouk Jansen <>
* descrip.mms (all): Add pfr driver.
2002-04-28 Werner Lemberg <>
* src/pfr/pfrerror.h: New file.
* include/freetype/ftmoderr.h: Add PFR error codes.
* src/pfr/pfrgload.c: Include pfrerror.h.
Use PCF error codes.
(pfr_extra_item_load_stem_snaps): Fix debug message.
* src/pfr/pfrgload.c: Include pfrerror.h.
Use PCF error codes.
(pfr_extra_item_load_bitmap_info, pfr_glyph_load_simple,
pfr_glyph_load_compound): Fix debug message.
* src/pfr/pfrobjs.c: Include pfrerror.h.
Use PCF error codes.
(pfr_face_init): Return PFR_Err_Unknown_File_Format.
* src/pfr/ (PFR_DRV_H): Include pfrerror.h.
* src/pcf/pcfdriver.c (PCF_Face_Init) [!FT_CONFIG_OPTION_USE_CMAPS]:
`root' -> `face->root'.
* src/sfnt/ttcmap0.c (TT_Build_CMaps) [!FT_CONFIG_OPTION_USE_CMAPS]:
* src/sfnt/ttcmap0.c: Declare TT_Build_CMaps only for
2002-04-27 Werner Lemberg <>
* src/cache/ftccache.c (ftc_cache_lookup),
src/cache/ftccmap.c (ftc_cmap_family_init),
src/cache/ftcmanag.c (ftc_family_table_alloc),
src/cache/ftcsbits.c (FTC_SBit_Cache_Lookup): Use FTC_Err_*.
src/cache/ftcimage.c (FTC_Image_Cache_Lookup): Use FTC_Err_*.
(FTC_ImageCache_Lookup): Fix handling of invalid arguments.
2002-04-22 Werner Lemberg <>
* builds/unix/ Set `version_info' to 9:1:3 (FT2
version 2.0.9 has 9:0:3).
* builds/unix/configure: Regenerated (using autoconf 2.53).
2002-04-19 Werner Lemberg <>
* src/pfr/pfrload.c (pfr_extra_items_farse): Fix debug message.
(pfr_phy_font_load): s/size/Size/ for local variable to avoid
compiler warning.
* src/pfr/pfrobjs.c (pfr_face_init): Fix debug message.
(pfr_slot_load): Remove redundant local variable.
2002-04-19 David Turner <>
Adding a PFR font driver to the FreeType sources. Note that it
doesn't support embedded bitmaps or kerning tables yet.
src/pfr/*: New files.
* include/freetype/config/ftmodule.h,
include/freetype/internal/fttrace.h, src/Jamefile: Updated.
* src/type1/t1gload.h (T1_Load_Glyph), src/type1/t1gload.c
(T1_Load_Glyph): Fixed incorrect parameter sign-ness in callback
* include/freetype/internal/ftmemory.h (FT_MEM_ZERO, FT_ZERO): New
* include/freetype/internal/ftstream.h (FT_NEXT_OFF3, FT_NEXT_UOFF3,
FT_NEXT_OFF3_LE, FT_NEXT_UOFF3_LE): New macros to parse in-memory
24-bit integers.
2002-04-18 David Turner <>
* src/base/ftobjs.c, builds/win32/ftdebug.c,
builds/amiga/src/base/ftdebug.c: Version 2.1.0 couldn't be linked
against applications in Win32 and Amiga builds due to changes to
"src/base/ftdebug.c" that were not properly propagated to
"builds/win32" and "builds/amiga". This has been fixed.
* include/freetype/internal/ftobject.h,
include/freetype/internal/ftexcept.h, include/freetype/ftsysmem.h,
include/freetype/ftsysio.h, src/base/ftsysmem.c, src/base/ftsysio.c:
New experimental files.
2002-04-17 David Turner <>
* Version 2.1.0 released.
2002-04-17 Michael Jansson <>
* src/type1/t1gload.c (T1_Compute_Max_Advance): Fixed a small bug
that prevented the function to return the correct value.
2002-04-16 Francesco Zappa Nardelli <>
* src/pcf/pcfread (pcf_get_accell): Fix parsing of accelerator
2002-04-15 David Turner <>
* docs/FTL.txt: Formatting.
* include/freetype/config/ftoption.h: Reduce the size of the
render pool from 32kByte to 16kByte.
* src/pcf/pcfread.c (pcf_seek_to_table_type): Remove compiler
* include/freetype/config/ftoption.h (FT_MAX_EXTENSIONS): Removed.
* docs/CHANGES: Preparing 2.1.0 release.
2002-04-13 Werner LEMBERG <>
* src/cff/cffgload.c (CFF_Parse_CharStrings): s/rand/Rand/ to avoid
compiler warning.
2002-04-12 David Turner <>
* README.UNX: Updated the Unix-specific quick-compilation guide to
warn about the GNU Make requirement at compile time.
* include/freetype/config/ftstdlib.h,
src/base/ftdbgmem.c, src/base/ftdebug.c, src/base/ftmac.c,
src/base/ftobjs.c, src/base/ftsystem.c,
src/cache/ftcimage.c, src/cache/ftcsbits.c,
src/cff/cffdriver.c, src/cff/cffload.c, src/cff/cffobjs.c,
src/cid/cidload.c, src/cid/cidparse.c, src/cid/cidriver.c,
src/pcf/pcfdriver.c, src/pcf/pcfread.c,
src/psaux/t1cmap.c, src/psaux/t1decode.c,
src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.c,
src/sfnt/sfdriver.c, src/sfnt/ttload.c,
src/type1/t1afm.c, src/type1/t1driver.c, src/type1/t1gload.c,
src/type1/t1load.c, src/type1/t1objs.c, src/type1/t1parse.c,
builds/unix/, builds/vms/ftconfig.h,
Added the new configuration file "ftstdlib.h" used to define
aliases for all ISO C library functions used by the engine
(e.g. strlen, qsort, setjmp, etc.).
This eases the porting of FreeType 2 to environments like
XFree86 modules/extensions.
Also removed many #include <string.h>, #include <stdlib.h>, etc.
from the engine's sources where they are not needed.
* src/sfnt/ttpost.c: Use macro name for psnames.h.
2002-04-12 Vincent Caron <>
* configure, builds/ Updated the build system to print
a warning message in case GNU Make isn't used to build the library.
2002-04-11 David Turner <>
* README, docs/CHANGES, Updates for the 2.1.0 release.
* docs/FTL.txt: Updated license text to provide a preferred
disclaimer and adjust copyright dates/extents.
* include/freetype/cache/ftcglyph.h: Removing obsolete (and
confusing) comment.
* New file.
2002-04-11 Maxim Shemanarev <>
* src/smooth/ftgrays.c (gray_hline): Minor optimization.
2002-04-02 Werner Lemberg <>
Fixes from the stable branch:
* include/freetype/config/ftoption.h (FT_CONFIG_OPTION_OLD_CALCS):
* include/freetype/internal/ftcalc.h, src/base/ftcalc.c
* src/base/fttrigon.c (FT_Vector_Length): Change algorithm to match
output of FreeType 1.
* src/pshinter/pshglob.c (psh_globals_scale_widths): Fixed a small
bug that created un-even stem widths when hinting Postscript fonts.
* src/type1/t1driver.c, src/type1/t1parse.c: 16bit fixes.
2002-04-01 Werner Lemberg <>
* src/truetype/ttgload.c: 16bit fixes.
(TT_Load_Simple_Glyph): Improve debug messages.
(load_truetype_glyph): Remove dead code.
* src/truetype/ttinterp.c: 16bit fixes.
* src/truetype/ttobjs.c: Ditto.
* include/freetype/ftsnames.h, include/freetype/internal/sfnt.h,
src/cff/cffload.h, src/psaux/psobjs.h, src/truetype/ttinterp.[ch],
src/sfnt/ttpost.h: s/index/idx/.
2002-03-31 Yao Zhang <>
* src/truetype/ttobjs.c (TT_Size_Init): Fix typo.
2002-03-31 Werner Lemberg <>
* src/otlayout/otlcommn.c, src/otlayout/otlcommn.h: s/index/idx/.
* src/psaux/t1cmap.c: Ditto.
* src/sfnt/ttcmap0.c: Ditto.
* include/freetype/internal/tttypes.h,
include/freetype/internal/sfnt.h (TT_Goto_Table_Func): Renamed to ...
(TT_Loader_GotoTableFunc): This.
* src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Fix debug
* src/psnames/psmodule.c (psnames_interface)
* src/sfnt/sfdriver.c (get_sfnt_table): 16bit fix.
* src/sfnt/ttcmap.c: 16bit fixes (0xFFFF -> 0xFFFFU).
* src/sfnt/ttcmap0.c: 16bit fixes.
(TT_Build_CMaps): Simplify debug messages.
(tt_cmap12_char_next): Fix offset.
* src/sfnt/ttload.c (TT_Load_Names, TT_Load_CMap): Fix debug
(TT_Load_OS2): 16bit fix.
2002-03-30 David Turner <>
* include/freetype/internal/tttypes.h: Adding comments to some of
the TT_FaceRec fields.
* src/sfnt/ttcmap0.c (TT_Build_CMaps): Removed compiler warnings.
* src/sfnt/sfobjs.c (tt_name_entry_ascii_from_{utf16,ucs4,other}:
New functions.
(tt_face_get_name): Use them to properly extract an ascii font name.
2002-03-30 Werner Lemberg <>
* include/freetype/t1tables.h (t1_blend_max): Fix typo.
* src/base/ftstream.c: Simplify FT_ERROR calls.
* src/cff/cffdrivr.c (cff_get_glyph_name): Fix debug message.
* src/cff/cffobjs.c (CFF_Driver_Init, CFF_Driver_Done)
* src/cff/sfobjs.c (SFNT_Load_Face)
* src/truetype/ttobjs.c (TT_Init_Driver, TT_Done_Driver)
* src/truetype/ttdriver.c, src/truetype/ttobjs.c,
src/truetype/ttobjs.h: Renaming driver functions to the
FT_<Subject>_<Action> scheme:
TT_Init_Driver => TT_Driver_Init
TT_Done_Driver => TT_Driver_Done
TT_Init_Face => TT_Face_Init
TT_Done_Face => TT_Face_Done
TT_Init_Size => TT_Size_Init
TT_Done_Size => TT_Size_Done
TT_Reset_Size => TT_Size_Reset
2002-03-29 Werner Lemberg <>
* builds/vms/ftconfig.h: Rename LOCAL_DEF and LOCAL_FUNC to
FT_LOCAL and FT_LOCAL_DEF, respectively, as with other ftconfig.h
* builds/unix/ Add argument to FT_LOCAL and
* src/truetype/ttinterp.c: s/FT_Assert/FT_ASSERT/.
* builds/unix/ Temporarily deactivate creation of
* builds/unix/configure: Updated.
2002-03-28 KUSANO Takayuki <>
* src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fix serious typos.
2002-03-28 Werner Lemberg <>
* include/freetype/internal/psaux.h (PSAux_ServiceRec): Fix
compiler warnings.
* include/freetype/internal/t1types.h (T1_FaceRec): Use `const' for
some members.
* src/base/ftapi.c (FT_New_Memory_Stream): Fix typos.
* src/psaux/t1cmap.c (t1_cmap_std_init, t1_cmap_unicode_init): Add
(t1_cmap_{standard,expert,custom,unicode}_class_rec): Use
* src/psaux/t1cmap.h: Updated.
* src/sfnt/ttcmap0.c (TT_Build_CMaps): Use `ft_encoding_none'
instead of zero.
* src/type1/t1objs.c (T1_Face_Init): Use casts.
2002-03-26 David Turner <>
* src/sfnt/sfdriver.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c:
Fixed a small bug in the FT_CMaps support code.
2002-03-25 David Turner <>
* src/truetype/ttinterp.c (Norm): Replaced with...
(TT_VecLen): This.
(TT_MulFix14, TT_DotFix14): New functions.
(Project, Dual_Project, Free_Project, Compute_Point_Displacement,
Ins_SHPIX, Ins_MIAP, Ins_MIRP): Use them.
[FT_CONFIG_OPTION_OLD_CALCS]: Removed all code.
2002-03-22 David Turner <>
* src/base/ftobjs.c, src/sfnt/ttcmap0.c, src/type1/t1objs.c:
Various fixes to make the FT_CMaps support work correctly (more
tests are still needed).
* include/freetype/internal/ftobjs.h, src/sfnt/Jamfile,
src/sfnt/, src/sfnt/sfnt.c, src/sfnt/sfobjs.c,
src/sfnt/ttload.c, src/sfnt/ttcmap0.c, src/sfnt/ttcmap0.h: Updated
the SFNT charmap support to use FT_CMaps.
* include/freetype/fterrdef.h: New file.
* include/freetype/fterrors.h: Include it. It contains all error
* include/freetype/config/ftheader.h (FT_ERROR_DEFINITIONS_H): New
* include/freetype/internal/ftmemory.h, and a lot of other files:
Changed the names of memory macros. Examples:
FT_NEW was introduced to allocate a new object from a _typed_
Note that ALLOC_ARRAY and REALLOC_ARRAY have been replaced by
FT_NEW_ARRAY and FT_RENEW_ARRAY which take _typed_ pointer
This results in _lots_ of sources being changed, but makes the code
more generic and less error-prone.
* include/freetype/internal/ftstream.h, src/base/ftstream.c,
src/cff/cffload.c, src/pcf/pcfread.c, src/sfnt/ttcmap.c,
src/sfnt/ttcmap0.c, src/sfnt/ttload.c, src/sfnt/ttpost.c,
src/sfnt/ttsbit.c, src/truetype/ttgload.c, src/truetype/ttpload.c,
src/winfonts/winfnt.c: Changed the definitions of stream macros.
Also introduced the FT_PEEK_XXXX functions.
* src/cff/cffobjs.c (CFF_Build_Unicode_Charmap): Removed commented
out function.
(find_encoding): Removed.
(CFF_Face_Init): Remove charmap support.
* include/freetype/config/ftoption.h (FT_CONFIG_OPTION_USE_CMAPS,
TT_CONFIG_CMAP_FORMAT{0,2,4,6,8,10,12}): New macros to fine-tune
support of cmaps.
2002-03-21 David Turner <>
* src/base/ftobjs.c, src/pcf/pcfdriver.c, src/pcf/pcfread.c: Updated
to new FT_CMap definitions.
* src/psaux/t1cmap.h, src/psaux/t1cmap.c, src/type1/t1cmap.h,
src/type1/t1cmap.c: Updating and moving the Type 1 FT_CMap support
from "src/type1" to "src/psaux" since it is going to be shared by
the Type 1 and CID font drivers.
* src/psaux/Jamfile, src/psaux/psaux.c, src/psaux/psauxmod.c,
src/psaux/, include/freetype/internal/psaux.h: Added support
for Type 1 FT_CMaps.
2002-03-20 David Turner <>
* src/base/ftgloadr.c (FT_GlyphLoader_CheckSubGlyphs): Fixed a
memory allocation bug that was due to un-careful renaming of the
FT_SubGlyph type.
* src/base/ftdbgmem.c (ft_mem_table_destroy): Fixed a small bug that
caused the library to crash with Electric Fence when memory
debugging is used.
* Renaming stream macros. Examples:
* src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fixed memory leak.
* include/freetype/internal/ftobjs.h: Changing the definition of
FT_CMap_CharNextFunc slightly.
* src/cff/*.c: Updating CFF type definitions.
2002-03-14 David Turner <>
* include/freetype/internal/autohint.h, src/autohint/ahmodule.c,
src/base/ftapi.c, src/base/ftobjs.c: Updating the type definitions
for the auto-hinter module.
FT_AutoHinter_Interface => FT_AutoHinter_ServiceRec
FT_AutoHinter_Interface* => FT_AutoHinter_Service
FT_AutoHinter_Get_Global_Func => FT_AutoHinter_GlobalGetFunc
FT_AutoHinter_Done_Global_Func => FT_AutoHinter_GlobalDoneFunc
* ahloader.h [_STANDALONE_]: Removed all conditional code.
* include/freetype/internal/cfftypes.h, src/cff/*.c: Updating the
type definitions of the CFF font driver.
CFF_Font => CFF_FontRec
CFF_Font* => CFF_Font
* include/freetype/internal/fnttypes.h, src/winfonts/*.c: Updating
type definitions of the Windows FNT font driver.
* include/freetype/internal/ftdriver.h,
include/freetype/internal/ftobjs.h, src/base/ftapi.c,
src/base/ftobjs.c, src/cff/cffdrivr.c, src/cff/cffdrivr.h,
src/cid/cidriver.c, src/cid/cidriver.h, src/pcf/pcfdriver.c,
src/pcf/pcfdriver.h, src/truetype/ttdriver.c,
src/truetype/ttdriver.h, src/type1/t1driver.c, src/type1/t1driver.h,
src/winfonts/winfnt.c, src/winfonts/winfnt.h: Updating type
definitions for font drivers.
FTDriver_initFace => FT_Face_InitFunc
FTDriver_initGlyphSlot => FT_Slot_InitFunc
* src/cid/cidobjs.c (CID_Face_Init): Remove dead code.
* include/freetype/internal/ftobjs.h, src/base/ftobjs.c: Updated a
few face method definitions:
FT_PSName_Requester => FT_Face_GetPostscriptNameFunc
FT_Glyph_Name_Requester => FT_Face_GetGlyphNameFunc
FT_Name_Index_Requester => FT_Face_GetGlyphNameIndexFunc
* src/base/ftapi.c: New file. It contains backwards compatibility
* include/freetype/internal/psaux.h, src/cid/cidload.c,
src/cidtoken.h, src/psaux/psobjs.c, src/psaux/psobjs.h,
src/psaux/t1decode.c, stc/type1/t1load.c, src/type1/t1tokens.h:
Updated common PostScript type definitions.
Renamed all enumeration values like to uppercase variants:
t1_token_any => T1_TOKEN_TYPE_ANY
t1_field_cid_info => T1_FIELD_LOCATION_CID_INFO
* include/freetype/internal/psglobals.h: Removed.
* include/freetype/internal/pshints.h, src/pshinter/pshglob.h:
* include/freetype/internal/tttypes.h,
include/freetype/internal/sfnt.h, src/base/ftnames.c,
src/cff/cffdrivr.c, src/sfnt/*.c, src/truetype/*.c: Updated
SFNT/TrueType type definitions.
* include/freetype/freetype.h, include/freetype/internal/ftgloadr.h:
Updating type defintiions for the glyph loader.
2002-03-13 Antoine Leca <>
* include/freetype/config/ftoption.h: Changed the automatic
detection of Microsoft C compilers to automatically support 64-bit
integers only since revision 9.00 (i.e. >= Visual C++ 2.0).
2002-03-08 Werner Lemberg <>
* src/base/ftutil.c (FT_Realloc): Use MEM_Set instead of memset.
2002-03-07 Werner Lemberg <>
* src/base/ftdbgmem.c (ft_mem_table_resize, ft_mem_table_new,
ft_mem_table_set, ft_mem_debug_alloc, ft_mem_debug_free,
ft_mem_debug_realloc, ft_mem_debug_done, FT_Alloc_Debug,
FT_Realloc_Debug, FT_Free_Debug): Fix compiler warnings.
* src/base/ftcalc.c (FT_MulFix): Ditto.
* src/cff/cffdrivr.c (cff_get_name_index): Ditto.
* src/cff/cffobjs.c (CFF_Size_Get_Global_Funcs, CFF_Size_Init,
CFF_GlyphSlot_Init): Ditto.
* src/cid/cidobjs.c (CID_GlyphSlot_Init,
CID_Size_Get_Globals_Funcs): Ditto.
* src/type1/t1objs.c (T1_Size_Get_Globals_Funcs, T1_GlyphSlot_Init):
* src/pshinter/pshmod.c (pshinter_interface): Use `static const'.
* src/winfonts/winfnt.c (FNT_Get_Next_Char): Remove unused
* include/freetype/internal/psaux.h (T1_Builder_Funcs): Renamed
(T1_Builder_FuncsRec): This.
(T1_Builder_Funcs): New typedef.
(PSAux_Interface): Remove compiler warnings.
* src/psaux/psauxmod.c (t1_builder_funcs), src/psaux/psobjs.h
(t1_builder_funcs): Updated.
* src/pshinter/pshglob.h (PSH_Blue_Align): Replaced with ...
(PSH_AlignmentRec): Updated.
* include/freetype/internal/ftstream.h (GET_Char, GET_Byte): Fix
* include/freetype/internal/ftgloadr.h (FT_SubGlyph): Ditto.
* src/base/ftstream (FT_Get_Char): Rename to...
(FT_Stream_Get_Char): This.
* src/base/ftnames.c (FT_Get_Sfnt_Name): s/index/idx/ -- `index' is
a built-in function in gcc, causing warning messages with gcc 3.0.
* src/autohint/ahglyph.c (ah_outline_load): Ditto.
* src/autohint/ahglobal.c (ah_hinter_compute_blues): Ditto.
* src/cache/ftcmanag.c (ftc_family_table_alloc,
ftc_family_table_free, FTC_Manager_Done, FTC_Manager_Register_Cache):
* src/cff/cffload.c (cff_new_index, cff_done_index,
cff_explicit_index, CFF_Access_Element, CFF_Forget_Element,
CFF_Get_Name, CFF_Get_String, CFF_Load_SubFont, CFF_Load_Font,
CFF_Done_Font): Ditto.
* src/psaux/psobjs.c (PS_Table_Add, PS_Parser_LoadField): Ditto.
* src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Ditto.
* src/pshinter/pshrec.c (ps_mask_test_bit, ps_mask_clear_bit,
ps_mask_set_bit, ps_dimension_add_t1stem, ps_hints_t1stem3,
* src/pshinter/pshalgo1.c (psh1_hint_table_record,
psh1_hint_table_record_mask, psh1_hint_table_activate_mask): Ditto.
* src/pshinter/pshalgo2.c (psh2_hint_table_record,
psh2_hint_table_record_mask, psh2_hint_table_activate_mask): Ditto.
* src/sfnt/ttpost.c (Load_Format_20, Load_Format_25,
TT_Get_PS_Name): Ditto.
* src/truetype/ttgload.c (TT_Get_Metrics, Get_HMetrics,
load_truetype_glyph): Ditto.
* src/type1/t1load.c (parse_subrs, T1_Open_Face): Ditto.
* src/type1/t1afm.c (T1_Get_Kerning): Ditto.
* include/freetype/cache/ftcmanag.h (ftc_family_table_free): Ditto.
2002-03-06 David Turner <>
* src/type1/t1objs.c (T1_Face_Init), src/cid/cidobjs.c
(CID_Face_Init): Fixed another bug related to the
ascender/descender/text height of Postscript fonts.
* src/pshinter/pshalgo2.c (print_zone): Renamed to ...
(psh2_print_zone): This.
* src/pshinter/pshalgo1.c (print_zone): Renamed to ...
(psh1_print_zone): This.
* include/freetype/freetype.h, include/freetype/internal/ftobjs.h,
src/base/ftobjs.c: Adding the new FT_Library_Version API to return
the library's current version in dynamic links.
* src/base/ftinit.c (FT_Init_FreeType): Updated.
2002-03-06 Werner Lemberg <>
* src/pshinter/pshglob.h (PSH_DimensionRec): s/std/stdw/.
* src/pshinter/pshglob.c (psh_global_scale_widths,
psh_dimension_snap_width, psh_globals_destroy, psh_globals_new):
2002-03-05 David Turner <>
* src/type1/t1objs.c (T1_Face_Init), src/cff/cffobjs.c
(CFF_Face_Init), src/cid/cidobjs.c (CID_Face_Init): Removing the bug
that returned global BBox values in 16.16 fixed format (instead of
integer font units).
* src/cid/cidriver.c (cid_get_postscript_name): Fixed a bug that
caused the CID driver to return Postscript font names with a leading
slash ("/") as in "/MOEKai-Regular".
* src/sfnt/ttload.c (TT_Load_Names), src/sfnt/sfobjs.c (Get_Name),
src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fixed the loader so
that it accepts broken fonts like "foxjump.ttf", which made FreeType
crash when trying to load them.
Also improved the name table parser to be able to load
Windows-encoded entries before Macintosh or Unicode ones, since it
seems some fonts don't have reliable values here anyway.
* include/freetype/internal/psnames.h: Add typedef for
2002-03-05 Werner Lemberg <>
* builds/unix/aclocal.m4, builds/unix/ Update to libtool
Apply a small patch for AIX to make shared libraries work (this
patch is already in the CVS version of libtool).
* builds/unix/config.sub, builds/unix/config.guess: Updated to
recent versions.
* builds/unix/ Fix typo
* builds/unix/configure: Regenerated.
2002-02-28 David Turner <>
* include/freetype/ftconfig.h: Changed `FT_LOCAL xxxx' to
`FT_LOCAL( xxxx )' everywhere in the source. The same goes for
`FT_LOCAL_DEF xxxx' which is translated to `FT_LOCAL_DEF( xxxxx )'.
* include/freetype/freetype.h (FREETYPE_MINOR, FREETYPE_PATCH):
Changing version to 2.1.0 to indicate an unstable branch.
Added the declarations of FT_Get_First_Char and FT_Get_Next_Char.
* src/base/ftobjs.c: Implement FT_Get_First_Char and
* include/freetype/t1tables.h: Renaming structure types. This
typedef T1_Struct_
} T1_Struct;
typedef PS_StructRec_
} PS_StructRec, *PS_Struct;
typedef PS_StructRec T1_Struct; /* backwards-compatibility */
Hence, we increase the coherency of the source code by effectively
using the `Rec' prefix for structure types.
2002-02-27 David Turner <>
* src/sfnt/ttload.c (TT_Load_Names): Simplifying and securing the
names table loader. Invalid individual name entries are now handled
correctly. This allows the loading of very buggy fonts like
"foxjump.ttf" without allocating tons of memory and causing crashes.
* src/otlayout/otlcommon.h, src/otlayout/otlcommon.c: Adding (still
experimental) code for OpenType Layout tables validation and
* src/type1/t1cmap.h, src/type1/t1cmap.c: Adding (still
experimental) code for Type 1 charmap processing.
* src/sfnt/ttcmap0.c: New file. It contains a new, still
experimental SFNT charmap processing support.
* include/freetype/internal/ftobjs.h: Adding validation support as
well as internal charmap object definitions (FT_CMap != FT_CharMap).
2002-02-24 David Turner <>
* Renaming stream functions to the FT_<Subject>_<Action> scheme:
FT_Seek_Stream => FT_Stream_Seek
FT_Skip_Stream => FT_Stream_Skip
FT_Read_Stream => FT_Stream_Read
FT_Read_Stream_At => FT_Stream_Read_At
FT_Access_Frame => FT_Stream_Enter_Frame
FT_Forget_Frame => FT_Stream_Exit_Frame
FT_Extract_Frame => FT_Stream_Extract_Frame
FT_Release_Frame => FT_Stream_Release_Frame
FT_Get_XXXX => FT_Stream_Get_XXXX
FT_Read_XXXX => FT_Stream_Read_XXXX
FT_New_Stream( filename, stream ) =>
FT_Stream_Open( stream, filename )
(The function doesn't create the FT_Stream structure, it simply
initializes it for reading.)
FT_New_Memory_Stream( library, FT_Byte* base, size, stream ) =>
FT_Stream_Open_Memory( stream, const FT_Byte* base, size )
FT_Done_Stream => FT_Stream_Close
FT_Stream_IO => FT_Stream_IOFunc
FT_Stream_Close => FT_Stream_CloseFunc
ft_close_stream => ft_ansi_stream_close (in base/ftsystem.c only)
ft_io_stream => ft_ansi_stream_io (in base/ftsystem.c only)
* src/base/ftutil.c: New file. Contains all memory and list
management code (previously in "ftobjs.c" and "ftlist.c",
* include/freetype/internal/ftobjs.h: Moving all code related to
glyph loaders to ...
* include/freetype/"internal/ftgloadr.h: This new file.
"FT_GlyphLoader" is now a pointer to the structure
(ft_glyph_own_bitmap): Renamed to ...
* src/base/ftobjs.c: Moving all code related to glyph loaders
to ...
* src/base/ftgloadr.c: This new file.
2002-02-22 Werner Lemberg <>
* include/freetype/internal/ftdebug.h (FT_Trace): Remove comma in
enum to avoid compiler warnings.
2002-02-21 David Turner <>
Modified the debug sub-system initialization. Trace levels can now
be specified within the "FT2_DEBUG" environment variable. See the
comments within "ftdebug.c" for more details.
* src/base/ftdebug.c: (FT_SetTraceLevel): Removed.
(ft_debug_init): New function.
(ft_debug_dummy): Removed.
Updated to changes in ftdebug.h
* include/freetype/internal/ftdebug.h: Always define
(FT_Assert): Renamed to ...
(FT_ASSERT): This.
Some stuff from ftdebug.h has been moved to ...
* include/freetype/internal/fttrace.h: New file, to define the trace
levels used for debugging. It is used both to define enums and
toggle names for FT2_DEBUG.
* include/freetype/internal/internal.h: Updated.
* src/base/ftobjs.c, src/base/ftstream.c: Updated.
* include/freetype/internal/ftextend.h, src/base/ftextend.c:
Removed. Both files are now completely obsolete.
* src/base/Jamfile, src/base/ Updated.
* include/freetype/fterrors.h: Adding "#undef FT_ERR_CAT" and
`#undef FT_ERR_XCAT" to avoid warnings with certain compilers (like
* src/pshinter/pshalgo2.c (print_zone): Renamed to ...
(psh2_print_zone): This to avoid errors during compilation of debug
* src/smooth/ftgrays.c (FT_COMPONENT): Change definition to as
2002-02-20 David Turner <>
* README: Adding "" address for bug reports.
2002-02-20 Werner Lemberg <>
* builds/unix/ (check): New dummy target.
(.PHONY): Add it.
2002-02-19 Werner Lemberg <>
* builds/ (FT_CFLAGS): Use $(INCLUDE_FLAGS) first.
* src/cache/ftccache.c (ftc_cache_resize): Mark `error' as unused
to avoid compiler warning.
* src/cff/cffload.c (CFF_Get_String): Ditto.
* src/cff/cffobjs.c (CFF_StrCopy): Ditto.
* src/psaux/psobjs.c (PS_Table_Done): Ditto.
* src/pcf/pcfread.c (pcf_seek_to_table_type): Ditto.
* src/sfnt/sfdriver.c (get_sfnt_postscript_name): Ditto.
(pcf_get_bitmaps): The same for `sizebitmaps'.
* src/psaux/t1decode.c (T1_Decode_Parse_Charstrings): The same for
(t1operator_seac): Comment out more dead code.
* src/pshinter/pshalgo2.c (ps2_hints_apply): Add `DEBUG_HINTER'
* src/truetype/ttgload.c (TT_Process_Simple_Glyph,
2002-02-18 Werner Lemberg <>
* src/autohint/ahglyph.c (ah_outline_link_segments): Remove unused
* src/autohint/ahhint.c (ah_align_serif_edge): Use FT_UNUSED instead
* src/autohint/ahmodule.c (ft_autohinter_reset): Ditto.
* src/pshinter/pshrec.c (ps_mask_table_merge): Fix typo in variable
swapping code.
* src/pshinter/pshglob.h (PSH_Blue_Align): Add PSH_BLUE_ALIGN_NONE.
* src/pshinter/pshglob.c (psh_blues_snap_stem): Use it.
* src/pshinter/pshalgo1.c (psh1_hint_table_optimize): Ditto.
* src/pshinter/pshalgo2.c (psh2_hint_align): Ditto.
* include/freetype/internal/ftobjs.h (UNUSED): Removed.
2002-02-10 Roberto Alameda <>
Add support for ISOLatin1 PS encoding.
* include/freetype/freetype.h (ft_encoding_latin_1): New tag
* include/freetype/internal/t1types.h (T1_Encoding_Type): Add
* src/type1/t1driver.c (Get_Char_Index, Get_Next_Char): Handle
* src/type1/t1load.c (parse_encoding): Handle `ISOLatin1Encoding'.
* src/type1/t1objs.c (T1_Face_Init): Handle `t1_encoding_isolatin1'.
2002-02-09 Werner Lemberg <>
* README: Fix typo.
* docs/CHANGES: Minor fixes.
* Version 2.0.8 released.
2002-02-08 David Turner <>
* docs/CHANGES: Updating for 2.0.8.
* include/freetype/freetype.h: Setting `PATCH_LEVEL' to 8 and
removing `FT_Get_Next_Char' from the API (temporarily).
* include/freetype/freetype.h: Adding comments to FT_Get_Next_Char;
note that this function might temporarily be removed for the 2.0.8
2002-02-07 David Turner <>
* src/pcf/pcfread.c (pcf_load_font): Removed immature support of
the AVERAGE_WIDTH property.
2002-02-06 David Turner <>
* src/sfnt/sfobjs.c (SFNT_Load_Face): Since many fonts embedded in
PDF documents do not include 'cmap', 'post' and 'name' tables, the
SFNT face loader has been changed to not immediately report an
error if these are not present.
Note that the specification _requires_ these tables, but Adobe
seems to ignore it completely.
* src/sfnt/ttcmap.c: Removing compiler warnings.
* src/pcf/pcfread.c (pcf_read_TOC): Use FT_UInt.
(pcf_parse_metric, pcf_parse_compressed_metric): Removed. Code
is now in ...
(pcf_get_metric): Here.
(pcfSeekToType): Renamed to ...
(pcf_seek_to_table_type): This.
Use FT_Int.
(pcfHasType): Renamed to ...
(pcf_has_table_type): This.
Use FT_Int.
(find_property): Renamed to ...
(pcf_find_property): This.
Use FT_Int.
(pcf_get_bitmaps, pcf_get_encodings): Handle invalid PCF fonts
better (delaying format checks out of FT_Access_Frame ..
FT_Forget_Frame blocks to avoid leaving the stream in an incorrect
state when encountering an invalid PCF font).
* src/pcf/pcfdriver.c (PCF_Done_Face): Renamed to ...
(PCF_Face_Done): This.
(PCF_Init_Face): Renamed to ...
(PCF_Face_Init): This.
(PCF_Get_Char_Index): Renamed to ...
(PCF_Char_Get_Index): This.
(PCF_Get_Next_Char): Renamed to ...
(PCF_Char_Get_Next): This.
(pcf_driver_class): Updated.
* src/pcf/pcf.h (PCF_Done_Face): Removed.
2002-02-06 Detlef Würkner <>
* src/pcf/pcfdriver.c (FT_Done_Face): Fixed small memory leak.
* src/pcf/pcfread.c (pcf_load_font): Now handles the "AVERAGE_WIDTH"
property to return correct character pixel (width/height) pairs for
embedded bitmaps.
2002-02-04 Keith Packard <>
Adding the function `FT_Get_Next_Char', doing the obvious thing
w.r.t. the selected charmap.
* include/freetype/freetype.h: Add prototype.
* include/freetype/internal/ftdriver.h: Add `FTDriver_getNextChar'
(FT_Driver_Class): Use it.
* include/freetype/internal/psnames.h: Add `PS_Next_Unicode_Func'
(PSNames_Interface): Use it.
* include/freetype/internal/tttypes.h: Add `TT_CharNext_Func'
(TT_CMapTable): Use it.
* src/base/ftobjs.c (FT_Get_Next_Char): New function, implementing
high-level API.
* src/cff/cffdrivr.c (cff_get_next_char): New function.
(cff_driver_class): Add it.
* src/cid/cidriver.c (Cid_Get_Next_Char): New function.
(t1cid_driver_class): Add it.
* src/pcf/pcfdriver.c (PCF_Get_Next_Char): New function.
(pcf_driver_class): Add it.
* src/psnames/psmodule.c (PS_Next_Unicode): New function.
(psnames_interface): Add it.
* src/sfnt/ttcmap.c (code_to_next0, code_to_next2, code_to_next4,
code_to_next6, code_to_next_8_12, code_to_next_10): New auxiliary
(TT_CharMap_Load): Use them.
* src/truetype/ttdriver.c (Get_Next_Char): New function.
(tt_driver_class): Add it.
* src/type1/t1driver.c (Get_Next_Char): New function.
(t1_driver_class): Add it.
* src/winfnt/winfnt.c (FNT_Get_Next_Char): New function.
(winfnt_driver_class): Add it.
* src/pcf/pcfread.c (pcf_load_font): For now, report Unicode for
Unicode and Latin 1 encodings.
2002-02-02 Keith Packard <>
* builds/unix/ Add missing `fi'.
* Version 2.0.7 released.
2002-02-01 David Turner <>
* include/freetype/freetype.h: Increasing FREETYPE_PATCH to 7
for the new release.
2002-01-31 David Turner <>
* README, README.UNX, docs/CHANGES: Updating documentation for the
2.0.7 release.
2002-01-30 David Turner <>
* INSTALL: Moved to ...
* docs/INSTALL: Here to avoid conflicts with the "install" script on
Windows, where the filesystem doesn't preserve case.
2002-01-29 David Turner <>
* configure: Fixed the script. It previously didn't accept more
than one argument correctly. For example, when typing:
./configure --disable-shared --disable-nls
the "--disable-nls" was incorrectly sent to the "make" program.
2002-01-29 Werner Lemberg <>
* README.UNX: Fix typo.
* builds/unix/ (uninstall): Fix library name for libtool.
2002-01-28 Francesco Zappa Nardelli <>
* src/pcf/pcfdriver.c (PCF_Done_Face): Fix incorrect destruction of
the face object (face->toc.tables, face->root.family_name,
face->root.available_size, face->charset_encoding,
face->charset_registry are now freed). Thanks to Niels Moseley.
2002-01-28 Roberto Alameda <>
* src/type1/t1load.c (parse_encoding): Set `loader->num_chars'.
2002-01-28 Werner Lemberg <>
* src/type1/t1load.c (parse_subrs, parse_charstrings): Use copy
of `base' string for decrypting to not modify the original data.
Based on a patch by Jakub Bogusz <>.
2002-01-27 Giuliano Pochini <>
* src/smooth/ftgrays.c (gray_render_scanline): Fix bug which caused
bad rendering of thin lines (less than one pixel thick).
2002-01-25 Werner Lemberg <>
* src/cff/cffdrivr.c (cff_get_name_index): Make last patch work
2002-01-25 Martin Zinser <>
* src/cache/ftccache.c (ftc_node_done, ftc_node_destroy): Fix
compilation warnings.
* src/base/descrip.mms (OBJS): Add `ftmm.obj'.
* src/cache/descrip.mms (ftcache.obj): Dependencies added.
2002-01-25 WANG Yi <>
* src/cff/cffdrivr.c (cff_get_name_index): Fix deallocation bug.
2002-01-21 Antoine Leca <>
* docs/PATENTS: Typo fixed (thanks to Detlef "Hawkeye" Würkner) in
the URL for the online resource.
2002-01-18 Ian Brown <>
* builds/win32/ftdebug.c: New file.
* builds/win32/visualc/freetype.dsp: Updated.
2002-01-18 Detlef Würkner <>
* builds/amiga/src/base/ftsystem.c: Updated for AmigaOS 3.9.
* builds/amiga/README: Updated.
2002-01-18 Ian Brown <>
* builds/win32/visualc/freetype.dsp: Updated.
2002-01-13 Werner Lemberg <>
* builds/unix/freetype2.a4: The script was still buggy.
* builds/unix/ Make it really work for any install
2002-01-10 Werner Lemberg <>
* builds/unix/freetype2.a4: Fix some serious bugs.
2002-01-09 David Turner <>
* builds/unix/ Build top-level Jamfile.
2002-01-09 Maxim Shemanarev <>
* src/smooth/ftgrays.c (gray_render_line): Small optimization to
the smooth anti-aliased renderer that deals with vertical segments.
This results in a 5-7% speedup in rendering speed.
2002-01-08 David Turner <>
Added some wrapper scripts to make the installation more
* configure, install: New files.
* INSTALL, README.UNX: Updated installation documentation to use the
new 'configure' and 'install' scripts.
2002-01-07 David Turner <>
* Version 2.0.6 released.
* docs/BUGS, docs/CHANGES: Updating documentation for 2.0.6 release.
* src/tools/ Fixed HTML quoting in sources.
(html_format): Replaced with ...
(html_quote): New function.
(html_quote0): New function.
(DocCode::dump_html: Small improvement.
(DocParagraph::dump, DocBlock::html): Use html_quote0 and html_quote.
* include/freetype/config/ftoption.h: Setting default options for
a release build (debugging off, bytecode interpreter off).
* src/base/ftobjs.c, src/base/ftoutln.c, src/cache/ftccmap.c,
src/cff/cffload.c, src/cff/cffobjs.c, src/pshinter/pshalgo2.c,
src/sfnt/ttload.c, src/sfnt/ttsbit.c: Removing small compiler
warnings (in pedantic compilation modes).
2002-01-05 David Turner <>
* src/autohint/ahhint.c (ah_align_linked_edge): Modified computation
of auto-hinted stem widths; this avoids color fringes in
"ClearType-like" rendering.
* src/truetype/ttgload.c (TT_Load_Glyph_Header,
TT_Load_Simple_Glyph, TT_Load_Composite_Glyph, load_truetype_glyph):
Modified the TrueType loader to make it more paranoid; this avoids
nasty buffer overflows in the case of invalid glyph data (as
encountered in the output of some buggy font converters).
2002-01-04 David Turner <>
* README.UNX: Added special README file for Unix users.
* builds/unix/ftsystem.c (FT_New_Stream): Fixed typo.
* src/base/ftobjs.c: Added #include FT_OUTLINE_H to get rid
of compiler warnings.
* src/base/ftoutln.c (FT_Outline_Check): Remove compiler warning.
2002-01-03 Werner Lemberg <>
* src/type1/t1objs.c (T1_Face_Init): Add cast to avoid compiler
2002-01-03 Keith Packard <>
* builds/unix/ftsystem.c (FT_New_Stream): Added a fix to ensure that
all FreeType input streams are closed in child processes of a "fork"
on Unix systems. This is important to avoid (potential) access
control issues.
2002-01-03 David Turner <>
* src/type1/t1objs.c (T1_Face_Init): Fixed a bug that crashed the
library when dealing with certain weird fonts like "Stalingrad", in
"sadn.pfb" (this font has no full font name entry).
* src/base/ftoutln.c, include/freetype/ftoutln.h (FT_Outline_Check):
New function to check the consistency of outline data.
* src/base/ftobjs.c (FT_Load_Glyph): Use `FT_Outline_Check' to
ensure that loaded glyphs are valid. This allows certain fonts like
"tt1095m_.ttf" to be loaded even though it appears they contain
really funky glyphs.
There still is a bug there, though.
* src/truetype/ttgload.c (load_truetype_glyph): Fix error condition.
2001-12-30 David Turner <>
* src/autohint/ahhint.c (ah_hinter_load): Fix advance width
computation of auto-hinted glyphs. This noticeably improves the
spacing of letters in KDE and Gnome.
2001-12-25 Antoine Leca <>
* builds/dos/ Correcting the order for Borland compilers:
16-bit bcc was never selected, always overridden by 32-bit bcc32.
2001-12-22 Francesco Zappa Nardelli <>
* src/pfc/pcfread.c (pcf_load_font): Handle property `POINT_SIZE'
and fix incorrect computation of `available_sizes'.
2001-12-22 David Turner <>
* src/autohint/ahhint.c (ah_hinter_load): Auto-hinted glyphs had an
incorrect glyph advance in the case of mono-width fonts (like
Courier, Andale Mono, and others).
2001-12-22 Detlef Würkner <>
* builds/amiga/*: Adaptations to latest changes.
Support added for MorphOS.
2001-12-22 Werner Lemberg <>
* src/pshinter/pshrec.c (FT_COMPONENT): Redefine to `trace_pshrec'.
(ps_mask_table_merge, ps_hints_open, ps_hints_stem,
ps_hints_t1stem3, ps_hints_t2mask, ps_hints_t2counter): Fix
FT_ERROR messages.
* src/pshinter/pshalgo1.c (FT_COMPONENT): Define as
* src/pshinter/pshalgo2.c (FT_COMPONENT): Define as
* include/freetype/internal/ftdebug.h (FT_Trace): Updated.
* docs/modules.txt: New file.
2001-12-21 David Turner <>
* src/pshinter/pshrec.c (ps_hints_t2mask, ps_hints_t2counter):
Ignore invalid "hintmask" and "cntrmask" operators (instead of
returning an error). Glyph 2028 of the CFF font "MSung-Light-Acro"
couldn't be rendered otherwise (it seems its charstring is buggy,
though this requires more analysis).
* src/cff/cffgload.c (CFF_Parse_CharStrings), src/psaux/t1decode.c
(T1_Decoder_Parse_Charstrings), src/pshinter/pshalgo2.c (*), Fixed a
bug where the X and Y axis where inversed in the postscript hinter.
This caused problem when displaying on non-square surfaces.
* src/pshinter/pshalgo2.c: s/vertical/dimension/.
* src/pshinter/pshglob.c (psh_globals_new): Replaced a floating
point constant with a fixed-float equivalent. For some reasons not
all compilers are capable of directly computing a floating pointer
constant casted to FT_Fixed, and will link a math library instead.
2001-12-20 Werner Lemberg <>
* src/cache/ftccache.c (ftc_node_destroy, ftc_cache_lookup): Fix
tracing strings.
* src/cache/ftccmap.c (ftc_cmap_family_init): Ditto.
* src/cache/ftcmanag.c (ftc_family_table_alloc,
ftc_family_table_free, FTC_Manager_Check): Ditto.
* src/cache/ftcsbits.c (ftc_sbit_node_load): Ditto.
* src/base/ftobjs.c (FT_Done_Library): Remove compiler warning.
2001-12-20 David Turner <>
Added PostScript hinter support to the CFF and CID drivers.
* include/freetype/internal/cfftypes.h (CFF_Font): New member
* src/cff/cffload.c (CFF_Get_Standard_Encoding): New function.
* src/cff/cffload.h: Updated.
* src/cff/cffgload.c (CFF_Init_Builder): Renamed to ...
(CFF_Builder_Init): This.
Added new argument `hinting'.
(CFF_Done_Builder): Renamed to ...
(CFF_Builder_Done): This.
(CFF_Init_Decoder): Added new argument `hinting'.
(CFF_Parse_CharStrings): Implement vstem support.
(CFF_Load_Glyph): Updated.
Add hinting support.
(cff_lookup_glyph_by_stdcharcode): Use CFF_Get_Standard_Encoding().
(cff_argument_counts): Updated.
* src/cff/cffgload.h: Updated.
* src/cff/cffobjs.c: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
(CFF_Size_Get_Globals_Funcs, CFF_Size_Done, CFF_Size_Init,
CFF_Size_Reset, CFF_GlyphSlot_Done, CFF_GLyphSlot_Init): New
(CFF_Init_Face): Renamed to ...
(CFF_Face_Init): This.
Add hinter support.
(CFF_Done_Face): Renamed to ...
(CFF_Face_Done): This.
(CFF_Init_Driver): Renamed to ...
(CFF_Driver_Init): This.
(CFF_Done_Driver): Renamed to ...
(CFF_Driver_Done): This.
* src/cff/cffobjs.h: Updated.
* src/cff/cffdrivr.c (cff_driver_class): Updated.
* include/freetype/internal/t1types.h (CID_FaceRec): New member
* src/cid/cidgload.c (CID_Load_Glyph): Add hinter support.
* src/cid/cidobjs.c: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
(CID_GlyphSlot_Done, CID_GlyphSlot_Init, CID_Size_Get_Globals_Funcs,
CID_Size_Done, CID_Size_Init, CID_Size_Reset): New functions.
(CID_Done_Face): Renamed to ...
(CID_Face_Done): This.
(CID_Init_Face): Renamed to ...
(CID_Face_Init): This.
Add hinting support.
(CID_Init_Driver): Renamed to ...
(CID_Driver_Init): This.
(CID_Done_Driver): Renamed to ...
(CID_Driver_Done): This.
* src/cid/cidobjs.h: Updated.
* src/cidriver.c: Updated.
* src/pshinter/pshrec.c (t2_hint_stems): Fixed.
* src/base/ftobjs.c (FT_Done_Library): Fixed a stupid bug that
crashed the library on exit.
* src/type1/t1gload.c (T1_Load_Glyph): Enable font matrix
transformation of hinted glyphs.
* src/cid/cidload.c (cid_read_subrs): Fix error condition.
* src/cid/cidobjs.c (CID_Face_Done): Fixed a memory leak; the subrs
routines were never released when CID faces were destroyed.
* src/cff/cffload.h, src/cff/cffload.c, src/cff/cffgload.c: Updated
to move the definition of encoding tables back within "cffload.c"
instead of making them part of a shared header (causing problems in
"multi" builds). This reverts change 2001-08-08.
* docs/CHANGES: Updated for 2.0.6 release.
* docs/TODO: Added "stem3 and counter hints support" to the TODO
list for the Postscript hinter.
* docs/BUGS: Closed the AUTOHINT-NO-SBITS bug.
2001-12-19 David Turner <>
* include/freetype/cache/ftcache.h: Added comments to indicate that
some of the exported functions should only be used by applications
that need to implement custom cache types.
* src/truetype/ttgload.c (cur_to_org, org_to_cur): Fixed a nasty bug
that prevented composites from loading correctly, due to missing
parentheses around macro parameters.
* src/sfnt/sfobjs.c (SFNT_Load_Face): Make the "post" and "name"
tables optional to load PCL fonts properly.
* src/truetype/ttgload.c (TT_Load_Glyph), src/base/ftobjs.c
(FT_Load_Glyph), include/freetype/freetype.h (FT_LOAD_SBITS_ONLY):
"Fixed" the bug that prevented embedded bitmaps to be loaded when
the auto-hinter is used. This actually is a hack but will be enough
until the internal re-design scheduled for FreeType 2.1.
* src/raster/ftrend1.c (ft_raster1_render): Fixed a nasty outline
shifting bug in the monochrome renderer.
* README: Updated version numbers to 2.0.6.
2001-12-17 Werner Lemberg <>
* src/truetype/ttgload.c (load_truetype_glyph): Fix test for invalid
glyph header.
2001-12-15 Werner Lemberg <>
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Remove compiler warning.
* include/freetype/ftcache.h (FTC_Node_Unref): Removed. It is
already in ftcmanag.h.
* src/cache/ftcsbits.c (ftc_sbit_node_load): Remove unused variable
* src/cache/ftcmanag.c (ftc_family_table_alloc,
* ftc_family_table_free): Use FT_EXPORT_DEF.
* include/freetype/cache/ftcmanag.h: Updated.
* src/cache/ftccache.c (ftc_node_destroy): Use FT_EXPORT_DEF.
* src/cache/ftccmap.c (ftc_cmap_node_init): Remove unused variable
Remove compiler warning.
(FTC_CMapCache_Lookup): Remove compiler warnings.
(ftc_cmap_family_init): Ditto.
(FTC_CMapCache_Lookup): Ditto.
* builds/unix/ Increase `version_info' to 8:0:2.
* builds/unix/configure: Regenerated.
2001-12-14 Werner Lemberg <>
* builds/mac/README: Updated.
2001-12-14 Scott Long <>
* src/truetype/ttgload.c (load_truetype_glyph): Fixing crash when
dealing with invalid fonts (i.e. glyph size < 10 bytes).
2001-12-14 Sam Latinga <>
* builds/mac/freetype.make: A new Makefile to build with MPW on
MacOS classic.
2001-12-14 David Turner <>
* src/truetype/ttgload.c (TT_Load_Glyph), src/type1/t1gload.c
(T1_Load_Glyph), src/cid/cidgload.c (CID_Load_Glyph),
src/cff/cffgload.c (CFF_Load_Glyph): Fixed a serious bug common to
all font drivers (the advance width was never hinted when it
* include/freetype/freetype.h (FREETYPE_PATCH): New macro.
* src/base/ftdbgmem.c (debug_mem_dummy) [!FT_DEBUG_MEMORY]: Don't
use `extern' keyword.
2001-12-12 David Turner <>
* src/pshint/pshglob.c (psh_blues_scale_zones, psh_blues_snap_stem
psh_globals_new): Adding correct BlueScale/BlueShift support, plus
family blues processing.
* src/pshint/pshglob.h (PSH_BluesRec): Updated.
Started adding support for the Postscript hinter in the CFF module.
* src/cff/cffgload.c: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
(CFF_Parse_CharStrings): Implement it.
* src/cff/cffgload.h: Updated.
2001-12-12 Werner Lemberg <>
* builds/unix/freetype2.m4: Some portability fixes.
2001-12-11 Jouk Jansen <>
* src/base/descrip.mms (OBJS): Add ftdebug.obj.
2001-12-11 Werner Lemberg <>
* src/sfnt/ttload.c (TT_Load_Generic_Header): Typos.
2001-12-11 David Turner <>
* builds/unix/ Modified the script to prevent
passing "-L/usr/lib" to gcc.
* docs/FTL.TXT: Simple fix (change "LICENSE.TXT" to "FTL.TXT").
* builds/unix/freetype2.m4: New file for checking configure paths.
We need to install it in $(prefix)/share/aclocal/freetype2.m4 but I
didn't modify builds/unix/ yet.
* INSTALL: Updated the instructions to build shared libraries with
Jam. They were simply wrong.
* src/base/fttrigon.c (FT_Cos): Fixed a small bug that caused
slightly improper results for `FT_Cos' and `FT_Sin' (example:
FT_Sin(0) == -1!).
2001-12-11 Detlef Würkner <>
* include/freetype/internal/ftstream.h (GET_LongLE, GET_ULongLE):
Fixed incorrect argument types.
2001-12-10 Francesco Zappa Nardelli <>
* src/pcf/pcfdriver.c (PCF_Init_Face): Allow Xft to use PCF fonts
by setting the "face->metrics.max_advance" correctly.
2001-12-07 David Turner <>
* include/freetype/cache/ftccmap.h, src/cache/ftccmap.c: Added new
charmap cache.
* src/cache/ftcache.c: Updated.
* src/autohint/ahhint.c (ah_hinter_hint_edges): s/UNUSED/FT_UNUSED/.
2001-12-06 Leonard Rosenthol <>
Added support for reading .dfont files on Mac OS X. Also added a
new routine which looks up a given font by name in the Mac OS and
returns the disk file where it resides.
* src/base/ftmac.c: Include <Files.h> and <TextUtils.h>.
(is_dfont): New auxiliary function.
(FT_New_Face_From_dfont): New function.
(FT_GetFile_From_Mac_Name): New exported function.
(FT_New_Face): Updated.
* include/freetype/ftmac.h: Updated.
2001-12-06 David Turner <>
* src/cache/Jamfile, src/cache/ Updated.
2001-12-06 Werner Lemberg <>
* INSTALL: Small update.
2001-12-05 David Turner <>
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Re-ordered code for
debugging purposes.
Comment out use of `origin'.
* src/smooth/ftsmooth.c (ft_smooth_render): Fixed a nasty hidden bug
where outline shifting wasn't correctly undone after bitmap
rasterization. This created problems with certain glyphs (like '"'
of certain fonts) and the cache system.
* src/pshinter/pshalgo1.c (psh1_hint_table_init): Fix typo.
* src/pshinter/pshalgo2.c (psh2_hint_table_init): Fix typo.
(ps2_hints_apply): Small fix.
2001-12-05 David Turner <>
* src/pshinter/pshalgo2.c (psh2_hint_table_init),
src/pshinter/pshalgo1.c (psh1_hint_table_init): Removed compiler
* include/freetype/ftcache.h, include/freetype/cache/*, src/cache/*:
Yet another massive rewrite of the caching sub-system in order to
both increase performance and allow simpler cache sub-classing. As
an example, the code for the image and sbit caches is now much
I still need to update the documentation in
www/freetype2/docs/cache.html to reflect the new design though.
* include/freetype/config/ftheader.h (FT_CACHE_CHARMAP_H): New
2001-12-05 David Krause <>
* docs/license.txt: s/X Windows/X Window System/.
2001-12-04 Werner Lemberg <>
* src/raster/ftraster.c: Fix definition condition of MEM_Set().
* src/smooth/ftgrays.c (M_Y): Change value to 192.
* src/base/ftdbgmem.c (ft_mem_table_destroy): Fix printf() parameter.
Remove unused variable.
* src/cache/ftcimage.c (ftc_image_node_init,
ftc_image_node_compare): Remove unused variables.
* src/cache/ftcsbits.c (ftc_sbit_node_weight): Remove unused
* src/raster/ftraster.c (MEM_Set): Move definition down to avoid
compiler warning.
* src/autohint/ahhint.c (ah_hinter_hint_edges): Use UNUSED() to
avoid compiler warnings.
* src/pcf/pcfread.c (tableNames): Use `const'.
(pcf_read_TOC): Change counter name to avoid compiler warning.
Use `const'.
* src/pshinter/pshrec.c (ps_hints_close): Remove redundant
* src/pshinter/pshalgo1.c (psh1_hint_table_init): Rename variables
to avoid shadowing.
* src/pshinter/pshalgo2.c (psh2_hint_table_activate_mask): Ditto.
* src/type1/t1objs.h: Remove double declarations of `T1_Size_Init()'
and `T1_Size_Done()'.
2001-11-20 Antoine Leca <>
* include/freetype/ttnameid.h: Added some new Microsoft language
codes and LCIDs as found in MSDN (Passport SDK). Also added
comments about the meaning of bit 57 of the `OS/2' table
(TT_UCR_SURROGATES) which (with OpenType v.1.3) now means "there is
a character beyond 0xFFFF in this font". Thanks to Detlef Würkner
<> for noticing this.
2001-11-20 David Turner <>
* src/pshinter/{pshalgo2.c, pshalgo1.c}: Fixed stupid bug in sorting
routine that created nasty alignment artefacts.
* src/pshinter/pshrec.c, tests/gview.c: Debugging updates.
* src/smooth/ftgrays.c: De-activated experimental gamma support.
Apparently, `optimal' gamma tables depend on the monitor type,
resolution and general karma, so it's better to compute them outside
of the rasterizer itself.
(gray_convert_glyph): Use `volatile' keyword.
2001-10-29 David Turner <>
Adding experimental `gamma' support. This produces smoother glyphs
at small sizes for very little cost.
* src/smooth/ftgrays.c (grays_init_gamma): New function.
(gray_raster_new): Use it.
Various fixes to the auto-hinter. They merely improve the output of
sans-serif fonts. Note that there are still problems with serifed
fonts and composites (accented characters).
* src/autohint/ahglyph.c (ah_outline_load,
ah_outline_link_segments): Implement it.
Fix typos.
(ah_outline_save, ah_outline_compute_segments): Fix typos.
* src/autohint/ahhint.c (ah_align_serif_edge): New argument
`vertical'. Implement improvement.
(ah_hint_edges_3, ah_hinter_hint_edges): Implement it.
Fix typos.
(ah_hinter_align_strong_points, ah_hinter_align_weak_points): Fix
(ah_hinter_load): Set `ah_debug_hinter' if DEBUG_HINTER is defined.
* src/autohint/ahmodule.c: Implement support for DEBUG_HINTER macro.
* src/autohint/ahtypes.h: Ditto.
(AH_Hinter): Remove `disable_horz_edges' and `disable_vert_edges'
(making them global as `ah_debug_disable_horz' and
Fix typos.
* tests/gview.c: Updated the debugging glyph viewer to show the
hints generated by the "autohint" module.
2001-10-27 David Turner <>
* src/cache/ftcchunk.c (ftc_chunk_cache_lookup): Fixed a bug that
considerably lowered the performance of the abstract chunk cache.
2001-10-26 David Turner <>
* include/freetype/ftcache.h, include/freetype/cache/*.h,
src/cache/*.c: Major re-design of the cache sub-system to provide
better performance as well as an "Acquire"/"Release" API. Seems to
work well here, but probably needs a bit more testing.
2001-10-26 Leonard Rosenthol <>
* builds/mac/README: Updated to reflect my taking over the project
and that is now being actively maintained.
* src/base/ftmac.c (parse_fond): Applied patches from Paul Miller
<> to support loading a face other than the
first from a FOND resource.
(FT_New_Face_From_FOND): Updated.
2001-10-25 Leonard Rosenthol <>
* builds/mac/ftlib.prj: Update of CodeWarrior project file for Mac
OS for latest version (7) of CWPro and for recent changes to the FT
source tree.
2001-10-25 David Turner <>
* include/freetype/config/ftoption.h: Updated comments to explain
precisely how to use project-specific macro definitions without
modifying this file manually.
(FT_DEBUG_MEMORY): New macro.
2001-10-24 Tom Kacvinsky <>
* builds/unix/ftsystem.c (FT_New_Memory): Added a missing `{'.
2001-10-23 David Turner <>
* include/freetype/internal/ftmemory.h, src/base/ftdbgmem.c:
Improvements to the memory debugger to report more information in
case of errors. Also, some allocations that occured through REALLOC
couldn't be previously catched correctly.
* src/autohint/ahglyph.c (ah_outline_compute_segments,
ah_outline_compute_edges), src/raster/ftraster.c (ft_black_new),
src/smooth/ftgrays.c (gray_render_span, gray_raster_new): Replaced
liberal uses of memset() by the MEM_Set() macro.
2001-10-23 David Turner <>
* src/raster/ftraster.c (Update): Removed to be inlined in ...
(Sort): Updated.
2001-10-22 David Turner <>
* builds/unix/ftsystem.c (FT_New_Memory, FT_Done_Memory),
builds/vms/ftsystem.c (FT_New_Memory, FT_Done_Memory),
builds/amiga/ftsystem.c (FT_New_Memory, FT_Done_Memory),
src/base/ftdbgmem.c: Updated the memory debugger and
platform-specific implementations of `ftsystem' in order to be able
to debug memory allocations on Unix, VMS and Amiga too!
* src/pshinter/pshalgo2.c (psh2_hint_table_record_mask): Removed
some bogus warnings.
* include/freetype/internal/ftmemory.h, src/base/ftdbgmem.c:
Modified the debugging memory manager to report the location (source
file name + line number) where leaked memory blocks are allocated in
the source file.
* src/base/ftdbgmem.c: New debugging memory manager. You must
define the FT_DEBUG_MEMORY macro in "ftoption.h" to enable it. It
will record every memory block allocated and report simple errors
like memory leaks and double deletes.
* src/base/Jamfile: Include ftdbgmem.
* src/base/ Ditto.
* src/base/ftbase.c: Include ftdbgmem.c.
* include/freetype/config/ftoption.h: Added the FT_DEBUG_MEMORY
macro definition.
* src/base/ftsystem.c (FT_New_Memory, FT_Done_Memory): Modified the
base component to use the debugging memory manager when the macro
FT_DEBUG_MEMORY is defined.
2001-10-21 Tom Kacvinsky <>
* src/cff/cffload.c (CFF_Done_Font): Free subfonts array only if
we are working with a CID keyed CFF font. Otherwise, a variable
that was never allocated memory might freed. This is a correction
to the previous patch for freeing subfonts.
2001-10-21 Tom Kacvinsky <>
* src/cff/cffload.c (CFF_Done_Font): Free the subfonts array to
avoid a memory leak.
2001-10-21 David Turner <>
* src/pshinter/pshalgo2.c, src/pshinter/pshalgo1.c,
src/pshinter/pshglob.c: Removing compiler warnings in pedantic modes
(in multi-object compilation mode, mainly).
2001-10-20 Tom Kacvinsky <>
* src/type1/t1load.c (parse_encoding): Add a test to make sure
that custom encodings (i.e., neither StandardEncoding nor
ExpertEncoding) are not loaded twice when the Type 1 font is
* src/type1/t1load.c (parse_font_name, parse_subrs): Added a test
for when loading synthetic fonts to make sure that the font name
and subrotuines are not loaded twice. This is to remove a memory
leak that occured because the original memory blocks for these
objects were not deallocated when the objects were parsed the
second time.
2001-10-19 David Turner <>
* src/smooth/ftgrays.c, src/pshinter/pshglob.h,
src/pshinter/pshrec.c, src/pshinter/pshalgo2.c: Getting rid of
compiler warnings.
* src/pshinter/, src/pshinter/ Adding control
files to build the PostScript hinter with the "old" build system.
2001-10-19 Jacob Jansen <>
* descrip.mms, src/pshinter/descrip.mms: Updates to the VMS build
2001-10-18 David Turner <>
* src/psnames/pstables.h, src/tools/ Rewrote the
"" script used to generate the "pstables.h" header file.
The old one contained a serious bug that made FreeType return
incorrect glyph names for certain glyphs.
* src/truetype/ttdriver.c (Set_Char_Sizes): Changing computation of
pixel size from character size to use rounding. This is an
experiment to see whether this gives values similar to Windows for
scaled ascent/descent/etc.
* src/base/ftcalc.c (FT_Div64by32): Changed the implementation
slightly since the original code was mis-compiled on Mac machines
using the MPW C compiler.
* src/base/ftobjs.c (FT_Realloc): When a memory block was grown
through FT_Realloc(), the new bytes were not set to 0, which created
some strange bugs in the PostScript hinter.
(destroy_face): Don't deallocate unconditionally.
* src/cid/cidgload.c (CID_Compute_Max_Advance, CID_Load_Glyph):
Adding support to new PostScript hinter.
* include/freetype/internal/psglobal.h,
include/freetype/config/ftmodule.h, src/pshinter/Jamfile,
src/pshinter/pshalgo.h, src/pshinter/pshalgo1.h,
src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.h,
src/pshinter/pshalgo2.c, src/pshinter/pshglob.h,
src/pshinter/pshglob.c, src/pshinter/pshinter.c,
src/pshinter/pshmod.c, src/pshinter/pshmod.h, src/pshinter/pshrec.c,
src/pshinter/pshrec.h: Adding new PostScript hinter module.
* include/freetype/internal/ftobjs.h,
include/freetype/internal/t1types.h, src/psaux/psobjs.c,
src/psaux/psobjs.h, src/psaux/t1decode.h, src/psaux/t1decode.c,
src/type1/t1driver.c, src/type1/t1gload.c, src/type1/t1objs.c,
src/type1/t1objs.h: Updates to use the new PostScript hinter.
* tests/Jamfile, tests/gview.c: Adding a new glyph hinting
viewer/debugger to the source tree. Note that you will _not_ be
able to compile it since it depends on an unavailable graphics
library named "Nirvana" to render vector images.
2001-10-17 David Turner <>
* Version 2.0.5 released.
* include/freetype/freetype.h, include/internal/ftobjs.h,
src/base/ftobjs.c, src/type1/t1driver.c: Adding a new function named
'FT_Get_Postscript_Name' to retrieve the PostScript name of a given
font. Should work with all formats except pure CFF/CEF fonts (this
will be added soon).
* src/cid/cidriver (cid_get_postscript_name): New function.
(CID_Get_Interface): Handle `postscript_name' interface.
* src/sfnt/sfdriver.c (get_sfnt_postscript_name): New function.
(SFNT_Get_Interface): Handle `postscript_name' interface.
* src/type1/t1driver.c (t1_get_ps_name): New function.
(Get_Interface): Handle `postscript_name' interface.
* README, docs/CHANGES: Updated for 2.0.5 release.
2001-10-08 David Turner <>
Fixed a bug in `' that prevented it from generating
correct glyph names tables. This resulted in the unavailability of
certain glyphs like `Cacute', `cacute' and `lslash' in Unicode
charmaps, even if these were present in the font (causing problems
for Polish users).
* src/tools/ (mac_standard_names): Fixed.
(t1_standard_strings): Some fixes and renamed to ...
(sid_standard_names): This.
(t1_expert_encoding): Fixed.
(the_adobe_glyph_list): Renamed to ...
(adobe_glyph_names): This.
(the_adobe_glyphs): Renamed to ...
(adobe_glyph_values): This.
(dump_mac_indices, dump_glyph_list, dump_unicode_values, main):
* src/psnames/pstables.h: Regenerated.
* src/psnames/psmodule.c (PS_Unicode_Value): Fix offset.
Fix return value.
Use `sid_standard_table' and `ps_names_to_unicode' instead of
`t1_standard_glyphs' and `names_to_unicode'.
(PS_Macintosh_Name): Use `ps_glyph_names' instead of
(PS_Standard_Strings): Use `sid_standard_names' instead of
* doc/BUGS, doc/TODO: New documents.
2001-10-07 Richard Barber <>
* src/cache/ftlru.c (FT_Lru_Lookup_Node): Fixed a bug that prevented
correct LRU behaviour.
2001-10-07 David Turner <>
setjmp() and longjmp() are now used for rollback (i.e. when memory
pool overflow occurs).
Function names are now all uniformly prefixed with `gray_'.
* src/smooth/ftgrays.c: Include <setjmp.h>.
(ErrRaster_MemoryOverflow): New macro.
(TArea): New type to store area values in each cell (using `int' was
too small on 16-bit systems). <limits.h> is included to properly
get the needed data type.
(TCell, TRaster): Use it.
(TRaster): New element `jump_buffer'.
(gray_compute_cbox): Use `RAS_ARG' as the only parameter and get
`outline' from it.
(gray_record_cell): Use longjmp().
(gray_set_cell): Use gray_record_cell() for error handling.
(gray_render_line, gray_render_conic, gray_render_cubic): Simplify.
(gray_convert_glyph_inner): New function, using setjmp().
(gray_convert_glyph): Use it.
2001-10-07 David Turner <>
Provide a public API to manage multiple size objects for a given
FT_Face in the new header file `ftsizes.h'.
* include/freetype/ftsizes.h: New header file,
* include/freetype/internal/ftobjs.h: Use it.
Remove declarations of FT_New_Size and FT_Done_Size (moved to
* include/freetype/config/ftheader.h (FT_SIZES_H): New macro.
* src/base/ftobjs.c (FT_Activate_Size): New function.
* src/cache/ftcmanag.c: Include ftsizes.h.
(ftc_manager_init_size, ftc_manager_flush_size): Use
2001-09-20 Detlef Würkner <>
* builds/amiga/*: Added port to Amiga with the SAS/C compiler.
2001-09-15 Detlef Würkner <>
* src/type1/t1afm.c (T1_Done_AFM): Free `afm'.
2001-09-10 Yao Zhang <>
* src/sfnt/ttcmap.c (code_to_index2): Handle code values with
hi-byte == 0 correctly.
2001-09-10 Werner Lemberg <>
* builds/ ($(PROJECT_LIBRARY)): Fix typo.
2001-08-30 Martin Muskens <>
* src/type1/t1load.c (parse_font_matrix): A new way to compute the
units per EM with greater accuracy (important for embedded T1 fonts
in PDF documents that were automatically generated from TrueType
* src/type1/t1load.c (is_alpha): Now supports "+" in font names;
this is used in embedded fonts.
* src/psaux/psobjs.c (PS_Table_Add): Fixed a reallocation bug that
generated a dangling pointer reference.
2001-08-30 Anthony Feik <>
* src/type1/t1afm.c (T1_Read_Afm): Now correctly sets the flag
FT_FACE_FLAG_KERNING when appropriate for Type1 + AFM files.
2001-08-25 Werner Lemberg <>
* src/sfnt/ttload.c (TT_Load_CMap): Fix frame length of
* include/freetype/fterrors.h [!FT_CONFIG_OPTION_USE_MODULE_ERRORS]:
Undefine FT_ERR_BASE before defining again.
2001-08-22 Werner Lemberg <>
* src/truetype/ttinterp.h: Fix prototype of TT_Move_Func.
2001-08-21 Werner Lemberg <>
* builds/dos/ (NO_OUTPUT): Don't use `&>' but `>'.
2001-08-21 David Turner <>
* include/freetype/config/ftoption.h: Changed the default setting
for FT_CONFIG_OPTION_USE_MODULE_ERRORS to undefined, since it breaks
source compatibility in a few cases. Updated the comment to explain
that too.
2001-08-17 Martin Muskens <>
* src/base/ftcalc.c (FT_MulDiv): Fixed serious typo.
2001-08-12 Werner Lemberg <>
Updating to OpenType 1.3.
* include/freetype/internal/tttypes.h (TT_CMap0, TT_CMap2, TT_CMap4,
TT_CMap6): Adding field `language'.
(TT_CMapTable): Removing field `language'.
Type of `length' field changed to FT_ULong.
Adding fields for cmaps format 8, 10, and 12.
(TT_CMapGroup): New auxiliary structure.
(TT_CMap8_12, TT_CMap10): New structures.
* include/freetype/tttables.h (TT_HoriHeader, TT_VertHeader):
Removed last element of `Reserved' array.
* include/freetype/ttnameid.h (TT_PLATFORM_CUSTOM, TT_MS_ID_UCS_4,
* src/sfnt/ttcmap.c (TT_CharMap_Load): Updated loading of `language'
field to the new structures.
Fixed freeing of arrays in case of unsuccessful loads.
Added support for loading format 8, 10, and 12 cmaps.
(TT_CharMap_Free): Added support for freeing format 8, 10, and 12
(code_to_index4): Small improvement.
(code_to_index6): Ditto.
(code_to_index8_12, code_to_index10): New functions.
* src/sfnt/ttload.c (TT_Load_Metrics_Header): Updated to new
(TT_Load_CMap): Ditto.
* src/sfnt/sfobjs.c (tt_encodings): Add MS UCS4 table (before MS
2001-08-11 Werner Lemberg <>
* src/type1/t1driver.c (t1_get_name_index): Fix compiler warning.
2001-08-09 Tom Kacvinsky <>
* src/cff/cffdrivr.c (get_cff_glyph_name): Renamed to
cff_get_glyph_name for consistency.
(cff_get_glyph_index): Minor documentation change.
* src/type1/t1driver.c (t1_get_name_index): New function used in
Get_Interface as the function returned when the "name_index"
function is requested.
(get_t1_glyph_name): Renamed to t1_get_glyph_name for consistency.
2001-08-08 Tom Kacvinsky <>
* src/cff/cffload.c: Removed definitions of cff_isoadobe_charset,
cff_expert_charset, cff_expertsubset_charset, cff_standard_encoding,
and cff_expert_encoding arrays to cffload.h.
* src/cff/cffload.h: Added definitions of cff_isoadobe_charset,
cff_expert_charset, cff_expertsubset_charset, cff_standard_encoding,
and cff_expert_encoding arrays.
* src/cff/cffdrivr.c (cff_get_name_index): New function, returned
when `cff_get_interface' is called with a request for the
"name_index" function.
(cff_get_interface): Modified so that it returns the function
`cff_get_name_index' when the "name_index" function is requested.
* src/base/ftobjs.c (FT_Get_Name_Index): New function, used to
return a glyph index for a given glyph name only if the driver
supports glyph names.
* include/freetype/internal/ftobjs.h (FT_Name_Index_Requester):
New function pointer type defintion used in the function
* include/freetype/freetype.h (FT_Get_Name_Index): Added
documentation and prototype.
2001-07-26 Werner Lemberg <>
* builds/cygwin/*: Removed. Use the unix stuff instead.
2001-07-26 Jouk Jansen <>
* builds/vms/ftconfig.h (FT_CALLBACK_DEF): Updated to change dated
2001-07-17 Werner Lemberg <>
* include/freetype/internal/psaux.h (PS_Table): Use FT_Offset for
`cursor' and `capacity'.
* src/psaux/psobjc.c (reallocate_t1_table): Use FT_Long for second
(PS_Table_Add): Use FT_Offset for `new_size'.
Add support for version 0.5 maxp tables.
* src/sfnt/ttload.c (TT_Load_MaxProfile): Implement it.
(TT_Load_OS2): Initialize some values.
2001-07-13 Werner Lemberg <>
* src/base/ftsynth.c: Include ftcalc.h unconditionally.
2001-07-07 David Turner <>
* src/truetype/ttgload.c, src/truetype/ttinterp.c, src/pcf/pcfread:
Removed pedantic compiler warnings when the bytecode interpreter is
compiled in.
2001-07-03 Werner Lemberg <>
* src/autohint/ahhint.c (ah_hinter_align_weak_points): Remove
unused variable `edges'.
(ah_hinter_load): Remove unused variables `old_width' and
* src/cid/cidload.c (cid_decrypt): Use `U' for constant (again).
* src/psaux/psobjs.c (T1_Decrypt): Ditto.
* src/type1/t1parse.c (T1_Get_Private_Dict): Ditto.
2001-06-28 David Turner <>
* include/internal/ftstream.h: Modified the definitions
of the FT_GET_XXXX and NEXT_XXXX macros for 16-bit correctness.
2001-06-26 Werner Lemberg <>
* src/cid/cidload.c, src/cid/cidload.h (cid_decrypt): Use FT_Offset
instead of FT_Int as type for `length' parameter.
* include/freetype/internal/psaux.h (PSAux_Interface): Updated.
2001-06-27 Wolfgang Domröse <>
* src/psaux/psobjs.c, src/psaux/psobjs.h (T1_Decrypt): Use FT_Offset
instead of FT_Int as type for `length' parameter.
* Version 2.0.4 released.
2001-06-27 David Turner <>
* builds/unix/ Changed the definition of the
* include/freetype/ftconfig.h, src/*/*.c: Changed the definition and
use of the FT_CALLBACK_DEF macro in order to support 16-bit
* builds/unix/ Changed the definition of the
* src/sfnt/ttload.c (TT_Load_Kern): The kern table loader now ensures
that the kerning table is correctly sorted (some problem fonts don't
have a correct kern table).
2001-06-26 Wolfgang Domröse <>
* include/freetype/internal/ftstream.h (FT_GET_OFF3_LE): Fix typo.
2001-06-24 David Turner <>
* src/base/ftcalc.c (ft_div64by32): Fixed the source to work
correctly on 16-bit systems.
2001-06-23 Anthony Fok <>
* debian/*: Added Debian package build directory for 2.0.4.
2001-06-22 David Turner <>
* docs/PATENTS: Added patents disclaimer. This one was missing!
* docs/CHANGES, docs/todo: Updated for the upcoming 2.0.4 release.
2001-06-20 Werner Lemberg <>
* include/freetype/config/ftconfig.h: Add two more `L's to
Add missing semicolons.
* builds/ Do similar change as for
* include/freetype/freetype.h (FT_ENC_TAG): New version to make it
easier to redefine.
* include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto.
* src/pcf/pcfread.c (pcf_get_encodings): Add cast.
2001-06-19 David Turner <>
* builds/win32/visualc/freetype.dsp, builds/win32/visualc/index.html:
Updated the Visual C++ project (for the 2.0.4 release).
* builds/unix/ Added rule for AIX detection (which uses
/usr/sbin/init instead of /sbin/init).
* include/freetype/fterrors.h, src/*/*err*.h: Updated some of the
error macros to simplify handling of new error scheme.
2001-06-19 Werner Lemberg <>
* include/freetype/fttypes.h (FT_ERROR_MODULE): New macro.
2001-06-19 David Turner <>
Removing _lots_ of compiler warnings when the most pedantic warning
levels of Visual C++ and Borland C++ are used. Too many files to be
listed here, but FT2 now compiles without warnings with VC++ and the
"/W4" warning level (lint-style).
* include/freetype/freetype.h (FT_New_Memory_Face): Updated
* include/freetype/fttypes.h (FT_BOOL): New macro.
* include/freetype/internal/ftdebug.h: Add #pragma for Visual C++
to suppress warning.
* include/freetype/internal/ftstream.h (FT_GET_SHORT_{BE,LE},
FT_GET_OFF3_{BE,LE}, FT_GET_LONG_{BE,LE}): New macros.
(NEXT_*): Use them.
* src/autohint/ahglobal.c: Include FT_INTERNAL_DEBUG_H.
(FT_New_Memory_Face): Add `const' to function declaration.
2001-06-18 Werner Lemberg <>
Minor cleanups to remove compiler warnings.
* include/freetype/cache/ftcmanag.h (FTC_MAX_BYTES_DEFAULT): Use
`L' for constant.
* include/freetype/config/ftoption.h (FT_RENDER_POOL_SIZE): Ditto.
* src/base/ftcalc.c (FT_MulDiv): Use `L' for constant.
* src/base/ftglyph.c (FT_Glyph_Get_CBox): Remove `error' variable.
* src/base/fttrigon.c (ft_trig_arctan_table): Use `L' for constants.
* src/base/ftobjs.c (FT_Done_Size): Fix return value.
(FT_Set_Char_Size, FT_Set_Pixel_Sizes, FT_Get_Kerning): Remove
unused `memory' variable.
* src/autohint/ahglyph.c (ah_get_orientation): Use `L' for constant.
* src/autohint/ahhint.c (ah_hint_edges_3,
ah_hinter_align_edge_points): Remove unused `before' and `after'
(ah_hinter_align_weak_points): Remove unused `edge_limit' variable.
(ah_hinter_load): Remove unused `new_advance', `start_contour',
and `metrics' variables.
* src/cff/cffload.c (CFF_Load_Encoding): Remove dead code to avoid
compiler warning.
* src/cff/cffobjs.c (CFF_Init_Face): Remove unused `base_offset'
* src/cff/cffgload.c (CFF_Parse_CharStrings): Remove unused
`outline' variable.
(cff_compute_bias): Use `U' for constant.
* src/cid/cidload.c (cid_decrypt): Ditto.
* src/psaux/psobjs.c (T1_Decrypt): Ditto.
* src/psaux/t1decode.c (T1_Decoder_Parse_CharStrings): Ditto.
* src/sfnt/ttload.c (TT_Load_Kern): Remove unused `version'
* src/sfnt/ttsbit.c (TT_Load_SBit_Image): Remove unused `top'
* src/truetype/ttgload.c (load_truetype_glyph): Remove unused
`num_contours' and `ins_offset' variables.
(compute_glyph_metrics): Remove unused `Top' and `x_scale'
(TT_Load_Glyph): Remove unused `memory' variable.
* src/smooth/ftgrays.c (grays_raster_render): Use `L' for constants.
2001-06-18 Werner Lemberg <>
Make the new error scheme source compatible with older FT versions
by introducing another layer.
* include/freetype/fterrors.h (FT_ERRORDEF_, FT_NOERRORDEF_): New
* include/*/*err*.h: Use FT_ERRORDEF_ and FT_NOERRORDEF_.
2001-06-16 Werner Lemberg <>
* include/freetype/freetype.h (FT_ENC_TAG): New macro.
(FT_Encoding_): Use it.
* include/freetype/ftimage.h (FT_IMAGE_TAG): Define it
2001-06-14 David Turner <>
Modified the TrueType interpreter to let it use the new
trigonometric functions provided in "fttrigon.h". This gets rid of
some old 64-bit computation routines, as well as many warnings when
compiling the library with the "long long" 64-bit integer type.
* include/freetype/config/ftoption.h: Undefine
* include/freetype/internal/ftcalc.h: Rearrange use of
* src/base/ftcalc.c: Add declaration of FT_Int64 if
* src/truetype/ttinterp.c: Use FT_TRIGONOMETRY_H.
(Norm): Add a special version if FT_CONFIG_OPTION_OLD_CALCS isn't
(Current_Ratio, Normalize): Simplify code.
2001-06-11 Mike Owens <>
* src/base/ftcalc.c (FT_MulDiv, FT_DivFix, FT_Sqrt64): Remove
compiler warnings.
2001-06-08 Werner Lemberg <>
* builds/unix/ Renamed to ...
* builds/unix/ This to make sure that autoconf 2.50 is
Run `autoupdate' on it.
Increase `version_info' to 7:0:1.
* builds/unix/configure: Regenerated.
2001-06-08 David Turner <>
* src/autohint/ahhint.c (ah_hinter_load_glyph): Fixed a bug that
corrupted transformed glyphs that were auto-hinted (the transform
was applied twice).
Fixed a bug that returned an invalid linear width for composite
TrueType glyphs.
* include/internal/tttypes.h (TT_Loader_): Two new elements `linear'
and `linear_def'.
* src/truetype/ttgload.c (load_truetype_glyph,
compute_glyph_metrics): Use it.
* include/fttypes.h (FT_ERROR_BASE): New macro.
* src/base/ftobjs.c (FT_Open_Face, FT_Render_Glyph_Internal): Use it
to make source code work with the new error scheme implemented by
* src/base/ftoutln.c (FT_Outline_Render): Ditto.
2001-06-07 Werner Lemberg <>
Updating to libtool 1.4.0 and autoconf 2.50.
* builds/unix/ltconfig: Removed.
* builds/unix/, builds/unix/,
builds/unix/aclocal.m4: Updated.
* builds/unix/configure: Regenerated.
2001-06-06 Werner Lemberg <>
Complete redesign of error codes. Please check ftmoderr.h for more
* include/freetype/internal/cfferrs.h,
include/freetype/internal/t1errors.h: Removed. Replaced with files
local to the module. All extra error codes have been moved to
* src/sfnt/ttpost.h: Move error codes to `fterrors.h'.
* src/autohint/aherrors.h, src/cache/ftcerror.h, src/cff/cfferrs.h,
src/cid/ciderrs.h, src/pcf/pcferror.h, src/psaux/psauxerr.h,
src/psnames/psnamerr.h, src/raster/rasterrs.h, src/sfnt/sferrors.h,
src/smooth/ftsmerrs.h, src/truetype/tterrors.h,
src/type1/t1errors.h, src/winfonts/fnterrs.h: New files defining the
error names for the module it belongs to.
* include/freetype/ftmoderr.h: New file, defining the module error
offsets. Its structure is similar to `fterrors.h'.
* include/freetype/fterrors.h (FT_NOERRORDEF): New macro.
(FT_ERRORDEF): Redefined to use module error offsets.
All internal error codes are now public; unused error codes have
been removed, some are new.
* include/freetype/config/ftheader.h (FT_MODULE_ERRORS_H): New
* include/freetype/config/ftoption.h
All other source files have been updated to use the new error codes;
some already existing (internal) error codes local to a module have
been renamed to give them the same name as in the base module.
All make files have been updated to include the local error files.
2001-06-06 Werner Lemberg <>
* src/cid/cidtokens.h: Replaced with...
* src/cid/cidtoken.h: This file for 8+3 consistency.
* src/raster/ftraster.c: Use macros for header file names.
* src/include/freetype/tttables.h (TT_HoriHeader_, TT_VertHeader_):
Fix length of `Reserved' array. Note that this isn't the real fix
since recent OpenType specs have introduced a `CaretOffset' field
instead of the first reserved byte.
2001-05-29 Werner Lemberg <>
* INSTALL: Minor fixes.
* Version 2.0.3 released.
2001-05-29 David Turner <>
* INSTALL, docs/CHANGES: Updated.
2001-05-25 David Turner <>
Moved several documents from the top-level to the "docs" directory.
* src/base/ftcalc.c (FT_DivFix): Small fix to return value.
2001-05-16 David Turner <>
* src/truetype/ttgload.c (load_truetype_glyph): Fixed a bug in the
composite loader. Spotted by Keith Packard.
* src/base/ftobjs.c (FT_GlyphLoader_Check_Points,
FT_GlyphLoader_Check_Subglyphs): Ditto.
2001-05-14 David Turner <>
Fixed the incorrect blue zone computations, and improved the
composite support. Note that these changes result in improved
rendering, while sometimes introducing their own artefacts. This is
probably the last big change to the autohinter before the
introduction of a complete replacement.
* src/autohint/ahglobal.c (sort_values): Fix loop.
* src/autohint/ahglyph.c: Removed some obsolete code.
(ah_outline_compute_edges): Modify code to set the ah_edge_round
(ah_outline_compute_blue_edges): Add code to compute active blue
* src/autohint/ahhint.c (ah_hinter_glyph_load): Change load_flags
* src/base/ftcalc.c (FT_DivFix): Fixed a bug in the 64-bit code that
created incorrect scale factors!
(FT_Round_Fix, FT_CeilFix, FT_FloorFix): Minor improvements.
2001-05-12 Werner Lemberg <>
* include/freetype/ftbbox.h: FTBBOX_H -> __FTBBOX_H__.
* include/freetype/fttrigon.h: __FT_TRIGONOMETRY_H__ ->
Beautified; added copyright.
* src/base/fttrigon.c: Beautified; added copyright.
2001-05-11 David Turner <>
* src/cff/cffparse.c (cff_parse_font_matrix), src/cid/cidload.c
(parse_font_matrix), src/type1/t1load.c (parse_font_matrix): Fixed
the incorrect EM size computation.
* include/freetype/fttrigon.h, src/base/fttrigon.c: New files,
adding trigonometric functions to the core API (using Cordic
* src/base/ftbase.c, src/base/Jamfile, src/base/ Use them.
* builds/newline: New file.
* builds/, builds/ Use it. This fixes
problems with Make on Windows 2000, as well as problems when "make
distclean" is invoked on a non-Unix platform when there is no
"" in the current directory.
* builds/ Fixed a problem with object deletions under
Dos/Windows/OS/2 systems.
Added new directory to hold tools and test programs.
* docs/, docs/ Moved to...
* src/tools/, src/tools/ This place.
* src/tools/ New file used to compute arctangent table
needed by fttrigon.c.
* src/tools/test_bbox.c, src/tools/test_trig.c: New test files.
* src/tools/ Improved the script to add the current date
at the footer of each web page (useful to distinguish between