summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * Version 2.6.5 released.VER-2-6-52.6.5Werner Lemberg2016-07-1226-216/+274
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ========================= Tag sources with `VER-2-6-5'. * include/freetype/config/ftoption.h (TT_CONFIG_OPTION_SUBPIXEL_HINTING): Comment out. * docs/VERSION.TXT: Add entry for version 2.6.5. * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj, builds/windows/vc2005/index.html, builds/windows/vc2008/freetype.vcproj, builds/windows/vc2008/index.html, builds/windows/vc2010/freetype.vcxproj, builds/windows/vc2010/index.html, builds/windows/visualc/freetype.dsp, builds/windows/visualc/freetype.vcproj, builds/windows/visualc/index.html, builds/windows/visualce/freetype.dsp, builds/windows/visualce/freetype.vcproj, builds/windows/visualce/index.html, builds/wince/vc2005-ce/freetype.vcproj, builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/freetype.vcproj, builds/wince/vc2008-ce/index.html: s/2.6.4/2.6.5/, s/264/265/. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 5. * builds/unix/configure.raw (version_info): Set to 18:5:12. * CMakeLists.txt (VERSION_PATCH): Set to 5. * docs/CHANGES: Updated.
* [mac] Fix ftexport.sym target in Jamfile.suzuki toshiya2016-07-092-2/+25
| | | | | | | | * Jamfile: Update the directories of the header files scanned for ftexport.sym. They were incorrect since the migration of the header files, on 2015-06-22. Either inexisting include/cache (removed on 2006-03-20) is not needed to be listed explicitly. Now ftmac.h is scanned only in the case of Mac OS & Mac OS X.
* Formatting.Werner Lemberg2016-07-082-17/+17
|
* Revert "Formatting."Werner Lemberg2016-07-084-138/+18
| | | | This reverts commit a0f3a1f25a69a7c5268e87ee6e7a9238c26e6242.
* Formatting.Werner Lemberg2016-07-084-18/+138
|
* [smooth] Sub-banding protocol revision.Alexei Podtelezhnikov2016-07-082-11/+39
| | | | | | | | | | | | | | | | | | | | | | | | | Rasterization sub-banding is utilized at large sizes while using rather small fixed memory pool. Indeed it is possible to make an educated guess how much memory is necessary at a given size for a given glyph. It turns out that, for large majority of European glyphs, you should store about 8 times more boundary pixels than their height. Or, vice versa, if your memory pool can hold 800 pixels the band height should be 100 and you should sub-band anything larger than that. Should you still run out of memory, FreeType bisects the band but you have wasted some time. This is what has been implemented in FreeType since the beginning. It was overlooked, however, that the top band could grow to twice the default band size leading to unnecessary memory overflows there. This commit fixes that. Now the bands are distributed more evenly and cannot exceed the default size. Now the magic number 8 is really suitable for rather simple European scripts. For complex Chinese logograms the magic number should be 13 but that is subject for another day. * src/smooth/ftgrays.c (gray_convert_glyph): Revise sub-banding protocol.
* [mac] Fix Savannah bug #48417.suzuki toshiya2016-07-072-1/+15
| | | | | | | | Mac OS X linker throws errors when `-exported_symbol_list' input file includes non-existing symbols. Reported by Ryan Schmidt. * builds/exports.mk: Exclude ftmac.h from the headers for apinames by default. Include it when ftmac.c would be compiled.
* * src/truetype/ttinterp.c (TInstruction_Function): Removed, unused.Werner Lemberg2016-07-062-8/+4
|
* * Version 2.6.4 released.VER-2-6-4Werner Lemberg2016-07-0525-215/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ========================= Tag sources with `VER-2-6-4'. * docs/VERSION.TXT: Update documentation and bump version number to 2.6.4. * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj, builds/windows/vc2005/index.html, builds/windows/vc2008/freetype.vcproj, builds/windows/vc2008/index.html, builds/windows/vc2010/freetype.vcxproj, builds/windows/vc2010/index.html, builds/windows/visualc/freetype.dsp, builds/windows/visualc/freetype.vcproj, builds/windows/visualc/index.html, builds/windows/visualce/freetype.dsp, builds/windows/visualce/freetype.vcproj, builds/windows/visualce/index.html, builds/wince/vc2005-ce/freetype.vcproj, builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/freetype.vcproj, builds/wince/vc2008-ce/index.html: s/2.6.3/2.6.4/, s/263/264/. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4. * builds/unix/configure.raw (version_info): Set to 18:4:12. * CMakeLists.txt (VERSION_PATCH): Set to 4. * docs/CHANGES: Updated.
* * src/pfr/pfrsbit.c (pfr_lookup_bitmap_data): Fix compiler warning.Werner Lemberg2016-07-052-1/+5
|
* [smooth] Variable type revision (part 2).Alexei Podtelezhnikov2016-07-042-5/+22
| | | | | | | * src/smooth/ftgrays.c (TArea): Restore original definition as `int'. (gray_render_line) [FT_LONG64]: Updated. (gray_convert_glyph): 32-bit band bisection stack should be 32 bands. (gray_convert_glyph_inner): Trace successes and failures.
* [autofit] Handle single-point contours as segments.Werner Lemberg2016-07-042-5/+80
| | | | | | | | | | | | Doing so allows us to link them to edges – some fonts like `NotoSansGurmukhi-Regular' have such isolated points sitting exactly on other outlines. * src/autofit/aflatin.c (af_latin_hints_compute_segments): Don't ignore one-point contours but handle them specially as one-point segments. (af_latin_hints_compute_edges): Append one-point segments to edges if possible.
* [autofit] Remove unused structure members.Werner Lemberg2016-07-023-5/+9
| | | | | | | * src/autofit/afhints.h (AF_SegmentRec, AF_EdgeRec): Remove `num_linked'. * src/autofit/afcjk.c (af_cjk_hints_link_segments): Updated.
* [autofit] Update to Unicode 9.0.0.Werner Lemberg2016-07-022-0/+9
| | | | | * src/autofit/afranges.c (af_arab_nonbase_uniranges, af_cyrl_uniranges): Add new data.
* [smooth] Variable type revision (part 1).Alexei Podtelezhnikov2016-07-012-46/+60
| | | | | | | | | | This patch restores original `TCoord' definition as `int' so that the rendering pool is used more efficiently on LP64 platforms (unix). * src/smooth/ftgrays.c (gray_TWorker, TCell, gray_TBand): Switch some fields to `TCoord'. (gray_find_cell, gray_render_scanline, gray_render_line, gray_hline, gray_sweep, gray_convert_glyph): Updated.
* [smooth] Minor clean-ups.Alexei Podtelezhnikov2016-06-282-10/+13
| | | | | * src/smooth/ftgrays.c (gray_TWorker): Remove redundant `ycount'. (gray_sweep, gray_convert_glyph, gray_dump_cells): Updated.
* [smooth] Minor clean-ups.Alexei Podtelezhnikov2016-06-282-12/+18
| | | | | | | * src/smooth/ftgrays.c (gray_convert_glyph): Do not use volatile qualifier. (gray_raster_render): Move span initializations from here. (gray_sweep): ... to here and remove unused `target' argument.
* [pcf] Fix handling of very large fonts (#47708).Alexei Podtelezhnikov2016-06-262-6/+18
| | | | | | * src/pcf/pcfread.c (pcf_get_encodings): Make `encodingOffset' an unsigned short. Only reject `0xFFFF' as an invalid encoding offset.
* [truetype] Really fix deallocation in case of error (#47726).Werner Lemberg2016-06-252-0/+8
| | | | | * src/truetype/ttgload.c (load_truetype_glyph): Thinko; initialize `outline.points' also.
* More info on `FT_Err_Glyph_Too_Big'.Werner Lemberg2016-06-251-0/+4
|
* [smooth] Consolidate memory management.Alexei Podtelezhnikov2016-06-232-37/+15
| | | | | | | * src/smooth/ftgrays.c (gray_init_cells): Remove function. (gray_TWorker): Remove fields that become local variables. (gray_raster_render): Move rendering buffer declaration from here. (gray_convert_glyph): ... to here and update accordingly.
* [smooth] Consolidate boundary checks.Alexei Podtelezhnikov2016-06-222-55/+46
| | | | | | | | | | Removing the checks from `gray_hline' shaves 1% off rendering speed. * src/smooth/ftgrays.c [STANDALONE_]: Duplicate `FT_MIN' and `FT_MAX'. (gray_TWorker): No need to store `clip_box'. (gray_hline): Remove unnecessary boundary checks. (gray_convert_glyph): Move boundary checks from here. (gray_raster_render): ... to here and consolidate.
* [smooth] Use `FT_Outline_Get_CBox'.Alexei Podtelezhnikov2016-06-222-33/+78
| | | | | | * src/smooth/ftgrays.c [STANDALONE_]: Duplicate `FT_Outline_Get_CBox'. (gray_compute_cbox): Remove this function. (gray_convert_glyph): Update to use `FT_Outline_Get_CBox'.
* Typos.Alexei Podtelezhnikov2016-06-213-6/+6
|
* [smooth] Remove compiler warnings.Werner Lemberg2016-06-212-6/+12
| | | | * src/smooth/ftgrays.c (gray_convert_glyph): Fix reports from clang.
* Typos.Alexei Podtelezhnikov2016-06-204-6/+6
|
* Typos.Alexei Podtelezhnikov2016-06-206-9/+9
|
* [smooth] Sanitize memory managenent.Alexei Podtelezhnikov2016-06-202-21/+19
| | | | * src/smooth/ftgrays.c (gray_convert_glyph): Cleaned up.
* [smooth] Remove `band_shoot' that never worked.Alexei Podtelezhnikov2016-06-182-9/+7
| | | | | * src/smooth/ftgrays.c (gray_TWorker): Remove `band_shoot'. (gray_convert_glyph): Updated.
* Fresh typos.Alexei Podtelezhnikov2016-06-182-2/+2
|
* [raster, smooth] Handle FT_RENDER_POOL_SIZE better.Alexei Podtelezhnikov2016-06-173-14/+30
| | | | | | | * src/raster/ftraster.c (FT_MAX_BLACK_POOL): New macro. (ft_black_render): Updated. * src/smooth/ftgrays.c (FT_MAX_GRAY_POOL): New macro. (gray_raster_render): Updated.
* Encoding tweaks.Alexei Podtelezhnikov2016-06-166-6/+3
|
* * src/base/md5.c: Updated to recent version.Werner Lemberg2016-06-162-31/+30
|
* Move function.Alexei Podtelezhnikov2016-06-141-44/+44
|
* * src/smooth/ftgrays.c (gray_hline): Optimize if-condition.Alexei Podtelezhnikov2016-06-142-5/+9
|
* [autofit] Add support for Cherokee script.Werner Lemberg2016-06-137-112/+192
| | | | | | | | | | | | * src/autofit/afblue.dat: Add blue zone data for Cherokee. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated. * src/autofit/afscript.h: Add Cherokee standard characters. * src/autofit/afranges.c: Add Cherokee data. * src/autofit/afstyles.h: Add Cherokee data.
* [cmake] Avoid modifying `ftconfig.h' and `ftoption.h' files.David Capello2016-06-092-3/+18
| | | | | | | * CMakeLists.txt: Each time cmake is run those files are modified and the whole FreeType library is recompiled. With this change we change the files only if there are real modifications, so we can avoid recompilations.
* [bdf] Check number of properties (#48166).Werner Lemberg2016-06-092-1/+17
| | | | * src/bdf/bdflib.c (_bdf_parse_start): Implement.
* [smooth] Re-enable new line renderer on 64-bit archs.Alexei Podtelezhnikov2016-06-082-1/+8
| | | | | * src/smooth/ftgrays (gray_render_line): Conditionally re-enable new implementation, where it is safe from overflows.
* [smooth] Minor clean-ups.Alexei Podtelezhnikov2016-06-082-45/+47
| | | | | * src/smooth/ftgrays.c (gray_dump_cells): Move out of the way. (gray_render_span): Remove spurious casts and streamline.
* [autofit] Add support for Ethiopic script.Werner Lemberg2016-06-077-99/+162
| | | | | | | | | | | | * src/autofit/afblue.dat: Add blue zone data for Ethiopic. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated. * src/autofit/afscript.h: Add Ethiopic standard characters. * src/autofit/afranges.c: Add Ethiopic data. * src/autofit/afstyles.h: Add Ethiopic data.
* [autofit] Fix compilation with VS2016 (#48126).Werner Lemberg2016-06-072-2/+11
| | | | | | | This compiler doesn't recognize the end-of-comment sequence `*/' if it immediately follows non-ASCII characters. * src/autofit/afscript.h: Ensure whitespace before `*/'.
* ChangeLog fixes.Alexei Podtelezhnikov2016-06-047-38/+38
|
* Comment.Werner Lemberg2016-06-041-2/+5
|
* [truetype] Fix missed test for named instances (#48122).Werner Lemberg2016-06-042-3/+9
| | | | * src/truetype/ftobjs.c (Mac_Read_sfnt_Resource): Implement.
* [truetype] Let SHPIX move points in the twilight zone in v40.Nikolaus Waxweiler2016-05-312-5/+25
| | | | | | | | * src/truetype/ttinterp.c (Ins_SHPIX): Allow SHPIX to move points in the twilight zone. Otherwise, treat SHPIX the same as DELTAP. Unbreaks various fonts such as older versions of Rokkitt and DTL Argo T Light that would glitch severly after calling ALIGNRP after a blocked SHPIX.
* [type42] Support `CharStrings' entry format as created by LilyPond.Werner Lemberg2016-05-302-4/+24
| | | | | | | * src/type42/t42parse.c (t42_parse_charstrings): Handle entries having the format (foo) cvn 12345 def
* * src/autofit/afranges.c: Remove `UL' postfix from hex numbers.Werner Lemberg2016-05-282-326/+335
| | | | | | | Suggested by Alexei. `UL' is only needed for 16bit compilers, but it seems noone is using this anymore (and we no longer test whether FreeType compiles in such an environment). Otherwise, it is easy to add the postfix to the `AF_UNICODE_RANGE' macro.
* [smooth] Shrink bisection stack.Alexei Podtelezhnikov2016-05-262-62/+80
| | | | | | | | | | | | | | | The convergence of Bézier flatteners is fast with the deviation from straight line being assymptotically cut 4-fold on each bisection. This justifies smaller bisection stack size. * src/smooth/ftgrays.c (gray_TWorker): Remove common `bez_stack'. (gray_render_conic): Create and use conic `bez_stack'. Move back the band analysis from... (gray_conic_to): ... here. (gray_render_cubic): Create and use cubic `bez_stack'. Move back the band analysis from... (gray_cubic_to): ... here. (gray_move_to): Updated.
* [autofit] Fixes for Armenian and Gujarati ranges.Werner Lemberg2016-05-252-3/+9
| | | | | * src/autofit/afranges.c (af_armn_uniranges): Corrected. (af_guru_nonbase_uniranges): Make U+0A3E a base character.