blob: 443df3608043c7f1c5721905ac74a9e5983d0ced [file] [log] [blame]
2003-11-07 David Turner <david@freetype.org>
* Version 2.1.5 released.
=========================
* updating README and docs/VERSION.DLL, re-tagging VER-2-1-6
2003-11-06 David Turner <david@freetype.org>
* install: removed obsolete file
* tagging VER-2-1-6 !!
2003-11-04 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfdriver.c: Include FT_SERVICE_SFNT_H.
(sfnt_service_sfnt_table): New service.
(sfnt_services): Updated.
* docs/license.txt: Reworded.
2003-11-03 Werner Lemberg <wl@gnu.org>
* include/freetype/*: Add a guard to all public header files which
load FT_FREETYPE_H to reject freetype.h from FreeType 1.
2003-11-02 Patrick Welche <prlw1@newn.cam.ac.uk>
* builds/unix/freetype2.m4, builds/unix/ft-munmap.m4: Protect
first argument of AC_DEFUN with brackets to avoid possible
expansion.
2003-11-02 Werner Lemberg <wl@gnu.org>
* include/freetype/cache/ftcglyph.h: Don't include stddef.h.
* include/freetype/freetype.h: Fix check for ft2build.h.
2003-11-01 Werner Lemberg <wl@gnu.org>
* include/freetype/freetype.h: Check that ft2build.h has been
loaded first.
* src/base/fttype1.c (FT_Get_PS_Font_Info): Fix incorrectly applied
patch.
2003-10-31 Detlef Würkner <TetiSoft@apg.lahn.de>
* src/base/fttype1.c (FT_Get_PS_Font_Info, FT_Has_PS_Glyph_Names):
Fix parameter order in calls to FT_FACE_FIND_SERVICE.
2003-10-31 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/ftserv.h
(FT_SERVICE_POSTSCRIPT_NAMES_H): Removed. Unused.
* src/type42/t42drivr.c (t42_services): Updated.
2003-10-29 David Turner <david@freetype.org>
* include/freetype/internal/bdftypes.h: Removed. Obsolete.
* src/base/ftbdf.c: Updated.
* include/freetype/internal/cfftypes.h: Moved to...
* src/cff/cfftypes.h: This place since no other module needs to
know about those types.
* include/freetype/internal/t42types.h: Moved to...
* src/type42/t42types.h: This place since no other module needs to
know about those types.
* include/freetype/internal/services/svbdf.h: Include FT_BDF_H.
* include/freetype/internal/services/svpsname.h: Renamed to...
* include/freetype/internal/services/svpscmap.h: This.
Updated `FT_Service_PsNames' -> `FT_Service_PsCMaps' and
`POSTSCRIPT_NAMES' -> `POSTSCRIPT_CMAPS' everywhere.
* include/freetype/internal/services/svpsinfo.h: New file, providing
PostScript info service.
* include/freetype/internal/ftserv.h (FT_SERVICE_POSTSCRIPT_CMAPS_H,
FT_SERVICE_POSTSCRIPT_INFO_H): New macros for svpscmap.h and
svpsinfo.h.
* include/freetype/internal/internal.h (FT_INTERNAL_TYPE42_TYPES_H,
FT_INTERNAL_CFF_TYPES_H, FT_INTERNAL_BDF_TYPES_H): Removed.
* src/base/fttype1.c: Don't include FT_INTERNAL_TYPE1_TYPES_H and
FT_INTERNAL_TYPE42_TYPES_H but FT_INTERNAL_SERVICE_H and
FT_SERVICE_POSTSCRIPT_INFO_H.
(FT_Get_PS_Font_Info, FT_Has_PS_Glyph_Names): Use new
POSTSCRIPT_INFO service.
* src/cff/cffdrivr.c: Include FT_SERVICE_POSTSCRIPT_INFO_H.
(cff_ps_has_glyph_names): New function.
(cff_service_ps_info): New service.
(cff_services): Updated.
* src/cff/cffload.h, src/cff/cffobjs.h, src/cff/cffparse.h: Don't
include FT_INTERNAL_CFF_TYPES_H but cfftypes.h directly.
* src/cif/cidriver.c: Include FT_SERVICE_POSTSCRIPT_INFO_H.
(cid_ps_get_font_info): New function.
(cid_service_ps_info): New service.
(cid_services): Updated.
* src/type1/t1driver.c: Include FT_SERVICE_POSTSCRIPT_INFO_H.
(t1_ps_get_font_info, t1_ps_has_glyph_names): New functions.
(t1_service_ps_info): New service.
(t1_services): Updated.
* src/type42/t42drivr.c: Include FT_SERVICE_POSTSCRIPT_INFO_H.
(t42_ps_get_font_info, t42_ps_has_glyph_names): New functions.
(t42_service_ps_info): New service.
* src/type42/t42objs.h: Don't include FT_INTERNAL_TYPE42_TYPES_H
but t42types.h directly.
* src/psnames/psmodule.c (psnames_interface, psnames_services):
Renamed to...
(pscmaps_interface, pscmaps_services): This.
Updated all users.
* src/gzip/infblock.c (inflate_blocks): Remove compiler warning.
2003-10-22 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (parse_encoding): Handle `/Encoding [ ... ]'.
* src/type1/t1parse.c (T1_Get_Private_Dict): Test whether `eexec'
is real.
* src/type42/t42parse.c (t42_parse_encoding): Improve boundary
checking while parsing.
* docs/CHANGES: Updated.
2003-10-21 Josselin Mouette <joss@debian.org>
* include/freetype/internal/t1types.h (T1_FontRec): `paint_type'
and `stroke_width' aren't pointers.
* src/type42/t42objs.c (T42_Face_Done), src/type1/t1objs.c
(T1_Face_Done): Don't free `paint_type' and `stroke_width'.
2003-10-20 Graham Asher <graham.asher@btinternet.com>
* src/winfonts/winfnt.c (fnt_cmap_class): Fix position of `const'.
2003-10-19 Werner Lemberg <wl@gnu.org>
* src/autohint/ahhint.c (ah_hinter_load_glyph): Patch from
2003-08-18 introduced a severe bug (FT_Render_Glyph was called
twice under some circumstances, causing strange results). This
is fixed now by clearing the FT_LOAD_RENDER bit of `load_flags'.
* src/base/ftpfr.c (FT_Get_PFR_Metrics): Initialize `error'.
* src/psaux/psobjs.c (ps_tobytes): Initialize `n'.
* src/type42/t42parse.c (t42_parse_sfnts): Initialize `string_size'.
2003-10-16 Werner Lemberg <wl@gnu.org>
Completely revised Type 42 parser. It now handles both fonts
produced with ttftot42 (tested version 0.3.1) and
TrueTypeToType42.ps (tested version May 2001; it is necessary to
fix the broken header comment to be `%!PS-TrueTypeFont...').
* src/type42/t42objs.c (T42_GlyphSlot_Load): Change fourth
parameter to `FT_UInt'.
* src/type42/t42objs.h: Updated.
* src/type42/t42parse.h (T42_ParserRec): Change type of `in_memory'
to FT_Bool.
(T42_Loader): Change type of `num_chars' and `num_glyphs' to
FT_UInt.
Add `swap_table' element.
* src/type42/t42parse.c (T42_KEYWORD_COUNT, T1_ToFixed,
T1_ToCoordArray, T1_ToTokenArray): Removed.
(T1_ToBytes): New macro.
(t42_is_alpha, t42_hexval): Removed.
(t42_is_space): Handle `\0'.
(t42_parse_encoding): Updated to use new PostScript parser routines
from psaux.
Handle `/Encoding [ ... ]' also.
(T42_Load_Status): New enumeration.
(t42_parse_sfnts): Updated to use new PostScript parser routines
from psaux.
(t42_parse_charstrings): Updated to use new PostScript parser
routines from psaux.
Handle `/CharStrings << ... >>' also.
Don't expect that /.notdef is the first element in dictionary. Copy
code from type1 module to handle this.
(t42_parse_dict): Updated to use new PostScript parser routines
from psaux.
Remove code for synthetic fonts (which can't occur in Type 42
fonts).
(t42_loader_done): Release `swap_table'.
* src/psaux/psobjs.c (skip_string): Increase `cur' properly.
* src/type1/t1load.c (parse_charstrings): Make test for `.notdef'
faster.
2003-10-15 Graham Asher <graham.asher@btinternet.com>
* src/autohint/ahglobal.c (blue_chars), src/winfonts/winfnt.c
(fnt_cmap_class_rec, fnt_cmap_class), src/bdf/bdflib.c (empty,
_num_bdf_properties), src/gzip/infutil.c (inflate_mask),
src/gzip/inffixed.h (fixed_bl, fixed_bd, fixed_tl, fixed_td),
src/gzip/inftrees.h (inflate_trees_fixed), srf/gzip/inftrees.c
(inflate_trees_fixed): Decorate with more `const' to avoid
writable global variables which are disallowed on ARM.
2003-10-08 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (parse_font_matrix, parse_charstrings): Remove
code specially for synthetic fonts; this is handled elsewhere.
(parse_encoding): Remove code specially for synthetic fonts; this is
handled elsewhere.
Improve boundary checking while parsing.
(parse_dict): Improve boundary checking while parsing.
Use ft_memcmp to simplify code.
2003-10-07 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (parse_subrs, parse_dict): Handle synthetic
fonts properly.
(parse_charstrings): Copy correct number of characters into
`name_table'.
2003-10-06 Werner Lemberg <wl@gnu.org>
Heavy modification of the PS parser to handle comments and strings
correctly. This doesn't slow down the loading of PS fonts
significantly since charstrings aren't affected.
* include/freetype/config/ftstdlib.h (ft_xdigit): Renamed to...
(ft_isxdigit): This. Updated all callers.
(ft_isdigit): New alias to `isdigit'.
* include/freetype/internal/psaux.h (PS_Parser_FuncsRec): Renamed
`skip_alpha' to `skip_PS_token'.
Add parameter to `to_bytes' and change some argument types.
* src/psaux/psauxmod.c (ps_parser_funcs): Updated.
* src/psaux/psobjs.c (ft_char_table): New array to map character
codes (ASCII and EBCDIC) of digits to numbers.
(OP): New auxiliary macro holding either `>=' or `<' depending on
the character encoding.
(skip_comment): New function.
(skip_spaces): Use it.
(skip_alpha): Removed.
(skip_literal_string, skip_string): New functions.
(ps_parser_skip_PS_token): New function. This is a better
replacement of...
(ps_parser_skip_alpha): Removed.
(ps_parser_to_token, ps_parser_to_token_array): Updated.
(T1Radix): Rewritten, using `ft_char_table'.
(t1_toint): Renamed to...
(ps_toint): This. Update all callers.
Use `ft_char_table'.
(ps_tobytes): Add parameter to handle delimiters and change some
argument types.
Use `ft_char_table'.
(t1_tofixed): Renamed to...
(ps_tofixed): This. Update all callers.
Use `ft_char_table'.
(t1_tocoordarray): Renamed and updated to...
(ps_tocoordarray): This. Update all callers.
(t1_tofixedarray): Renamed and updated to...
(ps_tofixedarray): This. Update all callers.
(t1_tobool): Renamed to...
(ps_tobool): This. Update all callers.
(ps_parser_load_field): Updated.
(ps_parser_load_field_table): Use `T1_MAX_TABLE_ELEMENTS'
everywhere.
(ps_parser_to_int, ps_parser_to_fixed, ps_parser_to_coord_array,
ps_parser_to_fixed_array): Skip spaces. Updated.
(ps_parser_to_bytes): Add parameter to handle delimiters and change
some argument types. Updated.
* src/psaux/psobjs.h: Updated.
* src/cid/cidload.c (cid_parse_dict): Updated.
* src/cid/cidparse.c (cid_parser_new): Check whether the `StartData'
token was really found.
* src/cid/cidparse.h (cid_parser_skip_alpha): Updated and renamed
to...
(cid_parser_skip_PS_token): This.
* src/type1/t1parse.h (T1_ParserRec): Use `FT_Bool' for boolean
fields.
(T1_Skip_Alpha): Replaced with...
(T1_Skip_PS_Token): This new macro.
* src/type1/t1parse.c (hexa_value): Removed.
(T1_Get_Private_Dict): Use `ft_isxdigit' and
`psaux->ps_parser_funcs_to_bytes' for handling ASCII hexadecimal
encoding.
After decrypting, replace the four random bytes at the beginning
with whitespace.
* src/type1/t1load.c (t1_allocate_blend): Use proper error values.
(parser_blend_design_positions, parse_blend_design_map,
parse_weight_vector): Updated.
(is_space): Handle `\f' also.
(is_name_char): Removed.
(read_binary_data): Updated.
(parse_encoding): Use `ft_isdigit'.
Updated.
(parse_subrs): Updated.
(TABLE_EXTEND): New macro.
(parse_charstrings): Updated.
Provide a workaround for buggy fonts which have more entries in the
/CharStrings dictionary then expected; the function now adds some
slots and skips entries which still exceed the new limit.
(parse_dict): Updated.
Terminate on the token `closefile'.
* src/type42/t42parse.c (T1_Skip_Alpha): Replaced with...
(T1_Skip_PS_Token): This new macro. Updated all callers.
(t42_parse_encoding): Use `ft_isdigit'.
* src/base/ftmm.c (ft_face_get_mm_service): Return FT_Err_OK if
success.
2003-10-05 Werner Lemberg <wl@gnu.org>
* include/freetype/ftmodule.h: Renamed to...
* include/freetype/ftmodapi.h: This to avoid duplicate file names.
* include/freetype/config/ftheader.h (FT_MODULE_H): Updated.
2003-10-04 Werner Lemberg <wl@gnu.org>
* src/base/ftoutln.c (FT_OrientationExtremumRec,
FT_Outline_Get_Orientation): Trivial typo fixes to make it compile.
2003-10-02 Markus F.X.J. Oberhumer <markus@oberhumer.com>
* src/winfonts/winfnt.c (FT_WinFNT_HeaderRec): `color_table_offset'
has four bytes, not two.
Fix all users.
(fnt_font_load, FNT_Load_Glyph): Add more font validity tests.
2003-10-01 David Turner <david@freetype.org>
* src/autofit/*: Adding first source files of the new multi-script
`auto-fitter'.
* include/freetype/ftoutln.h (FT_Orientation): New enumeration.
(FT_Outline_Get_Orientation): New declaration.
* src/base/ftoutln.c (FT_OrientationExtremumRec): New structure.
(ft_orientation_extremum_compute): New auxiliary function.
(FT_Outline_Get_Orientation): New function to compute the fill
orientation of a given glyph outline.
* include/freetype/internal/ftserv.h (FT_FACE_LOOKUP_SERVICE): Fixed
trivial bug which could crash the font engine when a cached service
pointer was retrieved.
2003-09-30 Werner Lemberg <wl@gnu.org>
* src/cid/cidload.c (cid_parse_dict): Skip token if no keyword is
found.
* src/type1/t1parse.c (IS_T1_WHITESPACE, IS_T1_LINESPACE,
IS_T1_SPACE): Removed.
(PFB_Tag): Removed.
(read_pfb_tag): Don't use PFB_Tag.
* src/type42/t42parse.c (t42_is_space): Handle `\f' also.
(t42_parse_encoding): Handle synthetic fonts.
2003-09-29 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/t1types.h: Don't include
FT_INTERNAL_OBJECTS_H but FT_INTERNAL_SERVICE_H.
* src/truetype/ttobjs.c: Don't include
FT_SERVICE_POSTSCRIPT_NAMES_H.
2003-09-29 David Turner <david@freetype.org>
Added new service to handle glyph name dictionaries, replacing the
old internal header named `psnames.h' by `services/svpsname.h'.
Note that this is different from `services/svpostnm.h' which only
handles the retrieval of PostScript font names for a given face.
(Should we merge these two services into a single header?)
* include/freetype/internal/psnames.h: Removed. Most of its
contents is moved to...
* include/freetype/internal/services/svpsname.h: New file.
* include/freetype/internal/services/svpostnm.h
(FT_SERVICE_ID_POSTSCRIPT_NAME): Replaced with...
(FT_SERVICE_ID_POSTSCRIPT_FONT_NAME): New macro.
(PsName): Service named changed to...
(PsFontName): This.
Updated `FT_Service_PsName' -> `FT_Service_PsFontName' and
`POSTSCRIPT_NAME' -> `POSTSCRIPT_FONT_NAME' everywhere.
* include/freetype/internal/internal.h
(FT_INTERNAL_POSTSCRIPT_NAMES_H): Removed.
* include/freetype/internal/psaux.h: Include
FT_SERVICE_POSTSCRIPT_NAMES_H.
(T1_DecoderRec): Updated type of `psnames'.
* include/freetype/internal/t1types.h: Don't include
FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
Include FT_INTERNAL_OBJECTS_H.
* include/freetype/internal/t42types.h: Don't include
FT_INTERNAL_POSTSCRIPT_NAMES_H.
* include/freetype/internal/tttypes.h (TT_FaceRec): Updated.
* include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE): Changed
order of parameters. All callers updated.
(FT_FACE_FIND_GLOBAL_SERVICE): New macro to look up a service
globally, checking all modules.
(FT_ServiceCacheRec): Updated.
(FT_SERVICE_POSTSCRIPT_NAMES_H): New macro for accessing
`svpsname.h'.
* include/freetype/internal/ftobjs.h, src/base/ftobjs.c
(ft_module_get_service): New function.
* src/cff/cffdrivr.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
but FT_SERVICE_POSTSCRIPT_NAMES_H.
(cff_get_glyph_name, cff_get_name_index): Use new POSTSCRIPT_NAMES
service.
* src/cff/cffcmap.c (cff_cmap_unicode_init): Updated.
* src/cff/cffload.c, src/cff/cffload.h: Don't include
FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
(cff_index_get_sid_string): Updated.
* src/cff/cffobjs.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
but FT_SERVICE_POSTSCRIPT_NAMES_H.
(cff_face_init): Use new POSTSCRIPT_NAMES service.
* src/cff/cffobjs.h: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
but FT_SERVICE_POSTSCRIPT_NAMES_H.
* src/cid/cidobjs.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
but FT_SERVICE_POSTSCRIPT_NAMES_H.
(cid_face_init): Use new POSTSCRIPT_NAMES service.
* src/cid/cidriver.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H.
* src/psaux/t1cmap.c (t1_cmap_std_init, t1_cmap_unicode_init): Use
new POSTSCRIPT_NAMES service.
* src/psaux/t1decode.h (t1_lookup_glyph_by_stdcharcode,
t1_decode_init): Use new POSTSCRIPT_NAMES service.
* src/psaux/t1cmap.h, src/psaux/t1decode.h: Dont' include
FT_INTERNAL_POSTSCRIPT_NAMES_H.
* src/psnames/psmodule.c: Don't include
FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
(ps_build_unicode_table): Renamed to...
(ps_unicodes_init): This.
(ps_lookup_unicode): Renamed to...
(ps_unicodes_char_index): This.
(ps_next_unicode): Renamed to...
(ps_unicodes_char_next): This.
(psnames_interface): Updated.
(psnames_services): New services list.
(psnames_get_service): New function.
(psnames_module_class): Updated.
* src/sfnt/sfobjs.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
but FT_SERVICE_POSTSCRIPT_NAMES_H.
(sfnt_init_face): Use new POSTSCRIPT_NAMES service.
* src/sfnt/ttpost.c: Don't include FT_INTERNAL_POSTSCRIPT_NAMES_H
but FT_SERVICE_POSTSCRIPT_NAMES_H.
(tt_face_get_ps_name): Updated.
* src/truetype/ttobjs.c: Don't include
FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
* src/type1/t1driver.c: Don't include
FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
* src/type1/t1objs.c: Don't include
FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
(T1_Face_Init): Use new POSTSCRIPT_NAMES service.
* src/type42/t42drivr.c (t42_get_ps_name): Renamed to...
(t42_get_ps_font_name): This.
(t42_service_ps_name): Renamed to...
(t42_service_ps_font_name): This.
(t42_services): Updated.
* src/type42/t42objs.c (T42_Face_Init): Use new POSTSCRIPT_NAMES
service.
* src/type42/t42objs.h: Don't include
FT_INTERNAL_POSTSCRIPT_NAMES_H but FT_SERVICE_POSTSCRIPT_NAMES_H.
* src/base/ftglyph.c (FT_Get_Glyph): Don't access `slot' before
testing its validity. Reported by Henry Maddocks
<maddocks@metservice.com>.
2003-09-21 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE):
Fix compilation warning (s/pptr/Pptr/).
* include/freetype/internal/internal.h (FT_INTERNAL_PFR_H,
FT_INTERNAL_FNT_TYPES_H): Removed.
2003-09-21 David Turner <david@freetype.org>
Migrating the PFR and WINFNT drivers to the new service-based
internal API.
* include/freetype/internal/fnttypes.h: Removed. Most of its data
are moved to winfnt.h and...
* include/freetype/internal/services/svwinfnt.h: New file.
* include/freetype/internal/pfr.h: Removed. Most of its data are
moved to...
* include/freetype/internal/services/svpfr.h: New file.
* include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE,
FT_FACE_LOOKUP_SERVICE): Simplify fix of 2003-09-16 by removing
pointer type argument.
Updated all callers.
Update macro names of services header files.
* src/base/ftobjs.c (FT_Get_Name_Index): Simplified code.
* src/base/ftpfr.c: Include FT_SERVICE_PFR_H instead of
FT_INTERNAL_PFR_H.
(ft_pfr_check, FT_Get_PFR_Metrics, FT_Get_PFR_Kerning,
FT_Get_PFR_Advance): Use services provided in `PFR_METRICS'.
* src/base/ftwinfnt.c: Include FT_SERVICE_WINFNT_H instead of
FT_INTERNAL_FNT_TYPES_H.
(FT_Get_WinFNT_Header): Use service provided in `WINFNT'.
* src/pfr/pfrdrivr.c: Include FT_SERVICE_PFR_H and
FT_SERVICE_XFREE86_NAME_H instead of FT_INTERNAL_PFR_H.
(pfr_service_bdf): Updated.
(pfr_services): New services list.
(pfr_get_service): New function.
(pfr_driver_class): Updated.
* src/winfonts/winfnt.c: Include FT_SERVICE_WINFNT_H and
FT_SERVICE_XFREE86_NAME_H instead of FT_INTERNAL_FNT_TYPES_H.
(winfnt_get_header, winfnt_get_service): New functions.
(winfnt_service_rec): New structure providing WINFNT services.
(winfnt_services): New services list.
(winfnt_driver_class): Updated.
* src/winfonts/winfnt.h: Add most of the removed fnttypes.h data.
* src/sfnt/sfdriver.c (sfnt_service_ps_name): Fix typo.
* src/type1/t1driver.c (t1_service_ps_name): Fix typo.
* src/cff/cffobjs.c, src/cid/cidobjs.c, src/pfr/pfrsbit.c,
src/psaux/psobjs.c, src/sfnt/sfobjs.c, src/truetype/ttobjs.c,
src/type1/t1objs.c, src/type42/t42objs.c: Removing various compiler
warnings.
2003-09-19 David Bevan <dbevan@emtex.com>
* src/type1/t1parse.c (pfb_tag_fields): Removed.
(read_pfb_tag): Fix code so that it doesn't fail on end-of-file
indicator (0x8003).
* docs/CHANGES: Updated.
2003-09-16 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/ftserv.h (FT_FACE_FIND_SERVICE,
FT_FACE_LOOKUP_SERVICE): Add parameter to pass pointer type.
Ugly, I know, but this is needed for compilation with C++ --
maybe someone knows a better solution?
Updated all callers.
* src/base/ftobjs.c (FT_Get_Name_Index, FT_Get_Glyph_Name): Remove
C++ compiler warnings.
* src/base/ftbdf.c (FT_Get_BDF_Charset_ID, FT_Get_BDF_Property):
Fix order of arguments passed to FT_FACE_FIND_SERVICE.
2003-09-15 Werner Lemberg <wl@gnu.org>
Avoid header files with identical names.
* include/freetype/internal/services/bdf.h: Renamed to...
* include/freetype/internal/services/svbdf.h: This.
Add copyright notice.
* include/freetype/internal/services/glyfdict.h: Renamed to...
* include/freetype/internal/services/svgldict.h: This.
Add copyright notice.
* include/freetype/internal/services/multmast.h: Renamed to...
* include/freetype/internal/services/svmm.h: This.
Add copyright notice.
Add FT_BEGIN_HEADER and FT_END_HEADER.
* include/freetype/internal/services/sfnt.h: Renamed to...
* include/freetype/internal/services/svsfnt.h: This.
Add copyright notice.
* include/freetype/internal/services/postname.h: Renamed to...
* include/freetype/internal/services/svpostnm.h: This.
Add copyright notice.
* include/freetype/internal/services/xf86name.h: Renamed to...
* include/freetype/internal/services/svxf86nm.h: This.
Add copyright notice.
* include/freetype/internal/ftserv.h: Add FT_BEGIN_HEADER and
FT_END_HEADER.
Add copyright notice.
Update macro names of services header files.
* builds/freetype.mk (SERVICES_DIR): New variable.
(BASE_H): Add services header files.
2003-09-11 Werner Lemberg <wl@gnu.org>
* builds/toplevel.mk (distclean): Remove `builds/unix/freetype2.pc'.
* src/cff/cffdrivr.c: Don't load headers twice.
* include/freetype/internal/ftserv.h (FT_SERVICE_SFNT_H): New macro.
* src/base/ftobjs.c: Include FT_SERVICE_SFNT_H.
* src/cff/cffcmap.c: Include `cfferrs.h'.
* src/pfr/pfrdrivr.c: Include `pfrerror.h'.
* src/sfnt/sfdriver.c: Include `sferrors.h'.
* src/psaux/psobjs.h: Add declaration for `ps_parser_to_bytes'.
2003-09-11 David Turner <david@freetype.org>
Introducing the concept of `module services'. This is the first
step towards a massive simplification of the engine's internals, in
order to get rid of various numbers of hacks.
Note that these changes will break source & binary compatibility for
authors of external font drivers.
* include/freetype/config/ftconfig.h (FT_BEGIN_STMNT, FT_END_STMNT,
FT_DUMMY_STMNT): New macros.
* include/freetype/internal/ftserv.h: New file, containing the new
structures and macros to provide `services'.
* include/freetype/internal/internal.h (FT_INTERNAL_EXTENSION_H,
FT_INTERNAL_EXTEND_H, FT_INTERNAL_HASH_H, FT_INTERNAL_OBJECT_H):
Removed, obsolete.
(FT_INTERNAL_SERVICE_H): New macro for `ftserv.h'.
* include/freetype/internal/services/bdf.h,
include/freetype/internal/services/glyfdict.h,
include/freetype/internal/services/postname.h,
include/freetype/internal/services/xf86name.h: New files.
* include/freetype/ftmm.h (FT_Get_MM_Func, FT_Set_MM_Design_Func,
FT_Set_MM_Blend_Func): Function pointers moved (in modified form)
to...
* include/freetype/internal/services/multmast.h: New file.
* include/freetype/internal/sfnt.h (SFNT_Interface): `get_interface'
is now of type `FT_Module_Requester'.
(SFNT_Get_Interface_Func, SFNT_Load_Table_Func): Function pointers
moved (in modified form) to...
* include/freetype/internal/servies/sfnt.h: New file.
* include/freetype/tttables.h (FT_Get_Sfnt_Table_Func): Function
pointer moved (in modified form) to `services/sfnt.h'.
* include/freetype/ftmodule.h (FT_Module_Interface): Make it a
a typedef to `FT_Pointer'.
* include/freetype/internal/tttypes.h (TT_FaceRec): Add
`postscript_name'.
* include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Remove
`postscript_name'.
Add `services' element.
(FT_LibraryRec): Remove `meta_class'.
* src/base/ftbdf.c: Include FT_SERVICE_BDF_H.
(test_font_type): Removed.
(FT_Get_BDF_Charset_ID, FT_Get_BDF_Property): Use services
provided in `FT_SERVICE_ID_BDF'.
* src/base/ftmm.c: Include FT_SERVICE_MULTIPLE_MASTERS_H.
(ft_face_get_mm_service): New auxiliary function to get services
from `FT_SERVICE_ID_MULTI_MASTERS'.
(FT_Get_Multi_Master, FT_Set_MM_Design_Coordinates,
FT_Set_MM_Blend_Coordinates): Use `ft_face_get_mm_service'.
* src/base/ftobjs.c: Include FT_SERVICE_POSTSCRIPT_NAME_H and
FT_SERVICE_GLYPH_DICT_H.
(ft_service_list_lookup): New function to get a specific service.
(destroy_face): Updated.
(Mac_Read_POST_Resource): Simplify some code.
(IsMacResource): Fix warnings.
(FT_Get_Name_Index, FT_Get_Glyph_Name): Use services provided in
`FT_SERVICE_ID_GLYPH_DICT'.
(FT_Get_Postscript_Name): Use service provided in
`FT_SERVICE_ID_POSTSCRIPT_NAME'.
(FT_Get_Sfnt_Table, FT_Load_Sfnt_Table): Use services provided in
`FT_SERVICE_ID_SFNT_TABLE'.
* src/base/ftxf86.c: Include FT_SERVICE_XFREE86_NAME_H.
(FT_Get_X11_Font_Format): Use service provided in
`FT_SERVICE_ID_XF86_NAME'.
* src/bdf/bdfdrivr.c: Include FT_SERVICE_BDF_H and
FT_SERVICE_XFREE86_NAME_H.
(bdf_get_charset_id): New function.
(bdf_service_bdf): New structure providing BDF services.
(bdf_services): New services list.
(bdf_driver_requester): Use `ft_service_list_lookup'.
* src/cff/cffdrivr.c: Include FT_SERVICE_XFREE86_NAME_H and
FT_SERVICE_GLYPH_DICT_H.
(cff_service_glyph_dict): New structure providing CFF services.
(cff_services): New services list.
(cff_get_interface): Use `ft_service_list_lookup'.
* src/cid/cidriver.c: Include FT_SERVICE_POSTSCRIPT_NAME_H and
FT_SERVICE_XFREE86_NAME_H.
(cid_service_ps_name): New structure providing CID services.
(cid_services): New services list.
(cid_get_interface): Use `ft_service_list_lookup'.
* src/pcf/pcfdrivr.c: Include FT_SERVICE_BDF_H and
FT_SERVICE_XFREE86_NAME_H.
(pcf_service_bdf): New structure providing PCF services.
(pcf_services): New services list.
(pcf_driver_requester): Use `ft_service_list_lookup'.
* src/sfnt/sfdriver.c: Include FT_SERVICE_GLYPH_DICT_H and
FT_SERVICE_POSTSCRIPT_NAME_H.
(get_sfnt_glyph_name): Renamed to...
(sfnt_get_glyph_name): This.
(get_sfnt_postscript_name): Renamed to...
(sfnt_get_ps_name): This.
Updated.
(sfnt_service_glyph_dict, sfnt_service_ps_name): New structures
providing services.
(sfnt_services): New services list.
(sfnt_get_interface): Use `ft_service_list_lookup'.
* src/truetype/ttdriver.c: Include FT_SERVICE_XFREE86_NAME_H.
(tt_services): New services list.
(tt_get_interface): Use `ft_service_list_lookup'.
* src/type1/t1driver.c: Include FT_SERVICE_MULTIPLE_MASTERS_H,
FT_SERVICE_GLYPH_DICT_H, FT_SERVICE_XFREE86_NAME_H, and
FT_SERVICE_POSTSCRIPT_NAME_H.
(t1_service_glyph_dict, t1_service_ps_name,
t1_service_multi_masters): New structures providing Type 1 services.
(t1_services): New services list.
(Get_Interface): Use `ft_service_list_lookup'.
* src/type42/t42drivr.c: Include FT_SERVICE_XFREE86_NAME_H,
FT_SERVICE_GLYPH_DICT_H, and FT_SERVICE_POSTSCRIPT_NAME_H.
(t42_service_glyph_dict, t42_service_ps_name): New strucures
providing Type 42 services.
(t42_services): New services list.
(T42_Get_Interface): Use `ft_service_list_lookup'.
* README, builds/unix/configure, builds/unix/configure.ac,
docs/CHANGES, include/freetype/freetype.h: Updating version numbers
for 2.1.6, and removing obsolete warnings in the documentation.
* include/freetype/internal/ftcore.h,
include/freetype/internal/ftexcept.h,
include/freetype/internal/fthash.h,
include/freetype/internal/ftobject.h: Removed. Obsolete.
2003-09-09 David Turner <david@freetype.org>
Fixing PFR kerning support. The tables within the font file contain
(charcode,charcode) kerning pairs, we need to convert them to
(gindex,gindex).
* src/base/ftpfr.c (ft_pfr_check): Fix serious typo.
* src/pfr/prfload.c: Remove dead code.
(pfr_get_gindex, pfr_compare_kern_pairs, pfr_sort_kerning_pairs):
New functions.
(pfr_phy_font_done): Free `kern_pairs'.
(pfr_phy_font_load): Call `pfr_sort_kerning_pairs'.
* src/pfr/pfrobjs.c (pfr_face_get_kerning): Fix kerning extraction.
* src/pfr/pfrtypes.h (PFR_KERN_PAIR_INDEX): New macro.
(PFR_KernPairRec): Make `kerning' an FT_Int.
(PFR_PhyFontRec): New element `kern_pairs'.
(PFR_KernFlags): Values of PFR_KERN_2BYTE_CHAR and
PFR_KERN_2BYTE_ADJ were erroneously reversed.
* include/freetype/ftoption.h: Commenting out the macro
TT_CONFIG_OPTION_BYTECODE_INTERPRETER.
2003-09-02 David Turner <david@freetype.org>
* Version 2.1.5 released.
=========================
2003-08-31 Manish Singh <yosh@gimp.org>
* src/bdf/bdflib.c (_bdf_readstream): Don't use FT_MEM_COPY but
FT_MEM_MOVE.
2003-08-30 Werner Lemberg <wl@gnu.org>
* include/freetype/freetype.h (FT_ENCODING_SJIS, FT_ENCODING_GB2312,
FT_ENCODING_BIG5, FT_ENCODING_WANSUNG, FT_ENCODING_JOHAB): New
enumerations of FT_Encoding. The FT_ENCODING_MS_* variants except
FT_ENCODING_MS_SYMBOL are now deprecated.
Updated all users.
* docs/CHANGES: Document it.
2003-08-27 Werner Lemberg <wl@gnu.org>
* src/bdf/bdfdrivr.c (BDF_Face_Init): Accept lowercase characters
for spacing.
2003-08-27 Mike FABIAN <mfabian@suse.de>
* src/pcf/pcfread.c (pcf_load_font), src/bdf/bdfdrivr.c
(BDF_Face_Init): Accept lowercase characters for slant and weight.
2003-08-18 David Turner <david@freetype.org>
* include/freetype/config/ftoption.h: Disabling TrueType bytecode
interpreter until the UNPATENTED_HINTING works as advertised.
* src/autohint/ahhint.c (ah_hinter_load_glyph): Use `|' for
setting `load_flags'.
* Jamfile: Adding the `refdoc' target to the Jamfile in order to
build the API Reference in `docs/reference' automatically.
* include/freetype/t1tables.h (PS_FontInfoRec), src/cid/cidtoken.h,
src/type1/t1tokens.h, src/type42/t42parse.c: Resetting the types of
`italic_angle', `underline_position', and `underline_thickness' to
their previous values (i.e., long, short, and ushort) in order to
avoid breaking binary compatibility.
* include/freetype/ttunpat.h: Fixing documentation comment.
* include/freetype/config/ftoption.h, devel/ftoption.h
(TT_CONFIG_OPTION_OPTION_COMPILE_UNPATENTED_HINTING): Replaced
with...
(TT_CONFIG_OPTION_UNPATENTED_HINTING): This. Updated all users.
(TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING): Removed.
* include/freetype/internal/ftobjs.h (FT_DEBUG_HOOK_TYPE1): Removed.
(FT_DEBUG_HOOK_UNPATENTED_HINTING): New macro. Use this with
`FT_Set_Debug_Hook' to get the same effect as the removed
TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING.
* src/truetype/ttobjs.c (tt_face_init): Use
`FT_DEBUG_HOOK_UNPATENTED_HINTING'.
2003-08-06 Werner Lemberg <wl@gnu.org>
* src/type1/t1gload.c (T1_Load_Glyph), src/cff/cffgload.c
(cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph): Fix
previous change.
2003-08-05 Werner Lemberg <wl@gnu.org>
* src/type1/t1gload.c (T1_Load_Glyph), src/cff/cffgload.c
(cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph): Apply
font matrix to advance width also.
* docs/CHANGES: Updated.
2003-07-26 Werner Lemberg <wl@gnu.org>
* builds/unix/configure.ac (version_info): Set to 9:4:3.
* builds/unix/configure: Updated.
* docs/CHANGES, docs/VERSION.DLL: Updated.
* include/freetype/freetype.h (FT_GlyphSlot): Change 2003-06-16
also breaks binary compatibility. Reintroduce an unsigned integer
at the old position of `flags' called `reserved'.
2003-07-25 Werner Lemberg <wl@gnu.org>
Make API reference valid HTML 4.01 transitional.
* src/tools/docmaker/tohtml.py (html_header_1): Add doctype
and charset.
(html_header_2): Fix style elements and add some more.
Fix syntax.
(block_header, block_footer, description_header, description_footer,
marker_header, marker_footer, source_header, source_footer,
chapter_header): Don't use <center>...</center> but `align=center'
table attribute.
(chapter_inter, chapter_footer): Add <li> and use special <ul>
class.
Use double quotes around table widths given in percent.
(keyword_prefix, keyword_suffix): Don't change font colour directly
but use a new <span> class.
(section_synopsis_header, section_synopsis_footer): Don't change
colour.
(code_header, code_footer): Don't change font colour directly but
use a special <pre> class.
(print_html_field): <tr> gets the `valign' attribute, not <table>.
(print_html_field_list): Ditto.
(index_exit): Don't use <center>...</center> but `align=center'
table attribute.
(section_enter): Ditto.
(toc_exit): Don't emit </table>.
(block_enter): Use <h4><a>, not <a><h4>.
(__init__): Fix tag order in self.html_footer.
2003-07-25 David Turner <david@freetype.org>
This change reimplements fix from 2003-05-30 without breaking
binary compatibility.
* include/freetype/t1tables.h (PS_FontInfoRec): `italic_angle',
`is_fixed_pitch', `underline_position', `underline_thickness' are
reverted to be normal values.
* include/freetype/internal/psaux.h (T1_FieldType): Remove
`T1_FIELD_TYPE_BOOL_P', `T1_FIELD_TYPE_INTEGER_P',
`T1_FIELD_TYPE_FIXED_P', `T1_FIELD_TYPE_FIXED_1000_P'.
(T1_FIELD_TYPE_BOOL_P, T1_FIELD_NUM_P, T1_FIELD_FIXED_P,
T1_FIELD_FIXED_1000_P): Removed.
(T1_FIELD_TYPE_BOOL): Renamed to...
(T1_FIELD_BOOL): New macro. Updated all callers.
* src/type42/t42parse.c: `italic_angle', `is_fixed_pitch',
`underline_position', `underline_thickness', `paint_type',
`stroke_width' are reverted to be normal values.
(T42_KEYWORD_COUNT): New macro.
(t42_parse_dict): New array `keyword_flags' to mark that a value has
already been assigned to a dictionary entry.
* src/type42/t42objs.c (T42_Face_Init, T42_Face_Done): Updated.
* src/cid/cidtoken.h: `italic_angle', `is_fixed_pitch',
`underline_position', `underline_thickness' are reverted to be
normal values.
* src/cid/cidobjs.c (cid_face_done, cid_face_init): Updated.
* src/psaux/psobjs.c (ps_parser_load_field): Updated.
* src/type1/t1tokens.h: `italic_angle', `is_fixed_pitch',
`underline_position', `underline_thickness', `paint_type',
`stroke_width' are reverted to be normal values.
* src/type1/t1objs.c (T1_Face_Done, T1_Face_Init): Updated.
* src/type1/t1load.c (T1_FIELD_COUNT): New macro.
(parse_dict): Add parameter for keyword flags.
Record only first instance of a field.
(T1_Open_Face): New array `keyword_flags'.
2003-07-24 Werner Lemberg <wl@gnu.org>
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 5.
* builds/unix/configure.ac (version_info): Set to 10:0:3.
* builds/unix/configure: Updated.
* builds/freetype.mk (refdoc): Fix --title.
* docs/CHANGES, docs/VERSION.DLL, README: Updated.
* src/tools/docmaker/sources.py (re_crossref): Fix regular
expression to handle trailing punctuation characters.
* src/tools/docmaker/tohtml.py (make_html_word): Updated.
* docs/release: New file.
2003-07-23 YAMANO-UCHI Hidetoshi <mer@din.or.jp>
* include/freetype/internal/psaux.h (PS_Parser_FuncsRec): New
member function `to_bytes'.
* src/psaux/psauxmod.c (ps_parser_funcs): New member
`ps_parser_to_bytes'.
(psaux_module_class): Increase version to 0x20000L.
* src/psaux/psobjs.c (IS_T1_LINESPACE): Add \f.
(IS_T1_NULLSPACE): New macro.
(IS_T1_SPACE): Add it.
(skip_spaces, skip_alpha): New functions.
(ps_parser_skip_spaces, ps_parser_skip_alpha): Use them.
(ps_tobytes, ps_parser_to_bytes): New functions.
2003-07-07 Werner Lemberg <wl@gnu.org>
* builds/freetype.mk (DOC_DIR): New variable.
(refdoc): Use *_DIR variables.
(distclean): Remove documentation files.
* builds/detect.mk (std_setup, dos_setup): Mention `make refdoc'.
* configure: Set DOC_DIR variable.
2003-07-07 Patrik Hägglund <patrik.hagglund@bredband.net>
* builds/freetype.mk (refdoc): New target to build the
documentation.
(.PHONY): Updated.
* include/freetype/freetype.h: Improve documentation of FT_CharMap.
* include/freetype/ftimage,h: Fix documentation of FT_OUTLINE_FLAGS.
* include/freetype/tttables.h: Document FT_Sfnt_Tag.
2003-07-06 Werner Lemberg <wl@gnu.org>
* src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfread.c
(pcf_load_font): Fix computation of height if PIXEL_SIZE property is
missing.
2003-07-01 Werner Lemberg <wl@gnu.org>
* src/cache/ftcsbits.c (ftc_sbit_node_compare): Only add `size' if
there is no error. Reported by Knut St. Osmundsen
<bird-freetype@anduin.net>.
2003-06-30 Werner Lemberg <wl@gnu.org>
A new try to synchronize bitmap font access.
* include/freetype/freetype.h (FT_Bitmap_Size): `height' is now
defined to return the baseline-to-baseline distance. This was
already the value returned by the BDF and PCF drivers.
The `width' field now gives the average width. I wasn't able to
find something better. It should be taken as informative only.
New fields `size', `x_ppem', and `y_ppem'.
* src/pcf/pcfread.c (pcf_load_font): Updated to properly fill
FT_Bitmap_Size.
Do proper rounding and conversion from 72.27 to 72 points.
* src/bdf/bdfdrivr.c (BDF_Face_Init): Updated to properly fill
FT_Bitmap_Size.
Do proper rounding and conversion from 72.27 to 72 points.
* src/sfnt/sfobjs.c (sfnt_load_face): Updated to properly fill
FT_Bitmap_Size.
* src/winfonts/winfnt.c (FNT_Face_Init): Updated to properly fill
FT_Bitmap_Size.
2003-06-29 Werner Lemberg <wl@gnu.org>
Redesigning the FNT driver to return multiple faces, not multiple
strikes. At least one font (app850.fon from WinME) contains
different FNT charmaps for its subfonts. Consequently, the previous
design of having multiple bitmap strikes in a single font face fails
since we have only one charmap per face.
* include/freetype/internal/fnttypes.h (FNT_Size_Rec): Removed.
(FNT_FaceRec): Remove `num_fonts' field and replace `fonts' with
`font'.
* src/base/ftwinfnt.c (FT_Get_WinFNT_Header): Updated.
* src/winfonts/winfnt.c (fnt_font_load): Don't set pixel_width equal
to pixel_height.
(fnt_face_done_fonts): Removed.
(fnt_face_get_dll_fonts): Renamed to...
(fnt_face_get_dll_font): This. Add second function argument to
select face index.
Updated to load just one subfont.
(fnt_font_done, FNT_Face_Done): Updated.
(FNT_Face_Init): Handle `face_index'.
Updated.
(FNT_Size_Set_Pixels): Simplified; similar to BDF and PCF, the
bitmap width is now ignored.
(FNT_Load_Glyph): Updated.
Fix glyph index computation.
(winfnt_driver_class): Updated.
2003-06-25 Owen Taylor <otaylor@redhat.com>
* src/sfnt/ttload.c (tt_face_load_hdmx): Don't assign
num_records until we actually decide to load the table,
otherwise, we'll segfault in tt_face_free_hdmx.
2003-06-24 Werner Lemberg <wl@gnu.org>
* src/cff/cffdrivr.c (cff_get_glyph_name): Protect against zero
glyph name pointer. Reported by Mikey Anbary <manbary@vizrt.com>.
2003-06-23 Werner Lemberg <wl@gnu.org>
* src/tools/glnames.py: Updated to AGL 2.0.
* src/psnames/pstables.h: Regenerated.
2003-06-22 Werner Lemberg <wl@gnu.org>
* include/freetype/cache/ftcglyph.h, include/freetype/ttnameid.h,
src/base/ftcalc.c, src/base/fttrigon.c, src/cff/cffgload.c,
src/otlayout/otlgsub.c, src/pshinter/pshrec.c,
src/psnames/psmodule.c, src/sfnt/sfobjs.c, src/truetype/ttdriver.c:
Decorate constants with `U' and `L' if appropriate.
* include/freetype/ftmoderr.h: Updated to include recent module
additions.
* src/pshinter/pshnterr.h (FT_ERR_BASE): Define as
`FT_Mod_Err_PShinter'.
* src/type42/t42error.h (FT_ERR_BASE): Define as
`FT_Mod_Err_Type42'.
* src/pshinter/pshrec.h (PS_HINTS_MAGIC): Removed. Not used.
* include/freetype/config/ftconfig.h [__MWERKS__]: Define FT_LONG64
and FT_INT64.
2003-06-21 Werner Lemberg <wl@gnu.org>
* src/winfonts/winfnt.c (FNT_Load_Glyph): Use first_char in
computation of glyph_index.
(FNT_Size_Set_Pixels): To find a strike, first check pixel_height
only, then try to find a better hit by comparing pixel_width also.
Without this fix it isn't possible to access all strikes.
Also compute metrics.max_advance to be in sync with other bitmap
drivers.
* src/base/ftobjs.c (FT_Set_Char_Size): Remove redundant code.
(FT_Set_Pixel_Size): Assign value to `metrics' after validation of
arguments.
2003-06-20 Werner Lemberg <wl@gnu.org>
Synchronize computation of height and width for bitmap strikes. The
`width' field in the FT_Bitmap_Size structure is now only useful to
enumerate different strikes. The `max_advance' field of the
FT_Size_Metrics structure should be used to get the (maximum) width
of a strike.
* src/bdf/bdfdrivr.c (BDF_Face_Init): Don't use AVERAGE_WIDTH for
computing `available_sizes->width' but make it always equal to
`available_sizes->height'.
* src/pcf/pcfread.c (pcf_load_font): Don't use RESOLUTION_X for
computing `available_sizes->width' but make it always equal to
`available_sizes->height'.
* src/truetype/ttdriver.c (Set_Pixel_Sizes): Pass only single
argument to function.
* src/psnames/psmodule.c (ps_unicode_value): Handle `.' after
`uniXXXX' and `uXXXX[X[X]]'.
2003-06-19 Werner Lemberg <wl@gnu.org>
* src/bdf/bdfdrivr.c: s/FT_Err_/BDF_Err/.
* src/cache/ftccache.c, src/cache/ftcsbits.c, src/cache/ftlru.c:
s/FT_Err_/FTC_Err_/.
* src/cff/cffcmap.c: s/FT_Err_/CFF_Err_/.
* src/pcf/pcfdrivr.c: s/FT_Err_/PCF_Err_/.
* src/psaux/t1cmap.c: Include psauxerr.h.
s/FT_Err_/PSaux_Err_/.
* src/pshinter/pshnterr.h: New file.
* src/pshinter/rules.mk: Updated.
* src/pshinter/pshalgo.c, src/pshinter/pshrec.c: Include pshnterr.h.
s/FT_Err_/PSH_Err_/.
* src/pfr/pfrdrivr.c, src/pfr/pfrobjs.c, src/pfr/pfrsbit.c:
s/FT_Err_/PFR_Err_/.
* src/sfnt/sfdriver.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c,
src/sfnt/ttload.c: s/FT_Err_/SFNT_Err_/.
* src/truetype/ttgload.c: s/FT_Err_/TT_Err_/.
* src/gzip/ftgzip.c: Load FT_MODULE_ERRORS_H and define
FT_ERR_PREFIX and FT_ERR_BASE.
s/FT_Err_/Gzip_Err_/.
2003-06-19 Dirck Blaskey <listtarget@danbala.com>
* src/cff/cffload (cff_encoding_load): `nleft' must be FT_UInt,
otherwise adding 1 might wrap the result.
2003-06-18 Werner Lemberg <wl@gnu.org>
* src/psnames/psmodule.c (ps_unicode_value): Add support to
recognize `uXXXX[X[X]]' glyph names.
Don't handle glyph names starting with `uni' which have more than
four digits.
2003-06-16 Werner Lemberg <wl@gnu.org>
* include/freetype/freetype.h (FT_Open_Flags): Replaced with
#defines for the constants.
(FT_Open_Args): Change type of `flags' to FT_UInt.
(FT_GlyphSlot): Move `flags' to FT_Slot_Internal.
* include/freetype/ftimage.h (FT_Outline_Flags, FT_Raster_Flag):
Replaced with #defines for the constants.
* include/freetype/internal/ftobjs.h (FT_Slot_Internal): New
field `flags' (from FT_GlyphSlot).
Updated all affected source files.
(FT_GLYPH_OWN_BITMAP): New macro (from ftgloadr.h).
* include/freetype/internal/ftgloadr.h (FT_GLYPH_OWN_BITMAP): Moved
to ftobjs.h.
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Use dummy
FT_GlyphSlot_Internal object.
2003-06-15 Werner Lemberg <wl@gnu.org>
* builds/compiler/gcc.mk, builds/compiler/gcc-dev.mk (CFLAGS):
Add -fno-strict-aliasing to get rid of zillion warnings from gcc
version 3.3.
2003-06-14 Werner Lemberg <wl@gnu.org>
* include/freetype/ftglyph.h (ft_glyph_bbox_unscaled,
ft_glyph_bbox_subpixels, ft_glyph_bbox_gridfit,
ft_glyph_bbox_truncate, ft_glyph_bbox_pixels): Replaced with
FT_GLYPH_BBOX_UNSCALED, FT_GLYPH_BBOX_SUBPIXELS,
FT_GLYPH_BBIX_GRIDFIT, FT_GLYPH_BBOX_TRUNCATE, FT_GLYPH_BBOX_PIXELS.
The lowercase variants are now (deprecated aliases) to the uppercase
versions.
Updated all other files.
* include/freetype/ftmodule.h (ft_module_font_driver,
ft_module_renderer, ft_module_hinter, ft_module_styler,
ft_module_driver_scalable, ft_module_driver_no_outlines,
ft_module_driver_has_hinter): Replaced with FT_MODULE_FONT_DRIVER,
FT_MODULE_RENDERER, FT_MODULE_HINTER, FT_MODULE_STYLER,
FT_MODULE_DRIVER_SCALABLE, FT_MODULE_DRIVER_NO_OUTLINES,
FT_MODULE_DRIVER_HAS_HINTER.
The lowercase variants are now (deprecated aliases) to the uppercase
versions.
Updated all other files.
* src/base/ftglyph.c (FT_Glyph_Get_CBox): Handle bbox_mode better
as enumeration.
* src/pcf/pcfdrivr.c (pcf_driver_class), src/winfonts/winfnt.c
(winfnt_driver_class), src/bdf/bdfdrivr.c (bdf_driver_class): Add
the FT_MODULE_DRIVER_NO_OUTLINES flag.
2003-06-13 Detlef Würkner <TetiSoft@apg.lahn.de>
* src/pfr/pfrobjs.c (pfr_slot_load): Apply font matrix.
2003-06-13 Werner Lemberg <wl@gnu.org>
* builds/dos/detect.mk: Test not only for `Dos' but for `DOS' also.
* builds/dos/dos-emx.mk, builds/compiler/emx.mk: New files for
EMX gcc compiler.
* builds/dos/detect.mk: Add target `emx'.
* builds/compiler/watcom.mk (LINK_LIBRARY): GNU Make for DOS doesn't
like a trailing semicolon; add a dummy command.
* src/cid/cidload.c: Remove parse_font_bbox code (already enclosed
with #if 0 ... #endif).
* src/type1/t1tokens.h: Handle /FontName.
* src/type1/t1load.c (parse_font_name): Removed.
Remove parse_font_bbox code (already enclosed with #if 0 ...
#endif).
* src/type42/t42parse.c (t42_parse_font_name): Removed.
Remove t42_parse_font_bbox code (already enclosed with #if 0 ...
#endif).
(t42_keywords): Handle /FontName with T1_FIELD_KEY.
2003-06-12 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/psaux.h (T1_FieldType): Add
T1_FIELD_TYPE_KEY.
(T1_FIELD_KEY): New macro.
* src/psaux/psobjs.c (ps_parser_load_field): Handle
T1_FIELD_TYPE_KEY.
* src/cid/cidtoken.h: Use T1_FIELD_KEY for /CIDFontName.
2003-06-11 Alexander Malmberg <alexander@malmberg.org>
* src/cache/ftlru.c (FT_LruList_Remove_Selection): Decrease
number of nodes.
(FT_LruList_Lookup): Fix assertion for out-of-memory case.
2003-06-11 Werner Lemberg <wl@gnu.org>
* src/cid/cidload.c (cid_decrypt): Removed.
(cid_read_subrs): Use t1_decrypt from psaux module.
* src/cid/cidload.h: Updated.
* src/cid/cidgload.c (cid_load_glyph): Use t1_decrypt from psaux
module.
2003-06-10 Werner Lemberg <wl@gnu.org>
* src/cid/cidobjs.c: Apply change 2003-05-31 from <Ron.Dev@gmx.de>.
Compute style flags.
Fix computation of root->height.
* src/cid/cidtoken.h: Handle FontBBox.
* src/cid/cidload.c (cid_load_keyword): Handle
T1_FIELD_LOCATION_BBOX.
(parse_font_bbox): Commented out.
(cid_field_record): Comment out element for parsing FontBBox.
* src/type42/t42parse.c (t42_parse_font_bbox): Commented out.
(t42_keywords): Handle FontBBox with T1_FIELD_BBOX, not with
T1_FIELD_CALLBACK.
(t42_parse_font_bbox): Commented out.
(t42_load_keyword): Handle T1_FIELD_LOCATION_BBOX.
* src/type42/t42objs.c (T42_Face_Init): Apply change 2003-05-31
from <Ron.Dev@gmx.de>.
2003-06-09 George Williams <gww@silcom.com>
* src/truetype/ttinterp.c (SetSuperRound) <0x30>: Follow Apple's
TrueType specification.
(Ins_MDRP, Ins_MIRP): Fix single width cut-in test.
2003-06-09 Detlef Würkner <TetiSoft@apg.lahn.de>
* src/gzip/ftgzip.c: (inflate_mask): Replaced with...
(NO_INFLATE_MASK): This.
* src/gzip/infutil.h: Declare `inflate_mask' conditionally by
NO_INFLATE_MASK.
2003-06-09 Alexis S. L. Carvalho <alexis@cecm.usp.br>
* src/gzip/ftgzip.c (ft_gzip_file_fill_output): Handle Z_STREAM_END
correctly.
2003-06-09 Wolfgang Domröse <porthos.domroese@harz.de>
* src/pshinter/pshglob.c (psh_globals_new): Change calculation of
dim->stdw.count to avoid compiler problem.
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Move the block
variables to the beginning of the function to avoid compiler
problems.
Add casts necessary for 16bit compilers.
2003-06-09 Werner Lemberg <wl@gnu.org>
* src/pfr/rules.mk (PFR_DRV_SRC): Add pfrsbit.c.
(PFR_DRV_H): Add pfrtypes.h.
* include/freetype/config/ftconfig.h: s/__MWKS__/__MWERKS__/.
2003-06-08 Karl Schultz <kschultz@rsinc.com>
* src/pfr/pfrsbit.c (pfr_bitwriter_init): Change type of third
argument to FT_Bool.
(pfr_lookup_bitmap_data): Change type of third and fourth argument
to FT_UInt. Updated caller.
(pfr_load_bitmap_bits): Change type of fourth argument to FT_Bool.
2003-06-08 Werner Lemberg <wl@gnu.org>
Completely revised FreeType's make management.
. In all makefiles `/' is used as the path separator. The
conversion to the real path separators is done as late as
possible using $(subst ...).
. $(HOSTSEP) no longer exists. Now, $(SEP) gives the path separator
for the operating system, and the new $(COMPILER_SEP) the path
separator for the compiler tools.
. $(BUILD) has been renamed to $(BUILD_DIR). In general, all
directory variables end with `_DIR'. The variants ending in `_'
(like `BASE_' have been removed).
The following ChangeLog entries only describe changes which are
not related to the redesign.
* builds/beos/beos-def.mk (BUILD_DIR): Fix typo.
* builds/compiler/watcom.mk (LINK_LIBRARY): Fix linker call to avoid
overlong arguments as suggested by J. Ali Harlow
<ali@avrc.city.ac.uk>.
* builds/dos/dos-wat.mk: New file.
* builds/freetype.mk (FREETYPE_H): Include header files from the
`devel' subdirectory.
* builds/os2/os2-dev.mk, builds/unix/unixddef.mk,
builds/unix/unixddef.mk, builds/win32/w32-bccd.mk,
builds/win32/w32-dev.mk (BUILD_DIR): Fix path.
* builds/unix/configure.ac, builds/unic/configure: Updated.
* builds/unix/unix-def.in (DISTCLEAN): Add `freetype2.pc'.
2003-06-07 Werner Lemberg <wl@gnu.org>
* src/base/ftmac.c (FT_New_Face_From_SFNT): s/rlen/sfnt_size/ to
make it compile.
* devel/ftoption.h: Updated.
2003-06-07 Detlef Würkner <TetiSoft@apg.lahn.de>
* include/freetype/internal/psaux.h, src/truetype/ttgload.h:
s/index/idx/ to fix compiler warnings.
* src/sfnt/ttcmap0.c (tt_face_build_cmaps): Use more `volatile' to
fix compiler warning.
* src/gzip/ftgzip.c (BUILDFIXED): Removed.
* src/gzip/inftrees.c (inflate_trees_fixed) [!BUILDFIXED]: Use
FT_UNUSED to remove compiler warning.
2003-06-06 Werner Lemberg <wl@gnu.org>
* include/freetype/ftstroker.h: Renamed to...
* include/freetype/ftstroke.h: This.
* src/base/ftstroker.c: Renamed to...
* src/base/ftstroke.c: This.
* include/freetype/config/ftheader.h (FT_STROKER_H): Updated.
* src/base/descrip.mms, src/base/Jamfile, src/base/rules.mk:
Updated.
* src/pcf/pcfdriver.c: Renamed to...
* src/pcf/pcfdrivr.c: This.
* src/pcf/pcfdriver.h: Renamed to...
* src/pcf/pcfdrivr.h: This.
* src/pcf/Jamfile, src/pcf/rules.mk: Updated.
2003-06-05 Wenlin Institute (Tom Bishop) <wenlin@wenlin.com>
* src/base/ftmac.c (file_spec_from_path) [TARGET_API_MAC_CARBON]:
Add `#if !defined(__MWERKS__)'.
2003-06-05 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/psaux.h (T1_FieldType): Add
T1_FIELD_TYPE_FIXED_1000 and T1_FIELD_TYPE_FIXED_1000_P.
(T1_FIELD_FIXED_1000, T1_FIELD_FIXED_1000_P): New macros.
* src/psaux/psobjs.c (ps_parser_load_field): Handle
T1_FIELD_TYPE_FIXED_1000 and T1_FIELD_TYPE_FIXED_1000_P.
* src/cff/cffparse.c (cff_kind_fixed_thousand): New enumeration.
(CFF_FIELD_FIXED_1000): New macro.
(cff_parser_run): Handle cff_kind_fixed_thousand.
* src/cff/cfftoken.h: Use CFF_FIELD_FIXED_1000 for blue_scale.
* src/cff/cffload (cff_subfont_load): Fix default values of
expansion_factor and blue_scale.
* src/cif/cidtoken.h, src/type1/t1tokens.h: Use T1_FIELD_FIXED_1000
for blue_scale.
* src/pshinter/pshglob.c (psh_globals_new): Fix default value of
blue_scale.
2003-06-04 Wolfgang Domröse <porthos.domroese@harz.de>
* include/freetype/internal/ftdriver.h,
include/freetype/internal/ftobjs.h,
include/freetype/internal/psaux.h, src/cid/cidgload.c,
src/psaux/psobjs.c, src/psaux/t1decode.c, src/psaux/psobjs.h,
src/pshinter/pshrec.c, src/pshinter/pshalgo.c,
src/psnames/psmodule.c, src/raster/ftraster.c, src/sfnt/sfobjs.c,
src/smooth/ftgrays.c, src/smooth/ftsmooth.c, src/truetype/ttobjs.c,
src/truetype/ttdriver.c, src/truetype/ttgload.c, src/type1/t1afm.c,
src/type1/t1gload.c, src/type1/t1gload.h, src/type1/t1load.c,
src/type1/t1objs.c, src/type42/t42parse.c, src/type42/t42parse.h:
Many casts and slight argument type changes to make it work with
a 16bit compiler.
2003-06-04 Werner Lemberg <wl@gnu.org>
* include/freetype/config/ftoption.h: Defining
TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING by default is a bad idea
since some fonts (e.g. Arial) produce worse results than without
hinting. Reverted.
2003-06-04 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c (load_truetype_glyph)
[TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Call
FT_GlyphLoader_CheckPoints before adding phantom points. This fixes
a segfault bug with fonts (e.g. htst3.ttf) which have nested
subglyphs more than one level deep. Reported by Anthony Fok.
* include/freetype/config/ftoption.h: Define
TT_CONFIG_OPTION_BYTECODE_INTERPRETER,
TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING, and
TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING to make it the new
default.
2003-06-03 Werner Lemberg <wl@gnu.org>
* src/autohint/ahhint.c (ah_hinter_hint_edges): Removed. Just a
wrapper for ah_hint_edges.
(ah_hint_edges): Renamed to...
(ah_hinter_hint_edges): This.
* src/base/ftobjs.c (FT_Set_Hint_Flags): Removed. Unused.
* include/freetype/internal/ftobjs.h (FT_Face_InternalRec),
include/freetype/internal/psaux.h (T1_DecoderRec),
src/cff/cffgload.h (CFF_Builder): Remove `hint_flags' field.
Unused.
* src/cff/cffgload.c (cff_builder_init): Updated.
(cff_decoder_parse_charstrings) <cff_op_endchar>: Call hinter->apply
with decoder->hint_mode instead of builder->hint_flags.
* src/psaux/t1decode.c (t1_decoder_init): Updated.
* src/base/ftstroker.c (ft_stroke_border_export): s/index/idx/.
* src/sfnt/sfobjs.c (sfnt_load_face): Commented out code which
increased root->height by 15% if the line gap was zero. There exist
fonts (containing e.g. form drawing characters) which intentionally
have a zero line gap value.
* src/truetype/ttinterp.c (Free_Project, CUR_Func_freeProj):
Removed. Unused.
Updated all callers.
2003-06-02 Werner Lemberg <wl@gnu.org>
* src/cff/cffobjs.c (cff_face_init): Use symbolic names for
Adobe specific encoding IDs (there was a wrong EID value for custom
encoding).
* src/cff/cffcmap.h (CFF_CMapStdRec): Remove `count'.
* src/cff/cffcmap.c (cff_cmap_encoding_init,
cff_cmap_encoding_done): Updated.
(cff_cmap_encoding_char_index, cff_cmap_encoding_char_next): Use
256 as limit for character code.
2003-06-01 Werner Lemberg <wl@gnu.org>
* src/winfonts/winfnt.c (FNT_Load_Glyph): Revert change from
2003-03-20.
2003-05-31 Werner Lemberg <wl@gnu.org>
* include/freetype/fttrigon.h (FT_Vector_Normalize): Removed.
2003-05-31 <Ron.Dev@gmx.de>
* src/type1/t1objs.c (T1_Face_Init): Improve algorithm for guessing
the font style by ignoring spaces and hyphens.
* builds/unix/freetype2.in: Fix `Version' field.
2003-05-30 Werner Lemberg <wl@gnu.org>
Avoid overwriting of numeric font dictionary entries for synthetic
fonts. Additionally, some entries were handled as `integer' instead
of `number'.
* include/freetype/internal/psaux.h (T1_FieldType): Add
T1_FIELD_TYPE_BOOL_P, T1_FIELD_TYPE_INTEGER_P, and
T1_FIELD_TYPE_FIXED_P.
(T1_FIELD_BOOL_P, T1_FIELD_NUM_P, T1_FIELD_FIXED_P): New macros.
* src/psaux/psobjs.c (ps_parser_load_field): Handle new field types.
* include/freetype/internal/cfftypes.h (CFF_FontRecDict),
src/cff/cfftoken.h: Change type of underline_position and
underline_thickness to FT_Fixed.
* src/cff/cffload.c (cff_subfont_load): Fix default values of
underline_position and underline_thickness.
* src/cff/cffobjs.c (cff_face_init): Set underline_position
and underline_thickness in `root'.
* include/freetype/internal/t1types.h (T1_Font): Change point_type
and stroke_width to pointers.
* include/freetype/t1tables.h (PS_FontInfo): Change italic_angle,
is_fixed_pitch, underline_position, and underline_thickness to
pointers.
* src/type1/t1tokens.h: Change italic_angle, is_fixed_pitch,
underline_position, and underline_thickness to pointers. Change
the type of the latter two to `fixed'.
Change type of stroke_width to `fixed' and make it a pointer.
Change paint_type to pointer.
* src/type1/t1objs.c (T1_Face_Done): Updated.
(T1_Face_Init): Updated.
Fix assignment of underline_position and underline_thickness.
* src/cid/cidtoken.h: Change italic_angle, is_fixed_pitch,
underline_position, and underline_thickness to pointers. Change
the type of the latter two to `fixed'.
Change type of stroke_width to `fixed'.
* src/cid/cidobjs.c (cid_face_done): Updated.
(cid_face_init): Updated.
Fix assignment of underline_position and underline_thickness.
* src/type42/t42parse.c: Change italic_angle, is_fixed_pitch,
underline_position, and underline_thickness to pointers. Change the
type of the latter two to `fixed'.
Change type of stroke_width to `fixed' and make it a pointer.
Change paint_type to pointer.
* src/type42/t42objs.c (T42_Face_Init): Updated.
Fix assignment of underline_position and underline_thickness.
(T42_Face_Done): Updated.
* src/base/ftobjs.c (open_face_from_buffer): Fix compiler warning.
* src/pshinter/pshglob.c, src/pshinter/pshglob.h
(psh_globals_set_scale): Make it a local function.
* test/gview.c: Fix renaming ps3->ps typo.
Formatting.
2003-05-29 Werner Lemberg <wl@gnu.org>
* src/pshinter/pshalgo1.[ch], src/pshinter/pshalgo2.[ch]: Removed.
* src/pshinter/pshalgo.h: Removed.
* src/pshinter/pshalgo3.[ch]: Renamed to...
* src/pshinter/pshalgo.[ch]: New files.
s/PSH3/PSH/.
s/psh3/psh/.
s/ps3/ps/.
* src/pshinter/pshrec.c, src/pshinter/pshinter.c: Updated.
* src/pshinter/rules.mk, src/pshinter/Jamfile: Updated.
* src/pshinter/pshglob.[ch] (psh_dimension_snap_width): Commented
out.
* tests/gview.c: Remove code for pshalgo1 and pshalgo2.
Updated.
2003-05-28 Martin Zinser <zinser@decus.de>
* vms_make.com: Reworked support for shareable images on VMS. The
first version was kind of a hack; the current implementation of the
procedure to extract the required symbols is much cleaner.
Reworked creation of MMS files, avoiding a number of temporary files
which were created in the previous version.
Further work on creating descrip.mms files on the fly.
* builds/vms/descrip.mms, src/autohint/descrip.mms,
src/type1/descrip.mms: Removed.
2003-05-28 Werner Lemberg <wl@gnu.org>
* src/pshinter/pshalgo3.c (psh3_glyph_compute_extrema): Skip
contours with only a single point to avoid segfault.
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Activate code for
handling `origin'.
2003-05-24 Werner Lemberg <wl@gnu.org>
* src/autohint/ahtypes.h (AH_OPTION_NO_STRONG_INTERPOLATION):
Removed since unused.
2003-05-21 Werner Lemberg <wl@gnu.org>
* include/freetype/config/ftstdlib.h (ft_strcat): New wrapper macro
for strcat.
* src/base/ftmac.c (create_lwfn_name): s/isupper/ft_isupper/.
(parse_font): s/memcpy/ft_memcpy/.
(is_dfont) [TARGET_API_MAC_CARBON]: s/memcmp/ft_memcmp/.
* src/base/ftobjs.c (load_mac_face) [FT_MACINTOSH]:
s/strlen/ft_strlen/.
s/strcat/ft_strcat/.
s/strcpy/ft_strcpy/.
* src/gzip/zutil.h: s/memset/ft_memset/.
s/memcmp/ft_memcmp/.
* src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfdriver.c
(PCF_Face_Init): Test for charset registry case-insensitively.
* src/gzip/ftgzip.c (ft_gzip_fil_io): Revert change from yesterday;
it has already been fixed differently.
* src/truetype/ttinterp.c (DO_SFVTL): Add missing braces around
if-clause.
2003-05-21 Martin Zinser <zinser@decus.de>
* t1load.c (parse_blend_axis_types): Fix compiler warning.
* descrip.mms: Removed. Now created by...
* vms_make.com: New file.
2003-05-21 Weiqi Gao <weiqigao@networkusa.net>
* src/gzip/ftgzip.c (ft_gzip_file_io): Avoid zero value of `delta'
to prevent infinite loop.
2003-05-21 Lars Clausen <lrclause@cs.uiuc.edu>
* docs/VERSION.DLL: Provide better autoconf snippet to check
FreeType version.
2003-05-21 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (open_face): Free `internal' not
`face->internal' in case of error to avoid possible segfault.
* src/pshinter/pshalgo3.c (ps3_hints_apply): Check whether we
actually have an outline.
2003-05-20 David Chester <davidchester@qmx.net>
* src/pshinter/pshalgo3.c (ps3_hints_apply): Try to optimize
y_scale so that the top of non-capital letters is aligned on a pixel
boundary whenever possible.
* src/autohint/ahhint.c (ah_hint_edges): Make sure that lowercase
m's maintain their symmetry.
2003-05-20 Werner Lemberg <wl@gnu.org>
* src/autohint/ahhint.c (ah_hinter_load_glyph): Oops! David's
patch from yesterday has been resolved already in a different
way. Reverted.
2003-05-19 David Chester <davidchester@qmx.net>
* src/autohint/ahhint.c (ah_hinter_load_glyph): Don't scale
y_scale locally but face->size->metrics.y_scale.
2003-05-19 David Turner <david@freetype.org>
* src/sfnt/ttcmap0.c (tt_cmap4_char_next): Select proper start
value for `hi' to avoid infinite loop.
2003-05-18 Yong Sun <sunyong@njstar.com>
* src/raster/ftraster.c (Insert_Y_Turn): Fix overflow test.
2003-05-18 Werner Lemberg <wl@gnu.org>
* include/freetype/config/ftoption.h [FT_CONFIG_OPTION_MAC_FONTS]:
New macro.
* src/base/ftobjs.c: Use it to control mac font support on non-mac
platforms.
2003-05-17 George Williams <gww@silcom.com>
Implement partial support of Mac fonts on non-Mac platforms.
* src/base/ftobjs.c (memory_stream_close, new_memory_stream,
open_face_from_buffer, Mac_Read_POST_Resource,
Mac_Read_sfnt_Resource, IsMacResource, IsMacBinary, load_mac_face)
[!FT_MACINTOSH]: New functions.
(FT_Open_Face) [!FT_MACINTOSH]: Use load_mac_face.
2003-05-17 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (FT_Load_Glyph): Scale linear advance width only
if FT_FACE_FLAG_SCALABLE is set (otherwise we have a division by
zero since FNT and friends don't define `face->units_per_EM').
2003-05-15 David Turner <david@freetype.org>
* src/base/fttrigon.c (FT_Vector_Rotate): Avoid rounding errors
for small values.
2003-05-15 Werner Lemberg <wl@gnu.org>
* src/autohint/ahtypes.h (AH_PointRec): Remove unused `in_angle'
and `out_angle' fields.
2003-05-14 George Williams <gww@silcom.com>
* src/base/ftmac.c (FT_New_Face_From_SFNT): Handle CFF files also.
2003-05-14 Werner Lemberg <wl@gnu.org>
* include/freetype/freetype.h: Fix typo in comment
(FT_HAS_FIXED_SIZES).
2003-05-10 Dan Williams <dan@bigw.org>
* builds/unix/aclocal.m4: Comment out definition of
`allow_undefined_flag' for Darwin 1.3.
* builds/unix/configure.ac: Add option --with-old-mac-fonts.
* builds/unix/ltmain.sh: Fix version numbering for Darwin 1.3.
* builds/unix/configure: Regenerated.
* include/freetype/config/ftconfig.h: Fix conditions for defining
`FT_MACINTOSH'.
* src/base/ftbase.c: Include `ftmac.c' conditionally.
* src/base/ftmac.c: Handle __GNUC__.
2003-05-07 YAMANO-UCHI Hidetoshi <mer@din.or.jp>
* src/cid/cidload.c (is_alpha): Removed.
(cid_parse_dict): Use `cid_parser_skip_alpha' instead of `is_alpha'.
2003-05-07 Werner Lemberg <wl@gnu.org>
* src/autohint/ahoptim.c, src/autohint/ahoptim.h: Obsolete, removed.
2003-05-07 David Turner <david@freetype.org>
* src/autohint/ahglyph.c (ah_setup_uv): Exchange `for' loop and
`switch' statement to make it run faster.
(ah_outline_compute_segments): Reset `segment->score' and
`segment->link'.
(ah_outline_link_segments): Provide alternative code which does
the same but runs much faster.
Handle major direction also.
(ah_outline_compute_edges): Scale `edge_distance_threshold' down
after rounding instead of scaling comparison value in loop.
* src/autohint/ahhint.c (ah_hinter_align_stong_points): Provide
alternative code which runs faster.
Handle `before->scale == 0'.
* src/autohint/ahtypes.h (AH_SegmentRec): Move some fields down.
(AH_EdgeRec): Move some fields in structure.
New field `scale'.
* src/sfnt/ttcmap0.c (tt_cmap4_char_next): Use binary search.
2003-05-02 Werner Lemberg <wl@gnu.org>
* src/autohint/ahoptim.c (LOG): Renamed to...
(AH_OPTIM_LOG): This.
(AH_Dump_Springs): Fix log message format.
* src/autohint/ahhint.c (ah_hint_edges_3): Renamed to...
(ah_hint_edges): This.
2002-05-02 Keith Packard <keithp@keithp.com>
* src/bdf/bdfdrivr.c (BDF_Set_Pixel_Size): Initialize `max_advance'.
2003-05-01 Werner Lemberg <wl@gnu.org>
* src/autohint/ahglyph.c (ah_test_extrema): Renamed to...
(ah_test_extremum): This.
2003-04-28 Werner Lemberg <wl@gnu.org>
* builds/unix/configure.ac: Generate `freetype.pc' from
`freetype.in'.
* builds/unix/configure: Regenerated.
* builds/unix/install.mk (install, uninstall): Handle `freetype.pc'.
2003-04-28 Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
* builds/unix/freetype2.in: New file. Contains building information
for the `pkg-config' package.
2003-04-28 David Turner <david@freetype.org>
* src/base/ftobjs.c (FT_Load_Glyph): Fix boundary check for
`glyph_index'.
2003-04-25: Graham Asher <graham.asher@btinternet.com>
Added the optional unpatented hinting system for TrueType. It
allows typefaces which need hinting to produce correct glyph forms
(e.g., Chinese typefaces from Dynalab) to work acceptably without
infringing Apple patents. This system is compiled only if
TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING is defined in
ftoption.h.
* include/freetype/ttunpat.h: New file. Defines
FT_PARAM_TAG_UNPATENTED_HINTING.
* include/freetype/config/ftheader.h (FT_TRUETYPE_UNPATENTED_H): New
macro to use when including ttunpat.h.
* include/freetype/config/ftoption.h
(TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING,
TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING): New configuration macros
(not defined, but in comments) for the unpatented hinting system.
* include/freetype/internal/tttypes.h (TT_FaceRec)
[TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: New element "FT_Bool
unpatented_hinting".
* src/truetype/ttinterp.c (NO_APPLE_PATENT, APPLE_THRESHOLD):
Removed.
(GUESS_VECTOR): New macro.
(TT_Run_Context) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]:
Set `both_x_axis'.
(tt_default_graphics_state)
[TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Updated.
(Current_Ratio) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]:
Handle `unpatented_hinting'.
(Direct_Move) [NO_APPLE_PATENT]: Removed.
[TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Insert assertion.
(Project, FreeProject)
[TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Insert assertion.
(Compute_Funcs) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]:
Implement unpatented hinting.
(DO_SPVTCA, DO_SFVTCA, DO_SPVTL, DO_SFVTL, DO_SPVFS, DO_SFVFS,
Ins_SDPVTL): Call `GUESS_VECTOR'.
(DO_GPV, DO_GFV) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]:
Handle `unpatented_hinting'.
(Compute_Point_Displacement) [NO_APPLE_PATENT]: Removed.
[TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Implement unpatented
hinting.
(Move_Zp2_Point, Ins_SHPIX, Ins_DELTAP, Ins_DELTAC)
[TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Implement unpatented
hinting.
(TT_RunIns): Updated.
* src/truetype/ttobjs.c
[TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Include
FT_TRUETYPE_UNPATENTED_H.
(tt_face_init) [TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING,
TT_CONFIG_OPTION_FORCE_UNPATENTED_HINTING]: Check
FT_PARAM_TAG_UNPATENTED_HINTING.
* src/truetype/ttobjs.h (TT_GraphicsState)
[TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING]: Add `both_x_axis'.
2003-04-25 Werner Lemberg <wl@gnu.org>
* src/bdf/bdflib.c (hash_bucket, hash_lookup): Use `const' for first
argument.
(bdf_get_font_property): Use `const' for third argument.
Updated all callers.
* src/bdf/bdfdrivr.c (BDF_Face_Init): Set pixel width and height
similar to the PCF driver.
* src/bdf/bdf.h (_hashnode): Use `const' for `key'.
Updated.
* src/gzip/ftgzip.c: C++ doesn't like that the array `inflate_mask'
is declared twice. It is perhaps better to modify the zlib source
files directly instead of this hack.
(zcalloc, zfree, ft_gzip_stream_close, ft_gzip_stream_io): Add casts
to make build with g++ successful.
2003-04-24 Manish Singh <yosh@gimp.org>
* src/cid/cidobjs.c (cid_face_init), src/type1/t1objs.c
(T1_Face_Init), src/type42/t42objs.c (T42_Face_Init): Split on `-'
also for searching the style name.
2003-04-24 David Turner <david@freetype.org>
* src/pcf/pcfread.c (pcf_load_font): Fixed the computation of
face->num_glyphs. We must increase the value by 1 to respect the
convention that glyph index 0 always corresponds to the "missing
glyph".
2003-04-24 Werner Lemberg <wl@gnu.org>
* builds/unix/unix-cc.in (CFLAGS): Add @CPPFLAGS@.
2003-04-24 Dieter Baron <dillo@netbsd.org>
* builds/unix/freetype-config.in (cflags): Emit FreeType 2's include
files first. Otherwise there are conflicts with FreeType 1
installed simultaneously.
2003-04-23 Werner Lemberg <wl@gnu.org>
Fixing bugs reported by Nelson Beebe.
* src/base/ftstroker.c (FT_Stroker_ParseOutline): Remove unused
variable `in_path'.
* src/base/ftobjs (ft_glyphslot_set_bitmap): Change type of
second argument to `FT_Byte*'.
* include/freetype/internal/ftobjs.h: Updated.
* src/bdf/bdflib.c (_bdf_readstream): Remove unused variable `res'.
(_bdf_parse_glyphs): Remove unused variable `next'.
Mark `call_data' as unused.
* src/cache/ftlru.c (FT_LruList_Lookup): Remove unused variable
`plast'.
* src/pcf/pcfread.c (pcf_seek_to_table_type): Slight recoding to
actually use `error'.
(pcf_load_font): Remove unused variable `avgw'.
* src/pfr/pfrobjs.c (pfr_face_get_kerning): Change return type
to `void'.
Mark `error' as unused.
* src/pfr/pfrobjs.h: Updated.
* src/pfr/pfrdrivr.c (pfr_get_kerning): Updated.
* src/sfnt/ttload.c (sfnt_dir_check): Remove unused variable
`format_tag'.
* src/sfnt/ttcmap0.c (tt_cmap6_validate, tt_cmap10_validate): Remove
unused variable `start'.
(tt_cmap10_char_next): Remove unused variable `result'
* src/sfnt/sfobjs.c (tt_face_get_name): Mark `error' as unused.
* src/sfnt/sfdriver.c (get_sfnt_postscript_name): Mark `error' as
unused.
* src/type1/t1objs.c (T1_Face_Init): Remove unused variable
`pshinter'.
* src/type1/t1gload.c (T1_Load_Glyph): Use `glyph_data_loaded'
only for FT_CONFIG_OPTION_INCREMENTAL.
2003-04-23 Akito Hirai <akito@kde.gr.jp>
* src/sfnt/ttcmap0.c (tt_cmap4_validate): Provide a weak variant
of the glyph ID bounding check if FT_VALIDATE_TIGHT is not active.
Without this change, many CJK fonts from Dynalab are rejected.
2003-04-23 Joe Marcus Clarke <marcus@FreeBSD.org>
* src/base/ftbdf.c (FT_Get_BDF_Property): Check for valid
`get_interface'.
2003-04-23 Paul Miller <paulm@profoundeffects.com>
* src/base/ftmac.c (parse_fond): Fix handling of style names.
2003-04-23 Werner Lemberg <wl@gnu.org>
* src/pfr/pfrload.c (pfr_extra_item_load_font_id): Use FT_PtrDist
instead of FT_Uint for `len'.
2003-04-22 Werner Lemberg <wl@gnu.org>
* src/gzip/ftgzip.c (zcalloc) [!FT_CONFIG_OPTION_SYSTEM_ZLIB]:
Convert K&R format to modern C usage.
(FT_Stream_OpenGzip): Use long constant.
2003-04-21 Werner Lemberg <wl@gnu.org>
* src/cache/ftccache.c (ftc_cache_lookup): Remove shadow declaration
of `manager'.
2003-04-20 Werner Lemberg <wl@gnu.org>
* doc/INSTALL.UNX: Cleaned up.
2003-04-09 Torrey Lyons <torrey@mrcla.com>
* src/base/ftmac.c (open_face_from_buffer): Removed a double-free
bug that had nasty consequences when trying to open an "invalid"
font on a Mac.
2003-04-09 Mike Fabian <mfabian@suse.de>
* src/bdf/bdfdrivr.h (BDF_encoding_el), src/pcf/pcf.h
(PCF_EncodingRec): Changed FT_Short to FT_UShort in order to be able
to access more than 32768 glyphs in fonts.
2003-04-08 David Turner <david@freetype.org>
* Version 2.1.4 released.
=========================
2003-04-03 Martin Muskens <mmuskens@aurelon.com>
* src/type1/t1load.c (T1_Open_Face): Fixed the code to make it
handle special cases where a font only contains a ".notdef" glyph
(happens in PDF-embedded fonts). Otherwise, FT_Panic was called.
2003-03-27 David Turner <david@freetype.org>
* README: Udpated.
* README.UNX: Removed (now replaced by docs/INSTALL.UNX).
* src/pshinter/pshalgo3.c: The hinter now performs as in 2.1.3 and
will ignore stem quantization only when FT_LOAD_TARGET_SMOOTH is
used.
(psh3_dimension_quantize_len): Enabled.
(psh3_hint_align): Enable commented code.
(psh3_hint_align_light): Commented out.
* src/base/ftobjs.c (FT_Set_Char_Size): Changed the default
computations to include rounding in all cases; this is required to
provide accurate kerning data when native TrueType hinting is
enabled.
* src/type1/t1load.c (is_name_char): The Type 1 loader now accepts
more general names according to the PostScript specification (the
previous one was too restrictive).
(parse_font_name, parse_encoding, parse_charstrings, parse_dict):
Use `is_name_char'.
(parse_subrs): Handle empty arrays.
2003-03-20 David Turner <david@freetype.org>
Serious rewriting of the documentation.
* docs/BUGS, docs/BUILD: Removed.
* docs/DEBUG.TXT: Renamed to...
* docs/DEBUG: This.
* docs/CUSTOMIZE, docs/TRUETYPE, docs/UPGRADE.UNX: New files.
* docs/INSTALL.ANY, docs/INSTALL.UNX, docs/INSTALL.GNU New files,
containing platform specific information previously in INSTALL.
* docs/readme.vms: Renamed to...
* docs/INSTALL.VMS: This.
* docs/*: Updated.
Introduced three new functions to deal with glyph bitmaps within
FT_GlyphSlot objects:
ft_glyphslot_free_bitmap
ft_glyphslot_alloc_bitmap
ft_glyphslot_set_bitmap
These functions are much more convenient to use than managing the
FT_GLYPH_OWN_BITMAP flag manually.
* include/freetype/internal/ftobjs.h (ft_glyphslot_free_bitmap,
ft_glyphslot_alloc_bitmap, ft_glyphslot_set_bitmap): New functions.
* src/base/ftobjs.c: Implement them.
(ft_glyphslot_done): Use ft_glyphslot_free_bitmap.
* src/bdf/bdfdrivr.c (BDF_Glyph_Load), src/pcf/pcfdriver.c
(PCF_Glyph_Load): Remove unused variable `memory'.
Use `ft_glyphslot_*' functions.
Don't set `FT_GLYPH_OWN_BITMAP'.
* src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Use
`ft_glyphslot_alloc_bitmap'.
* src/sfnt/ttsbit.c (Load_SBit_Image): Change 5th argument to type
`FT_GlyphSlot'.
Adding argument `depth' to handle recursive calls.
Use `ft_glyphslot_alloc_bitmap'.
(tt_face_load_sbit_image): Remove unused variable `memory'.
Don't handle `FT_GLYPH_OWN_BITMAP'.
Update call to Load_SBit_Image.
* src/type42/t42objs.c (ft_glyphslot_clear): Renamed to...
(t42_glyphslot_clear): This. Updated caller.
Call `ft_glyphslot_free_bitmap'.
* src/winfonts/winfnt.c (FNT_Load_Glyph): Use
`ft_glyphslot_set_bitmap'.
Don't handle `FT_GLYPH_OWN_BITMAP'.
* src/cache/ftlru.c (FT_LruList_Lookup): Fixed an invalid assertion
check.
* src/autohint/ahglyph.c (ah_outline_load): Add two scaling
arguments.
* src/autohint/ahglyph.h: Updated.
* src/autohint/ahhint.c (ah_hinter_load): Updated.
* src/autohint/ahglobal.c (ah_hinter_compute_widths): Updated.
* src/cache/ftccache.c (ftc_family_done): Fixed small bug that could
crash the cache in rare circumstances (mostly with broken fonts).
2003-03-15 David Turner <david@freetype.org>
* src/truetype/ttdriver.c (Set_Char_Sizes): Fixed a small rounding
bug. Actually, it seems that previous versions of FreeType didn't
perform TrueType rounding exactly as appropriate.
2003-03-14 David Turner <david@freetype.org>
* src/truetype/ttdriver.c (Set_Char_Sizes): Fixing the small
TrueType native rendering glitches; they came from a small rounding
error.
2003-03-13 David Turner <david@freetype.org>
Added new environment variables to control memory debugging with
FreeType. See the description of "FT2_DEBUG_MEMORY",
"FT2_ALLOC_TOTAL_MAX" and "FT2_ALLOC_COUNT_MAX" in DEBUG.TXT.
* src/base/ftdbgmem.c (FT_MemTableRec): Add `alloc_count',
`bound_total', `alloc_total_max', `bound_count', `alloc_count_max'.
(ft_mem_debug_alloc): Handle new variables.
(ft_mem_debug_init): s/FT_DEBUG_MEMORY/FT2_DEBUG_MEMORY/.
Handle new environment variables.
* docs/DEBUG.TXT: Updated.
Fixed the cache sub-system to correctly deal with out-of-memory
conditions.
* src/cache/ftccache.c (ftc_node_destroy): Comment out generic
check.
(ftc_cache_lookup): Implement loop.
* src/cache/ftccmap.c: Define FT_COMPONENT.
* src/cache/ftcsbits.c (ftc_sbit_node_load): Handle
FT_Err_Out_Of_Memory.
* src/cache/ftlru.c: Include FT_INTERNAL_DEBUG_H.
(FT_LruList_Lookup): Implement loop.
* src/pfr/pfrobjs.c (pfr_face_done): Fix memory leak.
(pfr_face_init): Fixing compiler warnings.
* src/psaux/psobjs.c (reallocate_t1_table): Fixed a bug (memory
leak) that only happened when a try to resize an array would end in
an out-of-memory condition.
* src/smooth/ftgrays.c (gray_convert_glyph): Removed compiler
warnings / volatile bug.
* src/truetype/ttobjs.c (tt_glyphzone_done): Removed segmentation
fault that happened in tight memory environments.
2003-02-28 Pixel <pixel@mandrakesoft.com>
* src/gzip/ftgzip.c (ft_gzip_file_done): Fixed memory leak: The ZLib
stream was not properly finalized.
2003-02-25 Anthony Fok <anthony@thizlinux.com>
* src/cache/ftccmap.c: Include FT_TRUETYPE_IDS_H.
(ftc_cmap_family_init): The cmap cache now
supports UCS-4 charmaps when available in Asian fonts.
* src/sfnt/ttload.c, src/base/ftobjs.c: Changed "asian" to "Asian"
in comments.
2003-02-25 David Turner <david@freetype.org>
* src/gzip/ftgzip.c (ft_gzip_file_fill_output): Fixed a bug that
caused FreeType to loop endlessly when trying to read certain
compressed gzip files. The following test reveals the bug:
touch 0123456789 ; gzip 0123456789 ; ftdump 0123456789.gz
Several fixes to the PFR font driver:
- The list of available embedded bitmaps was not correctly set in
the root FT_FaceRec structure describing the face.
- The glyph loader always tried to load the outlines when
FT_LOAD_SBITS_ONLY was specified.
- The table loaded now scans for *undocumented* elements of a
physical font's auxiliary data record. This is necessary to
retrieve the "real" family and style names.
NOTE THAT THESE CHANGES THE FAMILY NAME OF MANY PFR FONTS!
* src/pfr/pfrload.c (pfr_aux_name_load): New function.
(pfr_phy_font_done): Free `family_name' and `style_name' also.
Remove unused variables.
(pfr_phy_font_load): Extract useful information from the auxiliary
bytes.
* src/pfr/pfrobjs.c (pfr_face_done): Set pointers to NULL.
(pfr_face_init): Provide fallback values for `family_name' and
`style_name'.
Handle strikes.
(pfr_slot_load): Handle FT_LOAD_SBITS_ONLY.
* src/pfr/pfrtypes.h (PFR_PhyFontRec): Add fields `ascent',
`descent', `leading', `family_name', and `style_name'.
* src/truetype/ttdriver.c (Set_Char_Sizes): Fixed a rounding bug
when computing the scale factors for a given character size in
points with resolution.
* devel/ft2build.h, devel/ftoption.h: New files (in a new directory)
which are special development versions of include/ft2build.h and
include/freetype/config/ftoption.h, respectively.
2003-02-18 David Turner <david@freetype.org>
Fixing the slight distortion problem that occurred due to the latest
auto-hinter changes.
* src/base/ftobjs.c (ft_recompute_scaled_metrics): Fix rounding.
* src/truetype/ttdriver.c (Set_Char_Sizes): New variable `metrics2'.
[!TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Removed.
* src/truetype/ttobjs.h (TT_SizeRec): New field `metrics'.
* src/truetype/ttobjs.c (Reset_Outline_Size): Fix initialization of
`metrics'.
[FT_CONFIG_CHESTER_ASCENDER]: Code removed.
(Reset_SBit_Size): Fix initialization of `metrics'.
* src/truetype/ttinterp.c (TT_Load_Context): Fix initialization of
`exec->metrics'.
* src/autohint/ahhint.c (ah_hinter_load): Disabled the advance width
"correction" which seemed to provide more trouble than benefits.
2003-02-13 Graham Asher <graham.asher@btinternet.com>
Changed the incremental loading interface in a way that makes it
simpler and allows glyph metrics to be changed (e.g., by adding a
constant, as required by CFF fonts) rather than just overridden.
This was required to make the GhostScript-to-FreeType bridge work.
* src/cff/cffgload.c (cff_slot_load) [FT_CONFIG_OPTION_INCREMENTAL]:
Allow metrics to be overridden.
* src/cid/cidgload.c (cid_load_glyph) [FT_CONFIG_OPTION_INCREMENTAL]:
Ditto.
* src/truetype/ttgload.c (load_truetype_glyph)
[FT_CONFIG_OPTION_INCREMENTAL]: Simplify.
(compute_glyph_metrics) [FT_CONFIG_OPTION_INCREMENTAL]: Code block
moved down.
* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String)
[FT_CONFIG_OPTION_INCREMENTAL]: Updated.
* include/freetype/ftincrem.h: Updated.
2003-01-31 David Turner <david@freetype.org>
* docs/CHANGES, docs/VERSION.DLL, docs/TODO: Updating documentation
for the 2.1.4 release.
* builds/win32/visualc/freetype.dsp,
builds/win32/visualc/index.html: Updating the project file for
2.1.4.
* src/gzip/adler32.c, src/gzip/ftgzip.c, src/gzip/infblock.c,
src/gzip/infcodes.c, src/gzip/inflate.c, src/gzip/inftrees.c,
src/gzip/infutil.c: Removed old-style (K&R)function definitions.
This avoids warnings with Visual C++ at its most pedantic mode.
* src/pfr/pfrsbit.c: Removed compiler warnings.
* src/cache/ftccmap.c (ftc_cmap_family_init): Changed an FT_ERROR
into an FT_TRACE1 since it caused "ftview" and others to dump too
much junk when trying to display a waterfall with a font without a
Unicode charmap (e.g. SYMBOL.TTF).
Implemented FT_CONFIG_CHESTER_BLUE_SCALE, corresponding to the last
patch from David Chester, but with a much simpler (and saner)
implementation.
* src/autohint/ahhint.c (ah_hinter_load_glyph)
[FT_CONFIG_CHESTER_BLUE_SCALE]: Try to optimize the y_scale so that
the top of non-capital letters is aligned on a pixel boundary
whenever possible.
* src/base/ftobjs.c (FT_Set_Char_Size)
[FT_CONFIG_CHESTER_BLUE_SCALE]: Round differently.
* src/truetype/ttdriver.c (Set_Char_Sizes)
[TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Do some rounding only
if this macro is defined.
* src/truetype/ttobjs.c (Reset_Outline_Size)
[FT_CONFIG_CHESTER_ASCENDER]: Round differently.
* src/pshinter/pshalgo3.c: Improved the Postscript hinter. Getting
rid of stem snapping seems to work well here (though the stems are
still slightly moved to increase contrast).
(psh3_dimension_quantize_len): Commented out.
(psh3_hint_align_light): New function.
(psh3_hint_align): Comment out some code.
THIS IMPROVES ANTI-ALIASED RENDERING, BUT MONOCHROME AND LCD MODES
STILL SUCK.
2003-01-22 David Chester <davidchester@qmx.net>
* src/autohint/ahhint.c (ah_compute_stem_width): Small fix to the
stem width optimization.
2003-01-22 David Turner <david@freetype.org>
Adding a new API `FT_Get_BDF_Property' to retrieve the BDF
properties of a given PCF or BDF font.
* include/freetype/ftbdf.h (FT_PropertyType): New enumeration.
(BDF_Property, BDF_PropertyRec): New structure.
FT_Get_BDF_Property): New function.
* include/freetype/internal/bdftypes.h: Include FT_BDF_H.
(BDF_GetPropertyFunc): New function pointer.
* src/base/ftbdf.c (test_font_type): New helper function.
(FT_Get_BDF_Charset_ID): Use `test_font_type'.
(FT_Get_BDF_Property): New function.
* src/bdf/bdfdrivr.c: Include FT_BDF_H.
(bdf_get_bdf_property, bdf_driver_requester): New functions.
(bdf_driver_class): Use `bdf_driver_requester'.
* src/pcf/pcfdrivr.c: Include FT_BDF_H.
(pcf_get_bdf_property, pdc_driver_requester): New functions
(pcf_driver_class): Use `pcf_driver_requester'.
* src/pcf/pcfread.c: Include `pcfread.h'.
(pcf_find_property): Decorate it with FT_LOCAL_DEF.
* src/pcf/pcfread.h: New file, providing `pcf_find_property'.
* src/sfnt/ttload.c (sfnt_dir_check): Relaxed the "head" table size
verification to accept a few broken fonts who pad the size
incorrectly (the table should be padded, but its "size" field
shouldn't according to the specification).
2003-01-18 Werner Lemberg <wl@gnu.org>
* builds/unix/ltmain.sh: Regenerated with `libtoolize --force
--copy' from libtool 1.4.3.
* builds/unix/aclocal.m4: Regenerated with `aclocal -I .' from
automake 1.7.1.
* builds/unix/configure: Regenerated with autoconf 2.54.
* builds/unix/config.guess, builds/unix/config.sub: Updated from
`config' CVS module at subversions.gnu.org.
* builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
`automake' CVS module at subversions.gnu.org.
2003-01-15 David Turner <david@freetype.org>
* include/freetype/freetype.h: Fixed documentation for
FT_Size_Metrics.
2003-01-15 James Su <suzhe@turbolinux.com.cn>
* src/gzip/ftgzip.c (ft_gzip_check_header): Bugfix: couldn't read
certain gzip-ed font files (typo: `&&' -> `&').
2003-01-15 Huw D M Davies <h.davies1@physics.ox.ac.uk>
Added a Windows .FNT specific API (mostly for Wine). Also fixed a
nasty bug in the header loader which would cause invalid memory
overwrites.
* include/freetype/config/ftheader.h (FT_WINFONTS_H): New macro
for ftwinfnt.h.
* include/freetype/internal/fnttypes.h: Include FT_WINFONTS_H.
(FNT_FontRec): Updated.
Move Windows FNT definition to...
* include/freetype/ftwinfnt.h: This new file.
(FT_WinFNT_HeaderRec): Rename `reserved2' to `reserved1'.
* src/base/ftwinfnt.c: New file, providing `FT_Get_WinFNT_Header'.
* src/winfonts/winfnt.c (winfnt_header_fields): Updated.
Rename `reserved2' to `reserved1'.
(fnt_font_load): Updated.
* src/base/Jamfile, src/base/descrip.mms, src/base/rules.mk:
Updated.
2003-01-14 Graham Asher <graham.asher@btinternet.com>
* include/freetype/ftglyph.h, src/base/ftglyph.c: Added `const' to
the type of the first argument to FT_Matrix_Multiply, which isn't
changed -- this adds documentation and convenience.
2003-01-13 Graham Asher <graham.asher@btinternet.com>
* src/sfnt/ttload.c (tt_face_load_metrics)
[FT_CONFIG_OPTION_INCREMENTAL]: TrueType typefaces without
horizontal metrics (without the `hmtx' table) are now tolerated if
an incremental interface has been specified that has a
get_glyph_metrics function, implying that metrics will be supplied
from outside. This happens for certain Type 42 fonts passed from
GhostScript.
2003-01-11 David Chester <davidchester@qmx.net>
Patches to the auto-hinter in order to slightly improve the output.
Note that everything is controlled through the new
FT_CONFIG_OPTION_CHESTER_HINTS defined in "ftoption.h". There are
also individual FT_CONFIG_CHESTER_XXX macros to control individual
"features".
Note that all improvements are enabled by default, but can be
tweaked for optimization and testing purposes. The configuration
macros will most likely disappear in the short future.
* include/freetype/config/ftoption.h
(FT_CONFIG_OPTION_CHESTER_HINTS): New macro.
(FT_CONFIG_CHESTER_{SMALL_F,ASCENDER,SERIF,STEM,BLUE_SCALE})
[FT_CONFIG_OPTION_CHESTER_HINTS]: New macros to control individual
features.
* src/autohint/ahglobal.c (blue_chars) [FT_CONFIG_CHESTER_SMALL_F]:
Add blue zone for `fijkdbh'.
* src/autohint/ahglobal.h (AH_IS_TOP_BLUE)
[FT_CONFIG_CHESTER_SMALL_F]: Use `AH_BLUE_SMALL_F_TOP'.
* src/autohint/ahglyph.c (ah_outline_compute_edges)
[FT_CONFIG_CHESTER_SERIF]: Use `AH_EDGE_SERIF'.
(ah_outline_compute_blue_edges) [FT_CONFIG_CHESTER_SMALL_F]:
Increase threshold for `best_dist'.
* src/autohint/ahhint.c (ah_compute_stem_width)
[FT_CONFIG_CHESTER_SERIF]: Provide new version for improved serif
handling.
(ah_align_linked_edge) [FT_CONFIG_CHESTER_SERIF]: Use special
version of `ah_compute_stem_width'.
(ah_hint_edges_3) [FT_CONFIG_CHESTER_STEM]: A new algorithm for stem
alignment when stem widths are less than 1.5 pixels wide centers the
stem slightly off-center of the center of a pixel (this increases
sharpness and consistency).
[FT_CONFIG_CHESTER_SERIF]: Use special version of
`ah_compute_stem_width'.
* src/autohint/ahtypes.h [FT_CONFIG_CHESTER_SMALL_F]: Add
`AH_BLUE_SMALL_F_TOP'.
2003-01-11 David Turner <david@freetype.org>
* include/freetype/internal/fnttypes.h (WinFNT_HeaderRec): Increase
size of `reserved2' to avoid memory overwrites.
2003-01-08 Huw Dawies <huw@codeweavers.com>
* src/winfonts/winfnt.c (winfnt_header_fields): Read 16 bytes into
"reserved2", not "reserved".
* src/base/ftobjs.c (find_unicode_charmap): Fixed the error code
returned when the font doesn't contain a Unicode charmap. This
allows FT2 to load "symbol.ttf" and a few others correctly since the
last release.
(open_face): Fix return value.
2003-01-08 Owen Taylor <owen@redhat.com>
Implemented the FT_RENDER_MODE_LIGHT hinting mode in the auto and
postscript hinters.
* src/autohint/ahtypes.h (AH_HinterRec): Add `do_stem_adjust'.
* src/autohint/ahhint.c (ah_compute_stem_width): Handle
hinter->do_stem_adjust.
(ah_hinter_load_glyph): Set hinter->do_stem_adjust.
* src/pshinter/pshalgo3.h (PSH3_GlyphRec): Add `do_stem_adjust'.
* src/pshinter/pshalgo3.c (psh3_hint_align): Use `do_stem_adjust'.
(ps3_hints_apply): Handle FT_RENDER_MODE_LIGHT.
* include/freetype/freetype.h (FT_Render_Mode): Add
FT_RENDER_MODE_LIGHT.
* src/truetype/ttgload.c: Fixing the TrueType loader to handle
invalid composites correctly by limiting the recursion depth.
(TT_MAX_COMPOSITE_RECURSE): New macro.
(load_truetype_glyph): Add argument `recurse_count'.
Load a composite only if the numbers of contours is -1, emit error
otherwise.
(TT_Load_Glyph): Updated.
2003-01-08 David Turner <david@freetype.org>
* Jamrules, Jamfile, Jamfile.in, src/*/Jamfile: Small changes to
support the compilation of FreeType 2 as part of larger projects
with their own configuration options (only with Jam).
2003-01-07 David Turner <david@freetype.org>
* src/base/ftstroker.c: Probably the last bug-fixes to the stroker;
the API is likely to change, however.
(ft_stroke_border_close): Don't record empty paths.
(ft_stroke_border_get_counts): Increase `num_points' also in for loop.
(ft_stroke_border_export): Don't increase `write' twice in for loops.
(ft_stroker_outside): Handle `phi' together with `theta'.
(FT_Stroker_ParseOutline): New function.
* src/base/fttrigon.c (FT_Angle_Diff): Fixing function: It returned
invalid values for large negative angle differences (resulting in
incorrect stroker computations, among other things).
* src/cache/ftccache.c (ftc_node_hash_unlink): Removing incorrect
assertion, and changing code to avoid hash table size contraction.
* src/base/Jamfile, src/base/rules.mk, src/base/descrip.mms: Adding
"ftstroker" to default build, as optional component.
2002-12-26 David Turner <david@freetype.org>
* src/gzip/adler32.c, src/gzip/infblock.c, src/gzip/inflate.c,
src/gzip/inftrees.c, src/gzip/zconf.h, src/gzip/zlib.h,
src/gzip/zutil.h: Updates to allow compilation without compiler
warnings with LCC-Win32.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
* builds/unix/configure.ac (version_info): Increased to 9:3:3.
* builds/unix/configure: Regenerated.
* docs/VERSION.DLL: Updated.
2002-12-23 Anthony Fok <anthony@thizlinux.com>
* builds/unix/configure.ac, builds/unix/unix-cc.in (LINK_LIBRARY),
builds/unix/unix-def.in (SYSTEM_ZLIB): Small fix to configure
sub-system on Unix to allow other programs to correctly link with
zlib when needed.
2002-12-19 David Turner <david@freetype.org>
* include/freetype/internal/sfnt.h (SFNT_Load_Table_Func): New
function pointer.
* include/freetype/tttables.h (FT_Load_Sfnt_Table): New function.
* src/base/ftobjs.c: Implement it.
* src/sfnt/sfdriver.c (sfnt_get_interface): Handle `load_sfnt'
module request.
2002-12-17 David Turner <david@freetype.org>
* src/base/ftobjs.c (find_unicode_charmap): Added some comments to
better explain what's happening there.
(open_face): Included Graham Asher's fix to prevent faces without
Unicode charmaps from loading.
* src/winfonts/winfnt.c: Included George Williams's fix to support
version 2 fonts correctly.
(winfnt_header_fields): Updated.
(fnt_font_load): Handle version 2 fonts.
(FNT_Load_Glyph): Updated.
2002-12-16 David Turner <david@freetype.org>
* docs/VERSION.DLL: Updating document to better explain the
differences between the three version numbers being used on Unix, as
well as providing an autoconf fragment provided by Lars Clausen.
* src/smooth/ftgrays.c (gray_render_conic): Fixed small bug that
prevented bezier arcs with negative vertical coordinates to be
rendered appropriately.
2002-12-02 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
* src/base/ftobjs.c: Modified the logic to get Unicode charmaps.
Now it loads UCS-4 charmaps when there is one.
(find_unicode_charmap): New function.
(open_face): Refer to the above one.
(FT_Select_Charmap): Idem.
2002-11-29 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
* include/freetype/ftgzip.h: Correct the name of the controlling
macro (was __FTXF86_H__ ...).
2002-11-27 Vincent Caron <v.caron@zerodeux.net>
* builds/unix/unix-def.in, builds/unix/freetype-config.in,
builds/unix/configure.ac, src/gzip/rules.mk, src/gzip/ftgzip.c
[FT_CONFIG_OPTION_SYSTEM_ZLIB]: Adding support for system zlib
installations if available on the target platform (Unix only).
2002-11-23 David Turner <david@freetype.org>
* src/cff/cffload.c (cff_charset_load, cff_encoding_load): Modified
charset loader to accept pre-defined charsets, even when the font
contains fewer glyphs. Also enforced more checks to ensure that we
never overflow the character codes array in the encoding.
2002-11-22 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
* include/freetype/ttnameid.h: Updated to latest OpenType
specification.
2002-11-18 David Turner <david@freetype.org>
* Version 2.1.3 released.
=========================
2002-11-07 David Turner <david@freetype.org>
* src/cache/ftcsbit.c (ftc_sbit_node_load): Fixed a small bug that
caused problems with embedded bitmaps.
* src/otlayout/otlayout.h, src/otlyaout/otlconf.h,
src/otlayout/otlgsub.c, src/otlayout/otlgsub.h,
src/otlayout/otlparse.c, src/otlayout/otlparse.h,
src/otlayout/otlutils.h: Updating the OpenType Layout code, adding
support fot the first GSUB lookups. Nothing that really compiles
for now though.
* src/autohint/ahhint.c (ah_align_serif_edge): Disabled serif stem
width quantization. It produces slightly better shapes though this
is not distinguishable with many fonts.
Remove other dead code.
* src/Jamfile, src/*/Jamfile: Simplified.
Use $(FT2_SRC_DIR).
2002-11-06 David Turner <david@freetype.org>
* include/freetype/freetype.h (FT_LOAD_TARGET_LIGHT): New macro.
(FT_LOAD_TARGET, FT_LOAD_TARGET_MODE): Use `& 15' instead of `& 7'.
2002-11-05 David Turner <david@freetype.org>
* include/freetype/config/ftoption.h, src/gzip/ftgzip.c: Added
support for the FT_CONFIG_OPTION_SYSTEM_ZLIB option, used to specify
the use of system-wide zlib.
Note that this macro, as well as
FT_CONFIG_OPTION_BYTECODE_INTERPRETER, is not #undef-ed anymore.
This allows the build system to define them depending on the
configuration (typically by adding -D flags at compile time).
* src/sfnt/ttcmap0.c (tt_face_build_cmaps): Removed compiler
warnings in optimized mode relative to the "volatile" local
variables. This was not a compiler bug after all, but the fact that
a pointer to a volatile variable is not the same as a volatile
pointer to a variable :-)
The fix was to change
`volatile FT_Byte* p'
into
`FT_Byte* volatile p'.
* src/pfr/pfrload.c (pfr_phy_font_load), src/pfr/pfrdrivr.c
(pfr_get_metrics), src/gzip/inftrees.c: Removed compiler warnings in
optimized modes.
* src/gzip/*.[hc]: Modified our zlib copy in order to prevent
exporting any zlib function names outside of the component. This
prevents linking problems on some platforms, when applications want
to link FreeType _and_ zlib together.
2002-11-05 Juliusz <jch@pps.jussieu.fr>
* src/psaux/psobjs.c (ps_table_add): Modified increment loop in
order to implement exponential behaviour.
2002-11-01 David Turner <david@freetype.org>
Added PFR-specific public API. Fixed the kerning retrievel routine
(it returned invalid values when the outline and metrics resolution
differ).
* include/freetype/ftpfr.h, include/freetype/internal/pfr.h: New
files.
* include/freetype/internal/internal.h (FT_INTERNAL_PFR_H): New
macro for pfr.h.
* src/base/ftpfr.c: New file.
* src/base/Jamfile, src/base/descrip.mms: Updated.
* src/pfr/pfrdrivr.c: Include FT_INTERNAL_PFR_H.
(pfr_get_kerning, pfr_get_advance, pfr_get_metrics): New functions.
(pfr_service_rec): New format interface.
(pfr_driver_class): Use `pfr_service_rec'.
Replace `pfr_face_get_kerning' with `pfr_get_kerning'.
* src/pfr/pfrobjs.c: Remove dead code.
* src/base/ftobjs.c (ft_glyphslot_clear): Small internal fix to
better support bitmap-based font formats.
* src/base/ftsynth.c (FT_GlyphSlot_Embolden): Fix handling of
`scale'.
Fix arguments to `FT_Vector_From_Polar'.
2002-10-31 David Turner <david@freetype.org>
Add support for automatic handling of gzip-compressed PCF files.
* src/gzip/*: New files, taken from the zlib package (except
ftgzip.c).
* include/freetype/ftgzip.h, src/gzip/ftgzip.c: New files.
* include/freetype/config/ftheader.h (FT_GZIP_H): New macro for
`ftgzip.h'.
* src/pcf/pcfdriver.c: Include FT_GZIP_H and FT_ERRORS_H.
(PCF_Face_Init): If normal open fails, try to open gzip stream.
(PCF_Face_Done): Close gzip stream.
* include/freetype/internal/pcftypes.h (PCF_Public_FaceRec),
src/pcf/pcf.h (PCF_FaceRec): Add `gzip_stream' and `gzip_source'.
* include/freetype/config/ftoption.h (FT_CONFIG_OPTION_USE_ZLIB):
New macro.
(T1_CONFIG_OPTION_DISABLE_HINTER, FT_CONFIG_OPTION_USE_CMAPS
FT_CONFIG_OPTION_NO_CONVENIENCE_FUNCS,
FT_CONFIG_OPTION_ALTERNATE_GLYPH_FORMATS): Removed.
(FT_EXPORT, FT_EXPORT_DEF, FT_DEBUG_LEVEL_ERROR,
FT_DEBUG_LEVEL_TRACE, FT_DEBUG_MEMORY): Comment out definitions so
that platform specific configuration file can override.
* include/freetype/internal/ftstream.h: Include FT_SYSTEM_H.
2002-10-30 David Turner <david@freetype.org>
* FreeType 2.1.3rc3 released.
2002-10-25 David Turner <david@freetype.org>
* include/freetype/ftcache.h (FT_POINTER_TO_ULONG): New macro.
(FTC_FACE_ID_HASH): Rewritten, using FT_POINTER_TO_ULONG.
2002-10-22 Giuseppe Ghibò <ghibo@mandrakesoft.com>
* include/freetype/freetype.h (FT_Encoding): Fix entry for latin-2.
2002-10-07 Werner Lemberg <wl@gnu.org>
* 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 <david@freetype.org>
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
FT_LOAD_NO_RECURSE is set.
Load embedded bitmaps only if FT_LOAD_NO_BITMAP isn't set.
* src/tools/docmaker/content.py, src/tools/docmaker/sources.py,
src/tools/docmaker/tohtml.py: 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 <wl@gnu.org>
* 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
last_ey.
Update all casts.
(gray_render_line): Fix casts for `p' and `first'.
2002-10-02 Detlef Würkner <TetiSoft@apg.lahn.de>
* 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 <wl@gnu.org>
* 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 <porthos.domroese@harz.de>
* 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
`code'.
(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.
s/FT_Pos/TPos/.
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Add casts.
2002-09-26 Werner Lemberg <wl@gnu.org>
* 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
`module_size'.
* include/freetype/ftrender.h (FT_Glyph_Class_): Use `FT_Long' for
`glyph_size'.
* src/base/ftobjs.c (FT_Render_Glyph): Change second parameter to
`FT_Render_Mode'.
(FT_Render_Glyph_Internal): Change third parameter to
`FT_Render_Mode'.
* 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
`FT_Render_Mode'.
* 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 <porthos.domroese@harz.de>
* 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
`exp'.
* 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
`cid_get_offset'.
* 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
clazz->init_face.
* src/raster/ftraster.c (Set_High_Precision): Use `1' instead of
`1L'.
(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
constant.
2002-09-26 Detlef Würkner <TetiSoft@apg.lahn.de>
* builds/amiga/include/freetype/config/ftmodule.h: Updated.
2002-09-25 David Turner <david@freetype.org>
* src/autohint/ahtypes.h (AH_HINT_METRICS): Disabling metrics
hinting in the auto-hinter. This produces much better anti-aliased
text.
* docs/CHANGES: Updating the changes documentation.
2002-09-25 Anthony Fok <anthony@thizlinux.com>
* 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 <porthos.domroese@harz.de>
* src/truetype/ttdriver.c (Load_Glyph): Fourth parameter must be
FT_Int32.
* src/truetype/ttgload.c, src/truetype/ttgload.h (TT_Load_Glyph):
Ditto.
2002-09-19 Wolfgang Domröse <porthos.domroese@harz.de>
More 16bit fixes.
* src/autohint/ahglobal.c (sort_values): Use FT_Pos for `swap'.
(ah_hinter_compute_widths): Use FT_Pos for `dist'.
Use AH_MAX_WIDTHS.
* 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
FT_Pos.
(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 <wl@gnu.org>
* builds/unix/config.guess, builds/unix/config.sub: Updated to
recent versions.
2002-09-18 David Turner <david@freetype.org>
* src/base/ftobjs.c (FT_Library_Version): Bugfix.
* FreeType 2.1.3rc2 (release candidate 2) is released!
2002-09-17 David Turner <david@freetype.org>
* 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/tohtml.py: Updating the HTML formatter in the
DocMaker tool.
* src/tools/docmaker.py: Removed.
2002-09-17 Werner Lemberg <wl@gnu.org>
More 16bit fixes.
* src/psaux/psobjs.c (reallocate_t1_table): Use FT_Long for
second parameter.
2002-09-16 Werner Lemberg <wl@gnu.org>
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
`private_len'.
* 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 <wl@gnu.org>
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_BEGIN_HEADER, FT_END_HEADER.
(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 <wl@gnu.org>
* 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 <wl@gnu.org>
* builds/unix/configure.ac (version_info): Set to 9:2:3.
* builds/unix/configure: Regenerated.
* docs/VERSION.DLL: Updated.
2002-09-09 David Turner <david@freetype.org>
* 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 <owen@redhat.com>
* src/pcf/pcfdriver.c (PCF_Glyph_Load): Fixing incorrect computation
of bitmap metrics.
2002-09-08 David Turner <david@freetype.org>
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
structure.
Updated all users.
(FTC_ImageDesc): Removed.
(FTC_ImageCache_Lookup): Second parameter is now of type
`FTC_ImageType'.
Updated all users.
(FTC_IMAGE_DESC_COMPARE): Updated and renamed to...
(FTC_IMAGE_TYPE_COMPARE): This.
(FTC_IMAGE_DESC_HASH): Updated and renamed to...
(FTC_IMAGE_TYPE_HASH): This.
* 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
`FTC_ImageType'.
Updated all users.
* src/cache/ftcimage.c (FTC_ImageQueryRec, FTC_ImageFamilyRec):
Updated.
(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):
Updated.
(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
`do_*_snapping'.
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
`do_*_snapping'.
Update all users (with negation).
* src/pshinter/pshalgo3.c (psh3_dimension_quantize_len): New
function.
(psh3_hint_align): Use it.
Improve hinting code.
[STRONGER]: Removed.
(STRONGER): Removed.
* include/freetype/freetype.h (FT_Set_Hint_Flags, FT_HINT_*):
Removed.
2002-09-05 Werner Lemberg <wl@gnu.org>
* 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 <david@freetype.org>
* 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/unix-def.in (datadir): Initialize it (thanks to
Anthony Fok).
2002-08-29 David Turner <david@freetype.org>
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 <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_.
* 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 ...
(FT_Renderer_{RenderFunc,TransformFunc,GetCBoxFunc,SeteModeFunc}):
This.
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
to...
(cid_parser_to_{int,fixed,coord_array,fixed_array,token,token_array}):
This.
(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
factors.
(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
classes.
* 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 <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): 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/freetype.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...