Branch :
2002-08-27 David Turner <david@freetype.org>
* 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:
FT_RENDER_MODE_LCD, FT_RENDER_MODE_LCD_V
FT_PIXEL_MODE_LCD, FT_PIXEL_MODE_LCD_V
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_.
2002-08-27 Werner Lemberg <wl@gnu.org>
* docs/VERSION.DLL: New file.
2002-08-23 Graham Asher <graham.asher@btinternet.com>
* /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 declaration)
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 <david@freetype.org>
* src/base/ftobject.c, src/base/ftsynth.c, src/base/ftstroker.c,
src/bdf/bdfdrivr.c: removed compiler warnings
2002-08-21 Werner Lemberg <wl@gnu.org>
* 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 <david@freetype.org>
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
function.
(ah_outline_detect_features): Use it.
* src/autohint/ahhint.c (ah_hinter_align_strong_points)
[!AH_OPTION_NO_WEAK_INTERPOLATION]: Handle inflection.
* src/tools/docmaker/docmaker.py, src/tools/docmaker/utils.py,
src/tools/docmaker/tohtml.py: 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?).
(FT_LOAD_NO_AUTOHINT): New macro.
* src/base/ftobjs.c (FT_Load_Glyph): Updated.
Handle FT_LOAD_NO_AUTOHINT.
(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 <wl@gnu.org>
* src/truetype/ttgload.c (TT_Get_Metrics): Add guard for k = 0.
2002-08-20 David Turner <david@freetype.org>
* 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_DIR_HORIZONTAL, PSH3_DIR_VERTICAL): New macros.
(PSH3_DIR_COMPARE, PSH3_DIR_IS_HORIZONTAL, PSH3_IS_VERTICAL): New
macros.
(PSH3_POINT_INFLEX): New enum.
(psh3_point_{is,set}_{off,inflex}): New macros.
(PSH3_POINT_{EXTREMUM,POSITIVE,NEGATIVE,EDGE_MIN,EDGE_MAX): New
enum values.
(psh3_point_{is,set}_{extremum,positive,negative,edge_min,edge_max}):
New macros.
(PSH3_PointRec): New members `flags2' and `org_v'.
(PSH3_POINT_EQUAL_ARG, PSH3_POINT_ANGLE): New macros.
* src/pshinter/pshalgo3.c [DEBUG_HINTER]: Removing compiler
warnings.
(COMPUTE_INFLEXS): New macro.
(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_find_strong_points,
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
functions.
Other small updates.
* Jamfile: Small updates.
2002-08-18 Arkadiusz Miskiewicz <misiek@pld.ORG.PL>
* builds/unix/install.mk (install, uninstall): Add $(DESTDIR) to
make life easier for package maintainers.
2002-08-18 Werner Lemberg <wl@gnu.org>
* src/pcf/pcfdriver.c (PCF_Glyph_Load): Fix computation of
horiBearingX.
* src/bdf/bdfdrivr.c (BDF_GlyphLoad): Fix computation of
horiBearingY.
2002-08-16 George Williams <gww@silcom.com>
Add support for Apple composite glyphs.
* include/freetype/config/ftoption.h
(TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED): New macro.
* src/truetype/ttgload.c (OVERLAP_COMPOUND, SCALED_COMPONENT_OFFSET,
UNSCALED_COMPONENT_OFFSET): New macros for additional OpenType
glyph loading flags.
(load_truetype_glyph): Implement it.
2002-08-16 Werner Lemberg <wl@gnu.org>
* src/cff/cffgload.c (cff_free_glyph_data),
src/cff/cffload.c (cff_font_load): Use FT_UNUSED.
2002-08-15 Werner Lemberg <wl@gnu.org>
* 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 <graham.asher@btinternet.com>
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
functions.
(cff_operator_seac, cff_compute_max_advance, cff_slot_load): Use
them.
* 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-01.
2002-08-06 Werner Lemberg <wl@gnu.org>
* 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 <graham.asher@btinternet.com>
* 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 <graham.asher@btinternet.com>
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]:
Removed.
* include/freetype/internal/ftobjs.h [FT_CONFIG_OPTION_INCREMENTAL]:
Include FT_INCREMENTAL_H.
(FT_Face_InternalRec) [FT_CONFIG_OPTION_INCREMENTAL]: Add
`incremental_interface'.
* src/base/ftobjs.c (open_face, FT_Open_Face)
[FT_CONFIG_OPTION_INCREMENTAL]: Updated.
* src/sfnt/sfobjs.c (SFNT_Load_Face) [FT_CONFIG_OPTION_INCREMENTAL]:
Updated.
* src/truetype/ttgload.c (load_truetype_glyph)
[FT_CONFIG_OPTION_INCREMENTAL]: Updated.
Free loaded glyph data properly.
(compute_glyph_metrics, TT_Load_Glyph)
[FT_CONFIG_OPTION_INCREMENTAL]: Updated.
* src/truetype/ttobjs.c (TT_Face_Init)
[FT_CONFIG_OPTION_INCREMENTAL]: Updated.
* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String)
[FT_CONFIG_OPTION_INCREMENTAL]: Updated.
(T1_Parse_Glyph) [FT_CONFIG_OPTION_INCREMENTAL]: Updated.
Free loaded glyph data properly.
(T1_Load_Glyph): Updated.
[FT_CONFIG_OPTION_INCREMENTAL]: Free loaded glyph data properly.
2002-07-30 David Turner <david@freetype.org>
* 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 <wl@gnu.org>
s/ft_memset/FT_MEM_SET/.
s/FT_MEM_SET/FT_MEM_ZERO/ where appropriate.
2002-07-27 Werner Lemberg <wl@gnu.org>
* src/sfnt/ttload.c (sfnt_dir_check): Make it work with TTCs.
2002-07-26 Werner Lemberg <wl@gnu.org>
* 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'
variable.
* 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
message.
2002-07-24 Graham Asher <graham.asher@btinternet.com>
* src/truetype/ttobjs.c: Fix for bug reported by Sven Neumann
[sven@gimp.org] 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 <graham.asher@btinternet.com>
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_CONFIG_OPTION_INCREMENTAL]: New.
(FT_Open_Args, FT_FaceRec) [FT_CONFIG_OPTION_INCREMENTAL]: New field
`incremental_interface'.
(FT_Open_Flags) [FT_CONFIG_OPTION_INCREMENTAL]: New enum
`ft_open_incremental'.
* 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
interface.
* 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 <david@freetype.org>
Cleaning up the cache sub-system code; linear hashing is now the
default.
* include/freetype/cache/ftccache.h, src/cache/ftccache.i,
src/cache/ftccache.c [!FTC_CACHE_USE_LINEAR_HASHING]: Removed.
(FTC_CACHE_USE_LINEAR_HASHING: Removed also.
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):
Removed.
* src/type42/t42objs.h: Updated.
* src/cid/cidriver.c (Cid_Get_Char_Index, Cid_Get_Next_Char):
Removed.
(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 <david@freetype.org>
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'
field.
* 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
use).
* include/freetype/internal/fthash.h: Updated.
* include/freetype/internal/ftobjs.h (FT_LibraryRec): New member
`meta_class'.
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_FIELD_TYPE_BBOX'.
(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 <david@freetype.org>
* 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
needed.
* 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/rules.mk: 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 <owen@redhat.com>
* 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 <david@freetype.org>
* 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
any:6;memory:4;io:3
2002-07-07 Owen Taylor <owen@redhat.com>
* 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.
(FT_HINT_NO_INTEGER_STEM, FT_HINT_NO_HSTEM_ALIGN,
FT_HINT_NO_VSTEM_ALIGN): New macros.
* 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'
member.
* 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 <david@freetype.org>
* 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 <david@freetype.org>
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 <owen@redhat.com>
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/rules.mk: Updated.
2002-07-01 Owen Taylor <owen@redhat.com>
* 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 <keithp@keithp.com>
* 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 <david@freetype.org>
* 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 <david@freetype.org>
* include/freetype/internal/ftobject.h: Updating the object
sub-system definitions (still experimental).
* src/base/fthash.c (ft_hash_remove): Fixing a small reallocation
bug.
* src/base/fttrigon.c (FT_Vector_From_Polar, FT_Angle_Diff): New
functions.
* 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 <wl@gnu.org>
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
2002-06-21 David Turner <david@freetype.org>
* Version 2.1.2 released.
=========================
2002-06-21 Roberto Alameda <ojancano@geekmail.de>.
* 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