src


Log

Author Commit Date CI Message
David Turner 2628ea9c 2007-01-10T13:15:56 * src/pshinter/pshalgo.c (psh_glyph_compute_inflections): fixed a typo which created an endless loop with some malformed font files
Werner Lemberg bf02d396 2007-01-10T07:07:37 * src/type1/t1load.c (T1_Get_MM_Var): Always return fixed point values.
Werner Lemberg cc7f12a4 2007-01-09T10:37:36 formatting, copyright years and messages, doc polishing
David Turner f48b60ed 2007-01-08T15:15:32 * include/freetype/ftgasp.h, src/base/ftgasp.c: adding a new API FT_Get_Gasp to return entries of the GASP table corresponding to a given character pixel size. * src/sfnt/ttload.c: add version check for the GASP table, in order to be better future-proof * include/freetype/config/ftheader.h: add definition of FT_GASP_H, corresponding to <freetype/ftgasp.h> * src/base/rules.mk, src/base/Jamfile, modules.cfg, builds/win32/visualc/freetype.dsp, builds/win32/visualc/freetype.vcproj: Adding src/base/ftgasp.c to the default build
Werner Lemberg b8004d2e 2007-01-07T09:13:38 * src/cid/cidparse.c (cid_parser_new): Improve error message for Type 11 fonts. Scan for `/sfnts' token.
Werner Lemberg e6b6f373 2007-01-07T00:06:47 * src/cid/cidparse.c (cid_parser_new): Reject Type 42 CID-keyed fonts.
Werner Lemberg be5f797f 2007-01-06T07:51:48 * src/cff/cffload.c (cff_index_init): Remove unused variable. (cff_index_read_offset): s/perror/errorp/ to avoid global shadowing.
Werner Lemberg f6294399 2007-01-06T07:47:45 formatting, copyright years
David Turner d88a0c9e 2007-01-05T17:59:18 fixing typo
David Turner 34fcd0b4 2007-01-05T15:55:59 * src/pfr/pfrobjs.c (pfr_face_init): detect non-scalable fonts correctly. fixes bug #17876
David Turner 384be234 2007-01-05T15:32:01 * src/truetype/ttobjs.h, src/truetype/ttobjs.c, src/truetype/ttgload.c: do not allocate interpreter-specific tables in memory if we're not going to load glyphs with it anyway.
David Turner 91a3402d 2007-01-05T14:47:08 - don't load metrics table in memory, reduces heap usage - forgot to commit the changes in cffload.c that are already documented
David Turner a3a3c5d7 2007-01-05T13:15:29 small optimization in the CMAP 4 validator
David Turner 5dbdb6c3 2007-01-05T13:14:08 * src/cff/cffload.c, src/cff/cffload.h, src/cff/cffgload.c, src/cff/cfftypes.h: formatting + do not load the CFF index offsets into memory, since this wastes a *lot* of heap memory with large Asian CFF fonts. There is no significant performance loss
Werner Lemberg 82dba762 2007-01-05T12:41:49 copyright year
David Turner 3a2131a3 2007-01-05T10:51:56 formatting
Werner Lemberg 4ea0a7f0 2007-01-05T09:03:31 formatting, minor doc fixes, copyright years
David Turner 38d1002b 2007-01-04T18:50:12 * src/raster/ftraster.c: removing dynamically generated "count_table", and replace it with a constant array of bytes
David Turner 8a2c7f8f 2007-01-04T18:33:12 * src/raster/ftraster.c, src/smooth/ftgrays.c: small optimization, the rasterizers now uses the render pool to store their state during scanline convertion. this saves about 6 KB of heap space for each FT_Library instance
David Turner 91bd5ddf 2007-01-04T18:00:14 * src/smooth/ftgrays.c: small optimization, the rasterizer now uses the render pool to store its state during its operation, this saves about 4 KB of heap for each FT_Library instance
David Turner 8a6c44e6 2007-01-04T17:03:11 Getting rid of the FT_OPTIMIZE_MEMORY macro, since the optimization is no longer experimental
David Turner a8cf42bb 2007-01-04T16:46:46 * src/pshinter/pshalgo.c: remove a stupid typo that results in no hinting and a memory leak with some large Asian CFF fonts * src/base/ftobjs.c (FT_Done_Library): remove a subtle memory leak which happens when FT_Done_Library is called with opened CFF_Faces in it. We need to close all faces before destroying the modules, or else some bad things (memory leaks) may happen.
Werner Lemberg 6b87e6f0 2007-01-02T19:20:08 * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt0_pairs_validate): Remove compiler warning. Formatting.
David Turner 9207e001 2007-01-02T16:58:13 adding documentation comment
Yamato, Masatake (大和正武) 55d5a1cb 2006-12-30T20:24:30 (gxv_kern_subtable_fmt0_pairs_validate): Show the trace message after validating gids.
Yamato, Masatake (大和正武) d5d3e41d 2006-12-30T20:17:30 (gxv_kern_subtable_fmt0_pairs_validate): New function. Checks uniqueness of the gid pairs. (gxv_kern_subtable_fmt0_validate): Move some code to `gxv_kern_subtable_fmt0_pairs_validate'.
David Turner 115b442b 2006-12-22T11:37:05 * src/autofit/aflatin.c, src/truetype/ttgload.c: removing compiler warnings * builds/win32/visualc/freetype.vcproj: adding _CRT_SECURE_NO_DEPRECATE to avoid deprecation warnings with Visual C++ 8
Werner Lemberg eeaa6497 2006-12-19T14:34:07 add comment
Werner Lemberg 4755bf7a 2006-12-16T08:58:44 * src/base/ftlcdfil.c (FT_Library_SetLcdFilter) [FT_FORCE_LIGHT_LCD_FILTER]: Fix typo.
Werner Lemberg 0fd08bdc 2006-12-16T02:57:46 formatting
Suzuki, Toshiya (鈴木俊哉) 7e3d6013 2006-12-15T15:23:21 * Simplify src/base/ftmac.c for Mac OS X
Suzuki, Toshiya (鈴木俊哉) 7a7d403d 2006-12-15T14:47:42 * Improve resource fork handler for POSIX
Werner Lemberg 4e1d6c0c 2006-12-09T08:20:37 * builds/toplevel.mk (dist): Extract version number from freetype.h.
Werner Lemberg 15c29503 2006-12-09T07:29:54 * src/tools/apinames (State): Remove final comma in structure -- xlc v5 under AIX 4.3 doesn't like this.
David Turner dbf3b43a 2006-12-07T21:18:09 * src/autofit/afloader.c (af_loader_load_g): small adjustment to the spacing of auto-fitter glyphs. This only impacts rare cases (e.g. Arial Bold at rather small character sizes)
Werner Lemberg e2e18e03 2006-12-03T09:46:32 comment fixes
Werner Lemberg 1117131c 2006-12-03T09:43:40 * src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c.
Werner Lemberg 3bcd7d7f 2006-12-03T09:38:16 Formatting.
Werner Lemberg 960ba59a 2006-12-01T08:20:47 * src/sfnt/sfobjs.c (tt_face_get_name): All Unicode strings are encoded in UTF-16BE. Patch from Rajeev Pahuja <rpahuja@esri.com>. (tt_name_entry_ascii_from_ucs4): Removed. * include/freetype/ftxf86.h: Fix and extend comment so that it appears in the documentation. * include/freetype/ftchapters.h: Add `font_format' section. * src/tools/docmaker/tohtml.py (HtmlFormatter::index_exit): Add link to TOC in index page. Formatting.
David Turner 3a18c5e2 2006-11-28T08:38:31 * src/smooth/ftgrays.c (gray_raster_render): return 0 when we're trying to rendering into a zero-width/height bitmap, instead of an error code.
David Turner 80658e50 2006-11-28T08:09:20 * src/truetype/ttobjs.c (tt_face_init): Fix typo in previous patch * src/smooth/ftgrays.c: remove hard-coded error values, use FreeType ones instead * src/autofit/afhints.c (af_glyph_hints_dump_segments): remove unused variable
Werner Lemberg 8636c29a 2006-11-26T22:28:13 * src/truetype/ttobjs.c (tt_face_init): Protect against NULL pointer.
David Turner 1bd6c472 2006-11-25T01:30:40 * src/autofit/afhints.c: add stubs to link the "ftgrid" test program when debugging is disabled in the auto-hinter
David Turner 81e725f5 2006-11-23T14:49:48 * src/autofit/afhints.c, src/autofit/afhints.h, src/autofit/aflatin.c, src/autofit/aftypes.h: Misc. auto-hinter improvements
Werner Lemberg 91959bf2 2006-11-22T10:36:55 Fix Savannah bug #15553. * src/truetype/ttgload.c (tt_loader_init): Re-execute the CVT program after a change from mono to grayscaling (and vice versa). Use correct constant for comparison to get `exec->grayscale'.
Werner Lemberg 2bad8ffb 2006-11-22T09:37:03 cosmetics
Werner Lemberg 82ee38e5 2006-11-20T09:19:26 formatting
Werner Lemberg 913a3650 2006-11-19T09:19:17 Because FT_Load_Glyph expects CID values for CID-keyed fonts, the test for a valid glyph index must be deferred to the font drivers. This patch fixes Savannah bug #18301. * src/base/ftobjs.c (FT_Load_Glyph): Don't check `glyph_index'. * src/bdf/bdfdrivr.c (BDF_Glyph_Load), src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph), src/pcf/pcfdrivr.c (PCF_Glyph_Load), src/pfr/pfrobjs.c (pfr_slot_load), src/truetype/ttdriver.c (Load_Glyph), src/type1/t1gload.c (T1_Load_Glyph), src/winfonts/winfnt.c (FNT_Load_Glyph): Check validity of `glyph_index'.
Werner Lemberg 0d0d78da 2006-11-14T10:37:10 formatting
David Turner 29c191cd 2006-11-13T13:03:48 * src/base/ftlcdfil.c: added support for FT_FORCE_LIGHT_LCD_FILTER and FT_FORCE_LEGACY_LCD_FILTER at compile time. Define these macros when building the library to change the default LCD filter to be used. This is only useful for experimentation
David Turner 7bab6ae3 2006-11-13T11:25:06 * src/truetype/ttinterp.c: undefined the FIX_BYTECODE macro, since the interpreter "enhancements" are still too buggy for general use
David Turner 8765c71b 2006-11-10T16:49:42 * include/freetype/ftlcdfil.h, include/internal/ftobjs.h, src/base/ftlcdfilt.c, src/smooth/ftsmooth.c: API change for the LCD filter, the FT_LcdFilter value is a enum describing which filter to apply, new values FT_LCD_FILTER_LIGHT and FT_LCD_FILTER_LEGACY (the latter implements the LibXft original algorithm which produces incredible color fringes for everything except very-well hinted text) * src/autofit/aflatin.c: various tiny improvements that drastically improve the handling of serif fonts and of LCD/LCD_V hinting modes.
David Turner 4e9cc3c4 2006-11-09T16:31:52 * src/pshinter/pshalgo.c (psh_glyph_compute_inflections): fixed a stupid typo which created a variable-used-before-initialized bug
Werner Lemberg d60ae949 2006-11-07T09:47:04 Formatting.
Werner Lemberg 5e43089b 2006-11-07T09:35:03 * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle vertical layout also.
Werner Lemberg 111b5aef 2006-11-03T09:40:12 * src/base/ftcalc.c: Don't use `long long' but `FT_Int64'. Formatting
David Turner 91b44e65 2006-11-02T23:28:09 - improve autofitter's handling of serif fonts (results are much better) - make GCC 4 happy when compiling our zlib sources
David Turner effd15de 2006-11-02T17:21:02 - merging af_corner_XXX and psh_corner_XXX functions into ft_corner_XXX versions in ftcalc.c - more auto-fitter debugging support
David Turner 40604748 2006-11-02T16:37:35 - fixed a bug in af_compute_direction which generated ugly glyphs - added more debug/log messages to help improve the auto-fitter
Werner Lemberg 950c5d2f 2006-11-01T21:18:15 Fix copyright notice (to be the same as the original file in x.org).
Werner Lemberg e88c5261 2006-10-24T05:46:26 * src/cff/cffload.c (cff_encoding_load): Remove unused variable. * src/base/ftobjs.c (FT_Select_Charmap): Disallow FT_ENCODING_NONE as argument.
Werner Lemberg 715e96ec 2006-10-24T05:28:45 formatting, improving ChangeLog entries
David Turner a186139c 2006-10-23T16:00:59 improve FT_Outline_Get_Orientation for broken asian fonts
David Turner 29873a0c 2006-10-23T10:23:17 * src/sfnt/ttmtx.c, src/cff/cffload.c: speeding up the CFF font loader, with some large CFF fonts, FT_Open_Face is now 350% faster !
David Turner e140f142 2006-10-23T08:56:57 * src/pshinter/pshalgo.c: major speed improvements to the Postscript hinter, more than 100% speed increase on my machine
Suzuki, Toshiya (鈴木俊哉) 07088260 2006-10-15T07:15:28 * src/base/ftmac.c (FT_New_Face_From_FOND): Initialize the variable error
Werner Lemberg 046bf8b0 2006-10-03T08:43:42 formatting
Werner Lemberg 2863cfa7 2006-10-01T17:04:00 * src/base/ftbase.c: Undo change from 2006-09-30. * src/base/rules.mk (BASE_SRC): Remove `ftlcdfil.c'.
David Turner df430e1a 2006-10-01T00:09:35 * include/freetype/internal/ftobjs.h, src/base/ftobjs.c, src/truetype/ttobjs.c: fixes related to the unpatented hinter
Werner Lemberg 1e4402e3 2006-09-29T22:10:36 * src/base/rules.mk (BASE_SRC): Remove `ftapi.c' (which is no longer in use). * src/base/ftbase.c: Include `ftlcdfil.c'.
Werner Lemberg 2c002e13 2006-09-29T21:31:53 formatting, improving documentation
Werner Lemberg 9b15ea34 2006-09-29T18:22:11 * src/sfnt/ttcmap.c (tt_cmap4_char_map_binary): Fix algorithm for overlapping segments. Bug reported by Stefan Koch.
David Turner ad830716 2006-09-27T16:20:59 * include/freetype/internal/ftobjs.h, src/truetype/ttobjs.c, src/base/ftobjs.c: fixed a bug in the automatic unpatented hinting support which prevented normal bytecode hinting to work properly * src/autofit/aftypes.h: undefining AF_DEBUG to get rid of traces
David Turner 3cc7d630 2006-09-27T08:48:38 adding missing file
David Turner 26bb2e27 2006-09-27T07:58:43 * src/base/Jamfile, src/base/rules.mk, vms_make.com: adding 'ftlcdfil.c' to the list of compiled source files
David Turner 8a317cf7 2006-09-27T07:52:48 * include/freetype/freetype.h: bumping FT_FREETYPE_PATCH to 2 for an upcoming 2.2.2 release * include/freetype/ftlcdfil.h, src/freetype/ftlcdfil.c: added a new API to support color filtering of subpixel glyph bitmaps. In 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 * src/smooth/ftsmooth.c: adding support for sub-pixel color filtering; simplifying a few function calls * include/freetype/config/ftheader.h: adding FT_LCD_FILTER_H macro that points to <freetype/ftlcdfil.h>
Werner Lemberg e20df4a1 2006-09-27T06:29:21 * src/pfr/pfrobjs.c (pfr_face_get_kerning): Skip adjustment bytes correctly. Reported as Savannah bug #17843.
Werner Lemberg 110246c6 2006-09-26T21:55:44 formatting
David Turner e3d6e948 2006-09-26T16:58:21 CHANGES BETWEEN 2.2.1 and 2.2.2 I. IMPORTANT BUG FIXES - Various integer overflows have been fixed. - PFB fonts with MacOS resource fork weren't handled correctly on non-MacOS platforms. - The PCF font loarder has been seriously hardened against malformed font files. II. IMPORTANT CHANGES - the unpatented hinter is now part of the default build of the library, and we added code to automatically support "tricky" fonts that need it. what this means is that FreeType should "just work" with certain Asian fonts, like MingLiu, which cannot properly load without a bytecode interpreter, but fortunately do not use any of the patented bytecode opcodes. Note that the API didn't change, so you can still force unpatented hinting with a special parameter to FT_Open_Face as well. if you're an embedded systems developer, you might want to *disable* the feature to save code space by undefining TT_CONFIG_OPTION_UNPATENTED_HINTING in ftoption.h. - LCD-optimized rendering is now disabled in all default builds of the library, mainly due to patent reasons. For more information see: http://lists.gnu.org/archive/html/freetype/2006-09/msg00064.html a new configuration macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING has been introduced in ftoption.h; manually define it in this file if you want to re-enable the feature. the change only affects the implementation, not the FreeType API. This means that clients don't need to be modified, because the library still generates LCD decimated bitmaps, but with the added constraint that R=G=B on each triplet. - Some computation bugs in the TrueType bytecode interpreter were found, which allow us to get rid of very subtle and rare differences we had with the Windows renderer. III. MISCELLANEOUS - TrueType glyph loading is now about 25% faster. - the anti-aliased rasterizer has been optimized and is now 15% to 25% percent faster than the previous one, depending on content - the Type 1 loader has been improved; as an example, it now skips over top-level dictionaries properly ======================================================================
David Turner 6f8c6229 2006-09-26T15:42:44 * src/autofit/aftypes.h, src/autofit/afhints.h, src/autofit/afmodule.c: adding support for disabling horizontal and vertical hinting for the purpose of debugging the auto-fitter
Werner Lemberg 745ff2c2 2006-09-19T05:48:02 * src/base/ftmac.c (FT_New_Face_From_FOND): Fall back to SFNT if LWFN fails and both are available.
Werner Lemberg f9644559 2006-09-12T13:48:10 formatting
David Turner f3050059 2006-09-11T12:00:32 * src/sfnt/sfobjs.c (tt_face_get_name): support some function 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: add unpatent-hinting selection for "mingli.ttf"
Werner Lemberg 36d2eab0 2006-09-05T19:24:34 * src/truetype/ttpload.c (tt_face_load_hdmx): Handle `record_size' values which have the upper two bytes set to 0xFF instead of 0xFF (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. Formatting.
David Turner 2066e0ac 2006-09-05T14:58:22 fix stupid bug
David Turner c7bc9b79 2006-09-05T12:17:38 * src/smooth/ftgrays.c: minor source cleanups and optimization
David Turner 772e55d3 2006-09-05T09:45:15 * src/smooth/ftgrays.c (gray_sweep): Avoid buffer overwrites when to the end of a bitmap scanline. The fun never ends ;-)
David Turner aa557a90 2006-09-04T16:42:44 fix for the latest rasterizer optimization
Werner Lemberg 2d8629b3 2006-09-03T06:18:45 * 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. Formatting, copyright years.
David Turner bd50295c 2006-09-01T19:05:24 * src/smooth/ftgrays.c: optmized the performance of the anti-aliased rasterizer. The speed gains is between 15% and 25%, depending on content
David Turner 6d79f214 2006-09-01T14:09:35 * src/truetype/ttobjs.c: updated the TrueType loader to recognize a few fonts that require the automatic unpatented loader
Jens Claudius a787f455 2006-08-27T11:26:18 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' volatile.
Werner Lemberg c4c35b77 2006-08-27T08:03:46 * builds/unix/ftconfig.in: Synchronize with main ftconfig.h. Reported by Jens. Formatting.
David Turner 6aa260ce 2006-08-25T22:45:13 support for "automatic unpatented hinting" added we still need to determine the list of "trick" CJK fonts that are going to toggle the bytecode interpreter instead of the auto-hinter
Jens Claudius 088e44e8 2006-08-22T14:24:30 2006-08-22 Jens Claudius <jens.claudius@yahoo.com> Fix for previous commit, which caused many compiler warnings/errors about addresses of volatile objects passed as function arguments as non-volatile pointers. * freetype2/include/freetype/internal/ftvalid.h: Make FT_Validator typedef a pointer to a volatile object. * freetype2/src/gxvalid/gxvmod.c (gxv_load_table): Make function argument `table' a pointer to a volatile object. * freetype2/src/otvalid/otvmod.c (otv_load_table): Make function argument `table' a pointer to a volatile object.
Werner Lemberg 12342996 2006-08-19T11:18:09 formatting
Jens Claudius 2652bd54 2006-08-18T17:20:37 2006-08-18 Jens Claudius <jens.claudius@yahoo.com> * freetype2/src/gxvalid/gxvmod.c (GXV_TABLE_DECL): Mark local variable `_sfnt' as volatile since it must keep its value across a call to ft_setjmp. (gxv_validate): Same for local variables `memory' and `valid'. (classic_kern_validate): Same for local variables `memory', `ckern', and `valid'. * freetype2/src/otvalid/otvmod.c (otv_validate): Same for function parameter `face' and local variables `base', `gdef', `gpos', `gsub', `jstf', and 'valid'. * freetype2/src/sfnt/ttcmap.c (tt_face_build_cmaps): Same for local variable `cmap'.
David Turner 33f5f249 2006-08-16T16:50:55 * include/freetype/internal/ftgloadr.h, include/freetype/internal/tttypes.h, src/base/ftgloadr.c, src/base/ftobjs.c, src/truetype/ttgload.c, src/truetype/ttinterp.c, src/truetype/ttobjs.c: improvements to native TrueType hinting, this is a first try, controlled by the FIX_BYTECODE macro in src/truetype/ttinterp.c
David Turner 2b21a932 2006-08-16T09:24:32 * src/base/ftobjs.c (ft_validator_run): disabling function, it is buggy by design, so it will always return -1
David Turner 9fbfc6af 2006-08-16T09:11:31 * src/cid/cidgload.c (cid_slot_load_glyph), src/truetype/ttgload.c (tt_prepare_zone): removing compiler warnings