📄 changelog
字号:
* freetype2/include/freetype/internal/t1types.h (T1_FaceRec): Add field `buildchar'. * freetype2/src/cid/cidgload.c (cid_face_compute_max_advance): Call finisher for T1_Decoder. (cid_slot_load_glyph): Do not ignore failure when initializing the T1_Decoder. * freetype2/src/psaux/t1decode.c (t1_decoder_parse_charstrings): Updated. (t1_decoder_init): Remove initialization of fields `buildchar' and `len_buildchar'. (t1_decoder_done): Remove deallocation of field `buildchar'. * freetype/src/type1/t1gload.c (T1_Compute_Max_Advance): Initialize T1_Decoder's `buildchar' and `len_buildchar'; call finisher for T1_Decoder. (T1_Load_Glyph): Initialize T1_Decoder's `buildchar' and `len_buildchar'; make sure to call finisher for T1_Decoder even in case of error. * freetype2/src/type1/t1load.c (T1_Open_Face): Allocate new field `buildchar' of T1_FaceRec. * freetype2/src/type1/t1objs.c (T1_Face_Done): Free new field `buildchar' of T1_FaceRec.2006-07-14 Jens Claudius <jens.claudius@yahoo.com> * freetype2/include/freetype/internal/psaux.h: New macros IS_PS_NEWLINE, IS_PS_SPACE, IS_PS_SPECIAL, IS_PS_DELIM, IS_PS_DIGIT, IS_PS_XDIGIT, and IS_PS_BASE85 (from freetype2/src/psaux/psconv.h). (T1_FieldLocation): Add T1_FIELD_LOCATION_LOADER, T1_FIELD_LOCATION_FACE, and T1_FIELD_LOCATION_BLEND. (T1_DecoderRec): New fields `buildchar' and `face'. (IS_PS_TOKEN): New macro. * freetype2/include/freetype/internal/t1types.h (T1_FaceRec): New fields `ndv_idx', `cdv_idx', and `len_buildchar'. * freetype2/include/freetype/t1tables.h (PS_BlendRec): New fields `default_design_vector' and `num_default_design_vector'. * freetype2/src/psaux/psconv.h: Move macros IS_PS_NEWLINE, IS_PS_SPACE, IS_PS_SPECIAL, IS_PS_DELIM, IS_PS_DIGIT, IS_PS_XDIGIT, and IS_PS_BASE85 to freetype2/include/freetype/internal/psaux.h. * freetype2/src/psaux/psobjs.c (ps_parser_to_token_array): Allow `token' argument to be NULL if we want only to count the number of tokens. (ps_tocoordarray): Allow `coords' argument to be NULL if we just want to skip the array. (ps_tofixedarray): Allow `values' argument to be NULL if we just want to skip the array. * freetype2/src/psaux/t1decode.c (t1_decoder_parse_charstrings): Add support for (partially commented out) othersubrs 19-25, 27, and 28. (t1_decoder_init): Initialize new fields `face' and `buildchar'. (t1_decoder_done): Release new field `buildchar'. * freetype2/src/type1/t1load.c (parse_buildchar, parse_private): New functions. (t1_keywords): Register them. (t1_allocate_blend): Updated. (t1_load_keyword): Handle field types T1_FIELD_LOCATION_LOADER, T1_FIELD_LOCATION_FACE and T1_FIELD_LOCATION_BLEND. (parse_dict): Remove `keyword_flags' argument. Use new macro IS_PS_TOKEN. Changed function so that later PostScript definitions override earlier ones. (t1_init_loader): Initialize new field `keywords_encountered'. (T1_Open_Face): Initialize new fields `ndv_idx', `cdv_idx', and `len_buildchar'. Remove `keywords_flags'. * freetype2/src/type1/t1load.h (T1_LoaderRect): New field `keywords_encountered'. (T1_PRIVATE, T1_FONTDIR_AFTER_PRIVATE): New macros. * freetype2/src/type1/t1tokens.h [!T1_CONFIG_OPTION_NO_MM_SUPPORT]: New entries for parsing /NDV, /CDV, and /DesignVector.2006-07-07 Werner Lemberg <wl@gnu.org> Add many checks to protect against malformed PCF files. * src/pcf/pcfdrivr.c (PCF_Face_Done): Protect against NULL pointers. (PCF_Face_Init): Add calls to PCF_Face_Done in case of errors. * src/pcf/pcfread.c (pcf_read_TOC): Protect against malformed table data and check that tables don't overlap (using a simple bubblesort). (PCF_METRIC_SIZE, PCF_COMPRESSED_METRIC_SIZE, PCF_PROPERTY_SIZE): New macros which give the size of data structures in the data stream. (pcf_get_properties): Use rough estimates to get array size limits. Assign `face->nprops' and `face->properties' earlier so that a call to PCF_Face_Done can do the clean-up in case of error. Protect against invalid string offsets. (pcf_get_metrics): Clean up code. Adjust tracing message levels. Use rough estimate to get array size limit. (pcf_get_bitmaps): Clean up code. Adjust tracing message levels. Use rough estimates to get offset limits. (pcf_get_encodings): Adjust tracing message level. (pcf_get_accel): Clean up code.2006-06-26 Werner Lemberg <wl@gnu.org> * src/bdf/bdfdrivr.c (BDF_Face_Init): Handle fonts correctly which don't have a POINT_SIZE property. This fixes Savannah bug #16914.2006-06-26 Jens Claudius <jens.claudius@yahoo.com> * src/psaux/t1decode.c (T1_Operator, t1_args_count): Add opcode 15. (t1_decoder_parse_charstrings): Operator with opcode 15 pops its two arguments. Handle the case where the pops of an othersubr may be part of a subroutine. Handle unknown othersubrs gracefully: count their operands and let the following pop operators push the operands as the results onto the Type1 stack. Improve handling of setcurrentpoint opcode.2006-06-25 Jens Claudius <jens.claudius@yahoo.com> The Type 1 parser now skips over top-level procedures as required for a `Simplified Parser'. This makes the parser more robust as it doesn't poke around in PostScript code. Additionally, it makes the FontDirectory hackery in src/type1/t1load.c unnecessary. * src/psaux/psobjs.c (IS_OCTAL_DIGIT): New macro. (skip_literal_string): Add FT_Error as return value. Handle escapes better. (skip_string): Add FT_Error as return value. Don't set `parser->error' but return error code directly. (skip_procedure): New function. (ps_parser_skip_PS_token): Handle procedures. Update code. (ps_parser_to_token): Update code. (ps_parser_load_field_table): Handle bbox entries also. * src/type1/t1load.c (parse_dict): Remove FontDirectory hackery. Add commented-out code for synthetic fonts.2006-06-24 Eugeniy Meshcheryakov <eugen@univ.kiev.ua> Fix two hinting bugs as reported in http://lists.nongnu.org/archive/html/freetype-devel/2006-06/msg00057.html. * include/freetype/internal/tttypes.h (TT_GlyphZoneRec): Add `first_point' member. * src/truetype/ttgload.c (tt_prepare_zone): Initialize `first_point'. (TT_Process_Composite_Glyph): Always untouch points. * src/truetype/ttinterp.c (Ins_SHC): Fix computation of `first_point' and `last_point' in case of composite glyphs. (Ins_IUP): Fix computation of `end_point'.2006-06-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> Insert EndianS16_BtoN and EndianS32_BtoN as workaround for Intel Mac. The original patch was written by David Sachitano and Lawrence Coopet, and modified by Sean McBride for MPW compatibility. Only required data are converted; unused data are left in big endian. * src/base/ftmac.c: Include <Endian.h> for byteorder macros for non Mac OS X platforms. (OS_INLINE): Undefine before definition. (count_faces_sfnt): Insert EndianS16_BtoN to parse the header of FontAssociation table in FOND resource. (count_faces_scalable): Insert EndianS16_BtoN to parse the header and fontSize at each entry of FontAssociation table in FOND resource. (parse_fond): Insert EndianS16_BtoN and EndianS32_BtoN to parse ffStylOff of FamilyRecord header of FOND resource, the header, fontSize, fontID at each entry of FontAssociation table, and StyleMapping table. (count_faces): Call `HUnlock' after all FOND utilization.2006-06-08 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> Public API of TrueTypeGX, OpenType, and classic kern table validator should return `FT_Err_Unimplemented_Feature' if validation service is unavailable (disabled in `modules.cfg'). It is originally suggested by David Turner, cf. http://lists.gnu.org/archive/html/freetype-devel/2005-11/msg00078.html * src/base/ftgxval.c (FT_TrueTypeGX_Validate): Return FT_Err_Unimplemented_Feature if TrueTypeGX validation service is unavailable. (FT_ClassicKern_Validate): Return FT_Err_Unimplemented_Feature if classic kern table validation service is unavailable. * src/base/ftotval.c (FT_OpenType_Validate): Return FT_Err_Unimplemented_Feature if OpenType validation service is unavailable.2006-06-08 Werner Lemberg <wl@gnu.org> * src/bdf/bdflib.c (bdf_load_font): Fix memory leaks in case of errors.2006-06-07 David Turner <david@freetype.org> * src/type1/t1afm.c (KERN_INDEX): Make it more robust. (T1_Read_Metrics): Fix memory leak which happened when the metrics file doesn't have kerning pairs. This fixes Savannah bug #16768.2006-06-06 David Turner <david@freetype.org> Fix memory leak described in Savannah bug #16759. We change `ps_unicodes_init' so that it also takes a `free_glyph_name' callback to release the glyph names returned by `get_glyph_name' * include/freetype/internal/services/svpscmap.h (PS_Glyph_NameFunc): Renamed to ... (PS_GetGlyphNameFunc): This. (PS_FreeGlyphNameFunc): New typedef. (PS_Unicodes_InitFunc): Add variable for PS_FreeGlyphNameFunc. * src/cff/cffcmap.c (cff_sid_to_glyph_name): Use `TT_Face' for first argument. (cff_sid_free_glyph_name): New function. (cff_cmap_unicode_init): Updated. * src/psaux/t1cmap.c (t1_cmap_unicode_init): Updated. * src/psnames/psmodule.c (ps_unicodes_init): Add variable for PS_FreeGlyphNameFunc and use it.2006-06-04 David Turner <david@freetype.org> * src/base/ftutil.c (ft_mem_qrealloc): Fix the function to accept `item_size == 0' as well -- though this sounds weird, it can theoretically happen. This fixes Savannah bug #16669. * src/pfr/pfrobjs.c (pfr_face_init): Fix the computation of `face->num_glyphs' which missed the last glyph, due to the offset-by-1 computation, since the PFR format doesn't guarantee that glyph index 0 corresponds to the `missing glyph. This fixes Savannah bug #16668.2006-05-25 Werner Lemberg <wl@gnu.org> * builds/unix/unix-cc.in (LINK_LIBRARY): Don't comment out `-no-undefined'. Reported by Christian Biesinger.2006-05-19 Brian Weed <bw@imaginengine.com> * builds/win32/visualc/freetype.dsp: Release libraries no longer have debug information, and debug libraries use `C7 compatible' debug info.2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> Apply patch by Derek Clegg to fix two memory leaks in the MacOS resource fork handler. This fixes Savannah bug #16631. * src/base/ftobjs.c (load_face_in_embedded_rfork): Replace `FT_Stream_Close' by `FT_Stream_Free' to fix memory leak. * src/base/ftrfrk.c (raccess_guess_linux_double_from_file_name): Replace `FT_Stream_Close' by `FT_Stream_Free' to fix memory leak.2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> * build/unix/configure.raw: Add a fallback to disable Carbon dependency, if configured with no options on Mac OS X.2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> * src/base/ftmac.c (open_face_from_buffer): Deallocate stream when its content cannot be parsed as supported font. This fixes the second part of Savannah bug #16590.2006-05-18 Werner Lemberg <wl@gnu.org> * src/truetype/ttgload.c (TT_Load_Composite_Glyph) [FT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Make it compilable again.2006-05-17 David Turner <david@freetype.org> This is a major patch used to drastically improve the performance of loading glyphs. This both speeds up loading the glyph vectors themselves and the auto-fitter module. We now use inline assembler code with GCC to implement `FT_MulFix', which is probably the most important function related to the engine's performance. The resulting speed-up is about 25%. * include/freetype/internal/tttypes.h (TT_LoaderRec): Add fields `cursor' and `limit'. * src/autofit/afangles.c (af_corner_is_flat, af_corner_orientation): New functions. (AF_ATAN_BITS, af_arctan, af_angle_atan): Comment out. [TEST]: Remove. * src/autofit/afcjk.c (AF_Script_UniRangeRec): Comment out test code. * src/autofit/afhints.c (af_axis_hints_new_segment): Don't call `FT_ZERO' (af_direction_compute, af_glyph_hints_compute_inflections): Rewritten. (af_glyph_hints_reload: Rewrite recognition of weak points. * src/autofit/aflatin.c (af_latin_hints_compute_segments): Move constant values out of the loops. * src/autofit/aftypes.h: Updated. * src/base/ftcalc.c (FT_MulFix): Use inline assembler code. * src/base/ftoutln.c (FT_Outline_Get_Orientation): Use vector product to get orientation. * src/gzip/ftgzip.c (ft_get_uncompressed_size): New function. (FT_Stream_OpenGzip): Use it to handle small files directly in memory. * src/psaux/psconv.c (PS_Conv_ASCIIHexDecode, PS_ConvEexecDecode): Improve performance. * src/truetype/ttgload.c (TT_Access_Glyph_Frame): Set `cursor' and `limit'. (TT_Load_Glyph_Header, TT_Load_Simple_Glyph, TT_Load_Composite_Glyph): Updated. Add threshold to protect against exceedingly large values of number of contours. Speed up by reducing the number of loops. * src/type1/t1gload.c (T1_Load_Glyph): Don't apply unit matrix. * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Change the threshold used to detect rogue clients from 4 to 16. This is to prevent some segmentation faults with fonts like `KozMinProVI-Regular.otf' which comes from the Japanese Adobe Reader Asian Font pack.2007-05-17 Werner Lemberg <wl@gnu.org> * src/cff/cffload.c (cff_font_done): Deallocate subfont array. This fixes the first part of Savannah bug #16590.2006-05-16 Werner Lemberg <wl@gnu.org> * docs/PROBLEMS: Updated icl issues.----------------------------------------------------------------------------Copyright 2006, 2007 byDavid Turner, Robert Wilhelm, and Werner Lemberg.This file is part of the FreeType project, and may only be used, modified,and distributed under the terms of the FreeType project license,LICENSE.TXT. By continuing to use, modify, or distribute this file youindicate that you have read the license and understand and accept itfully.Local Variables:version-control: nevercoding: utf-8End:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -