📄 changelog
字号:
2006-11-03 Werner Lemberg <wl@gnu.org> * src/base/ftcalc.c: Don't use `long long' but `FT_Int64'.2006-11-02 David Turner <david@freetype.org> Add a few tweaks to better handle serif fonts. Add more debugging messages. * src/autofit/aflatin.c (af_latin_hints_compute_edges): Ignore segments that are less than 1.5 pixels high. This gets rid of *many* corner cases with serifs. (af_latin_align_linked_edge): Add logging message. (af_latin_hint_edges): Use AF_HINTS_DO_BLUES. Add logging messages. Handle AF_EDGE_FLAG flag specially. * src/autofit/afmodule.c [AF_DEBUG]: Add _af_debug, _af_debug_disable_blue_hints, and _af_debug_hints variables. * src/autofit/aftypes.h (AF_LOG) [AF_DEBUG]: Use _af_debug. Update external declarations. (af_corner_orientation, af_corner_is_flat): Replaced by... * include/freetype/internal/ftcalc.h (ft_corner_orientation, ft_corner_is_flat): These declarations. * src/autofit/afangles.c (af_corner_orientation, af_corner_is_flat): Comment out. Replaced by... * src/base/ftcalc.h (ft_corner_orientation, ft_corner_is_flat): These functions. Update all callers. (FT_Add64) [!FT_LONG64]: Simplify. * src/autofit/afhints.c: Include FT_INTERNAL_CALC_H. (af_direction_compute): Add a missing FT_ABS call. This bug caused production of garbage by missing lots of segments. * src/autofit/afhints.h (AF_HINTS_DO_BLUES): New macro. * src/autofit/afloader.c (af_loader_init, af_loader_done) [AF_DEBUG]: Set _af_debug_hints. * src/pshinter/pshalgo.c: Include FT_INTERNAL_CALC_H. (psh_corner_is_flat, psh_corner_orientation): Use ft_corner_is_flat and ft_corner_orientation. * src/gzip/inftrees.c (huft_build): Remove compiler warning.2006-10-24 Werner Lemberg <wl@gnu.org> * src/cff/cffload.c (cff_encoding_load): Remove unused variable. * src/base/ftobjs.c (FT_Select_Charmap): Disallow FT_ENCODING_NONE as argument.2006-10-23 Zhe Su <zsu@novell.com> * src/base/ftoutln.c (FT_Outline_Get_Orientation): Re-implement to better deal with broken Asian fonts with strange glyphs, having self-intersections and other peculiarities. The used algorithm is based on the nonzero winding rule.2006-10-23 David Turner <david@freetype.org> Speed up the CFF font loader. With some large CFF fonts, FT_Open_Face is now more than three times faster. * src/cff/cffload.c (cff_get_offset): Removed. (cff_new_index): Inline functionality of `cff_get_offset'. (cff_charset_compute_cids, cff_charset_free_cids): New functions. (cff_charset_done): Call `cff_charset_free_cids'. (cff_charset_load): Call `cff_charset_compute_cids'. (cff_encoding_load) <Populate>: Ditto, to replace inefficient loop. * src/sfnt/ttmtx.c (tt_face_load_hmtx): Replace calls to FT_GET_XXX with FT_NEXT_XXX. Speed up the Postscript hinter, with more than 100% speed increase on my machine. * src/pshinter/pshalgo.c (psh_corner_is_flat, psh_corner_orientation): New functions. (psh_glyph_compute_inflections): Merge loops for efficiency. Use `psh_corner_orientation'. (psh_glyph_init): Use `psh_corner_is_flat'. (psh_hint_table_find_strong_point): Renamed to... (psh_hint_table_find_strong_points): This. Rewrite, adding argument to handle all points at once. Update all callers. (PSH_MAX_STRONG_INTERNAL): New macro. (psh_glyph_interpolate_normal_points): Rewrite for efficiency.2006-10-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> * src/base/ftmac.c (FT_New_Face_From_FOND): Initialize variable `error' with FT_Err_Ok.2006-10-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> * docs/INSTALL.CROSS: New document file for cross-building. * builds/unix/configure.raw: Preliminary cross-building support. Find native C compiler and pass it by CC_BUILD, and find suffix for native executable and pass it by EXEEXT_BUILD. Also suffix for target executable is passed by EXEEXT. * builds/unix/unix-cc.in (CCraw_build, E_BUILD): New variables to build `apinames' which runs on building system. They are set by CC_BUILD and EXEEXT_BUILD. * builds/exports.mk (APINAMES_EXE): Change the extension for apinames from the suffix for target (E) to that for building host (E_BUILD).2006-10-12 Werner Lemberg <wl@gnu.org> * docs/INSTALL.UNX, docs/UPGRADE.UNX: Renamed to... * docs/INSTALL.UNIX, docs/UPGRADE.UNIX: This. Update all documents which reference those files.2006-10-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> * builds/unix/configure.raw (FT2_EXTRA_LIBS): New variable. It is embedded in freetype2.pc and freetype-config. Use it to record Carbon dependency of MacOSX. * builds/unix/freetype2.in: Embed FT2_EXTRA_LIBS. * builds/unix/freetype-config.in: Ditto.2006-10-11 Werner Lemberg <wl@gnu.org> * devel/ftoption.h (FT_CONFIG_OPTION_SUBPIXEL_RENDERING): Define for development.2006-10-03 Jens Claudius <jens.claudius@yahoo.com> * include/freetype/config/ftstdlib.h: Cast away volatileness from argument to ft_setjmp. * include/freetype/internal/ftvalid.h: Add comment that ft_validator_run must not be used.2006-10-01 Werner Lemberg <wl@gnu.org> * src/base/ftbase.c: Undo change from 2006-09-30. * src/base/rules.mk (BASE_SRC): Remove `ftlcdfil.c'.2006-09-30 David Turner <david@freetype.org> * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): s/unpatented_hinting/ignore_unpatented_hinter/. Update all callers. * src/base/ftobjs.c (FT_Load_Glyph): Refine the algorithm whether auto-hinting shall be used or not. * src/truetype/ttobjs.c (tt_face_init): Ditto.2006-09-30 Werner Lemberg <wl@gnu.org> * src/base/rules.mk (BASE_SRC): Remove `ftapi.c' (which is no longer in use). * src/base/ftbase.c: Include `ftlcdfil.c'.2006-09-29 Werner Lemberg <wl@gnu.org> * src/sfnt/ttcmap.c (tt_cmap4_char_map_binary): Fix algorithm for overlapping segments. Bug reported by Stefan Koch.2006-09-28 David Turner <david@freetype.org> Fix a bug in the automatic unpatented hinting support which prevents normal bytecode hinting to work properly. * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): s/force_autohint/unpatented_hinting/. Update all callers. * src/base/ftobjs.c (FT_Load_Glyph): Updated code. * src/autofit/aftypes.h (AF_DEBUG): Undefine to get rid of traces.2006-09-27 David Turner <david@freetype.org> * include/freetype/freetype.h (FT_FREETYPE_PATCH): Set to 2. Add a new API to support color filtering of subpixel glyph bitmaps. In a default build, the function `FT_Library_SetLcdFilter' returns `FT_Err_Unimplemented_Feature'; you need to #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING in ftoption.h to compile the real implementation. * include/freetype/ftlcdfil.h, src/base/ftlcdfil.c: New files. * include/freetype/internal/ftobjs.h (FT_Bitmap_LcdFilterFunc): New typedef. (FT_LibraryRec) [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: New members `lcd_filter_weights' and `lcd_filter'. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove arguments `hmul' and `vmul'. Handle subpixel rendering. Simplify function. (ft_smooth_render_lcd): Use `FT_RENDER_MODE_LCD'. (ft_smooth_render_lcd_v): Use `FT_RENDER_MODE_LCD_V'. * include/freetype/config/ftheader.h (FT_LCD_FILTER_H): New macro, pointing to <freetype/ftlcdfil.h>. * src/base/Jamfile (_sources), src/base/rules.mk (BASE_SRC), vms_make.com: Add `ftlcdfil.c' to the list of compiled source files. * modules.cfg (BASE_EXTENSIONS): Add ftlcdfil.c.2006-09-26 David Bustin * src/pfr/pfrobjs.c (pfr_face_get_kerning): Skip adjustment bytes correctly. Reported as Savannah bug #17843.2006-09-26 David Turner <david@freetype.org> * src/autofit/afhints.h (AF_HINTS_DO_HORIZONTAL, AF_HINTS_DO_VERTICAL, AF_HINTS_DO_ADVANCE): New macros to disable horizontal and vertical hinting for the purpose of debugging the auto-fitter. * src/autofit/afmodule.c (_af_debug_disable_horz_hints, _af_debug_disable_vert_hints) [AF_DEBUG]: New global variables. * src/autofit/aftypes.h [AF_DEBUG]: Declare above variables. * include/freetype/config/ftoption.h, devel/ftoption.h (FT_CONFIG_OPTION_SUBPIXEL_RENDERING): New macro to control whether we want to compile LCD-optimized rendering code (à la ClearType) or not. The macro *must* be disabled in default builds of the library for patent reasons. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Disable LCD-specific rendering when FT_CONFIG_OPTION_SUBPIXEL_RENDERING isn't defined at compile time. This only changes the content of the rendered glyph to match the one of normal gray-level rendering, hence clients should not need to be modified. * docs/CHANGES: Updated.2006-09-18 Garrick Meeker <garrick@digitalanarchy.com> * src/base/ftmac.c (FT_New_Face_From_FOND): Fall back to SFNT if LWFN fails and both are available.2006-09-11 David Turner <david@freetype.org> * src/sfnt/sfobjs.c (tt_face_get_name): Support some fonts which report their English names through an Apple Roman (platform,encoding) pair, with language_id != English. If the font uses another name entry with language_id == English, it will be selected correctly, though. * src/truetype/ttobjs.c (tt_face_init): Add unpatented hinting selection for `mingli.ttf'.2006-09-05 Werner Lemberg <wl@gnu.org> * src/truetype/ttpload.c (tt_face_load_hdmx): Handle `record_size' values which have the upper two bytes set to 0xFF instead of 0x00 (as it happens in at least two CJKV fonts, `HAN NOM A.ttf' and `HAN NOM B.ttf'). * src/smooth/ftgrays.c [GRAYS_USE_GAMMA]: Really remove all code.2006-09-05 David Turner <david@freetype.org> Minor source cleanups and optimizations. * src/smooth/ftgrays.c (GRAYS_COMPACT): Removed. (TRaster): Remove `count_ex' and `count_ey'. (gray_find_cell): Remove 2nd and 3rd argument. (gray_alloc_cell): Merged with `gray_find_cell'. (gray_record_cell): Simplify. (gray_set_cell): Rewrite. (gray_start_cell): Apply offsets to `ras.ex' and `ras.ey'. (gray_render_span): Don't use FT_MEM_SET for small values. (gray_dump_cells) [DEBUG_GRAYS]: New function. (gray_sweep): Avoid buffer overwrites when to drawing the end of a bitmap scanline. (gray_convert_glyph): Fix speed-up.2006-09-04 David Turner <david@freetype.org> * src/smooth/ftgrays.c (gray_convert_glyphs): Make it work with 64bit processors.2006-09-03 Werner Lemberg <wl@gnu.org> * devel/ftoption.h: Synchronize with include/freetype/config/ftoption.h. * src/smooth/ftgrays.c (gray_record_cell): Remove shadowing variable declaration. (gray_convert_glyph): Fix compiler warnings.2006-09-01 David Turner <david@freetype.org> * src/truetype/ttobjs.c (tt_face_init): Update the TrueType loader to recognize a few fonts that require the automatic unpatented loader. * src/smooth/ftgrays.c: Optmize the performance of the anti-aliased rasterizer. The speed improvement is between 15% and 25%, depending on the font data. (GRAYS_USE_GAMMA, GRAYS_COMPACT): Removed, and all associated code. (TCell): Redefine. (TRaster): New members `buffer', `buffer_size', `ycells', `ycount'. (gray_init_cells): Updated. (gray_find_cell, gray_alloc_cell): New functions. (gray_record_cell): Rewritten to use `gray_find_cell' and `gray_alloc_cell'. (PACK, LESS_THAN, SWAP_CELLS, DEBUG_SORT, QUICK_SORT, SHELL_SORT, QSORT_THRESHOLD): Removed. (gray_shell_sort, gray_quick_sort, gray_check_sort, gray_dump_cells): Removed. (gray_sweep): Rewritten. (gray_convert_glyph): Rewrite code which used one of the sorting functions. (gray_raster_render): Updated.2006-08-29 Dr. Werner Fink <werner@suse.de> * configure: Make it possible to handle configure options which have strings containing spaces.2006-08-27 David Turner <david@freetype.org> * include/freetype/config/ftoption.h (TT_USE_BYTECODE_INTERPRETER): New macro, defined if either TT_CONFIG_OPTION_BYTECODE_INTERPRETER or TT_CONFIG_OPTION_UNPATENTED_HINTING is defined. * include/freetype/internal/ftcalc.h, src/base/ftcalc.c, src/truetype/truetype.c, src/truetype/ttdriver.c, src/truetype/ttgload.c, src/truetype/ttgload.h, src/truetype/ttinterp.c, src/truetype/ttobjs.c, src/truetype/ttobjs.h, src/truetype/ttpload.c, src/type42/t42drivr.c: s/TT_CONFIG_OPTION_BYTECODE_INTERPRETER/TT_USE_BYTECODE_INTERPRETER/. * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): New member `force_autohint'. * src/base/ftobjs.c (FT_Load_Glyph): Use `force_autohint'. * src/truetype/ttobjs.c (tt_face_init): Prepare code for testing against a list of font names which need the bytecode interpreter.2006-08-27 Jens Claudius <jens.claudius@yahoo.com> Fix miscellaneous compiler warnings. * freetype2/include/freetype/internal/ftobjs.h: Close comment with `*/' to avoid `/* in comment' compiler warning. * freetype2/src/base/ftdbgmem.c (ft_mem_table_get_source): Turn cast `(FT_UInt32)(void*)' into `(FT_UInt32)(FT_PtrDist)(void*)' since on 64-bit platforms void* is larger than FT_UInt32. * freetype2/src/base/ftobjs.c (t_validator_error): Cast away volatileness of argument to ft_longjmp. Spotted by Werner `Putzfrau' Lemberg. * freetype2/src/bdf/bdflib.c (bdf_load_font): Initialize local variable `lineno'. * freetype2/src/gxvalid/gxvmod.c (classic_kern_validate): Mark local variable `error' as volatile.2006-08-27 Werner Lemberg <wl@gnu.org> * builds/unix/ftconfig.in: Sy
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -