Edit

kc3-lang/freetype/ChangeLog

Branch :

  • Show log

    Commit

  • Author : Werner Lemberg
    Date : 2004-02-23 18:22:32
    Hash : 4cb09724
    Message : * src/pshinter/pshalgo.c (PSH_STRONG_THRESHOLD): Changed to hold the accepted shift for strong points in fractional pixels (which is a heuristic value). (psh_glyph_find_strong_points): Compute threshold for psh_hint_table_find_strong_points. (psh_hint_table_find_strong_point): Add parameter to pass threshold.

  • ChangeLog
  • 2004-02-21  Werner Lemberg  <wl@gnu.org>
    
    	* src/pshinter/pshalgo.c (PSH_STRONG_THRESHOLD): Changed to hold
    	the accepted shift for strong points in fractional pixels (which
    	is a heuristic value).
    	(psh_glyph_find_strong_points): Compute threshold for
    	psh_hint_table_find_strong_points.
    	(psh_hint_table_find_strong_point): Add parameter to pass threshold.
    
    2004-02-20  Werner Lemberg  <wl@gnu.org>
    
    	* src/pshinter/pshrec.c (ps_mask_table_set_bits): Don't call
    	ps_mask_table_alloc but ps_mask_table_last.
    	(ps_hints_t2mask): Use correct position and number for vertical
    	and horizontal hinter mask bits.
    
    	* docs/CHANGES: Updated.
    
    2004-02-19  Werner Lemberg  <wl@gnu.org>
    
    	* src/base/ftstroke.c (FT_Glyph_StrokeBorder): Fix enum handling.
    	* src/cff/cffdrivr.c (cff_get_cmap_info): Remove compiler warning.
    
    2004-02-18  Werner Lemberg  <wl@gnu.org>
    
    	* include/freetype/freetype.h: Document FT_LOAD_TARGET_XXX properly.
    
    	* src/base/ftglyph.c (ft_bitmap_glyph_class,
    	ft_outline_glyph_class): Tag with FT_CALLBACK_TABLE_DEF.
    
    	* src/smooth/ftsmooth.c (ft_smooth_render): Handle
    	FT_RENDER_MODE_LIGHT.
    
    2004-02-17  Werner Lemberg  <wl@gnu.org>
    
    	Fix callback functions in cache module.
    
    	* src/cache/ftccback.h: New file for callback declarations.
    
    	* src/cache/ftcbasic.c (ftc_basic_family_compare,
    	ftc_basic_family_init, ftc_basic_family_get_count,
    	ftc_basic_family_load_bitmap, ftc_basic_family_load_glyph,
    	ftc_basic_gnode_compare_faceid): Use FT_CALLBACK_DEF.
    	(ftc_basic_image_family_class, ftc_basic_image_cache_class,
    	ftc_basic_sbit_family_class, ftc_basic_sbit_cache_class):
    	Use FT_CALLBACK_TABLE_DEF and local wrapper functions.
    
    	* src/cache/ftccache.c: Include ftccback.h.
    	(ftc_cache_init, ftc_cache_done): New wrapper functions which use
    	FT_LOCAL_DEF.
    
    	* src/cache/ftccmap.c: Include ftccback.h.
    	(ftc_cmap_cache_class): Use local wrapper functions.
    
    	* src/cache/ftcglyph.c: Include ftccback.h.
    	(ftc_gnode_compare, ftc_gcache_init, ftc_gcache_done): New wrapper
    	functions which use FT_LOCAL_DEF.
    
    	* src/cache/ftcimage.c: Include ftccback.h.
    	(ftc_inode_free, ftc_inode_new, ftc_inode_weight): New wrapper
    	functions which use FT_LOCAL_DEF.
    
    	* src/cache/ftcmanag.c (ftc_size_list_class, ftc_face_list_class):
    	Use FT_CALLBACK_TABLE_DEF.
    
    	* src/cache;/ftcsbits.c: Include ftccback.h.
    	(ftc_snode_free, ftc_snode_new, ftc_snode_weight,
    	ftc_snode_compare): New wrapper functions which use FT_LOCAL_DEF.
    
    	* src/cache/rules.mk (CACHE_DRV_H): Add ftccback.h.
    
    2004-02-17  Masatake YAMATO  <jet@gyve.org>
    
    	* include/freetype/ftmac.h (FT_GetFile_From_Mac_Name): Fix a typo
    	(FT_EXPORT_DEF -> FT_EXPORT).
    
    	* include/freetype/ftxf86.h (FT_Get_X11_Font_Format): Ditto.
    
    2004-02-15  Werner Lemberg  <wl@gnu.org>
    
    	* src/base/ftobjs.c (FT_Set_Char_Size): Fix typo.
    
    2004-02-14  Masatake YAMATO  <jet@gyve.org>
    
    	* builds/unix/ftsystem.c: Include errno.h.
    	(ft_close_stream): Renamed to...
    	(ft_close_stream_by_munmap): This.
    	(ft_close_stream_by_free): New function.
    	(FT_Stream_Open): Use fallback method if mmap fails.
    	Use proper function for closing the stream.
    
    2004-02-14  Werner Lemberg  <wl@gnu.org>
    
    	* src/type1/t1load.c (parse_dict): Initialize `start_binary'.
    
    2004-02-13  Robert Etheridge  <roberte@stcc.cc.tx.us>
    
    	* src/type42/t42objs.c (T42_Face_Init), src/type1/t1objs.c
    	(T1_Face_Init), src/cid/cidobjs.c (cid_face_init): Fix computation
    	of underline_position and underline_thickness.
    
    2004-02-12  Werner Lemberg  <wl@gnu.org>
    
    	* src/base/ftobjs.c (FT_Set_Char_Size): Return immediately if
    	ppem values don't change.  Suggested by Graham Asher.
    
    2004-02-11  Werner Lemberg  <wl@gnu.org>
    
    	* src/cid/cidload.c (cid_face_open): Always allocate
    	face->cid_stream so that we can deallocate it safely.
    
    2004-02-10  Werner Lemberg  <wl@gnu.org>
    
    	Make the PS parser more tolerant w.r.t. non-standard font data.  In
    	general, an error is only reported in case of a syntax error; a
    	wrong type is now simply ignored (if possible).  To be independent
    	of the order of various MM-specific keywords, the parse_shared_dict
    	routine has been removed -- the PS parser is now capable to skip
    	this data.  It no longer fails on parsing e.g.
    
    	  dup /WeightVector exch def
    
    	Since the token following /WeightVector isn't `[' (starting an
    	array) it is simply ignored.
    
    	* include/freetype/fterrdef.h: Define `FT_Err_Ignore' (0xA2) as a
    	new internal error value.
    
    	* src/type1/t1load.c (parse_blend_axis_types,
    	parse_blend_design_positions, parse_blend_design_map): Return
    	T1_Err_Ignore if no proper array is following the keyword.
    	(parse_weight_vector): Use T1_ToTokenArray, initializing `blend'
    	structure, if necessary.
    	Return T1_Err_Ignore if no proper array is following the keyword.
    	(parse_shared_dict): Removed.
    	(parse_encoding): Set parser->root.error to return T1_Err_Ignore
    	if no result can be obtained.
    	Check for errors before accessing `elements' array.
    	(t1_keywords): Remove /shareddict.
    	(parse_dict): Reset error if t1_load_keyword returns T1_Err_Ignore.
    	Set keyword_flag only in case of success.
    	Check error code if skipping an unrecognized token.
    	(T1_Open_Face) [!T1_CONFIG_OPTION_NO_MM_SUPPORT]: Call T1_Done_Blend
    	if blend commands haven't set up a proper MM font.
    
    	* src/psaux/psobjs.c (ps_parser_load_field_table): Remove special
    	code for synthetic fonts.
    	Return PSaux_Err_Ignore if no proper value has been found.
    
    2004-02-09  Werner Lemberg  <wl@gnu.org>
    
    	* src/cff/cffgload.c (cff_decoder_parse_charstrings)
    	<cff_op_endchar>: Preserve glyph width before calling
    	cff_operator_seac.
    
    2004-02-09  Martin Muskens  <mmuskens@aurelon.com>
    
    	* src/cff/cffgload.c (cff_decoder_parse_charstrings): Handle special
    	first argument for `hintmask' and `cntrmask' operators also.
    
    2004-02-08  Werner Lemberg  <wl@gnu.org>
    
    	* builds/unix/configure.in: Call AC_SUBST for `enable_shared',
    	`hardcode_libdir_flag_spec', and `wl'.
    	* builds/unix/configure: Regenerated.
    
    	* builds/unix/freetype-config.in: Make --prefix and --exec-prefix
    	actually work.
    	Report a proper --rpath (or -R) value for --libs argument if a
    	shared library has been built.
    
    	* docs/CHANGES: Updated.
    
    2004-02-07  Keith Packard  <keithp@keithp.com>
    
    	* src/bdf/bdfdrivr.c (BDF_Face_Init, BDF_Set_Pixel_Size): Fix
    	computation of various vertical and horizontal metric values.
    
    	* src/pcfdrivr.c (PCF_Set_Pixel_Size), src/pcfread (pcf_load_font):
    	Ditto.
    
    2004-02-07  Werner Lemberg  <wl@gnu.org>
    
    	* builds/win32/visualc/index.html,
    	builds/win32/visualc/freetype.dsp,
    	builds/win32/visualc/freetype.dsw, docs/CHANGES: Updated.
    
    2004-02-07  Vitaliy Pasternak  <v_a_pasternak@mail.ru>
    
    	* builds/win32/visualc/freetype.sln,
    	builds/win32/visualc/freetype.vcproj: New files for VS.NET 2003.
    
    2004-02-03  Werner Lemberg  <wl@gnu.org>
    
    	* include/freetype/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP):
    	Initialize `node'.
    	* src/type1/t1load.c (parse_dict): Initialize `have_integer'.
    
    2004-02-02  Werner Lemberg  <wl@gnu.org>
    
    	* src/type1/t1load.c (parse_dict): Handle `RD' and `-|' commands
    	outside of /Subrs or /CharStrings.  This can happen if there is
    	additional code manipulating those two arrays so that FreeType
    	doesn't recognize them properly.
    	(T1_Open_Face): Improve an error message.
    
    2004-02-01  Werner Lemberg  <wl@gnu.org>
    
    	* src/type1/t1load.c (parse_charstrings): Exit immediately if
    	there are no elements in /CharStrings.  This is needed for fonts
    	like Optima-Oblique which not only define /CharStrings but access it
    	also.
    
    2004-02-01  David Turner  <david@freetype.org>
    
    	* src/sfnt/Jamfile: Removing `ttcmap' from the list of sources.
    
    	* include/freetype/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP)
    	<FTC_INLINE>: Provide macro version which doesn't use inline code.
    	* include/freetype/cache/ftcglyph.h (FTC_GCACHE_LOOKUP_CMP)
    	<FTC_INLINE>: Ditto.
    	Use FTC_MRULIST_LOOKUP_CMP.
    	* include/freetype/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): New
    	macro.
    	(FTC_MRULIST_LOOKUP): Use it.
    
    	* src/cache/Jamfile (_sources), src/cache/descrip.mms: Updated.
    	* src/cache/ftcbasic.c: Fix compiler warnings.
    	* src/cache/ftcmanag.c (FTC_Manager_LookupSize,
    	FTC_Manager_LookupFace) <FTC_INLINE>: Use FTC_MRULIST_LOOKUP_CMP.
    	* src/cache/ftcmru.c (FTC_MruList_Find): Fix a bug (found after
    	heavy testing).
    
    	* Jamfile: Updating `refdoc' target, and adding `autohint' to the
    	list of modules to build.  Both the autohinter and autofitter will
    	be built by default.  But which one will be used is determined by
    	the content of `ftmodule.h'.
    
    	* src/autofit/*: Many updates, but the code is still buggy...
    
    2004-01-31  Werner Lemberg  <wl@gnu.org>
    
    	* src/cff/cffgload.c (cff_operator_seac): Fix magnitude of
    	accent offset.
    	Update code similarly to the seac support for Type 1 fonts.
    	(cff_decoder_parse_charstrings) <cff_op_endchar>: Fix magnitude
    	of accent offset.
    	Don't hint glyphs twice if seac is emulated.
    	<cff_op_flex>: Assign correct point tags.
    	* docs/CHANGES: Updated.
    
    2004-01-30  Werner Lemberg  <wl@gnu.org>
    
    	* src/type1/t1parse.c (T1_Get_Private_Dict): Use FT_MEM_MOVE, not
    	FT_MEM_COPY, for copying the private dict.
    
    	* src/type1/t1load.c (parse_subrs): Assign number of subrs only
    	in first run.
    	(parse_charstrings): Parse /CharStrings in second run without
    	assigning values.
    	(parse_dict): Skip all /CharStrings arrays but the first.  We need
    	this for non-standard fonts like `Optima' which have different
    	outlines depending on the resolution.  Note that there is no
    	guarantee that we get fitting /Subrs and /CharStrings arrays; this
    	can only be done by a real PS interpreter.
    
    2004-01-29  Antoine Leca  <Antoine-Freetype@Leca-Marti.org>
    
    	* builds/win32/visualc/index.html: New file, giving detailed
    	explanations about forcing CR+LF line endings for the VC++ project
    	files.
    
    2004-01-22  Garrick Meeker  <garrick@digitalanarchy.com>
    
    	* src/cff/cffload.c (cff_subfont_load): Initialize `dict'.
    
    2004-01-22  Werner Lemberg  <wl@gnu.org>
    
    	Add support for the hexadicimal representation of binary data
    	started with `StartData' in CID-keyed Type 1 fonts.
    
    	* include/freetype/internal/t1types.h (CID_FaceRec): Add new
    	members `binary_data' and `cid_stream'.
    
    	* src/cid/cidload.c (cid_read_subrs): Use `face->cid_stream'.
    	(cid_hex_to_binary): New auxiliary function.
    	(cid_face_open): Add new argument `face_index' to return quickly
    	if less than zero.  Updated all callers.
    	Call `cid_hex_to_binary', then open and assign memory stream to
    	`face->cid_stream' if `parser->binary_length' is non-zero.
    	* src/cid/cidload.h: Updated.
    
    	* src/cid/cidobjs.c (cid_face_done): Free `binary_data' and
    	`cid_stream'.
    
    	* src/cid/cidparse.c (cid_parser_new): Check arguments to
    	`StartData' and set parser->binary_length accordingly.
    	* src/cid/cidparse.h (CID_Parser): New member `binary_length'.
    
    	* src/cid/cidgload.c (cid_load_glyph): Use `face->cid_stream'.
    
    	* docs/CHANGES: Updated.
    
    2004-01-21  Werner Lemberg  <wl@gnu.org>
    
    	include/freetype/config/ftstdlib.h (ft_atoi): Replaced with...
    	(ft_atol): This.
    	* src/base/ftdbgmem.c: s/atol/ft_atol/.
    	* src/type42/t42drivr.c: s/ft_atoi/ft_atol/.
    
    2004-01-20  Masatake YAMATO  <jet@gyve.org>
    
    	* include/freetype/ftcache.h: Delete duplicated definition of
    	FTC_FaceID.
    
    	* src/cff/cffdrivr.c (cff_get_cmap_info): Call sfnt module's TT CMap
    	Info service function if the cmap comes from sfnt.  Return 0 if the
    	cmap is sythesized in cff module.
    
    2004-01-20  David Turner  <david@freetype.org>
    
    	* src/cache/ftcmanag.c (ftc_size_node_compare): Call
    	FT_Activate_Size.
    
    2004-01-20  Werner Lemberg  <wl@gnu.org>
    
    	* src/type1/t1parse.c (T1_Get_Private_Dict): Skip exactly one
    	CR, LF, or CR/LF after `eexec'.
    
    2004-01-18  David Turner  <david@freetype.org>
    
    	* src/sfnt/ttsbit.c (tt_face_set_sbit_strike): Remove compiler
    	warning.
    
    	* src/tools/docmaker/*: Updating beautifier tool.
    
    2004-01-15  David Turner  <david@freetype.org>
    
    	* src/base/ftoutln.c (ft_orientation_extremum_compute): Fix
    	infinite loop bug.
    
    	* include/freetype/ftstroke.h: Include FT_GLYPH_H.
    	(FT_Stroker_Rewind, FT_Glyph_Stroke, FT_Glyph_StrokeBorder): New
    	declarations.
    
    	* src/base/ftstroke.c: Include FT_INTERNAL_OBJECTS_H.
    	(FT_Outline_GetOutsideBorder): Inverse result.
    	(FT_Stroker_Rewind, FT_Glyph_Stroke, FT_GlyphStrokeBorder): New
    	functions.
    	(FT_Stroker_EndSubPath): Close path if needed.
    	(FT_Stroker_Set, FT_Stroker_ParseOutline): Use FT_Stroker_Rewind.
    
    	* include/freetype/cache/ftcmanag.h (FTC_ScalerRec,
    	FTC_Manager_LookupSize): Moved to...
    	* include/freetype/ftcache.h (FTC_ScalerRec,
    	FTC_Manager_LookupSize): Here.
    
    	* src/tools/docmaker/docbeauty.py: New file to beautify the
    	documentation comments (e.g., to convert them to single block border
    	mode).
    	* src/tools/docmaker/docmaker.py (file_exists, make_file_list):
    	Moved to...
    	* src/tools/docmaker/utils.py (file_exists, make_file_list): Here.
    
    2004-01-14  David Turner  <david@freetype.org>
    
    	* include/freetype/internal/ftmemory.h (FT_ARRAY_COPY,
    	FT_ARRAY_MOVE): New macros to make copying arrays easier.
    	Updated all relevant code to use them.
    
    2004-01-14  Werner Lemberg  <wl@gnu.org>
    
    	* src/cff/cffload.c (cff_font_load): Load charstrings_index earlier.
    	Use number of charstrings as argument to CFF_Load_FD_Select (as
    	documented in the CFF specs).
    
    2004-01-13  Graham Asher  <graham.asher@btinternet.com>
    
    	* src/pshinter/pshalgo.c (psh_glyph_init): Move assignment of
    	`glyph->memory' up to free arrays properly in case of failure.
    
    2004-01-10  Masatake YAMATO  <jet@gyve.org>
    
    	Make `FT_Get_CMap_Language_ID' work with CFF.  Bug reported by
    	Steve Hartwell <shspamsink@comcast.net>.
    
    	* src/cff/cffdrivr.c: Include FT_SERVICE_TT_CMAP_H.
    	(cff_services): Added an entry for FT_SERVICE_ID_TT_CMAP.
    	(cff_get_cmap_info): New function.
    	(cff_service_get_cmap_info) New entry for cff_services.
    
    	* src/sfnt/ttcmap0.c: Exit loop after a format match has been found.
    	Suggested by Steve Hartwell <shspamsink@comcast.net>.
    
    2004-01-03  Masatake YAMATO  <jet@gyve.org>
    
    	* src/base/ftobjs.c (destroy_charmaps): New function.
    	(destroy_face, open_face): Use `destroy_charmaps'.
    
    2004-01-01  Werner Lemberg  <wl@gnu.org>
    
    	* docs/CHANGES: Updated.
    
    2004-01-01  Michael Jansson  <mjan@em2-solutions.com>
    
    	* src/winfonts/winfnt.c (FNT_Size_Set_Pixels): Fix sign of
    	size->metrics.descender.
    
    2003-12-31  Wolfgang Domr