1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/modules/freetype2/ChangeLog Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,3202 @@ 1.4 +2014-03-06 Werner Lemberg <wl@gnu.org> 1.5 + 1.6 + * Version 2.5.3 released. 1.7 + ========================= 1.8 + 1.9 + 1.10 + Tag sources with `VER-2-5-3'. 1.11 + 1.12 + * docs/VERSION.DLL: Update documentation and bump version number to 1.13 + 2.5.3. 1.14 + 1.15 + * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj, 1.16 + builds/windows/vc2005/index.html, 1.17 + builds/windows/vc2008/freetype.vcproj, 1.18 + builds/windows/vc2008/index.html, 1.19 + builds/windows/vc2010/freetype.vcxproj, 1.20 + builds/windows/vc2010/index.html, 1.21 + builds/windows/visualc/freetype.dsp, 1.22 + builds/windows/visualc/freetype.vcproj, 1.23 + builds/windows/visualc/index.html, 1.24 + builds/windows/visualce/freetype.dsp, 1.25 + builds/windows/visualce/freetype.vcproj, 1.26 + builds/windows/visualce/index.html, 1.27 + builds/wince/vc2005-ce/freetype.vcproj, 1.28 + builds/wince/vc2005-ce/index.html, 1.29 + builds/wince/vc2008-ce/freetype.vcproj, 1.30 + builds/wince/vc2008-ce/index.html: s/2.5.2/2.5.3/, s/252/253/. 1.31 + 1.32 + * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3. 1.33 + 1.34 + * builds/unix/configure.raw (version_info): Set to 17:2:11. 1.35 + * CMakeLists.txt (VERSION_PATCH): Set to 3. 1.36 + * docs/CHANGES: Updated. 1.37 + 1.38 +2014-03-06 Werner Lemberg <wl@gnu.org> 1.39 + 1.40 + Fixes for compilation with C++. 1.41 + 1.42 + * src/autofit/hbshim.c (scripts): Change type to `hb_script_t'. 1.43 + (af_get_coverage): Updated. 1.44 + (COVERAGE): Add cast. 1.45 + 1.46 +2014-03-06 Sean McBride <sean@rogue-research.com> 1.47 + 1.48 + Remove more clang analyzer warnings. 1.49 + 1.50 + * src/bdf/bdflib.c (_bdf_readstream), src/truetype/ttgload.c 1.51 + (TT_Load_Glyph): Remove dead stores. 1.52 + 1.53 +2014-03-05 Werner Lemberg <wl@gnu.org> 1.54 + 1.55 + * builds/unix/configure.raw: Simplify. 1.56 + 1.57 +2014-03-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> 1.58 + 1.59 + Fix a bug in configure in library dependency setting 1.60 + Reported in https://bugs.freedesktop.org/show_bug.cgi?id=75652. 1.61 + 1.62 + * builds/unix/configure.raw: Use `x"${xxx}" != xno' style. 1.63 + 1.64 +2014-03-04 Werner Lemberg <wl@gnu.org> 1.65 + 1.66 + Minor fix for `make devel'. 1.67 + 1.68 + * builds/freetype.mk (INCLUDE_FLAGS) [DEVEL_DIR]: Don't use 1.69 + pkg-config for bzip2 since not all GNU/Linux distributions have 1.70 + `bzip2.pc' (and the header file `bzlib.h' is located in /usr/include 1.71 + normally). 1.72 + 1.73 +2014-03-04 Sean McBride <sean@rogue-research.com> 1.74 + 1.75 + Fix several clang static analyzer dead store warnings. 1.76 + 1.77 + * src/autofit/afhints.c (af_glyph_hints_reload, 1.78 + af_glyph_hints_align_weak_points): Remove unnecessary assignments. 1.79 + 1.80 + * src/bdf/bdflib.c (bdf_font_load): Ditto. 1.81 + 1.82 + * src/pshinter/pshalgo.c (psh_glyph_compute_extrema, 1.83 + psh_glyph_interpolate_other_points): Ditto. 1.84 + 1.85 + * src/type1/t1load.c (T1_Set_MM_Blend): Ditto. 1.86 + 1.87 +2014-03-03 Werner Lemberg <wl@gnu.org> 1.88 + 1.89 + Rewrite library option handling in `configure'. 1.90 + 1.91 + o Introduce `auto' value for `--with-XXX' library options; this is 1.92 + now the default. 1.93 + 1.94 + o First use `pkg-config' for library detection, then fall back to 1.95 + other tests. 1.96 + 1.97 + * builds/unix/configure.raw (--with-zlib, --with-bzip2, --with-png, 1.98 + --with-harfbuzz): Rewrite. 1.99 + Use new `xxx_reqpriv', `xxx_libpriv', and `xxx_libstaticconf' 1.100 + variables to collect data for `freetype2.pc' and `freetype-config'. 1.101 + (FT2_EXTRA_LIBS): Renamed to ... 1.102 + (ft2_extra_libs): This since it gets no longer substituted. 1.103 + (REQUIRES_PRIVATE, LIBS_PRIVATE, LIBS_CONFIG, LIBSSTATIC_CONFIG): 1.104 + New output variables, replacing `XXX_PKG' and `LIBXXX'. 1.105 + Add notice at the end of `configure' showing the library 1.106 + configuration. 1.107 + 1.108 + * builds/unix/freetype-config.in (--static): New command line 1.109 + option. 1.110 + (libs): Updated. 1.111 + (staticlibs): New variable, to be used if `--static' is given. 1.112 + * builds/doc/freetype-config.1: Document `--static'. 1.113 + 1.114 + * builds/unix/freetype2.in, builds/unix/unix-def.in: Updated. 1.115 + 1.116 +2014-03-01 Werner Lemberg <wl@gnu.org> 1.117 + 1.118 + Avoid `long long' warnings with older gcc compilers. 1.119 + Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>. 1.120 + 1.121 + * builds/unix/configure.raw: Don't use gcc's `-pedantic' flag for 1.122 + versions < 4.6. This is especially needed for Max OS X since this 1.123 + OS runs a gcc variant (or emulation) based on version 4.2.1. 1.124 + 1.125 +2014-03-01 Werner Lemberg <wl@gnu.org> 1.126 + 1.127 + * docs/INSTALL.CROSS: Revised and updated. 1.128 + 1.129 +2014-03-01 Werner Lemberg <wl@gnu.org> 1.130 + 1.131 + Make `make clean' remove `freetype2.pc'. 1.132 + 1.133 + This is a generated file at build time, not configure time. 1.134 + 1.135 + * builds/unix/unix-def.in (DISTCLEAN): Move `freetype2.pc' to ... 1.136 + (CLEAN): This variable. 1.137 + 1.138 +2014-03-01 Werner Lemberg <wl@gnu.org> 1.139 + 1.140 + Use pkg-config for detecting libpng and libbz2 also. 1.141 + 1.142 + * builds/unix/configure.raw (HAVE_PKG): New variable. 1.143 + Search for libbz2 using `pkg-config'; s/BZ2/BZIP2/. 1.144 + Search for libpng using `pkg-config'. 1.145 + Fix definition of `LIBHARFBUZZ' variable. 1.146 + * builds/unix/freetype-config.in ($libs): Updated. 1.147 + * builds/unix/freetype2.in: Add `URL' field. 1.148 + Update `Requires.private' and `Libs.private'. 1.149 + * builds/unix/unix-def.in: Updated. 1.150 + 1.151 +2014-03-01 Werner Lemberg <wl@gnu.org> 1.152 + 1.153 + Add configure support for HarfBuzz. 1.154 + 1.155 + * builds/unix/pkg.m4: New file. 1.156 + * builds/unix/configure.raw: Search for libharfbuzz using 1.157 + `pkg-config'. 1.158 + Add `--without-harfbuzz' option. 1.159 + * builds/unix/freetype-config.in, builds/unix/freetype2.in, 1.160 + builds/unix/unix-def.in (freetype-config, freetype2.pc): Handle 1.161 + HarfBuzz. 1.162 + 1.163 + * docs/INSTALL.UNIX: Document interdependency of Freetype with 1.164 + HarfBuzz. 1.165 + 1.166 +2014-02-28 Alexei Podtelezhnikov <apodtele@gmail.com> 1.167 + 1.168 + [cff] Math simplifications. 1.169 + 1.170 + * src/cf2blues.c (cf2_blues_init): Use `FT_MulDiv'. 1.171 + * src/cf2ft.c (cf2_getScaleAndHintFlag): Use simple division. 1.172 + 1.173 +2014-02-28 Dave Arnold <darnold@adobe.com> 1.174 + 1.175 + [cff] Fix Savannah bug #41697, part 2. 1.176 + 1.177 + * src/cff/cf2ft.c (cf2_initLocalRegionBuffer, 1.178 + cf2_initGlobalRegionBuffer): It is possible for a charstring to call 1.179 + a subroutine if no subroutines exist. This is an error but should 1.180 + not trigger an assert. Split the assert to account for this. 1.181 + 1.182 +2014-02-28 Dave Arnold <darnold@adobe.com> 1.183 + 1.184 + [cff] Fix Savannah bug #41697, part 1. 1.185 + 1.186 + * src/cff/cf2hints.c (cf2_hintmap_build): Return when `hintMask' is 1.187 + invalid. In this case, it is not safe to use the length of 1.188 + `hStemHintArray'; the exception has already been recorded in 1.189 + `hintMask'. 1.190 + 1.191 +2014-02-26 Werner Lemberg <wl@gnu.org> 1.192 + 1.193 + [sfnt] Fix Savannah bug #41696. 1.194 + 1.195 + * src/sfnt/ttcmap.c (tt_cmap0_validate, tt_cmap2_validate, 1.196 + tt_cmap4_validate, tt_cmap14_validate): Fix limit tests. 1.197 + 1.198 +2014-02-26 Werner Lemberg <wl@gnu.org> 1.199 + 1.200 + [winfnt] Fix Savannah bug #41694. 1.201 + 1.202 + * src/winfonts/winfnt.c (FNT_Load_Glyph): Check glyph offset. 1.203 + 1.204 +2014-02-26 Werner Lemberg <wl@gnu.org> 1.205 + 1.206 + [cff] Fix Savannah bug #41693. 1.207 + 1.208 + * src/cff/cffload.c (CFF_Load_FD_Select): Reject empty array. 1.209 + 1.210 +2014-02-26 Werner Lemberg <wl@gnu.org> 1.211 + 1.212 + [bdf] Fix Savannah bug #41692. 1.213 + 1.214 + bdflib puts data from the input stream into a buffer in chunks of 1.215 + 1024 bytes. The data itself gets then parsed line by line, simply 1.216 + increasing the current pointer into the buffer; if the search for 1.217 + the final newline character exceeds the buffer size, more data gets 1.218 + read. 1.219 + 1.220 + However, in case the current line's end is very near to the buffer 1.221 + end, and the keyword to compare with is longer than the current 1.222 + line's length, an out-of-bounds read might happen since `memcmp' 1.223 + doesn't stop properly at the string end. 1.224 + 1.225 + * src/bdf/bdflib.c: s/ft_memcmp/ft_strncmp/ to make comparisons 1.226 + stop at string ends. 1.227 + 1.228 +2014-02-17 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> 1.229 + 1.230 + [autofit] Fix `make multi' compilation. 1.231 + 1.232 + * src/autofit/hbshim.c: Include `afglobal.h' and `aftypes.h'. 1.233 + 1.234 +2014-02-19 Werner Lemberg <wl@gnu.org> 1.235 + Simon Bünzli <zeniko@gmail.com> 1.236 + 1.237 + Fix Savannah bug #32902. 1.238 + 1.239 + Patch taken from 1.240 + 1.241 + https://code.google.com/p/sumatrapdf/source/browse/trunk/ext/_patches/freetype2.patch?spec=svn8620&r=8620#87 1.242 + 1.243 + with slight modifications. 1.244 + 1.245 + * src/type1/t1parse.c (T1_Get_Private_Dict): Add heuristic test to 1.246 + handle fonts that incorrectly use \r at the beginning of an eexec 1.247 + block. 1.248 + 1.249 +2014-02-19 Simon Bünzli <zeniko@gmail.com> 1.250 + 1.251 + Fix Savannah bug #41590. 1.252 + 1.253 + * src/type1/t1load.c (parse_encoding): Protect against invalid 1.254 + number. 1.255 + 1.256 +2014-02-12 Dave Arnold <darnold@adobe.com> 1.257 + 1.258 + [cff] Optimize by using `FT_MulDiv'. 1.259 + Suggested by Alexei. 1.260 + 1.261 + * src/cff/cf2font.c (cf2_computeDarkening): Do it. 1.262 + 1.263 +2014-02-12 Werner Lemberg <wl@gnu.org> 1.264 + 1.265 + Fix Savannah bug #41465. 1.266 + 1.267 + * builds/unix/unix-def.in (CLEAN): Add `freetype-config'. 1.268 + (DISTCLEAN): Remove `freetype-config'. 1.269 + 1.270 +2014-02-08 Sean McBride <sean@rogue-research.com> 1.271 + 1.272 + Fix clang static analyzer and compiler warnings. 1.273 + 1.274 + * src/autofit/afhints.c (af_glyph_hints_align_weak_points), 1.275 + src/autofit/afloader (af_loader_load_g) <FT_GLYPH_FORMAT_COMPOSITE>, 1.276 + src/base/ftcalc.c (FT_MSB), src/base/ftoutln.c 1.277 + (FT_Outline_Decompose), src/bdf/bdfdrivr.c (bdf_interpret_style), 1.278 + src/cff/cffparse.c (cff_parse_integer), src/cid/cidparse.c 1.279 + (cid_parser_new), src/pfr/pfrload.c (pfr_phy_font_load), 1.280 + src/raster/ftraster.c (Decompose_Curve), src/sfnt/sfdriver.c 1.281 + (sfnt_get_ps_name), src/sfnt/ttcmap.c (tt_cmap12_next, 1.282 + tt_cmap13_next), src/smooth/ftgrays.c (gray_hline): Remove dead 1.283 + code. 1.284 + 1.285 + * src/autofit/afmodule.c (af_property_get_face_globals, 1.286 + af_property_set, af_property_get), src/base/ftbitmap.c 1.287 + (ft_gray_for_premultiplied_srgb_bgra): Make functions static. 1.288 + 1.289 + * src/base/ftobjs.c (ft_remove_renderer): Protect against 1.290 + library == NULL. 1.291 + (ft_property_do): Make function static. 1.292 + 1.293 + * src/base/ftrfork.c: Include `ftbase.h'. 1.294 + 1.295 + * src/sfnt/ttsbit.c (tt_face_load_sbix_image) 1.296 + [!FT_CONFIG_OPTION_USE_PNG], src/type1/t1gload.c 1.297 + (T1_Compute_Max_Advance): Avoid compiler warning. 1.298 + 1.299 + * src/truetype/ttinterp.c (TT_New_Context): Reduce scope of 1.300 + variable. 1.301 + 1.302 +2014-02-08 Werner Lemberg <wl@gnu.org> 1.303 + 1.304 + Fix Windows build directories. 1.305 + 1.306 + The build target is now `windows' instead of `win32'. 1.307 + 1.308 + Problem reported by Nickolas George <darknova.clan@gmail.com>. 1.309 + 1.310 + * builds/modules.mk: Don't use `win32' and `win16' (!) but 1.311 + `windows'. 1.312 + 1.313 + * builds/windows/detect.mk, builds/windows/win32-def.mk: 1.314 + s/win32/windows/. 1.315 + 1.316 +2014-02-08 Eugen Sawin <esawin@mozilla.com> 1.317 + 1.318 + Fix Savannah bug #41507. 1.319 + 1.320 + * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap) 1.321 + [!FT_CONFIG_OPTION_USE_PNG] <17, 17, 19>: Fix error handling. 1.322 + 1.323 +2014-02-08 Dave Arnold <darnold@adobe.com> 1.324 + 1.325 + [cff] Fix minor performance bug. 1.326 + 1.327 + * src/cff/cf2font.c (cf2_font_setup): Darkening amount and blue zone 1.328 + calculations are now cached and not recomputed on each glyph. 1.329 + 1.330 +2014-02-05 Werner Lemberg <wl@gnu.org> 1.331 + 1.332 + Fix problems with perl 5.8.8 as distributed with current MinGW. 1.333 + 1.334 + * src/tools/afblue.pl: Work-around for Perl bug #63402. 1.335 + (string_re): Avoid `possessive quantifiers', which have been 1.336 + introduced in Perl version 5.10. 1.337 + 1.338 +2014-02-04 Werner Lemberg <wl@gnu.org> 1.339 + 1.340 + Fix compilation with MinGW. 1.341 + 1.342 + Right now, compilation out of the box with latest MinGW is broken 1.343 + due to bugs in header files of mingwrt 4.0.3 in strict ANSI mode, 1.344 + cf. 1.345 + 1.346 + https://sourceforge.net/p/mingw/bugs/2024/ 1.347 + https://sourceforge.net/p/mingw/bugs/2046/ 1.348 + 1.349 + * builds/unix/configure.raw: Don't set `-ansi' flag for MinGW. 1.350 + 1.351 +2014-02-04 Werner Lemberg <wl@gnu.org> 1.352 + 1.353 + [autofit] Minor fix. 1.354 + 1.355 + * src/autofit/afcjk.c (af_cjk_metrics_init_widths), 1.356 + src/autofit/aflatin.c (af_latin_metrics_init_widths): Fix handling 1.357 + of alternative standard characters. 1.358 + This also fixes a compilation warning in non-debug mode. 1.359 + 1.360 +2014-02-03 Werner Lemberg <wl@gnu.org> 1.361 + 1.362 + [cff] Fix Savannah bug #41363. 1.363 + 1.364 + * src/cff/cf2ft.c (cf2_checkTransform): Convert assertion into 1.365 + parameter check. 1.366 + (cf2_decoder_parse_charstrings): Call `cf2_checkTransform' only if 1.367 + we are scaling the outline. 1.368 + (cf2_getPpemY): Remove problematic assertion. 1.369 + 1.370 +2014-01-26 Werner Lemberg <wl@gnu.org> 1.371 + 1.372 + [autofit] Introduce two more slots for standard characters. 1.373 + 1.374 + This is useful for OpenType features like `c2sc' (caps to small 1.375 + caps) that don't have lowercase letters by definition, or other 1.376 + features that mainly operate on numerals. 1.377 + 1.378 + * src/autofit/afscript.h: Add more standard characters. 1.379 + 1.380 + * src/autofit/aftypes.h: Update use of `SCRIPT' macro. 1.381 + (AF_ScriptClassRec): Add members to hold two more standard 1.382 + characters. 1.383 + (AF_DEFINE_SCRIPT_CLASS): Updated. 1.384 + 1.385 + * src/autofit/afglobal.c, src/autofit/afglobal.h, 1.386 + * src/autofit/afpic.c, src/autofit/afranges.h, src/autofit/hbshim.c: 1.387 + Update use of `SCRIPT' macro. 1.388 + 1.389 + * src/autofit/afcjk.c (af_cjk_metrics_init_widths), 1.390 + src/autofit/aflatin.c (af_latin_metrics_init_widths): Scan two more 1.391 + standard characters. 1.392 + 1.393 +2014-01-24 Werner Lemberg <wl@gnu.org> 1.394 + 1.395 + Fix Savannah bug #41320. 1.396 + 1.397 + * src/autofit/aflatin.c (af_latin_metrics_init_blues) 1.398 + <AF_LATIN_IS_LONG_BLUE>: Avoid negative index of `last'. 1.399 + 1.400 +2014-01-23 Werner Lemberg <wl@gnu.org> 1.401 + 1.402 + Fix Savannah bug #41310. 1.403 + 1.404 + * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap) <glyph_format==5>: 1.405 + Don't check metrics, which this format doesn't have. 1.406 + This is another correction to the commit from 2013-11-21. 1.407 + 1.408 +2014-01-23 Werner Lemberg <wl@gnu.org> 1.409 + 1.410 + Fix Savannah bug #41309. 1.411 + 1.412 + * src/type1/t1load.c (t1_parse_font_matrix): Properly handle result 1.413 + of `T1_ToFixedArray'. 1.414 + 1.415 + * src/cid/cidload.c (cid_parse_font_matrix): Synchronize with 1.416 + `t1_parse_font_matrix'. 1.417 + 1.418 + * src/type42/t42parse.c (t42_parse_font_matrix): Synchronize with 1.419 + `t1_parse_font_matrix'. 1.420 + (t42_parse_encoding): Synchronize with `t1_parse_encoding'. 1.421 + 1.422 + * src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_BBOX>, 1.423 + <T1_FIELD_TYPE_MMOX>: Properly handle result of `ps_tofixedarray'. 1.424 + 1.425 +2014-01-22 Werner Lemberg <wl@gnu.org> 1.426 + 1.427 + * src/autofit/hbshim.c (af_get_coverage): Fix memory leaks. 1.428 + 1.429 +2014-01-16 Werner Lemberg <wl@gnu.org> 1.430 + 1.431 + [autofit] Improve tracing of style coverages. 1.432 + 1.433 + * include/internal/fttrace.h: Add `afglobal' for tracing style 1.434 + coverages. 1.435 + 1.436 + * src/autofit/afglobal.c: Include FT_INTERNAL_DEBUG_H. 1.437 + (FT_COMPONENT): Define. 1.438 + (af_face_globals_compute_style_coverage): Trace `gstyles' array 1.439 + data. 1.440 + 1.441 +2014-01-09 Werner Lemberg <wl@gnu.org> 1.442 + 1.443 + Fix Savannah bug #41158. 1.444 + 1.445 + * builds/unix/install.mk (install): Create man page directory. 1.446 + 1.447 +2014-01-08 Chongyu Zhu <lembacon@gmail.com> 1.448 + 1.449 + [arm] Fix Savannah bug #41138, part 2. 1.450 + 1.451 + * builds/unix/ftconfig.in (FT_MulFix_arm), include/config/ftconfig.h 1.452 + (FT_MulFix_arm), src/truetype/ttinterp.c (TT_MulFix14_arm): Fix 1.453 + preprocessor conditionals for `add.w'. 1.454 + 1.455 +2014-01-08 Werner Lemberg <wl@gnu.org> 1.456 + 1.457 + [autofit] Fix Savannah bug #41138, part 1. 1.458 + 1.459 + * src/tools/afblue.pl <Handling #endif>: Produce correct auxiliary 1.460 + enumeration names for generated `#else'. 1.461 + 1.462 + * src/autofit/afblue.h: Regenerated. 1.463 + 1.464 +2014-01-06 Werner Lemberg <wl@gnu.org> 1.465 + 1.466 + Add manual page for `freetype-config'. 1.467 + Contributed by Nis Martensen <nis.martensen@web.de>. 1.468 + 1.469 + * docs/freetype-config.1: New file. 1.470 + 1.471 + * builds/unix/unix-def.in (mandir): Define. 1.472 + * builds/unix/install.mk (install, uninstall): Handle manpage. 1.473 + 1.474 +2014-01-05 Werner Lemberg <wl@gnu.org> 1.475 + 1.476 + [autofit] Minor fixes for `afblue.pl'. 1.477 + 1.478 + * src/tools/afblue.pl (aux_name): Don't use `reverse'. 1.479 + <Handling #endif>: Use proper indentation for generated `#else'. 1.480 + 1.481 + * src/autofit/afblue.h: Regenerated. 1.482 + 1.483 +2014-01-04 Werner Lemberg <wl@gnu.org> 1.484 + 1.485 + [autofit] Fix Indic scripts. 1.486 + 1.487 + Split the single, incorrect Indic entry into separate scripts so 1.488 + that the covered ranges are the same: Bengali, Devanagari, Gujarati, 1.489 + Gurmukhi, Kannada, Limbu, Malayalam, Oriya, Sinhala, Sundanese, 1.490 + Syloti Nagri, Tamil, Telugu, and Tibetan. At the same time, remove 1.491 + entries for Meetai Mayak and Sharada – the Unicode ranges were 1.492 + incorrect (and nobody has complained about that), fonts are scarce 1.493 + for those scripts, and the Indic auto-hinter support is rudimentary 1.494 + anyways. 1.495 + 1.496 + * src/autofit/afscript.h: Updated, using AF_CONFIG_OPTION_INDIC and 1.497 + AF_CONFIG_OPTION_CJK. 1.498 + 1.499 + * src/autofit/afstyles.h (STYLE_DEFAULT_INDIC): New auxiliary macro. 1.500 + Use it, together with AF_CONFIG_OPTION_INDIC and 1.501 + AF_CONFIG_OPTION_CJK, to update. 1.502 + 1.503 + * src/autofit/afranges.c [AF_CONFIG_OPTION_INDIC]: Updated. 1.504 + [!AF_CONFIG_OPTION_INDIC, !AF_CONFIG_OPTION_CJK]: Removed. 1.505 + Sort entries by tags. 1.506 + 1.507 +2014-01-03 Werner Lemberg <wl@gnu.org> 1.508 + 1.509 + [autofit] Thinko. 1.510 + 1.511 + * src/autofit/hbshim.c (af_get_char_index): Similar to 1.512 + `af_get_coverage', reject glyphs which are not substituted. 1.513 + 1.514 +2014-01-03 Werner Lemberg <wl@gnu.org> 1.515 + 1.516 + [autofit] Fix handling of default coverages. 1.517 + 1.518 + With this commit, the implementation of coverage handling is 1.519 + completed. 1.520 + 1.521 + * src/autofit/hbshim.c (af_get_coverage): Exit early if nothing to 1.522 + do. 1.523 + Reject coverages which don't contain appropriate glyphs for blue 1.524 + zones. 1.525 + 1.526 +2014-01-03 Werner Lemberg <wl@gnu.org> 1.527 + 1.528 + [autofit] Fix handling of default coverages. 1.529 + 1.530 + * src/autofit/afglobal.c (af_face_globals_compute_style_coverage): 1.531 + First handle non-default coverages, then the default coverage of the 1.532 + default script, and finally the other default coverages. 1.533 + 1.534 +2014-01-03 Werner Lemberg <wl@gnu.org> 1.535 + 1.536 + [autofit] Fix scaling of HarfBuzz shaping. 1.537 + 1.538 + * src/autofit/hbshim.c (af_get_char_index): Scale to units per EM. 1.539 + 1.540 +2014-01-03 Werner Lemberg <wl@gnu.org> 1.541 + 1.542 + [autofit] Better ftgrid support. 1.543 + 1.544 + * src/autofit/afhints.c (af_glyph_hints_get_segment_offset): Add 1.545 + parameters `is_blue' and `blue_offset'. 1.546 + 1.547 +2014-01-01 Werner Lemberg <wl@gnu.org> 1.548 + 1.549 + [autofit] Remove some styles. 1.550 + 1.551 + * src/autofit/afcover.h: Remove coverages for alternative fractions, 1.552 + denominators, numerators, and fractions. 1.553 + 1.554 + * src/autofit/afstyles.h (META_STYLE_LATIN): Updated. 1.555 + 1.556 +2014-01-01 Werner Lemberg <wl@gnu.org> 1.557 + 1.558 + [autofit] Add more styles. 1.559 + 1.560 + * src/autofit/afstyles.h (STYLE_LATIN, META_STYLE_LATIN): New 1.561 + auxiliary macros; use them to define styles for Cyrillic, Greek, and 1.562 + Latin. 1.563 + 1.564 + * src/autofit/afcover.h: Remove coverage for oldstyle figures. 1.565 + Since those digits are used in combination with ordinary letters, it 1.566 + makes no sense to handle them separately. 1.567 + 1.568 + * src/autofit/afglobal.c (af_face_globals_get_metrics): Don't limit 1.569 + `options' parameter to 4 bits. 1.570 + 1.571 +2014-01-01 Werner Lemberg <wl@gnu.org> 1.572 + 1.573 + [autofit] Fix style assignments to glyphs. 1.574 + 1.575 + * src/autofit/hbshim.c (af_get_coverage) 1.576 + [FT_CONFIG_OPTION_USE_HARFBUZZ]: Scan GPOS coverage of features also 1.577 + so that we can skip glyphs that have both GSUB and GPOS data. 1.578 + 1.579 +2014-01-01 Werner Lemberg <wl@gnu.org> 1.580 + 1.581 + * src/autofit/hbshim.c: s/{lookups,glyphs}/gsub_{lookups,glyphs}/. 1.582 + 1.583 +2014-01-01 Werner Lemberg <wl@gnu.org> 1.584 + 1.585 + [autofit] Implement and use `af_get_char_index' with HarfBuzz. 1.586 + 1.587 + * src/autofit/hbshim.c (COVERAGE) [FT_CONFIG_OPTION_USE_HARFBUZZ]: 1.588 + Redefine to construct HarfBuzz features. 1.589 + (af_get_char_index) [FT_CONFIG_OPTION_USE_HARFBUZZ]: Rewritten. 1.590 + 1.591 + * src/autofit/aflatin.c (af_latin_metrics_init_blues): Use 1.592 + `y_offset' to adjust `best_y'. 1.593 + 1.594 +2013-12-31 Werner Lemberg <wl@gnu.org> 1.595 + 1.596 + [autofit] s/AF_STYLE_...._DEFAULT/AF_STYLE_...._DFLT/i. 1.597 + 1.598 +2013-12-31 Werner Lemberg <wl@gnu.org> 1.599 + 1.600 + [autofit] Fix interface of `af_get_char_index'. 1.601 + 1.602 + * src/autofit/hbshim.c (af_get_char_index): Return error value. 1.603 + Add argument for y offset (to be used in a yet-to-come patch). 1.604 + 1.605 + * src/autofit/hbshim.h, src/autofit/afcjk.c, 1.606 + src/autofit/aflatin.c: Updated. 1.607 + 1.608 +2013-12-30 Werner Lemberg <wl@gnu.org> 1.609 + 1.610 + [autofit] Don't combine multiple features into one set. 1.611 + 1.612 + Combining them, as originally envisioned, would lead to much more 1.613 + complicated code, as investigations have shown meanwhile. The major 1.614 + drawback is that we run out of available style slots much earlier. 1.615 + However, this is only a theoretical issue since we don't support a 1.616 + large number of scripts currently. 1.617 + 1.618 + * src/autofit/afcover.h: Replace `COVERAGE_{1,2,3}' macros with 1.619 + a single-element `COVERAGE' macro, sort the elements by the feature 1.620 + tags, and add entry for `ruby'. 1.621 + 1.622 + * src/autofit/aftypes.h: Updated. 1.623 + * src/autofit/hbshim.c: Updated. 1.624 + 1.625 +2013-12-28 Werner Lemberg <wl@gnu.org> 1.626 + 1.627 + [autofit] Code shuffling to reduce use of cpp macros. 1.628 + 1.629 + * src/autofit/afglobal.c (af_face_globals_compute_style_coverage): 1.630 + Call `af_get_coverage' unconditionally. 1.631 + 1.632 + * src/autofit/autofit.c: Include `hbshim.c' unconditionally. 1.633 + 1.634 + * src/autofit/hbshim.c (af_get_coverage) 1.635 + [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Provide dummy function. 1.636 + 1.637 + * src/autofit/hbshim.h: Provide function declarations 1.638 + unconditionally. 1.639 + 1.640 +2013-12-28 Werner Lemberg <wl@gnu.org> 1.641 + 1.642 + [autofit] Add wrapper function for `FT_Get_Char_Index'. 1.643 + 1.644 + Yet-to-come changes will provide HarfBuzz functionality for the new 1.645 + function. 1.646 + 1.647 + * src/autofit/hbshim.c (af_get_char_index): New function. 1.648 + * src/autofit/hbshim.h: Updated. 1.649 + 1.650 + * src/autofit/afcjk.c (af_cjk_metrics_init_widths, 1.651 + af_cjk_metrics_init_blues, af_cjk_metrics_check_digits): Updated. 1.652 + 1.653 + * src/autofit/aflatin.c (af_latin_metrics_init_widths, 1.654 + af_latin_metrics_init_blues, af_latin_metrics_check_digits): 1.655 + Updated. 1.656 + 1.657 +2013-12-28 Werner Lemberg <wl@gnu.org> 1.658 + 1.659 + [autofit] Use `global' HarfBuzz font object. 1.660 + 1.661 + We now use `hb_font' instead of `hb_face' since yet-to-come changes 1.662 + need this. 1.663 + 1.664 + * src/autofit/afglobal.h: Include `hbshim.h'. 1.665 + (AF_FaceGlobalsRec) [FT_CONFIG_OPTION_USE_HARFBUZZ]: New member 1.666 + `hb_font'. 1.667 + 1.668 + * src/autofit/afglobal.c (af_face_globals_new) 1.669 + [FT_CONFIG_OPTION_USE_HARFBUZZ]: Create `hb_font'. 1.670 + (af_face_globals_free) [FT_CONFIG_OPTION_USE_HARFBUZZ]: Destroy 1.671 + `hb_font'. 1.672 + 1.673 + * src/autofit/hbshim.h: Include HarfBuzz headers. 1.674 + 1.675 + * src/autofit/hbshim.c: Include `hbshim.h' instead of HarfBuzz 1.676 + headers. 1.677 + (af_get_coverage): Updated. 1.678 + 1.679 +2013-12-27 Werner Lemberg <wl@gnu.org> 1.680 + 1.681 + [autofit] Handle `DFLT' OpenType script for coverages. 1.682 + 1.683 + * include/ftautoh.h: Document new `default-script' property. 1.684 + 1.685 + * src/autofit/hbshim.c (af_get_coverage): Use `AF_FaceGlobals' for 1.686 + type of first parameter. 1.687 + (script_tags): Add one more element. 1.688 + (af_get_coverage): Adjust `script_tags' to handle `DFLT' script tag. 1.689 + 1.690 + * src/autofit/hbshim.h: Updated. 1.691 + 1.692 + * src/autofit/afglobal.c (af_face_globals_compute_style_coverage): 1.693 + Updated. 1.694 + 1.695 + * src/autofit/afglobal.h (AF_SCRIPT_DEFAULT): New macro. 1.696 + 1.697 + * src/autofit/afmodule.h (AF_ModuleRec): New `default_script' 1.698 + member. 1.699 + 1.700 + * src/autofit/afmodule.c (af_property_set, af_property_get): Handle 1.701 + `default-script' property. 1.702 + (af_autofitter_init): Updated. 1.703 + 1.704 +2013-12-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> 1.705 + 1.706 + [ftrfork] Fix the face order difference between POSIX and Carbon. 1.707 + 1.708 + The fragmented resources in Suitcase and .dfont should be reordered 1.709 + when `POST' resource for Type1 is being restored, but reordering of 1.710 + sfnt resources induces the different face order. Now the ordering 1.711 + is restricted to `POST' resource only, to prevent the different 1.712 + order issue (e.g. the face index in the fontconfig cache generated 1.713 + with Carbon framework is incompatible with that by FreeType 2 1.714 + without Carbon framework.) Found by Khaled Hosny and Hin-Tak Leung. 1.715 + 1.716 + http://lists.gnu.org/archive/html/freetype-devel/2013-02/msg00035.html 1.717 + http://lists.gnu.org/archive/html/freetype-devel/2013-12/msg00027.html 1.718 + 1.719 + * src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Add a switch 1.720 + `sort_by_res_id' to control the fragmented resource ordering. 1.721 + * include/internal/ftrfork.h: Declare new switch. 1.722 + * src/base/ftobjs.c (IsMacResource): Enable the sorting for `POST' 1.723 + resource, and disable the sorting for `sfnt' resource. 1.724 + 1.725 +2013-12-25 Werner Lemberg <wl@gnu.org> 1.726 + 1.727 + Fix Savannah bug #40997. 1.728 + 1.729 + * src/bdf/bdfdrivr.c (BDF_Face_Init): Only use OR operator to 1.730 + adjust face flags since FT_FACE_FLAG_EXTERNAL_STREAM might already 1.731 + be set. 1.732 + * src/cff/cffobjs.c (cff_face_init): Ditto. 1.733 + * src/cid/cidobjs.c (cid_face_init): Ditto. 1.734 + * src/pcf/pcfread.c (pcf_load_font): Ditto. 1.735 + * src/pfr/pfrobjs.c (pfr_face_init): Ditto. 1.736 + * src/type1/t1objs.c (T1_Face_Init): Ditto. 1.737 + * src/type42/t42objs.c (T42_Face_Init): Ditto. 1.738 + * src/winfonts/winfnt.c (FNT_Face_Init): Ditto. 1.739 + 1.740 +2013-12-21 Werner Lemberg <wl@gnu.org> 1.741 + 1.742 + [autofit] Introduce `coverages'. 1.743 + 1.744 + Coverages are the interface to the HarfBuzz library to acces 1.745 + OpenType features for handling glyphs not addressable by the cmap. 1.746 + 1.747 + Right now, compilation of HarfBuzz is only added to the development 1.748 + build. A solution for standard build mode will be delayed until 1.749 + HarfBuzz gets split into two libraries to avoid mutual dependencies 1.750 + between FreeType and HarfBuzz. 1.751 + 1.752 + Note that this is only a first step in handling coverages, basically 1.753 + providing the framework only. Code for handling selected OpenType 1.754 + features (this is, actually using the data in `afcover.h') will 1.755 + follow. 1.756 + 1.757 + * devel/ftoption.h, include/config/ftoption.h 1.758 + (FT_CONFIG_OPTION_USE_HARFBUZZ): New macro. 1.759 + 1.760 + * src/autofit/hbshim.c, src/autofit/hbshim.h, src/autofit/afcover.h: 1.761 + New files. 1.762 + 1.763 + * src/autofit/afscript.h: Add HarfBuzz script name tags. 1.764 + 1.765 + * src/autofit/afstyles.h: Add default coverage enumeration values. 1.766 + 1.767 + * src/autofit/aftypes.h: Update use of `SCRIPT' and `STYLE' macros. 1.768 + (AF_Coverage): New enumeration (generated by `afcover.h'). 1.769 + (AF_StyleClassRec): New member `coverage'. 1.770 + (AF_DEFINE_STYLE_CLASS): Updated. 1.771 + 1.772 + * include/internal/fttrace.h: Add `afharfbuzz' for tracing coverage 1.773 + data. 1.774 + 1.775 + * src/autofit/afglobal.h: Update use of `SCRIPT' and `STYLE' macros. 1.776 + (AF_SCRIPT_FALLBACK): Renamed to ... 1.777 + (AF_STYLE_FALLBACK): ... this. 1.778 + 1.779 + * src/autofit/afglobal.c: Include `hbshim.c'. 1.780 + Update use of `SCRIPT' and `STYLE' macros. 1.781 + (af_face_globals_compute_style_coverage) 1.782 + [FT_CONFIG_OPTION_USE_HARFBUZZ]: Call `af_get_coverage'. 1.783 + Update. 1.784 + 1.785 + * src/autofit/afmodule.h (AF_ModuleRec): 1.786 + s/fallback_script/fallback_style/. 1.787 + 1.788 + * src/autofit/afmodule.c (af_property_set): Adapt handling of 1.789 + `fallback-script' property to set a fallback style. 1.790 + (af_property_get, af_autofitter_init): Updated. 1.791 + 1.792 + * src/autofit/afpic.c: Update use of `SCRIPT' and `STYLE' macros. 1.793 + 1.794 + * src/autofit/afranges.h: Update use of `SCRIPT' macro. 1.795 + 1.796 + * src/autofit/autofit.c [FT_CONFIG_OPTION_USE_HARFBUZZ]: Include 1.797 + `hbshim.c'. 1.798 + 1.799 + * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `hbshim.c'. 1.800 + (AUTOF_DRV_H): Add `afcover.h'. 1.801 + 1.802 + * builds/freetype.mk (INCLUDE_FLAGS) [DEVEL_DIR]: Use pkg-config for 1.803 + all libraries needed by FreeType. 1.804 + 1.805 +2013-12-21 Werner Lemberg <wl@gnu.org> 1.806 + 1.807 + Fix Savannah bug #40975 (sort of). 1.808 + 1.809 + * src/truetype/ttinterp.c (Ins_IP): Fix sign typo to make FreeType 1.810 + behave the same as the Windows TrueType engine for the invalid case. 1.811 + 1.812 +2013-12-21 Werner Lemberg <wl@gnu.org> 1.813 + 1.814 + [autofit] Make PIC mode work actually. 1.815 + 1.816 + * src/autofit/afpic.h (AFModulePIC): Fix array sizes to fit the 1.817 + enumeration values automatically generated by including `afscript.h' 1.818 + and friends. 1.819 + 1.820 + * src/autofit/afpic.c (autofit_module_class_pic_init): Updated. 1.821 + 1.822 +2013-12-21 Werner Lemberg <wl@gnu.org> 1.823 + 1.824 + Fix PIC linking. 1.825 + 1.826 + * include/internal/ftrfork.h (CONST_FT_RFORK_RULE_ARRAY_BEGIN): Fix 1.827 + generated function name. 1.828 + 1.829 + * src/base/basepic.c (FT_Init_Table_raccess_guess_table): Rename 1.830 + to ... 1.831 + (FT_Init_Table_ft_raccess_guess_table): ... this so that the 1.832 + function name correctly corresponds to what the macro framework 1.833 + expects. 1.834 + 1.835 + * src/psnames/rules.mk (PSNAMES_DRV_SRC_S): Use correct file name so 1.836 + that PIC functions are compiled also. 1.837 + 1.838 +2013-12-21 Werner Lemberg <wl@gnu.org> 1.839 + 1.840 + [base] Add missing dependencies to Makefile. 1.841 + 1.842 + * src/base/rules.mk (BASE_SRC): Add `basepic.c' and `ftpic.c'. 1.843 + (BASE_H): Add `basepic.h'. 1.844 + 1.845 +2013-12-20 Werner Lemberg <wl@gnu.org> 1.846 + 1.847 + [autofit] Fix PIC compilation. 1.848 + 1.849 + * src/autofit/afcjk.c (af_cjk_metrics_init_widths), 1.850 + src/autofit/aflatin.c (af_latin_metrics_init_widths) 1.851 + [FT_CONFIG_OPTION_PIC]: Declare `globals'. 1.852 + 1.853 + * src/autofit/afglobal.c: Always call AF_DEFINE_SCRIPT_CLASS, and 1.854 + AF_DEFINE_STYLE_CLASS. 1.855 + 1.856 + * src/autofit/afpic.c: Include `afglobal.h'. 1.857 + (autofit_module_class_pic_init): Typo. 1.858 + 1.859 + * src/autofit/aftypes.h (AF_DEFINE_SCRIPT_CLASS, 1.860 + AF_DEFINE_STYLE_CLASS): Don't use the same identifier for macro 1.861 + parameter and structure member. 1.862 + 1.863 +2013-12-20 Werner Lemberg <wl@gnu.org> 1.864 + 1.865 + [autofit] Introduce `styles'. 1.866 + 1.867 + This is the new top-level structure for handling glyph input data; 1.868 + scripts are now defined separately. 1.869 + 1.870 + * src/autofit/aftypes.h (SCRIPT): Updated. 1.871 + (AF_ScriptClassRec): Move `blue_stringset' and `writing_system' 1.872 + members to ... 1.873 + (AF_Style_ClassRec): ... this new structure. 1.874 + (AF_Style): New enumeration. 1.875 + (AF_StyleMetricsRec): Replace `script' enumeration with 1.876 + `style_class' pointer. 1.877 + (AF_DEFINE_SCRIPT_CLASS, AF_DECLARE_SCRIPT_CLASS): Updated. 1.878 + (AF_DEFINE_STYLE_CLASS, AF_DECLARE_STYLE_CLASS): New macros. 1.879 + 1.880 + * src/autofit/afstyles.h: New file, using data from `afscript.h'. 1.881 + * src/autofit/afscript.h: Updated. 1.882 + 1.883 + * src/autofit/afcjk.c (af_cjk_metrics_init_widths, 1.884 + af_cjk_metrics_init_blues, af_cjk_hint_edges): Updated. 1.885 + 1.886 + * src/autofit/afglobal.c (SCRIPT): Updated. 1.887 + (STYLE): Redefine macro to load `afstyles.h'. 1.888 + (af_script_names) [FT_DEBUG_LEVEL_TRACE]: Replace with... 1.889 + (af_style_names): ... this array. 1.890 + (af_face_globals_compute_script_coverage): Renamed to... 1.891 + (af_face_globals_compute_style_coverage): ... this. 1.892 + Updated. 1.893 + (af_face_globals_new, af_face_globals_free, 1.894 + af_face_globals_get_metrics): Updated. 1.895 + 1.896 + * src/autofit/afglobal.h (SCRIPT): Updated. 1.897 + (STYLE): Redefine macro to load `afstyles.h'. 1.898 + (AF_SCRIPT_FALLBACK): Update definition. This will get more 1.899 + refinements with later on. 1.900 + (AF_SCRIPT_UNASSIGNED): Replace with... 1.901 + (AF_STYLE_UNASSIGNED): ... this macro. 1.902 + (AF_FaceGlobalsRec): Updated. 1.903 + 1.904 + * src/autofit/aflatin.c (af_latin_metrics_init_widths, 1.905 + af_latin_metrics_init_blues, af_latin_metrics_scale_dim, 1.906 + af_latin_hint_edges): Updated. 1.907 + 1.908 + * src/autofit/aflatin2.c (af_latin2_metrics_init_widths): Updated. 1.909 + (af_ltn2_uniranges): Removed. 1.910 + 1.911 + * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph): 1.912 + Updated. 1.913 + 1.914 + * src/autofit/afpic.c (autofit_module_class_pic_init): Updated. 1.915 + * src/autofit/afpic.h (AF_STYLE_CLASSES_GET): New macro. 1.916 + (AFModulePIC): Add `af_style_classes' and `af_style_classes_rec' 1.917 + members. 1.918 + 1.919 + * src/autofit/afranges.h: Updated. 1.920 + 1.921 + * src/autofit/rules.mk (AUTOF_DRV_H): Add `afstyles.h'. 1.922 + 1.923 +2013-12-19 Werner Lemberg <wl@gnu.org> 1.924 + 1.925 + [autofit] Factor scripts and uniranges out of writing system files. 1.926 + 1.927 + * src/autofit/afranges.c, src/autofit/afranges.h: New files. 1.928 + 1.929 + * src/autofit/afscript.h: Extend `SCRIPT' macro with more 1.930 + parameters, taking data from the writing system files. 1.931 + 1.932 + * src/autofit/aftypes.h: Updated. 1.933 + 1.934 + * src/autofit/afglobal.c: Include `afranges.h'. 1.935 + Load `afscript.h' to call AF_DEFINE_SCRIPT_CLASS. 1.936 + * src/autofit/afglobal.c: Include `afranges.h'. 1.937 + Load `afscript.h' to call AF_DECLARE_SCRIPT_CLASS. 1.938 + 1.939 + * src/autofit/afcjk.c, src/autofit/afcjk.h: Updated. 1.940 + * src/autofit/afdummy.c, src/autofit/afdummy.h: Updated. 1.941 + * src/autofit/afindic.c, src/autofit/afindic.h: Updated. 1.942 + * src/autofit/aflatin.c, src/autofit/aflatin.h: Updated. 1.943 + * src/autofit/aflatn2.c, src/autofit/aflatn2.h: Updated. 1.944 + 1.945 + * src/autofit/afpic.c: Updated. 1.946 + 1.947 + * src/autofir/autofit.c: Include `afranges.c'. 1.948 + * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `afranges.c'. 1.949 + 1.950 +2013-12-18 Werner Lemberg <wl@gnu.org> 1.951 + 1.952 + [autofit] More code orthogonality. 1.953 + 1.954 + * src/autofit/aftypes.h (AF_StyleMetrics): Replace `script_class' 1.955 + pointer to an `AF_ScriptClass' structure with `script' index of type 1.956 + `AF_Script'. 1.957 + Move some code around. 1.958 + 1.959 + * src/autofit/afcjk.c: Include `afpic.h'. 1.960 + (af_cjk_metrics_init_widths, af_cjk_metrics_init_blues, 1.961 + af_cjk_hint_edges): Updated. 1.962 + 1.963 + * src/autofit/aflatin.c: Include `afpic.h'. 1.964 + (af_latin_metrics_init_widths, af_latin_metrics_init_blues, 1.965 + af_latin_metrics_scale_dim, af_latin_hint_edges): Updated. 1.966 + 1.967 + * src/autofit/afglobal.c (af_face_globals_get_metrics): Updated. 1.968 + 1.969 + * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph): 1.970 + Updated. 1.971 + 1.972 +2013-12-18 Werner Lemberg <wl@gnu.org> 1.973 + 1.974 + [autofit] s/ScriptMetrics/StyleMetrics/. 1.975 + 1.976 +2013-12-18 Werner Lemberg <wl@gnu.org> 1.977 + 1.978 + [autofit] s/script_{metrics,hints}/style_{metrics,hints}/ 1.979 + 1.980 +2013-12-18 Werner Lemberg <wl@gnu.org> 1.981 + 1.982 + [autofit] s/gscripts/gstyles/. 1.983 + 1.984 +2013-12-18 Werner Lemberg <wl@gnu.org> 1.985 + 1.986 + [autofit] s/glyph_scripts/glyph_styles/. 1.987 + 1.988 + This is the first commit of a series to create a new top-level 1.989 + structure (a `style') for handling scripts, writing_systems, and 1.990 + soon-to-be-added coverages. 1.991 + 1.992 +2013-12-17 Werner Lemberg <wl@gnu.org> 1.993 + 1.994 + [autofit] s/AF_Script_/AF_WritingSystem_/ where appropriate. 1.995 + 1.996 +2013-12-11 Infinality <infinality@infinality.net> 1.997 + 1.998 + [truetype] Simplify logic of rendering modes. 1.999 + 1.1000 + This patch unifies the subpixel and non-subpixel cases. 1.1001 + 1.1002 + * src/truetype/ttinterp.h (TT_ExecContextRec): Remove 1.1003 + `grayscale_hinting'; all code should refer to `grayscale' instead. 1.1004 + Remove unused `native_hinting' member. 1.1005 + Rename `subpixel_hinting' member to `subpixel. 1.1006 + 1.1007 + * src/truetype/ttgload.c (TT_LOADER_SET_PP): Updated. 1.1008 + (tt_loader_init): Updated. 1.1009 + 1.1010 + * src/truetype/ttinterp.c (Ins_GETINFO): Simplify. 1.1011 + Updated. 1.1012 + 1.1013 +2013-12-11 Werner Lemberg <wl@gnu.org> 1.1014 + 1.1015 + [documentation] Add section how to include FreeType header files. 1.1016 + Problem reported by David Kastrup <dak@gnu.org>. 1.1017 + 1.1018 + Surprisingly, a description how to do that was completely missing in 1.1019 + the API reference. 1.1020 + 1.1021 + * include/freetype.h, include/ftchapters.h: New documentation 1.1022 + section `header_inclusion'. 1.1023 + 1.1024 +2013-12-10 Werner Lemberg <wl@gnu.org> 1.1025 + 1.1026 + [autofit] s/DFLT/NONE/, s/dflt/none/. 1.1027 + 1.1028 +2013-12-10 Werner Lemberg <wl@gnu.org> 1.1029 + 1.1030 + [autofit] s/AF_SCRIPT_NONE/AF_SCRIPT_UNASSIGNED/. 1.1031 + 1.1032 +2013-12-10 Werner Lemberg <wl@gnu.org> 1.1033 + 1.1034 + [truetype] Fix scaling of vertical phantom points. 1.1035 + 1.1036 + * src/truetype/ttgload.c (load_truetype_glyph): Scale pp3.x and 1.1037 + pp4.x also. 1.1038 + 1.1039 +2013-12-10 Werner Lemberg <wl@gnu.org> 1.1040 + 1.1041 + [truetype] Fix positioning of composite glyphs. 1.1042 + Problem reported by Nigel Tao <nigeltao@golang.org>. 1.1043 + 1.1044 + * src/truetype/ttgload.c (TT_Hint_Glyph): Remove code that shifts 1.1045 + the glyph (component) by a fractional value computed from the LSB 1.1046 + phantom point. This is wrong, since the horizontal phantom points 1.1047 + get rounded horizontally later on. 1.1048 + 1.1049 +2013-12-08 Werner Lemberg <wl@gnu.org> 1.1050 + 1.1051 + * Version 2.5.2 released. 1.1052 + ========================= 1.1053 + 1.1054 + 1.1055 + Tag sources with `VER-2-5-2'. 1.1056 + 1.1057 + * docs/VERSION.DLL: Update documentation and bump version number to 1.1058 + 2.5.2. 1.1059 + 1.1060 + * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj, 1.1061 + builds/windows/vc2005/index.html, 1.1062 + builds/windows/vc2008/freetype.vcproj, 1.1063 + builds/windows/vc2008/index.html, 1.1064 + builds/windows/vc2010/freetype.vcxproj, 1.1065 + builds/windows/vc2010/index.html, 1.1066 + builds/windows/visualc/freetype.dsp, 1.1067 + builds/windows/visualc/freetype.vcproj, 1.1068 + builds/windows/visualc/index.html, 1.1069 + builds/windows/visualce/freetype.dsp, 1.1070 + builds/windows/visualce/freetype.vcproj, 1.1071 + builds/windows/visualce/index.html, 1.1072 + builds/wince/vc2005-ce/freetype.vcproj, 1.1073 + builds/wince/vc2005-ce/index.html, 1.1074 + builds/wince/vc2008-ce/freetype.vcproj, 1.1075 + builds/wince/vc2008-ce/index.html: s/2.5.1/2.5.2/, s/251/252/. 1.1076 + 1.1077 + * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2. 1.1078 + 1.1079 + * builds/unix/configure.raw (version_info): Set to 17:1:11. 1.1080 + * CMakeLists.txt (VERSION_PATCH): Set to 2. 1.1081 + * docs/CHANGES: Updated. 1.1082 + 1.1083 +2013-12-07 Werner Lemberg <wl@gnu.org> 1.1084 + 1.1085 + [truetype] Next round in phantom point handling. 1.1086 + 1.1087 + Greg Hitchcock provided very interesting insights into the 1.1088 + complicated history of the horizontal positions of the TSB and BSB 1.1089 + phantom points. 1.1090 + 1.1091 + * src/truetype/ttgload.c (TT_LOADER_SET_PP) 1.1092 + [TT_CONFIG_OPTION_SUBPIXEL_HINTING]: Use `subpixel_hinting' and 1.1093 + `grayscale_hinting' flags as conditionals for the x position of TSB 1.1094 + and BSB. 1.1095 + 1.1096 +2013-12-05 Werner Lemberg <wl@gnu.org> 1.1097 + 1.1098 + * builds/freetype.mk (FT_CC): Removed. Unused. 1.1099 + 1.1100 +2013-12-04 Werner Lemberg <wl@gnu.org> 1.1101 + 1.1102 + [sfnt] Fix handling of embedded bitmap strikes. 1.1103 + 1.1104 + This corrects the commit from 2013-11-21. Problem reported by 1.1105 + Andrey Panov <panov@canopus.iacp.dvo.ru>. 1.1106 + 1.1107 + * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Fix logic to 1.1108 + detect excessive bytes for bit-aligned bitmaps. 1.1109 + 1.1110 +2013-12-03 Werner Lemberg <wl@gnu.org> 1.1111 + 1.1112 + [truetype] Remove dead code. 1.1113 + 1.1114 + Reported by Nigel Tao <nigeltao@golang.org>. 1.1115 + 1.1116 + * include/internal/tttypes.h (TT_LoaderRec): Remove unused 1.1117 + `preserve_pps' field. 1.1118 + * src/truetype/ttgload.c (TT_Hint_Glyph): Updated. 1.1119 + 1.1120 +2013-12-03 Werner Lemberg <wl@gnu.org> 1.1121 + 1.1122 + [truetype] Fix phantom point handling. 1.1123 + 1.1124 + This is a further improvement to the changes from 2013-11-06. 1.1125 + 1.1126 + * src/truetype/ttgload.c (TT_Hint_Glyph): Horizontal phantom points 1.1127 + are rounded horizontally, vertical ones are rounded vertically. 1.1128 + (TT_LOADER_SET_PP): The horizontal position of vertical phantom 1.1129 + points in pre-ClearType mode is zero, as shown in the OpenType 1.1130 + specification. 1.1131 + 1.1132 +2013-12-02 Werner Lemberg <wl@gnu.org> 1.1133 + 1.1134 + [truetype] Fix change from 2013-11-20. 1.1135 + 1.1136 + Problem reported by Akira Kakuto <kakuto@fuk.kindai.ac.jp>. 1.1137 + 1.1138 + * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Protect call to 1.1139 + `Update_Max' with both a TT_USE_BYTECODE_INTERPRETER guard and a 1.1140 + `IS_HINTED' clause. 1.1141 + Also remove redundant check using `maxSizeOfInstructions' – in 1.1142 + simple glyphs, the bytecode data comes before the outline data, and 1.1143 + a validity test for this is already present. 1.1144 + 1.1145 +2013-11-27 Werner Lemberg <wl@gnu.org> 1.1146 + 1.1147 + [autofit] Fix use of dumping functions in `ftgrid' demo program. 1.1148 + 1.1149 + * src/autofit/afhints.c (AF_DUMP) [FT_DEBUG_AUTOFIT]: New macro. 1.1150 + (af_glyph_hints_dump_points, af_glyph_hints_dump_segments, 1.1151 + af_glyph_hints_dump_edges) [FT_DEBUG_AUTOFIT]: Add parameter to 1.1152 + handle output to stdout. 1.1153 + Use AF_DUMP. 1.1154 + (af_glyph_hints_dump_points, af_glyph_hints_dump_segments, 1.1155 + af_glyph_hints_dump_edges) [!FT_DEBUG_AUTOFIT]: Removed. 1.1156 + 1.1157 +2013-11-25 Werner Lemberg <wl@gnu.org> 1.1158 + 1.1159 + * Version 2.5.1 released. 1.1160 + ========================= 1.1161 + 1.1162 + 1.1163 + Tag sources with `VER-2-5-1'. 1.1164 + 1.1165 + * docs/VERSION.DLL: Update documentation and bump version number to 1.1166 + 2.5.1. 1.1167 + 1.1168 + * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj, 1.1169 + builds/windows/vc2005/index.html, 1.1170 + builds/windows/vc2008/freetype.vcproj, 1.1171 + builds/windows/vc2008/index.html, 1.1172 + builds/windows/vc2010/freetype.vcxproj, 1.1173 + builds/windows/vc2010/index.html, 1.1174 + builds/windows/visualc/freetype.dsp, 1.1175 + builds/windows/visualc/freetype.vcproj, 1.1176 + builds/windows/visualc/index.html, 1.1177 + builds/windows/visualce/freetype.dsp, 1.1178 + builds/windows/visualce/freetype.vcproj, 1.1179 + builds/windows/visualce/index.html, 1.1180 + builds/wince/vc2005-ce/freetype.vcproj, 1.1181 + builds/wince/vc2005-ce/index.html, 1.1182 + builds/wince/vc2008-ce/freetype.vcproj, 1.1183 + builds/wince/vc2008-ce/index.html: s/2.5.0/2.5.1/, s/250/251/. 1.1184 + 1.1185 + * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1. 1.1186 + 1.1187 + * builds/unix/configure.raw (version_info): Set to 17:0:11. 1.1188 + * CMakeLists.txt (VERSION_PATCH): Set to 1. 1.1189 + * docs/CHANGES, docs/release: Updated. 1.1190 + 1.1191 +2013-11-23 Werner Lemberg <wl@gnu.org> 1.1192 + 1.1193 + [truetype]: Add tricky font names `hkscsiic.ttf' and `iicore.ttf'. 1.1194 + 1.1195 + * src/truetype/ttobjs.c (TRICK_NAMES_MAX_CHARACTERS, 1.1196 + TRICK_NAMES_COUNT): Updated. 1.1197 + (trick_names): Add family name for the two fonts. 1.1198 + 1.1199 +2013-11-23 Werner Lemberg <wl@gnu.org> 1.1200 + 1.1201 + * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Typo. 1.1202 + 1.1203 +2013-11-21 Werner Lemberg <wl@gnu.org> 1.1204 + 1.1205 + [sfnt] Typo. 1.1206 + 1.1207 + Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>. 1.1208 + 1.1209 + * src/sfnt/sfobjs.c (sfnt_load_face): Return correct `bsize->width' 1.1210 + value if the font lacks an `OS/2' table. 1.1211 + 1.1212 +2013-11-21 Werner Lemberg <wl@gnu.org> 1.1213 + 1.1214 + [sfnt] Improve handling of buggy embedded bitmap strikes. 1.1215 + 1.1216 + We are now able to successfully load `AppleMyoungJo.ttf'. 1.1217 + Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>. 1.1218 + 1.1219 + * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Don't trust glyph 1.1220 + format. 1.1221 + 1.1222 +2013-11-20 Werner Lemberg <wl@gnu.org> 1.1223 + 1.1224 + [truetype] Don't trust `maxp's `maxSizeOfInstructions'. 1.1225 + 1.1226 + Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>; see 1.1227 + 1.1228 + http://lists.nongnu.org/archive/html/freetype-devel/2013-08/msg00005.html 1.1229 + 1.1230 + for details. 1.1231 + 1.1232 + * src/base/ftobjs.c (FT_Load_Glyph): Check size of `fpgm' and `prep' 1.1233 + tables also for setting `autohint'. 1.1234 + 1.1235 + * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Use code from 1.1236 + `TT_Process_Composite_Glyph' for handling unreliable values of 1.1237 + `maxSizeOfInstructions'. 1.1238 + 1.1239 +2013-11-16 Werner Lemberg <wl@gnu.org> 1.1240 + 1.1241 + [sfnt] Fix `OS/2' table version 5 support. 1.1242 + 1.1243 + We now follow the `official' announcement from Microsoft (on the 1.1244 + OpenType mailing list, which unfortunately hasn't a public archive). 1.1245 + 1.1246 + * include/freetype/tttables.h (TT_OS2): 1.1247 + s/usLowerPointSize/usLowerOpticalPointSize/, 1.1248 + s/usUpperPointSize/usUpperOpticalPointSize/. 1.1249 + 1.1250 + * src/sfnt/ttload.c (tt_face_load_os2): Update, and set correct 1.1251 + default values. 1.1252 + 1.1253 +2013-11-13 Werner Lemberg <wl@gnu.org> 1.1254 + 1.1255 + * builds/unix/ft2unix.h: Remove. No longer necessary. 1.1256 + 1.1257 + * builds/unix/install.mk (install): Updated. 1.1258 + 1.1259 +2013-11-13 Werner Lemberg <wl@gnu.org> 1.1260 + 1.1261 + Simplify header file hierarchy. 1.1262 + 1.1263 + This large patch changes the header file directory layout from 1.1264 + `include/freetype/...' to `include/...', effectively removing one 1.1265 + level. Since the file `ft2build.h' is also located in `include' 1.1266 + (and it stays there even after installation), all FreeType header 1.1267 + files are now in a single directory. 1.1268 + 1.1269 + Applications that use (a) `freetype-config' or FreeType's 1.1270 + `pkg-config' file to get the include directory for the compiler, and 1.1271 + (b) the documented way for header inclusion like 1.1272 + 1.1273 + #include <ft2build.h> 1.1274 + #include FT_FREETYPE_H 1.1275 + ... 1.1276 + 1.1277 + don't need any change to the source code. 1.1278 + 1.1279 + * include/freetype/*: Move up to... 1.1280 + * include/*: ... this directory. 1.1281 + 1.1282 + * builds/amiga/include/freetype/*: Move up to... 1.1283 + * builds/amiga/include/*: ... this directory. 1.1284 + 1.1285 + */*: Essentially do `s@/freetype/@/@' where appropriate. 1.1286 + 1.1287 + * CMakeList.txt: Simplify. 1.1288 + * builds/unix/freetype-config.in, builds/unix/freetype2.in: For 1.1289 + `--cflags', return a single directory. 1.1290 + * builds/unix/install.mk (install): No longer try to remove `cache' 1.1291 + and `internal' subdirectories; instead, remove the `freetype' 1.1292 + subdirectory. 1.1293 + 1.1294 +2013-11-12 Werner Lemberg <wl@gnu.org> 1.1295 + 1.1296 + [truetype] Fix last `truetype' commit. 1.1297 + 1.1298 + * src/truetype/ttgload.c (tt_get_metrics): Preserve stream position. 1.1299 + Return error value. 1.1300 + (load_truetype_glyph): Updated. 1.1301 + 1.1302 +2013-11-10 Werner Lemberg <wl@gnu.org> 1.1303 + 1.1304 + * docs/CMAKE: New dummy file. 1.1305 + 1.1306 +2013-11-08 Dave Arnold <darnold@adobe.com> 1.1307 + 1.1308 + [cff] Fix for hints that touch. 1.1309 + 1.1310 + * src/cff/cf2hints.c (cf2_hintmap_insertHint): Fix condition for 1.1311 + finding index value of insertion point. 1.1312 + 1.1313 +2013-11-06 Werner Lemberg <wl@gnu.org> 1.1314 + 1.1315 + [truetype] Fix handling of phantom points in composite glyphs. 1.1316 + Problem reported by Nigel Tao <nigeltao@golang.org>. 1.1317 + 1.1318 + This is a follow-up commit to the previous one. 1.1319 + 1.1320 + * src/truetype/ttgload.c (load_truetype_glyph): Call 1.1321 + `tt_get_metrics' after loading the glyph header. 1.1322 + 1.1323 +2013-11-06 Werner Lemberg <wl@gnu.org> 1.1324 + 1.1325 + [truetype] Improve emulation of vertical metrics. 1.1326 + 1.1327 + This commit also improves the start values of vertical phantom 1.1328 + points. Kudos to Greg Hitchcock for help. 1.1329 + 1.1330 + * src/truetype/ttgload.c (TT_Get_VMetrics): Add parameter to pass 1.1331 + `yMax' value. Replace code with fixed Microsoft definition. 1.1332 + (tt_get_metrics): Updated. 1.1333 + (TT_LOADER_SET_PP): Add explanation how to initialize phantom 1.1334 + points, taken from both the OpenType specification and private 1.1335 + communication with Greg (which will eventually be added to the 1.1336 + standard). 1.1337 + Fix horizontal position of `pp3' and `pp4'. 1.1338 + 1.1339 + * src/truetype/ttgload.h: Updated. 1.1340 + 1.1341 + * src/truetype/ttdriver.c (tt_get_advances): Updated. 1.1342 + 1.1343 + * docs/CHANGES: Updated. 1.1344 + 1.1345 +2013-11-05 Werner Lemberg <wl@gnu.org> 1.1346 + 1.1347 + * builds/windows/vc2010/freetype.vcxproj: s/v110/v100/. 1.1348 + PlatformToolSet version 110 is for VC2012. 1.1349 + 1.1350 + Problem reported (with solution) by Dave Arnold <darnold@adobe.com>. 1.1351 + 1.1352 +2013-11-05 Werner Lemberg <wl@gnu.org> 1.1353 + 1.1354 + [truetype] Correctly reset point tags for glyph components. 1.1355 + Problem reported by Nigel Tao <nigeltao@golang.org>. 1.1356 + 1.1357 + * src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix loop. 1.1358 + 1.1359 +2013-11-02 Werner Lemberg <wl@gnu.org> 1.1360 + 1.1361 + [truetype] Fix GETINFO opcode handling of subpixel hinting bits. 1.1362 + 1.1363 + * src/truetype/ttinterp.c (Ins_GETINFO): Don't request bit 6 set to 1.1364 + get info on subpixel hinting. 1.1365 + 1.1366 + * docs/CHANGES: Updated. 1.1367 + 1.1368 +2013-11-02 Werner Lemberg <wl@gnu.org> 1.1369 + 1.1370 + Fix Savannah bug #40451. 1.1371 + 1.1372 + Simply apply the patch from the bug report. 1.1373 + 1.1374 + * builds/unix/ftconfig.in, builds/vms/ftconfig.h, 1.1375 + include/freetype/config/ftconfig.h: The used #pragma directives only 1.1376 + work with gcc versions 4.6 and higher. 1.1377 + 1.1378 +2013-11-01 Werner Lemberg <wl@gnu.org> 1.1379 + 1.1380 + * docs/CHANGES: Updated. 1.1381 + 1.1382 +2013-11-01 Werner Lemberg <wl@gnu.org> 1.1383 + 1.1384 + [truetype] Minor code refactoring. 1.1385 + 1.1386 + Two benefits: The allocated FDEF (and IDEF) array gets slightly 1.1387 + smaller, and the `ttdebug' demo program has access to function 1.1388 + numbers without additional costs. 1.1389 + 1.1390 + Fortunately, no changes to FontForge are necessary – this is the 1.1391 + only external TrueType debugger I know of, but others may exist and 1.1392 + should check the code accordingly. 1.1393 + 1.1394 + * src/truetype/ttinterp.h (TT_CallRec): Replace `Cur_Restart' and 1.1395 + `Cur_End' with a pointer to the corresponding `TT_DefRecord' 1.1396 + structure. 1.1397 + 1.1398 + * src/truetype/ttinterp.c (DO_JROT, DO_JMPR, DO_JROF, Ins_ENDF, 1.1399 + Ins_CALL, Ins_LOOPCALL, Ins_UNKNOWN, TT_RunIns <Invalid_Opcode>): 1.1400 + Updated. 1.1401 + 1.1402 +2013-10-27 Werner Lemberg <wl@gnu.org> 1.1403 + 1.1404 + [sfnt] Implement support for `OS/2' table version 5. 1.1405 + 1.1406 + See 1.1407 + 1.1408 + http://typedrawers.com/discussion/470/new-microsoft-size-specific-design-selection-mechanism 1.1409 + 1.1410 + for the announcement. 1.1411 + 1.1412 + * include/freetype/tttables.h (TT_OS2): Add fields 1.1413 + `usLowerPointSize' and `usUpperPointSize'. Since FreeType returns 1.1414 + this structure only as a pointer through `FT_Get_Sfnt_Table', there 1.1415 + shouldn't be any ABI problems. 1.1416 + 1.1417 + * src/sfnt/ttload.c (tt_face_load_os2): Implement it. 1.1418 + 1.1419 + * docs/CHANGES: Updated. 1.1420 + 1.1421 +2013-10-24 Werner Lemberg <wl@gnu.org> 1.1422 + 1.1423 + * README.git, docs/CHANGES, docs/INSTALL: Updated. 1.1424 + 1.1425 +2013-10-24 John Cary <cary@txcorp.com> 1.1426 + 1.1427 + Provide cmake support. 1.1428 + 1.1429 + * CMakeLists.txt: New file. 1.1430 + 1.1431 +2013-10-23 Kenneth Miller <kennethadammiller@yahoo.com> 1.1432 + Werner Lemberg <wl@gnu.org> 1.1433 + 1.1434 + Provide support for x64 builds in Visual C++ project files. 1.1435 + 1.1436 + * src/builds/win32: Renamed to... 1.1437 + * src/builds/windows: This. 1.1438 + 1.1439 + * src/builds/windows/vc2010/*: Updated to handle x64 target. 1.1440 + 1.1441 + * src/builds/windows/*.mk, docs/INSTALL.GNU: s/win32/windows/ where 1.1442 + appropriate. 1.1443 + 1.1444 +2013-10-22 Werner Lemberg <wl@gnu.org> 1.1445 + 1.1446 + * src/base/md5.c, src/base/md5.h: Updated to recent version. 1.1447 + 1.1448 + * src/base/ftobjs.c: Updated; `md5.c' no longer uses `free'. 1.1449 + 1.1450 + The canonical URL to get updates for this file is 1.1451 + 1.1452 + http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/popa3d/popa3d/md5/ 1.1453 + 1.1454 + as the author told me in private communication. 1.1455 + 1.1456 +2013-10-19 Werner Lemberg <wl@gnu.org> 1.1457 + 1.1458 + [autofit] s/SMALL_TOP/X_HEIGHT/. 1.1459 + 1.1460 + * src/autofit/afblue.dat: Updated. 1.1461 + 1.1462 + * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated. 1.1463 + 1.1464 + * src/autofit/aflatin.c, src/autofit/aflatin.h, 1.1465 + src/autofit/atlatin2.c: Updated. 1.1466 + 1.1467 +2013-10-19 Werner Lemberg <wl@gnu.org> 1.1468 + 1.1469 + * src/autofit/afblue.dat: s/MINOR/DESCENDER/. 1.1470 + 1.1471 + * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated. 1.1472 + 1.1473 +2013-10-16 Werner Lemberg <wl@gnu.org> 1.1474 + 1.1475 + [autofit] Add description strings to script entries. 1.1476 + 1.1477 + Currently, this is unused. 1.1478 + 1.1479 + * src/autofit/afscript.h: Do it. 1.1480 + * src/autofit/afglobal.c, src/autofit/afpic.c, 1.1481 + src/autofit/aftypes.h: Updated. 1.1482 + 1.1483 +2013-10-16 Werner Lemberg <wl@gnu.org> 1.1484 + 1.1485 + [autofit] Improve tracing message for extra light flag. 1.1486 + 1.1487 + * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Do it. 1.1488 + 1.1489 +2013-10-15 Chongyu Zhu <lembacon@gmail.com> 1.1490 + 1.1491 + [arm] Fix thumb2 inline assembly under LLVM. 1.1492 + 1.1493 + When using `ADD' with an immediate operand, the instruction is 1.1494 + actually `ADD Rd, Rn, #<imm12>', that is, the maximum of the 1.1495 + immediate operand cannot exceed 4095. It will fail to compile with 1.1496 + LLVM. 1.1497 + 1.1498 + However, in GCC, due to some legacy compatibility considerations, 1.1499 + `ADD.W' will be automatically emitted when the immediate operand is 1.1500 + larger than 4095. 1.1501 + 1.1502 + * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h 1.1503 + (FT_MulFix_arm) [__GNUC__]: Support clang compiler. 1.1504 + 1.1505 + * src/truetype/ttinterp.c (TT_MulFix14_arm) [__GNUC__]: Ditto. 1.1506 + 1.1507 +2013-10-12 Werner Lemberg <wl@gnu.org> 1.1508 + 1.1509 + [autofit] Improve tracing of `latin' hinter. 1.1510 + 1.1511 + * src/autofit/aflatin.c (af_latin_metrics_init_blues): Report blue 1.1512 + zone types. 1.1513 + (af_latin_metrics_scale_dim): Report scaling changes due to x height 1.1514 + alignment. 1.1515 + Report scaled stroke width and blue zone values. 1.1516 + 1.1517 +2013-10-03 Dave Arnold <darnold@adobe.com> 1.1518 + 1.1519 + * src/cff/cf2font.c (cf2_computeDarkening): Avoid division by zero. 1.1520 + 1.1521 + Note that the old code avoided using a region of the piecewise 1.1522 + linear function where the slope was zero. The recovery was to use a 1.1523 + different section of the function, which produced a different, 1.1524 + incorrect amount of darkening. 1.1525 + 1.1526 +2013-10-02 Darrell Bellert <darrell.bellert@hl.konicaminolta.us> 1.1527 + 1.1528 + * src/sfnt/ttload.c (tt_face_load_pclt): Fix `pclt_fields'. 1.1529 + 1.1530 +2013-10-02 Dave Arnold <darnold@adobe.com> 1.1531 + 1.1532 + * src/cff/cf2font.c (cf2_computeDarkening): Initialize darkenAmount. 1.1533 + 1.1534 + This line was lost in commit 89ca1fd6 (from 2013-06-25). The effect 1.1535 + is to use a previous darkening amount when producing an unhinted, 1.1536 + unscaled outline. This can cause autohint samples in ftgrid and 1.1537 + ftview to be based on darkened CFF outlines instead of unhinted, 1.1538 + undarkened ones. 1.1539 + 1.1540 +2013-09-29 Dave Arnold <darnold@adobe.com> 1.1541 + 1.1542 + Fix Savannah bug #39295. 1.1543 + 1.1544 + The bug was caused by switching to the initial hintmap (the one in 1.1545 + effect when `moveto' executes) just before drawing the final element 1.1546 + in the charstring. This ensured that the path was closed (in both 1.1547 + Character Space and Device Space). But if the final element was a 1.1548 + curve and if the final hintmap was different enough from the initial 1.1549 + one, then the curve was visibly distorted. 1.1550 + 1.1551 + The first part of the fix is to draw the final curve using the final 1.1552 + hintmap as specified by the charstring. This corrects the 1.1553 + distortion but does not ensure closing in Device Space. It may 1.1554 + require the rasterizer to automatically generate an extra closing 1.1555 + line. Depending on the hintmap differences, this line could be from 1.1556 + zero to a couple pixels in length. 1.1557 + 1.1558 + The second part of the fix covers the case where the charstring 1.1559 + subpath is closed with an explicit line. We now modify that line's 1.1560 + end point to avoid the distortion. 1.1561 + 1.1562 + Some glyphs in the bug report font (TexGyreHeros-Regular) that show 1.1563 + the change are: 1.1564 + 1.1565 + 25ppem S (98) 1.1566 + 24ppem eight (52) 1.1567 + 25.5ppem p (85) 1.1568 + 1.1569 + Curves at the *end* of a subpath are no longer distorted. However, 1.1570 + some of these glyphs have bad hint substitutions in the middle of a 1.1571 + subpath, and these are not affected. 1.1572 + 1.1573 + The patch has been tested with a set of 106 fonts that shipped with 1.1574 + Adobe Creative Suite 4, together with 756 Open Source CFF fonts from 1.1575 + Google Fonts. There are 1.5 million glyphs, of which some 20k are 1.1576 + changed with the fix. A sampling of a few hundred of these changes 1.1577 + have been examined more closely, and the changes look good (or at 1.1578 + least acceptable). 1.1579 + 1.1580 + * src/cff/cf2hints.h (CF2_GlyphPathRec): New element `pathIsClosing' 1.1581 + to indicate that we synthesize a closepath line. 1.1582 + 1.1583 + * src/cff/cf2hints.c (cf2_glyphpath_init): Updated. 1.1584 + (cf2_glyphpath_pushPrevElem): If closing, use first hint map (for 1.1585 + `lineto' operator) and adjust hint zone. 1.1586 + For synthesized closing lines, use end point in first hint zone. 1.1587 + (cf2_glyphpath_lineTo): Take care of synthesized closing lines. In 1.1588 + particular, shift the detection of zero-length lines from character 1.1589 + space to device space. 1.1590 + (cf2_glyphpath_closeOpenPath): Remove assertion. 1.1591 + Updated. 1.1592 + 1.1593 +2013-09-25 Werner Lemberg <wl@gnu.org> 1.1594 + 1.1595 + * src/autofit/aflatin.c (af_{grek,cyrl}_uniranges): Fix arrays. 1.1596 + 1.1597 +2013-09-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> 1.1598 + 1.1599 + [bdf, pcf] Refuse non-zero face_index. 1.1600 + 1.1601 + Suggested by Akira Tagoh, see 1.1602 + 1.1603 + http://lists.gnu.org/archive/html/freetype/2013-09/msg00030.html 1.1604 + 1.1605 + * src/bdf/bdfdrivr.c (BDF_Face_Init): Return `Invalid_Argument' 1.1606 + error if the font could be opened but non-zero `face_index' is 1.1607 + given. 1.1608 + * src/pcf/pcfdrivr.c (PCF_Face_Init): Ditto. 1.1609 + 1.1610 + * src/type42/t42objs.c (T42_Face_Init): Remove unrequired FT_UNUSED 1.1611 + macro for `face_index' because it is validated later. 1.1612 + 1.1613 +2013-09-23 Werner Lemberg <wl@gnu.org> 1.1614 + 1.1615 + Fix Savannah bug #40090. 1.1616 + 1.1617 + * src/autofit/afcjk.c (af_cjk_metrics_scale): Revert commit 1.1618 + 306f8c5d (from 2013-08-25) affecting this function. 1.1619 + 1.1620 +2013-09-22 Werner Lemberg <wl@gnu.org> 1.1621 + 1.1622 + [autofit] Disunify Cyrillic and Greek handling from Latin. 1.1623 + 1.1624 + * src/autofit/afscript.h: Add Cyrillic and Greek. 1.1625 + 1.1626 + * src/autofit/afblue.dat (AF_BLUE_STRINGSET_GREK, 1.1627 + AF_BLUE_STRINGSET_CYRL): Add blue zones for Greek and Cyrillic. 1.1628 + (AF_BLUE_STRINGSET_LATN): Fix typo. 1.1629 + * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated. 1.1630 + 1.1631 + * src/autofit/aflatin.c (af_grek_uniranges, af_cyrl_uniranges): New 1.1632 + arrays. 1.1633 + (af_grek_script_class, af_cyrl_script_class): New scripts. 1.1634 + * src/autofit/aflatin.h: Updated. 1.1635 + 1.1636 +2013-09-20 Werner Lemberg <wl@gnu.org> 1.1637 + 1.1638 + * docs/CHANGES: Updated. 1.1639 + 1.1640 +2013-09-20 Behdad Esfahbod <behdad@behdad.org> 1.1641 + 1.1642 + Fix vertical size of emboldened glyphs. 1.1643 + 1.1644 + Cf. https://bugzilla.gnome.org/show_bug.cgi?id=686709 1.1645 + 1.1646 + * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Adjust `horiBearingY' 1.1647 + also. 1.1648 + 1.1649 +2013-09-11 Alexei Podtelezhnikov <apodtele@gmail.com> 1.1650 + 1.1651 + * include/freetype/ftoutln.h: Correct FT_Outline_Get_Orientation 1.1652 + algorithm description. 1.1653 + 1.1654 +2013-09-11 Werner Lemberg <wl@gnu.org> 1.1655 + 1.1656 + [autofit] Improve Hebrew rendering. 1.1657 + 1.1658 + This change introduces a new blue zone property 1.1659 + `AF_BLUE_PROPERTY_LATIN_LONG' to make the auto-hinter ignore short 1.1660 + top segments. 1.1661 + 1.1662 + * src/autofit/afblue.dat: Fix Hebrew blue strings. 1.1663 + Use AF_BLUE_PROPERTY_LATIN_LONG for AF_BLUE_STRING_HEBREW_TOP. 1.1664 + 1.1665 + * src/autofit/afblue.hin (AF_BLUE_PROPERTY_LATIN_LONG): New macro. 1.1666 + 1.1667 + * src/autofit/afblue.c, src/autofit/afblue.h: Updated. 1.1668 + 1.1669 + * src/autofit/aflatin.c (af_latin_metrics_init_blues): Handle 1.1670 + `AF_LATIN_IS_LONG_BLUE'. 1.1671 + 1.1672 + * src/autofit/aflatin.h (AF_LATIN_IS_LONG_BLUE): New macro. 1.1673 + 1.1674 +2013-08-28 Behdad Esfahbod <behdad@google.com> 1.1675 + 1.1676 + [sfnt] Fix frame access while reading WOFF table directory. 1.1677 + 1.1678 + * src/sfnt/sfobjs.c (woff_open_font): Using single memory frame 1.1679 + while reading the directory entries for the whole loop. 1.1680 + 1.1681 +2013-08-29 Werner Lemberg <wl@gnu.org> 1.1682 + Behdad Esfahbod <behdad@google.com> 1.1683 + 1.1684 + Implement support for WOFF containers. 1.1685 + 1.1686 + We simply synthesize a SFNT from the WOFF, create a memory stream 1.1687 + for the new data, and load the SFNT as usual. 1.1688 + 1.1689 + Does NOT add any API to access WOFF metadata or private blocks. 1.1690 + 1.1691 + * include/freetype/internal/tttypes.h (WOFF_HeaderRec, 1.1692 + WOFF_TableRec): New structures. 1.1693 + 1.1694 + * include/freetype/tttags.h (TTAG_wOFF): New macro. 1.1695 + 1.1696 + * src/base/ftobjs.c (FT_Open_Face): Set `stream' after calling 1.1697 + `open_face'. 1.1698 + 1.1699 + * src/sfnt/sfobjs.c [FT_CONFIG_OPTION_SYSTEM_ZLIB]: Include 1.1700 + `FT_GZIP_H'. 1.1701 + (WRITE_BYTE, WRITE_USHORT, WRITE_ULONG): New temporary macros for 1.1702 + writing to a stream. 1.1703 + (sfnt_stream_close, compare_offsets, woff_open_font): New functions. 1.1704 + (sfnt_open_font): Handle `TTAG_wOFF'. 1.1705 + (sfnt_init_face): Set `stream' after calling `sfnt_open_font'. 1.1706 + 1.1707 + * src/truetype/ttobjs.c (tt_face_init): Set `stream' after calling 1.1708 + `sfnt->init_face'. 1.1709 + 1.1710 + * src/base/ftobjs.c (open_face): Use a pointer to FT_Stream as an 1.1711 + argument so that a changed stream survives. 1.1712 + Update callers. 1.1713 + 1.1714 +2013-08-28 Werner Lemberg <wl@gnu.org> 1.1715 + 1.1716 + [gzip] New function `FT_Gzip_Uncompress'. 1.1717 + 1.1718 + This is modeled after zlib's `uncompress' function. We need this 1.1719 + for WOFF support. 1.1720 + 1.1721 + * include/freetype/ftgzip.h, src/gzip/ftgzip.c (FT_Gzip_Uncompress): 1.1722 + New function. 1.1723 + 1.1724 + * src/gzip/rules.mk: Rewrite to better reflect dependencies. 1.1725 + 1.1726 +2013-08-28 Werner Lemberg <wl@gnu.org> 1.1727 + 1.1728 + [autofit] Fix `make multi' compilation. 1.1729 + 1.1730 + * src/autofit/afblue.cin, src/autofit/afblue.c: Don't include 1.1731 + `afblue.h' but `aftypes.h'. 1.1732 + * src/autofit/afcjk.c: Don't include `aftypes.h' but `afglobal.h'. 1.1733 + 1.1734 +2013-08-28 Werner Lemberg <wl@gnu.org> 1.1735 + 1.1736 + [autofit] Fix C++ compilation. 1.1737 + 1.1738 + * src/autofit/afglobal.c (af_face_globals_get_metrics), 1.1739 + src/autofit/afdummy.c (af_dflt_script_class), src/autofit/afindic.c 1.1740 + (af_deva_script_class): Use proper casts. 1.1741 + 1.1742 +2013-08-27 Behdad Esfahbod <behdad@google.com> 1.1743 + 1.1744 + * src/sfnt/ttload.c (tt_face_load_font_dir): Fix sign typos. 1.1745 + 1.1746 +2013-08-27 Behdad Esfahbod <behdad@google.com> 1.1747 + 1.1748 + FT_Open_Face: Improve external stream handling. 1.1749 + 1.1750 + If the font's `clazz->init_face' function wants to swap to new 1.1751 + stream, handling of whether original stream was external could 1.1752 + result to either memory leak or double free. Mark externality into 1.1753 + face flags before calling `init_face' such that the clazz can handle 1.1754 + external streams properly. 1.1755 + 1.1756 + * src/base/ftobjs.c (FT_Open_Face): Move code to set 1.1757 + FT_FACE_FLAG_EXTERNAL_STREAM to... 1.1758 + (open_face): This function. 1.1759 + 1.1760 +2013-08-27 Werner Lemberg <wl@gnu.org> 1.1761 + 1.1762 + Remove `FT_SqrtFixed' function. 1.1763 + 1.1764 + It's no longer used. 1.1765 + 1.1766 + * include/freetype/internal/ftcalc.h, src/base/ftcalc.c: Do it. 1.1767 + 1.1768 +2013-08-27 Werner Lemberg <wl@gnu.org> 1.1769 + 1.1770 + [autofit] While tracing, report script names instead of ID values. 1.1771 + 1.1772 + * src/autofit/afglobal.c (af_script_names) [FT_DEBUG_LEVEL_TRACE]: 1.1773 + New array. 1.1774 + * src/autofit/afglobal.h: Updated. 1.1775 + 1.1776 + * src/autofit/afcjk.c (af_cjk_metrics_init_widths, 1.1777 + af_cjk_hint_edges): Use `af_script_names'. 1.1778 + * src/autofit/aflatin.c (af_latin_metrics_init_widths, 1.1779 + af_latin_hint_edges): Ditto. 1.1780 + 1.1781 +2013-08-26 Werner Lemberg <wl@gnu.org> 1.1782 + 1.1783 + [autofit] Report used script while hinting a glyph. 1.1784 + 1.1785 + * src/autofit/afcjk.c (af_cjk_hint_edges), src/autofit/aflatin.c 1.1786 + (af_latin_hint_edges): Implement it. 1.1787 + 1.1788 +2013-08-26 Werner Lemberg <wl@gnu.org> 1.1789 + 1.1790 + [autofit] Add support for Hebrew script. 1.1791 + 1.1792 + * src/autofit/afblue.dat: Add blue strings for Hebrew. 1.1793 + * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated. 1.1794 + 1.1795 + * src/autofit/aflatin.c (af_hebr_uniranges): New array. 1.1796 + (af_hebr_script_class): New script. 1.1797 + * src/autofit/aflatin.h, src/autofit/afscript.h: Updated. 1.1798 + 1.1799 +2013-08-26 Werner Lemberg <wl@gnu.org> 1.1800 + 1.1801 + [autofit] Improve tracing messages. 1.1802 + 1.1803 + * src/autofit/afcjk.c (af_cjk_metrics_init_widths): Mention script 1.1804 + ID in tracing message. 1.1805 + (af_cjk_metrics_init_blues): Initialize `axis' outside of the inner 1.1806 + loop. 1.1807 + Improve tracing messages. 1.1808 + (af_cjk_hint_edges) [FT_DEBUG_LEVEL_TRACE]: New variable 1.1809 + `num_actions' to count hinting actions. 1.1810 + Improve tracing messages. 1.1811 + 1.1812 + * src/autofit/aflatin.c (af_latin_metrics_init_widths): Mention 1.1813 + script ID in tracing message. 1.1814 + (af_latin_metrics_init_blues, af_latin_hint_edges): Improve tracing 1.1815 + messages. 1.1816 + 1.1817 +2013-08-26 Werner Lemberg <wl@gnu.org> 1.1818 + 1.1819 + Better tracing of loaded glyphs. 1.1820 + 1.1821 + Previously, the loading of a glyph was traced at level 4, if at all. 1.1822 + With this change, all font loading routines emit a tracing message 1.1823 + at level 1, making it easier to select tracing output (for example 1.1824 + using F2_DEBUG="any:1 afhints:7 aflatin:7"). 1.1825 + 1.1826 + * src/bdf/bdfdrivr.c (BDF_Glyph_Load): Add tracing message. 1.1827 + * src/cff/cffdrivr.c (cff_glyph_load): Ditto. 1.1828 + * src/cff/cffgload.c (cff_decoder_prepare): Improve tracing 1.1829 + messages. 1.1830 + * src/cid/cidgload.c (cid_load_glyph): Use level 1 for tracing 1.1831 + message. 1.1832 + * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Ditto. 1.1833 + * src/pfr/pfrobjs.c (pfr_slot_load): Add tracing message. 1.1834 + * src/truetype/ttgload.c (TT_Load_Glyph): Ditto. 1.1835 + * src/type1/t1gload.c (T1_Load_Glyph): Ditto. 1.1836 + * src/type42/t42objs.c (T42_GlyphSlot_Load): Ditto. 1.1837 + * src/winfonts/winfnt.c (FNT_Load_Glyph): Ditto. 1.1838 + 1.1839 +2013-08-26 Werner Lemberg <wl@gnu.org> 1.1840 + 1.1841 + [autofit] Fix script selection. 1.1842 + 1.1843 + * src/autofit/afglobal.c (af_face_globals_get_metrics): Use 1.1844 + `AF_SCRIPT_DFLT', not value 0. 1.1845 + Simplify code. 1.1846 + 1.1847 + * src/autofit/afscript.h: Sort by script name. 1.1848 + 1.1849 +2013-08-26 Werner Lemberg <wl@gnu.org> 1.1850 + 1.1851 + [autofit] Make `dummy' hinter work as expected. 1.1852 + 1.1853 + * src/autofit/afdummy.c (af_dummy_hints_init): Properly set scaling 1.1854 + information. 1.1855 + (af_dummy_hints_apply): Scale the glyphs. 1.1856 + 1.1857 +2013-08-25 Werner Lemberg <wl@gnu.org> 1.1858 + 1.1859 + [autofit] Make `cjk' module use blue stringsets. 1.1860 + 1.1861 + * src/autofit/afcjk.c (AF_CJK_MAX_TEST_CHARACTERS): Removed. 1.1862 + (af_cjk_hani_blue_chars): Removed. 1.1863 + (AF_CJK_BLUE_TYPE_*): Removed. 1.1864 + (af_cjk_metrics_init_blues): Replace AF_CJK_MAX_TEST_CHARACTERS with 1.1865 + AF_BLUE_STRING_MAX_LEN. 1.1866 + Change loops to use offsets (in file `afblue.h') into the new arrays 1.1867 + `af_blue_stringsets' and `af_blue_strings' (in file `afblue.c'). 1.1868 + Instead of three dimensions (as used in the old blue string array) 1.1869 + we now use properties to do the same, saving one loop nesting level. 1.1870 + 1.1871 + * src/autofit/afcjk.h: Remove old enumeration values superseded by 1.1872 + the new data in `afblue.h'. 1.1873 + (AF_CJK_IS_TOP_BLUE, AF_CJK_IS_HORIZ_BLUE, AF_CJK_IS_FILLED_BLUE, 1.1874 + AF_CJK_IS_RIGHT_BLUE): New macros, to be used in 1.1875 + `af_cjk_metrics_init_blues'. 1.1876 + (AF_CJK_BLUE_IS_RIGHT): Remove this now redundant enum value. 1.1877 + (AF_CJK_BLUE_IS_TOP): Renamed to... 1.1878 + (AF_CJK_BLUE_TOP): This. 1.1879 + (AF_CJK_MAX_BLUES): Remove. 1.1880 + (AF_CJKAxisRec): Updated. 1.1881 + 1.1882 +2013-08-25 Werner Lemberg <wl@gnu.org> 1.1883 + 1.1884 + [autofit] Typo. 1.1885 + 1.1886 + * src/autofit/afblue.hin, src/autofit/afblue.c (GET_UTF8_CHAR): Use 1.1887 + cast. 1.1888 + 1.1889 +2013-08-25 Werner Lemberg <wl@gnu.org> 1.1890 + 1.1891 + [autofit] Synchronize `cjk' with `latin' module (and vice versa). 1.1892 + 1.1893 + * src/autofit/afcjk.c (af_cjk_metrics_init_widths): Add tracing 1.1894 + messages. 1.1895 + (af_cjk_metrics_init_blues): Don't pass blue string array as 1.1896 + argument but use the global array directly. 1.1897 + Use `outline' directly. 1.1898 + Update and add tracing messages. 1.1899 + (af_cjk_metrics_init): Simplify code. 1.1900 + (af_cjk_metrics_scale_dim): Improve tracing message. 1.1901 + (af_cjk_metrics_scale): Synchronize. 1.1902 + 1.1903 + * src/autofit/aflatin.c (af_latin_metrics_init_widths, 1.1904 + af_latin_metrics_init_blues): Improve and add tracing messages. 1.1905 + 1.1906 +2013-08-25 Werner Lemberg <wl@gnu.org> 1.1907 + 1.1908 + [autofit] Make `latin' module use blue stringsets. 1.1909 + 1.1910 + * src/autofit/aflatin.c (AF_LATIN_MAX_TEST_CHARACTERS): Removed. 1.1911 + (af_latin_blue_chars): Removed. 1.1912 + (af_latin_metrics_init_blues): Replace AF_LATIN_MAX_TEST_CHARACTERS 1.1913 + with AF_BLUE_STRING_MAX_LEN. 1.1914 + Change loops to use offsets (in file `afblue.h') into the new arrays 1.1915 + `af_blue_stringsets' and `af_blue_strings' (in file `afblue.c'). 1.1916 + Use `AF_LATIN_IS_SMALL_TOP_BLUE' macro. 1.1917 + 1.1918 + * src/autofit/aflatin.h: Remove old enumeration values superseded by 1.1919 + the new data in `afblue.h'. 1.1920 + (AF_LATIN_IS_TOP_BLUE): Updated definition. 1.1921 + (AF_LATIN_IS_SMALL_TOP_BLUE): New macro. 1.1922 + (AF_LATIN_MAX_BLUES): Remove. 1.1923 + (AF_LatinAxisRec): Updated. 1.1924 + 1.1925 +2013-08-25 Werner Lemberg <wl@gnu.org> 1.1926 + 1.1927 + [autofit] Add blue stringsets. 1.1928 + 1.1929 + * src/autofit/aftypes.h: Include `afblue.h'. 1.1930 + (AF_ScriptClassRec): Add `blue_stringset' field. 1.1931 + (AF_DEFINE_SCRIPT_CLASS): Updated. 1.1932 + 1.1933 + * src/autofit/autofit.c: Include `afblue.c'. 1.1934 + 1.1935 + * src/autofit/afcjk.c (af_hani_script_class), src/autofit/afdummy.c 1.1936 + (af_dflt_script_class), src/autofit/afindic.c 1.1937 + (af_deva_script_class), src/autofit/aflatin.c 1.1938 + (af_latn_script_class), src/autofit/aflatin2.c 1.1939 + (af_ltn2_script_class): Updated. 1.1940 + 1.1941 + * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `afblue.c'. 1.1942 + 1.1943 +2013-08-25 Werner Lemberg <wl@gnu.org> 1.1944 + 1.1945 + [autofit] Introduce data file for blue strings. 1.1946 + 1.1947 + The idea is to have a central file which gets processed by a Perl 1.1948 + script to create proper `.c' and `.h' files using templates. There 1.1949 + are two other reasons to do that: 1.1950 + 1.1951 + . The data file should be easily readable. We use UTF-8 encoding 1.1952 + which then gets converted to single bytes. 1.1953 + 1.1954 + . Since the number of supported scripts will increase soon, the 1.1955 + current usage of blue string arrays is a waste of space. Using 1.1956 + the Perl script it is possible to imitate jagged arrays, 1.1957 + defining enumeration constants as offsets into the arrays. 1.1958 + 1.1959 + This commit only adds files without changing any functionality. 1.1960 + 1.1961 + * src/autofit/afblue.dat: New data file. 1.1962 + * src/tools/afblue.pl: New Perl script for processing `afblue.dat'. 1.1963 + 1.1964 + * src/autofit/afblue.cin, src/autofit/afblue.hin: New template files 1.1965 + for... 1.1966 + * src/autofit/afblue.c, src/autofit/afblue.c: New source files. 1.1967 + To avoid a dependency on Perl, we add them too. 1.1968 + 1.1969 +2013-08-19 Alexei Podtelezhnikov <apodtele@gmail.com> 1.1970 + 1.1971 + [base] Enable new algorithm for `BBox_Cubic_Check'. 1.1972 + 1.1973 + * src/base/ftbbox.c: Enable new BBox_Cubic_Check algorithm, remove 1.1974 + the old one. 1.1975 + Improve comments. 1.1976 + 1.1977 +2013-08-18 Werner Lemberg <wl@gnu.org> 1.1978 + 1.1979 + * builds/unix/unix-def.in (freetype2.pc): Don't set executable bit. 1.1980 + 1.1981 +2013-08-18 Werner Lemberg <wl@gnu.org> 1.1982 + 1.1983 + Fix Savannah bug #39804. 1.1984 + 1.1985 + * builds/unix/configure.raw (LIBPNG): Define and export. 1.1986 + * builds/unix/freetype-config.in, builds/unix/freetype2.in: Handle 1.1987 + libpng. 1.1988 + 1.1989 +2013-08-17 Alexei Podtelezhnikov <apodtele@gmail.com> 1.1990 + 1.1991 + [base] Clean up BBox_Conic_Check. 1.1992 + 1.1993 + * src/base/ftbbox.c (BBox_Conic_Check): Remove redundant checks for 1.1994 + extremum at the segment ends, which are already within the bbox. 1.1995 + Slightly modify calculations. 1.1996 + 1.1997 +2013-08-15 Alexei Podtelezhnikov <apodtele@gmail.com> 1.1998 + 1.1999 + [base] Finish experimental (disabled) BBox_Cubic_Check implementation. 1.2000 + 1.2001 + * src/base/ftbbox.c (BBox_Cubic_Check): Scale arguments to improve 1.2002 + accuracy and avoid overflows. 1.2003 + 1.2004 +2013-08-13 Alexei Podtelezhnikov <apodtele@gmail.com> 1.2005 + 1.2006 + [base] Refactor experimental (disabled) BBox_Cubic_Check. 1.2007 + 1.2008 + * src/base/ftbbox.c (BBox_Cubic_Check): Implement the minimum search 1.2009 + as the mirror image of the maximum search implemented here... 1.2010 + (update_max): New function. 1.2011 + 1.2012 +2013-08-06 John Tytgat <John.Tytgat@esko.com> 1.2013 + 1.2014 + Fix Savannah bug #39702. 1.2015 + 1.2016 + * src/cff/cffload.c (cff_index_get_pointers): Check for `cur_offset 1.2017 + != 0'; this stronger test is mandated by the CFF specification. 1.2018 + Fix test for INDEX structures which have one or more empty entries 1.2019 + at the end. 1.2020 + 1.2021 +2013-08-05 Werner Lemberg <wl@gnu.org> 1.2022 + 1.2023 + Fix gcc pragmas, part 2. 1.2024 + 1.2025 + * src/truetype/ttinterp.c (TT_MulFix14_long_long, 1.2026 + TT_DotFix14_long_long): `#pragma gcc diagnostic {push,pop}' has been 1.2027 + introduced with gcc version 4.6. 1.2028 + 1.2029 +2013-08-05 Werner Lemberg <wl@gnu.org> 1.2030 + 1.2031 + Fix gcc pragmas. 1.2032 + 1.2033 + * src/truetype/ttinterp.c (TT_MulFix14_long_long, 1.2034 + TT_DotFix14_long_long): Older gcc versions don't accept diagnostic 1.2035 + pragmas within a function body. 1.2036 + 1.2037 +2013-08-05 Werner Lemberg <wl@gnu.org> 1.2038 + 1.2039 + Fix Savannah bug #39700. 1.2040 + 1.2041 + * builds/unix/ftconfig.h: Synchronize with 1.2042 + `include/freetype/config/ftconfig.h'. 1.2043 + 1.2044 + * builds/vms/ftconfig.h: Ditto. 1.2045 + Make the differences to the master `ftconfig.h' file as small as 1.2046 + possible for easier maintainance. 1.2047 + 1.2048 +2013-08-05 Werner Lemberg <wl@gnu.org> 1.2049 + 1.2050 + [autofit] Improve handling of `near' points. 1.2051 + 1.2052 + Points which are very near to each other are now marked as such. 1.2053 + The `weak' flag is then computed by using the `in' vector of the 1.2054 + first and the `out' vector of the last point of a group of near 1.2055 + points. 1.2056 + 1.2057 + For example, this fixes the rendering of glyph `Oslash' in 1.2058 + `Roboto-Thin.ttf'. 1.2059 + 1.2060 + * src/autofit/afhints.h (AF_Flags): New value `AF_FLAGS_NEAR'. 1.2061 + 1.2062 + * src/autofit/afhints.c (af_glyph_hints_reload): Introduce 1.2063 + the heuristic value `near_limit' to decide whether the current point 1.2064 + is near to the previous one, then set `AF_FLAG_NEAR' accordingly. 1.2065 + Store good `in' vector (of last non-near point) in 1.2066 + `last_good_in_{x,y}' and use it as an argument to 1.2067 + `ft_corner_is_flat' if necessary. 1.2068 + 1.2069 +2013-08-02 Werner Lemberg <wl@gnu.org> 1.2070 + 1.2071 + * include/freetype/ftcffdrv.h: Improve documentation. 1.2072 + This is based on blog entries from David Lemon and Dave Arnold (both 1.2073 + from Adobe) with kind permission. Dave also helped in 1.2074 + proof-reading. 1.2075 + 1.2076 +2013-08-02 Werner Lemberg <wl@gnu.org> 1.2077 + 1.2078 + [autofit] Move declaration of scripts into separate file. 1.2079 + 1.2080 + This has the benefit that we don't need to duplicate the data at 1.2081 + different places. 1.2082 + 1.2083 + * src/autofit/afscript.h: New file. 1.2084 + 1.2085 + * src/autofit/aftypes.h (AF_Script): Include `afscript.h' to define 1.2086 + the enumeration values. 1.2087 + 1.2088 + * src/autofit/afglobal.c: Include `afscript.h' to get the script 1.2089 + specific header files. 1.2090 + (af_script_classes): Include `afscript.h' to fill this array. 1.2091 + 1.2092 + * src/autofit/afpic.c: Include `afscript.h' to get the script 1.2093 + specific header files. 1.2094 + (autofit_module_class_pic_init): Include `afscript.h' for 1.2095 + initialization. 1.2096 + * src/autofit/afpic.h (AF_SCRIPT_CLASSES_COUNT, 1.2097 + AF_SCRIPT_CLASSES_REC_COUNT): Removed. Use `AF_SCRIPT_MAX' instead. 1.2098 + 1.2099 + * src/autofit/rules.mk (AUTOF_DRV_H): Updated. 1.2100 + 1.2101 +2013-08-02 Werner Lemberg <wl@gnu.org> 1.2102 + 1.2103 + [autofit] Move declaration of writing systems into separate file. 1.2104 + 1.2105 + This has the benefit that we don't need to duplicate the data at 1.2106 + different places. 1.2107 + 1.2108 + * src/autofit/afwrtsys.h: New file. 1.2109 + 1.2110 + * src/autofit/aftypes.h (AF_WritingSystem): Include `afwrtsys.h' to 1.2111 + define the enumeration values. 1.2112 + 1.2113 + * src/autofit/afglobal.c: Include `afwrtsys.h' to get the writing 1.2114 + system specific header files. 1.2115 + Include `afpic.h'. 1.2116 + (af_writing_system_classes): Include `afwrtsys.h' to fill this 1.2117 + array. 1.2118 + 1.2119 + * src/autofit/afpic.c: Include `afwrtsys.h' to get the writing 1.2120 + system specific header files. 1.2121 + (autofit_module_class_pic_init): Include `afwrtsys.h' for 1.2122 + initialization. 1.2123 + * src/autofit/afpic.h (AF_WRITING_SYSTEM_CLASSES_COUNT, 1.2124 + AF_WRITING_SYSTEM_CLASSES_REC_COUNT): Removed. Use 1.2125 + `AF_WRITING_SYSTEM_MAX' instead. 1.2126 + 1.2127 +2013-08-02 Werner Lemberg <wl@gnu.org> 1.2128 + 1.2129 + [sfnt] Fix compilation with g++. 1.2130 + 1.2131 + * src/sfnt/pngshim.c (error_callback, read_data_from_FT_stream): Use 1.2132 + cast. 1.2133 + (Load_SBit_Png): Pacify compiler. 1.2134 + 1.2135 +2013-08-02 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> 1.2136 + Werner Lemberg <wl@gnu.org> 1.2137 + 1.2138 + [autofit] Fix `make multi'. 1.2139 + 1.2140 + * include/freetype/config/ftconfig.h (FT_LOCAL_ARRAY, 1.2141 + FT_LOCAL_ARRAY_DEF): New macros. 1.2142 + 1.2143 + * src/autofit/afglobal.c (af_writing_system_classes, 1.2144 + af_script_classes): Use FT_LOCAL_ARRAY_DEF. 1.2145 + * src/autofit/afglobal.h: Declare `af_writing_system_classes' and 1.2146 + `af_script_classes'. 1.2147 + * src/autofit/afloader.c: Include `afpic.h'. 1.2148 + 1.2149 +2013-08-01 Werner Lemberg <wl@gnu.org> 1.2150 + 1.2151 + Another round of cppcheck nitpicks. 1.2152 + 1.2153 + The call was (from the top-level of the FreeType tree): 1.2154 + 1.2155 + cppcheck --force \ 1.2156 + --enable=all \ 1.2157 + -I /usr/include \ 1.2158 + -I /usr/local/include \ 1.2159 + -I /usr/lib/gcc/i586-suse-linux/4.7/include \ 1.2160 + -I include \ 1.2161 + -I include/freetype \ 1.2162 + -I include/freetype/config \ 1.2163 + -I include/freetype/internal \ 1.2164 + -DFT2_BUILD_LIBRARY \ 1.2165 + . &> cppcheck.log 1.2166 + 1.2167 + using cppcheck git commit f7e93f99. 1.2168 + 1.2169 + Note that cppcheck still can't handle `#include FOO' (with `FOO' a 1.2170 + macro). 1.2171 + 1.2172 + */* Improve variable scopes. 1.2173 + */* Remove redundant initializations which get overwritten. 1.2174 + 1.2175 + * src/gxvalid/*: Comment out redundant code or guard it with 1.2176 + FT_DEBUG_LEVEL_TRACE. 1.2177 + 1.2178 +2013-07-30 Werner Lemberg <wl@gnu.org> 1.2179 + 1.2180 + [autofit] Introduce `writing systems'. 1.2181 + 1.2182 + This patch adds a new top level to the auto-hinter's script class 1.2183 + hierarchy. It defines `writing systems' which can contain multiple 1.2184 + scripts. 1.2185 + 1.2186 + For example, the `latin' writing system (in file `aflatin.c') is 1.2187 + able to support scripts like Latin, Cyrillic, Armenian, etc., which 1.2188 + can be handled similarly. 1.2189 + 1.2190 + Scripts are now named using four-letter OpenType tags. 1.2191 + 1.2192 + * src/autofit/aftypes.h (AF_ScriptClassRec): Move relevant members 1.2193 + to... 1.2194 + (AF_WritingSystemClassRec): This new structure. It holds pointers 1.2195 + to functions which can be shared among related scripts. 1.2196 + (AF_WritingSystem): New enumeration. 1.2197 + (AF_Script): Revised values using four-letter tags. 1.2198 + (AF_DEFINE_WRITING_SYSTEM_CLASS): New macro. 1.2199 + (AF_DEFINE_SCRIPT_CLASS): Updated. 1.2200 + 1.2201 + * src/autofit/afglobal.c (af_writing_system_classes): New global, 1.2202 + constant array. 1.2203 + (af_script_classes): Updated. 1.2204 + (af_face_globals_free): Updated. 1.2205 + Remove assertion. 1.2206 + (af_face_globals_get_metrics): Updated. 1.2207 + 1.2208 + * src/autofit/afglobal.h (AF_SCRIPT_FALLBACK) 1.2209 + [!AF_CONFIG_OPTION_CJK]: Handle this case. 1.2210 + 1.2211 + * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph): 1.2212 + Updated. 1.2213 + 1.2214 + * src/autofit/afpic.c (autofit_module_class_pic_init): Updated; 1.2215 + initialize structures for both writing systems and scripts. 1.2216 + * src/autofit/afpic.h: Updated. 1.2217 + (AF_WRITING_SYSTEM_CLASSES_GET): New macro. 1.2218 + 1.2219 + * src/autofit/afcjk.c (af_cjk_writing_system_class): New writing 1.2220 + system. 1.2221 + (af_cjk_uniranges): Renamed to... 1.2222 + (af_hani_uniranges): This. 1.2223 + (af_cjk_script_class): Reduced and renamed to... 1.2224 + (af_hani_script_class): This. 1.2225 + * src/autofit/afcjk.h: Updated. 1.2226 + 1.2227 + * src/autofit/afdummy.c (af_dummy_writing_system_class): New writing 1.2228 + system. 1.2229 + (af_dummy_script_class): Reduced and renamed to... 1.2230 + (af_dflt_script_class): This. 1.2231 + * src/autofit/afdummy.h: Updated. 1.2232 + 1.2233 + * src/autofit/afindic.c (af_indic_writing_system_class): New writing 1.2234 + system. 1.2235 + (af_indic_uniranges): Renamed to... 1.2236 + (af_deva_uniranges): This. 1.2237 + (af_indic_script_class): Reduced and renamed to... 1.2238 + (af_deva_script_class): This. 1.2239 + * src/autofit/afcjk.h: Updated. 1.2240 + 1.2241 + * src/autofit/aflatin.c (af_latin_writing_system_class): New writing 1.2242 + system. 1.2243 + (af_latin_uniranges): Renamed to... 1.2244 + (af_latn_uniranges): This. 1.2245 + (af_latin_script_class): Reduced and renamed to... 1.2246 + (af_latn_script_class): This. 1.2247 + * src/autofit/aflatin.h: Updated. 1.2248 + 1.2249 + * src/autofit/aflatin2.c (af_latin2_writing_system_class): New 1.2250 + writing system. 1.2251 + (af_latin2_uniranges): Renamed to... 1.2252 + (af_ltn2_uniranges): This. 1.2253 + Synchronize ranges with `latin'. 1.2254 + (af_latin2_script_class): Reduced and renamed to... 1.2255 + (af_ltn2_script_class): This. 1.2256 + * src/autofit/aflatin2.h: Updated. 1.2257 + 1.2258 +2013-07-30 Werner Lemberg <wl@gnu.org> 1.2259 + 1.2260 + [autofit] Variable renaming. 1.2261 + 1.2262 + * src/autofit/aftypes.h (AF_ScriptMetricsRec): 1.2263 + s/clazz/script_class/. 1.2264 + Update all users. 1.2265 + 1.2266 +2013-07-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> 1.2267 + 1.2268 + Ignore libpng-config under cross-building configuration, 1.2269 + because it will return the flags for the hosting environment. 1.2270 + 1.2271 + * builds/unix/configure.raw: Ignore libpng-config when 1.2272 + `cross_compiling' == yes. 1.2273 + 1.2274 +2013-07-30 Behdad Esfahbod <behdad@google.com> 1.2275 + 1.2276 + Prevent division by zero by a transparent color. 1.2277 + 1.2278 + * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): 1.2279 + Return 0 immediately, when alpha channel is zero. 1.2280 + 1.2281 +2013-07-25 Behdad Esfahbod <behdad@google.com> 1.2282 + 1.2283 + Add FT_FACE_FLAG_COLOR and FT_HAS_COLOR. 1.2284 + 1.2285 + Also disambiguate Google's color bitmap tables. 1.2286 + 1.2287 + * include/freetype/freetype.h (FT_FACE_FLAG_COLOR, FT_HAS_COLOR): 1.2288 + New macros. 1.2289 + 1.2290 + * include/freetype/internal/tttypes.h (TT_SbitTableType): Add 1.2291 + TT_SBIT_TABLE_TYPE_CBLC. 1.2292 + 1.2293 + * src/sfnt/sfobjs.c (sfnt_load_face): Handle FT_FACE_FLAG_COLOR. 1.2294 + 1.2295 + * src/sfnt/ttsbit.c (tt_face_load_sbit, 1.2296 + tt_face_load_strike_metrics, tt_face_load_sbit_image): Handle 1.2297 + TT_SBIT_TABLE_TYPE_CBLC. 1.2298 + 1.2299 +2013-07-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> 1.2300 + 1.2301 + [sfnt] Fix for `make multi' target. 1.2302 + 1.2303 + * src/sfnt/pngshim.c (Load_SBit_Png): Use FT_LOCAL_DEF(). 1.2304 + 1.2305 +2013-07-20 Werner Lemberg <wl@gnu.org> 1.2306 + 1.2307 + * docs/INSTALL.GNU: Updated. 1.2308 + 1.2309 +2013-07-20 Behdad Esfahbod <behdad@google.com> 1.2310 + 1.2311 + [sfnt] Fix `sbix' table version handling. 1.2312 + 1.2313 + * src/sfnt/ttsbit.c (tt_face_load_sbit) [TT_SBIT_TABLE_TYPE_SBIX]: 1.2314 + USHORT version numbers are to be considered as `minor'. 1.2315 + 1.2316 +2013-07-19 Werner Lemberg <wl@gnu.org> 1.2317 + 1.2318 + [autofit] Fix segment classification for blue zones. 1.2319 + 1.2320 + The old code (essentially unchanged since the very beginning) 1.2321 + incorrectly handled this configuration 1.2322 + 1.2323 + x -o- x 1.2324 + / \ 1.2325 + / \ 1.2326 + / \ 1.2327 + o o 1.2328 + 1.2329 + as flat and this 1.2330 + 1.2331 + o o 1.2332 + / / 1.2333 + x| x| 1.2334 + | | 1.2335 + o---------------o 1.2336 + 1.2337 + as round. (`o' and `x' are on and off points, respectively). 1.2338 + 1.2339 + This is a major change which should improve the rendering results 1.2340 + enormously for many TrueType fonts, especially in the range approx. 1.2341 + 20-40ppem, fixing the appearance of many overshoots. 1.2342 + 1.2343 + * src/autofit/aflatin.c (af_latin_metrics_init_blues): Look at the 1.2344 + first and last points of the segment, not the points right before 1.2345 + and after. 1.2346 + 1.2347 +2013-07-19 Behdad Esfahbod <behdad@google.com> 1.2348 + 1.2349 + [sfnt] `sbix' fix-ups. 1.2350 + 1.2351 + * src/sfnt/sfobjs.c (sfnt_load_face): Apple's `sbix' color bitmaps 1.2352 + are rendered scaled and then the `glyf' outline rendered on top. We 1.2353 + don't support that yet, so just ignore the `glyf' outline and 1.2354 + advertise it as a bitmap-only font. 1.2355 + 1.2356 + * src/sfnt/ttsbit.c (tt_face_load_strike_metrics) 1.2357 + [TT_SBIT_TABLE_TYPE_SBIX]: Return metrics in 26.6 units. 1.2358 + (tt_face_load_sbix_image): Typo. 1.2359 + 1.2360 +2013-07-18 Behdad Esfahbod <behdad@google.com> 1.2361 + 1.2362 + [sfnt] Add support for Apple's `sbix' color bitmap table. 1.2363 + 1.2364 + * include/freetype/internal/tttypes.h (TT_SBit_MetricsRec): Widen 1.2365 + fields to FT_Short and FT_UShort, respectively. 1.2366 + (TT_SBitTableType): New enumeration. 1.2367 + (TT_FaceRec): Add `sbit_table_type' field. 1.2368 + 1.2369 + * include/freetype/tttags.h (TTAG_sbix): New macro. 1.2370 + 1.2371 + * src/sfnt/pngshim.c (Load_SBit_Png): Pass a more generic 1.2372 + FT_GlyphSlot argument instead FT_Bitmap. 1.2373 + Add flag to control map and metrics handling. 1.2374 + Update all users. 1.2375 + 1.2376 + * src/sfnt/ttsbit.c: Include `ttmtx.h'. 1.2377 + (tt_face_load_eblc): Renamed to... 1.2378 + (tt_face_load_sbit): This. 1.2379 + Handlic `sbix' bitmaps. 1.2380 + (tt_face_free_eblc): Renamed to... 1.2381 + (tt_face_load_sbit): This. 1.2382 + Updated. 1.2383 + (tt_face_load_strike_metrics): Handle `sbix' bitmaps. 1.2384 + (tt_face_load_sbix_image): New function. 1.2385 + (tt_sbit_decoder_alloc_bitmap, tt_sbit_decoder_load_image, 1.2386 + tt_sbit_decoder_load_byte_aligned, tt_sbit_decoder_load_bit_aligned, 1.2387 + tt_sbit_decoder_load_compound, tt_sbit_decoder_load_png, 1.2388 + tt_sbit_decoder_load_image, tt_sbit_decoder_load_bitmap): Don't pass 1.2389 + and handle load flags. 1.2390 + (tt_sbit_decoder_load_bitmap) [!FT_CONFIG_OPTION_USE_PNG]: Better 1.2391 + handle formats 17-19. 1.2392 + Move color to grayscale conversion to... 1.2393 + (tt_face_load_sbit_image): Here. 1.2394 + Handle `sbix' bitmaps. 1.2395 + 1.2396 + * src/sfnt/pngshim.h: Updated. 1.2397 + * src/sfnt/ttsbit.h: Updated. 1.2398 + * src/sfnt/sfdriver.c: Updated. 1.2399 + 1.2400 +2013-07-18 Werner Lemberg <wl@gnu.org> 1.2401 + 1.2402 + [sfnt] Ignore invalid magic number in `head' or `bhed'. 1.2403 + 1.2404 + Other font engines seem to ignore it also. Problem reported by 1.2405 + Hin-Tak Leung <htl10@users.sourceforge.net>. 1.2406 + 1.2407 + * src/sfnt/ttload.c (check_table_dir): Don't abort but warn only if 1.2408 + we have an invalid magic number. 1.2409 + 1.2410 +2013-07-16 Werner Lemberg <wl@gnu.org> 1.2411 + 1.2412 + [smooth] Fix segfault caused by previous commit. 1.2413 + 1.2414 + * src/smooth/ftgrays.c (gray_set_cell): Always compute 1.2415 + `ras.invalid'. 1.2416 + 1.2417 +2013-07-16 David Turner <digit@google.com> 1.2418 + 1.2419 + [smooth] Improve performance. 1.2420 + 1.2421 + Provide a work-around for an ARM-specific performance bug in GCC. 1.2422 + This speeds up the rasterizer by more than 5%. 1.2423 + 1.2424 + Also slightly optimize `set_gray_cell' and `gray_record_cell' (which 1.2425 + also improves performance on other platforms by a tiny bit (<1%). 1.2426 + 1.2427 + * src/smooth/ftgrays.c (FT_DIV_MOD): New macro. 1.2428 + Use it where appropriate. 1.2429 + 1.2430 + (gray_record_cell, gray_set_cell, gray_move_to, 1.2431 + gray_convert_glyph_inner): Streamline condition handling. 1.2432 + 1.2433 +2013-07-16 David Turner <digit@google.com> 1.2434 + 1.2435 + [truetype] Add assembler code for TT_MulFix14 and TT_DotFix14. 1.2436 + 1.2437 + This patch provides slightly optimized versions for ARM, x86, and 1.2438 + x86_64 CPUs if built with GCC. 1.2439 + 1.2440 + Also remove some dead code. 1.2441 + 1.2442 + * src/truetype/ttinterp.c (TT_MulFix14_arm, TT_MulFix14_long_long, 1.2443 + TT_DotFix14_long_long): New functions. 1.2444 + 1.2445 +2013-07-16 David Turner <digit@google.com> 1.2446 + 1.2447 + Optimize FT_MulFix for x86_64 GCC builds. 1.2448 + 1.2449 + This patch provides an optimized `FT_MulFix' implementation for 1.2450 + x86_64 machines when FreeType is built with GCC, or compatible 1.2451 + compilers like Clang. 1.2452 + 1.2453 + Example: 1.2454 + bin/ftbench -p -t 5 -s 14 -f 0008 Arial.ttf 1.2455 + 1.2456 + Before: 1.2457 + 1.2458 + Load 4.863 us/op 1.2459 + Load_Advances (Normal) 4.816 us/op 1.2460 + Load_Advances (Fast) 0.028 us/op 1.2461 + Render 2.753 us/op 1.2462 + Get_Glyph 0.463 us/op 1.2463 + Get_CBox 0.077 us/op 1.2464 + Get_Char_Index 0.023 us/op 1.2465 + Iterate CMap 13.898 us/op 1.2466 + New_Face 12.368 us/op 1.2467 + Embolden 0.028 us/op 1.2468 + Get_BBox 0.302 us/op 1.2469 + 1.2470 + After: 1.2471 + 1.2472 + Load 4.617 us/op 1.2473 + Load_Advances (Normal) 4.645 us/op 1.2474 + Load_Advances (Fast) 0.027 us/op 1.2475 + Render 2.789 us/op 1.2476 + Get_Glyph 0.460 us/op 1.2477 + Get_CBox 0.077 us/op 1.2478 + Get_Char_Index 0.024 us/op 1.2479 + Iterate CMap 13.403 us/op 1.2480 + New_Face 12.278 us/op 1.2481 + Embolden 0.028 us/op 1.2482 + Get_BBox 0.301 us/op 1.2483 + 1.2484 + * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h 1.2485 + (FT_MulFix_x86_64): New function. 1.2486 + 1.2487 +2013-07-16 David Turner <digit@google.com> 1.2488 + 1.2489 + Speed up ARMv7 support. 1.2490 + 1.2491 + When building for ARMv7 with thumb2 instructions, the optimized 1.2492 + `FT_MulFix_arm' assembly routine was not being used. 1.2493 + 1.2494 + The reason for this is in the `ftconfig.h' header, namely: 1.2495 + 1.2496 + - The assembly routine uses the `smull' instruction which is not 1.2497 + available when generating Thumb-1 machine code. It is available 1.2498 + in Thumb-2 mode, though. 1.2499 + 1.2500 + - The header was written a long time ago before Thumb-2 became 1.2501 + widely popular (e.g. with Android). So it simply doesn't use the 1.2502 + assembly routine if the `__thumb__' built-in macro is defined. 1.2503 + 1.2504 + - When compiling in Thumb-2 mode, the compiler will define both 1.2505 + `__thumb__' and `__thumb2__'. 1.2506 + 1.2507 + By checking for `(__thumb2__ || !__thumb__)', we ensure that the 1.2508 + assembly routine is only avoided when generating Thumb-1 code. 1.2509 + 1.2510 + Given that this is performance-sensitive function, this improves 1.2511 + `ftbench' as follows on a Galaxy Nexus: 1.2512 + 1.2513 + Before (us/op) After (us/op) 1.2514 + 1.2515 + - loading Arial.ttf glyphs at 14 ppem [1] 1.2516 + 1.2517 + Load 34.285 33.098 1.2518 + 1.2519 + - same operation with the light auto-hinter [2] 1.2520 + 1.2521 + Load 31.317 29.590 1.2522 + 1.2523 + - same operation without hinting [3] 1.2524 + 1.2525 + Load 6.143 5.376 1.2526 + 1.2527 + - loading Arial.ttf advances at 14 ppem [4] 1.2528 + 1.2529 + Load_Advances (normal) 34.216 33.016 1.2530 + Load_Advances (fast) 0.176 0.176 1.2531 + 1.2532 + [1] ftbench -t 5 -p -s 14 -b a -f 0008 Arial.ttf 1.2533 + [2] ftbench -t 5 -p -s 14 -b a -r 1 -f 0028 Arial.ttf 1.2534 + [3] ftbench -t 5 -p -s 14 -b a -f 000a Arial.ttf 1.2535 + [4] ftbench -t 5 -p -s 14 -b b -f 0008 Arial.ttf 1.2536 + 1.2537 + * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h 1.2538 + (FT_MULFIX_ASSEMBLER): Fix handling for ARMv7. 1.2539 + 1.2540 +2013-06-28 Werner Lemberg <wl@gnu.org> 1.2541 + 1.2542 + * docs/CHANGES: Updated. 1.2543 + 1.2544 +2013-06-27 Werner Lemberg <wl@gnu.org> 1.2545 + 1.2546 + * src/winfonts/winfnt.c (FNT_Load_Glyph): Fix bitmap width guard. 1.2547 + 1.2548 +2013-06-25 Werner Lemberg <wl@gnu.org> 1.2549 + 1.2550 + [cff] Add darkening limit to `darkening-parameters'. 1.2551 + 1.2552 + * src/cff/cffdrivr.c (cff_property_set): Add check. 1.2553 + 1.2554 +2013-06-25 Werner Lemberg <wl@gnu.org> 1.2555 + 1.2556 + [cff] Add `darkening-parameters' property. 1.2557 + 1.2558 + * include/freetype/ftcffdrv.h: Document it. 1.2559 + 1.2560 + * src/cff/cffdrivr.c (cff_property_set, cff_property_get): Handle 1.2561 + `darkening-parameters' property. 1.2562 + 1.2563 + * src/cff/cf2font.h (CF2_FontRec): Add `darkenParams' array. 1.2564 + 1.2565 + * src/cff/cf2font.c (cf2_computeDarkening): Add `darkenParams' 1.2566 + argument and use it. 1.2567 + Update all callers. 1.2568 + 1.2569 + * src/cff/cf2ft.c (cf2_decoder_parse_charstrings): Copy 1.2570 + `darken_params' values. 1.2571 + 1.2572 + * src/cff/cffobjs.h (CFF_DriverRec): Add `darken_params' array. 1.2573 + 1.2574 + * src/cff/cffobjs.c (cff_driver_init): Set default values for 1.2575 + `darken_params'. 1.2576 + 1.2577 +2013-06-25 Werner Lemberg <wl@gnu.org> 1.2578 + 1.2579 + [docmaker] Code shuffling. 1.2580 + 1.2581 + * src/tools/docmaker/tohtml.py (re_url): Move regexp... 1.2582 + * src/tools/docmaker/sources.py: ... to this file. 1.2583 + 1.2584 +2013-06-25 Werner Lemberg <wl@gnu.org> 1.2585 + 1.2586 + [docmaker] Remove unused functions. 1.2587 + 1.2588 + * src/tools/docmaker/content.py (DocMarkup.get_start, 1.2589 + DocBlock.get_markup_name): Removed. 1.2590 + * src/tools/docmaker/tohtml.py (html_quote0, dump_html_code, 1.2591 + HtmlFormatter.make_html_words): Removed. 1.2592 + 1.2593 +2013-06-25 Werner Lemberg <wl@gnu.org> 1.2594 + 1.2595 + * builds/freetype.mk (dll): Remove target. 1.2596 + 1.2597 + Problem reported by Jörg Günnewig <joerg.guennewig@googlemail.com>. 1.2598 + 1.2599 +2013-06-25 Werner Lemberg <wl@gnu.org> 1.2600 + 1.2601 + [docmaker] Recognise URLs. 1.2602 + 1.2603 + * src/tools/docmaker/tohtml.py (re_url): New regular expression. 1.2604 + (make_html_para): Use it. 1.2605 + 1.2606 +2013-06-19 Werner Lemberg <wl@gnu.org> 1.2607 + 1.2608 + * Version 2.5.0.1 released. 1.2609 + =========================== 1.2610 + 1.2611 + 1.2612 + Tag sources with `VER-2-5-0-1'. 1.2613 + 1.2614 + * include/freetype/config/ftoption.h: Undefine 1.2615 + CFF_CONFIG_OPTION_OLD_ENGINE. 1.2616 + * devel/ftoption.h: Define CFF_CONFIG_OPTION_OLD_ENGINE. 1.2617 + 1.2618 +2013-06-19 Werner Lemberg <wl@gnu.org> 1.2619 + 1.2620 + * builds/unix/install.mk (install): Don't create `cache' directory. 1.2621 + 1.2622 + Found by Peter Breitenlohner <peb@mppmu.mpg.de>. 1.2623 + 1.2624 +2013-06-19 Werner Lemberg <wl@gnu.org> 1.2625 + 1.2626 + * Version 2.5.0 released. 1.2627 + ========================= 1.2628 + 1.2629 + 1.2630 + Tag sources with `VER-2-5-0'. 1.2631 + 1.2632 + * docs/VERSION.DLL: Update documentation and bump version number to 1.2633 + 2.5.0. 1.2634 + 1.2635 + * README, Jamfile (RefDoc), 1.2636 + builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html, 1.2637 + builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html, 1.2638 + builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html, 1.2639 + builds/win32/visualc/freetype.dsp, 1.2640 + builds/win32/visualc/freetype.vcproj, 1.2641 + builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp, 1.2642 + builds/win32/visualce/freetype.vcproj, 1.2643 + builds/win32/visualce/index.html, 1.2644 + builds/wince/vc2005-ce/freetype.vcproj, 1.2645 + builds/wince/vc2005-ce/index.html, 1.2646 + builds/wince/vc2008-ce/freetype.vcproj, 1.2647 + builds/wince/vc2008-ce/index.html: s/2.4.12/2.5.0/, s/2412/250/. 1.2648 + 1.2649 + * include/freetype/freetype.h (FREETYPE_MINOR): Set to 5. 1.2650 + (FREETYPE_PATCH): Set to 0. 1.2651 + 1.2652 + * builds/unix/configure.raw (version_info): Set to 16:2:10. 1.2653 + 1.2654 + * src/base/ftobjs.c (FT_Open_Face): Pacify compiler. 1.2655 + * src/truetype/ttinterp.c (Ins_MSIRP, Ins_MIRP): Ditto. 1.2656 + 1.2657 +2013-06-18 Werner Lemberg <wl@gnu.org> 1.2658 + 1.2659 + Fix Savannah bug #39269. 1.2660 + 1.2661 + * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Free memory in 1.2662 + case of reacollocation failures. 1.2663 + 1.2664 +2013-06-18 Andrew Church <achurch+savannah@achurch.org> 1.2665 + 1.2666 + Fix Savannah bug #39266. 1.2667 + 1.2668 + If memory allocations fail at certain points while opening a font, 1.2669 + FreeType can either crash due to a NULL dereference or leak memory. 1.2670 + 1.2671 + * include/freetype/internal/ftobjs.c (FT_Face_InternalRec, 1.2672 + FT_LibraryRec): Make `refcount' a signed integer. If, for example, 1.2673 + FT_Open_Face() fails in a memory allocation before the face's 1.2674 + reference count is set to 1, a subsequent `FT_Done_Library' call 1.2675 + would otherwise loop over `FT_Done_Face' 2^32 times before freeing 1.2676 + the face. 1.2677 + 1.2678 + * src/base/ftobjs.c (open_face): Initialize `stream' and friends 1.2679 + earlier. 1.2680 + (FT_Open_Face) <Fail>: Behave correctly if `node' is NULL. 1.2681 + (FT_Destroy_Module) <Fail>: Check that `renderer_clazz' is valid. 1.2682 + 1.2683 +2013-06-14 Werner Lemberg <wl@gnu.org> 1.2684 + 1.2685 + * src/smooth/ftgrays.c One final pragma to silence 64-bit MSVC. 1.2686 + 1.2687 +2013-06-06 Dave Arnold <darnold@adobe.com> 1.2688 + Werner Lemberg <wl@gnu.org> 1.2689 + 1.2690 + [cff] Add code to Adobe's engine to handle ppem > 2000. 1.2691 + 1.2692 + * src/cff/cffgload.c (cff_slot_load): If we get 1.2693 + FT_Err_Glyph_Too_Big, retry unhinted and scale up later on. 1.2694 + 1.2695 +2013-06-12 Werner Lemberg <wl@gnu.org> 1.2696 + 1.2697 + Another try on pragmas. 1.2698 + 1.2699 + * include/freetype/internal/ftdebug.h: Move pragmas to... 1.2700 + * include/freetype/internal/internal.h: ... this file since it gets 1.2701 + included by all source files. 1.2702 + * include/freetype/internal/ftserv.h: Remove pragma which has no 1.2703 + effect. 1.2704 + 1.2705 +2013-06-12 Werner Lemberg <wl@gnu.org> 1.2706 + 1.2707 + * include/freetype/internal/ftdebug.h: Disable MSVC warning C4127. 1.2708 + 1.2709 + This partially undoes commit 3f6e0e0c. 1.2710 + 1.2711 +2013-06-12 Werner Lemberg <wl@gnu.org> 1.2712 + 1.2713 + More compiler warning fixes. 1.2714 + 1.2715 + */*: Use cast to `FT_Bool' (or `Bool') where appropriate. 1.2716 + 1.2717 +2013-06-10 Werner Lemberg <wl@gnu.org> 1.2718 + 1.2719 + [truetype] Improve handling of broken sbit advance widths. 1.2720 + 1.2721 + * src/truetype/ttgload.c (TT_Load_Glyph): Use the glyph's (scaled) 1.2722 + `linearHoriAdvance' if the sbit's `horiAdvance' value is zero. 1.2723 + 1.2724 + Cf. font `Fixedsys Excelsior' v3.01 (FSEX300.ttf), glyph A, 16ppem. 1.2725 + 1.2726 +2013-06-10 Werner Lemberg <wl@gnu.org> 1.2727 + 1.2728 + [sfnt] Improve embedded bitmap tracing. 1.2729 + 1.2730 + * src/base/ftobjs.c (FT_Request_Size): Move trace message regarding 1.2731 + bitmap strike match to... 1.2732 + (FT_Match_Size): This function. 1.2733 + 1.2734 + * src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics, 1.2735 + tt_sbit_decoder_load_byte_aligned, tt_sbit_decoder_load_bit_aligned, 1.2736 + tt_sbit_decoder_load_compound, tt_sbit_decoder_load_png, 1.2737 + tt_sbit_decoder_load_image): Decorate with tracing messages. 1.2738 + 1.2739 +2013-06-10 Werner Lemberg <wl@gnu.org> 1.2740 + 1.2741 + Fix Savannah bug #39160. 1.2742 + 1.2743 + * src/truetype/ttinterp.c (Ins_SDPVTL): Set projection vector too 1.2744 + for the degenerate case. 1.2745 + 1.2746 +2013-06-09 David Turner <digit@google.com> 1.2747 + 1.2748 + * src/cache/ftcmanag.c (FTC_Manager_Reset): Add missing cache flush. 1.2749 + 1.2750 + This code, present since eight(!) years in the unused `CACHE' 1.2751 + branch, has been forgotten to apply to the master branch. It's 1.2752 + really amazing that noone has ever complained since 1.2753 + `FTC_Manager_Reset' is pretty useless without flushing the cache. 1.2754 + 1.2755 +2013-06-07 Werner Lemberg <wl@gnu.org> 1.2756 + 1.2757 + Add and improve pragmas for MSVC compiler. 1.2758 + 1.2759 + * include/freetype/internal/ftdebug.h: Remove pragmas. 1.2760 + * include/freetype/internal/ftserv.h: Use push and pop for pragmas. 1.2761 + * include/freetype/internal/ftvalid.h: Handle warning C4324. 1.2762 + * src/base/ftobjs.c: Use push and pop for pragmas. 1.2763 + * src/gzip/ftgzip.c: Handle warning C4244. 1.2764 + 1.2765 +2013-06-07 Werner Lemberg <wl@gnu.org> 1.2766 + 1.2767 + [cff] s/cf2_getGlyphWidth/cf2_getGlyphOutline/. 1.2768 + 1.2769 + * src/cff/cf2font.c, src/cff/cf2font.h, src/cff/cf2ft.c: Do it. 1.2770 + 1.2771 +2013-06-06 Dave Arnold <darnold@adobe.com> 1.2772 + 1.2773 + [cff] Add early exit feature for width-only calls. 1.2774 + 1.2775 + This is for `FT_Get_Advance'. 1.2776 + 1.2777 + There are 7 places where the spec says the width can be defined: 1.2778 + 1.2779 + hstem/hstemhm 1.2780 + vstem/vstemhm 1.2781 + cntrmask/hintmask 1.2782 + hmoveto 1.2783 + vmoveto 1.2784 + rmoveto 1.2785 + endchar 1.2786 + 1.2787 + * src/cff/cf2intrp.c (cf2_doStems): Exit early for width-only calls, 1.2788 + if possible. 1.2789 + 1.2790 + (cf2_interpT2CharString) <cf2_cmdHSTEM>, <cf2_cmdVSTEM>, 1.2791 + <cf2_cmdVMOVETO>, <cf2_cmdENDCHAR>, <cf2_cmdHINTMASK>, 1.2792 + <cf2_cmdRMOVETO>, <cf2_cmdHMOVETO>: Exit early for width-only calls. 1.2793 + 1.2794 +2013-06-06 Werner Lemberg <wl@gnu.org> 1.2795 + 1.2796 + Next round of compiler fixes. 1.2797 + 1.2798 + * builds/win32/ftdebug.c, builds/wince/ftdebug.c (ft_debug_init): 1.2799 + Add proper cast. 1.2800 + 1.2801 + * include/freetype/internal/ftserv.h (FT_SERVICE_UNAVAILABLE): Fix 1.2802 + cast. 1.2803 + * include/freetype/internal/ftstream.h: Decorate stream and frame 1.2804 + macros with `FT_Long' and `FT_ULong' as appropriate. 1.2805 + 1.2806 + * src/base/ftrfork.c (raccess_guess_darwin_hfsplus, 1.2807 + raccess_guess_darwin_newvfs): Use cast. 1.2808 + 1.2809 + * src/bdf/bdflib.c (_bdf_set_default_spacing): Use cast. 1.2810 + 1.2811 + * src/cache/ftcmanag.c (FTC_Manager_Check): Fix cast. 1.2812 + * src/cache/ftcmanag.h (FTC_ManagerRec): Ditto. 1.2813 + 1.2814 + * src/cff/cf2arrst.c (cf2_arrstack_setNum_Elements): Use cast. 1.2815 + * src/cff/cf2ft.c (cf2_freeSeacComponent): Ditto. 1.2816 + * src/cff/cffobjs.c (remove_subset_prefix, remove_style): Ditto. 1.2817 + 1.2818 + * src/cid/cidparse.c (cid_parser_new): Use cast. 1.2819 + 1.2820 + * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Use cast. 1.2821 + 1.2822 + * src/psaux/psobjs.c (reallocate_t1_table): Fix argument type. 1.2823 + 1.2824 + * src/raster/ftraster.c (ft_black_reset): Use cast. 1.2825 + 1.2826 + * src/truetype/ttgxvar.c (FT_Stream_FTell): Use cast. 1.2827 + (ALL_POINTS): Fix cast. 1.2828 + 1.2829 + * src/type1/t1driver.c (t1_ps_get_font_value): Add casts. 1.2830 + * src/type1/t1parse.c (T1_Get_Private_Dict): Add cast. 1.2831 + 1.2832 +2013-06-05 Dave Arnold <darnold@adobe.com> 1.2833 + 1.2834 + Fix more MSVC Win32 compiler warnings. 1.2835 + 1.2836 + * src/base/ftobjs.c: Fix typo in MS pragma. 1.2837 + 1.2838 + * src/base/bdflib.c (_bdf_set_default_spacing, _bdf_add_property): 1.2839 + `lineno' is only used in debug mode. 1.2840 + 1.2841 + * src/cff/cf2ft.c (cf2_builder_moveTo): `params' is only used in 1.2842 + debug mode. 1.2843 + 1.2844 +2013-06-05 Werner Lemberg <wl@gnu.org> 1.2845 + 1.2846 + Fix compiler warnings. 1.2847 + 1.2848 + * include/freetype/internal/ftmemory.h: Decorate memory allocation 1.2849 + macros with `FT_Long' where appropriate. 1.2850 + Remove duplicate of FT_MEM_QRENEW_ARRAY definition. 1.2851 + 1.2852 + * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Use 1.2853 + cast. 1.2854 + 1.2855 + * src/base/ftobjs.c: Add warning disabling pragma for MSVC while 1.2856 + including `md5.c'. 1.2857 + 1.2858 + * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdESC>: Add 1.2859 + cast. 1.2860 + 1.2861 + * src/sfnt/ttsbit.c (tt_sbit_decoder_load_compound): Fix casts. 1.2862 + (tt_sbit_decoder_load_bitmap): Beautification. 1.2863 + 1.2864 + * src/smooth/ftsmooth.c (ft_smooth_render_generic): Initialize 1.2865 + variables (earlier). 1.2866 + 1.2867 + * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Pacify compiler. 1.2868 + 1.2869 + * src/truetype/ttgxvar.c (TT_Get_MM_Var): Use unsigned constants 1.2870 + where appropriate. 1.2871 + 1.2872 + * src/type1/t1load.c (T1_Get_MM_Var): Ditto. 1.2873 + 1.2874 +2013-06-04 Werner Lemberg <wl@gnu.org> 1.2875 + 1.2876 + * src/cff/cf2font.c (cf2_getGlyphWidth): Initialize `advWidth'. 1.2877 + 1.2878 + Problem reported by Ingmar Sittl <ingmar.sittl@elektrobit.com>. 1.2879 + 1.2880 +2013-06-04 Werner Lemberg <wl@gnu.org> 1.2881 + 1.2882 + Apply fixes for cppcheck nitpicks. 1.2883 + 1.2884 + http://cppcheck.sourceforge.net/ 1.2885 + 1.2886 + The call was (from the top-level of the FreeType tree): 1.2887 + 1.2888 + cppcheck --force \ 1.2889 + --enable=all \ 1.2890 + -I include \ 1.2891 + -I include/freetype/ \ 1.2892 + -I include/freetype/config/ \ 1.2893 + -I include/freetype/internal/ \ 1.2894 + . &> cppcheck.log 1.2895 + 1.2896 + Note that the current version heavily chokes on FreeType, delivering 1.2897 + many wrong results. I will report those issues to the cppcheck team 1.2898 + so that a newer version gives improved results hopefully. 1.2899 + 1.2900 + */* Improve variable scopes. 1.2901 + */* Remove redundant initializations which get overwritten. 1.2902 + 1.2903 + * src/base/ftmac.c, builds/mac/ftmac.c (count_faces_scalable): 1.2904 + Remove unused variable. 1.2905 + 1.2906 + * src/base/ftdbgmem.c (ft_mem_table_destroy): `table' can't be zero. 1.2907 + 1.2908 + * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt1_entry_validate): 1.2909 + Remove functionless code. 1.2910 + 1.2911 + * src/tools/ftrandom.c (main): Fix memory leak. 1.2912 + 1.2913 +2013-06-03 Werner Lemberg <wl@gnu.org> 1.2914 + 1.2915 + Add CFF_CONFIG_OPTION_OLD_ENGINE configuration option. 1.2916 + 1.2917 + This controls whether the old FreeType CFF engine gets compiled into 1.2918 + FreeType. It is now disabled by default. 1.2919 + 1.2920 + * devel/ftoption.h, include/freetype/config/ftoption.h 1.2921 + (CFF_CONFIG_OPTION_OLD_ENGINE): New macro. 1.2922 + 1.2923 + * src/cff/cffdrivr.c (cff_property_set), src/cff/cffgload.c 1.2924 + (CFF_Operator, cff_argument_counts, cff_builder_add_point, 1.2925 + cff_operator_seac, cff_decoder_parse_charstrings, cff_slot_load), 1.2926 + src/cff/cffgload.h, src/cff/cffobjs.c (cff_driver_init): Use 1.2927 + CFF_CONFIG_OPTION_OLD_ENGINE to guard the affected code. 1.2928 + 1.2929 + * docs/CHANGES: Updated. 1.2930 + 1.2931 +2013-06-02 Werner Lemberg <wl@gnu.org> 1.2932 + 1.2933 + Fix PNG library handling. 1.2934 + 1.2935 + * builds/unix/configure.raw: Don't use LIBPNG_LIBS but 1.2936 + LIBPNG_LDFLAGS. 1.2937 + 1.2938 +2013-05-23 Behdad Esfahbod <behdad@google.com> 1.2939 + 1.2940 + Add support for color embedded bitmaps (eg. color emoji). 1.2941 + 1.2942 + A new load flag, FT_LOAD_COLOR, makes FreeType load color 1.2943 + embedded-bitmaps, following this draft specification 1.2944 + 1.2945 + https://color-emoji.googlecode.com/git/specification/v1.html 1.2946 + 1.2947 + which defines two new SFNT tables, `CBDT' and `CBLC' (named and 1.2948 + modeled after `EBDT' and `EBLC', respectively). The color bitmaps 1.2949 + are stored in the new FT_PIXEL_MODE_BGRA format to represent BGRA 1.2950 + pre-multiplied sRGB images. If PNG support is available, PNG color 1.2951 + images as defined in the same proposed specification are supported 1.2952 + also. 1.2953 + 1.2954 + Note that color bitmaps are converted to grayscale if client didn't 1.2955 + ask for color. 1.2956 + 1.2957 + * builds/unix/configure.raw: Search for libpng. 1.2958 + Add `--without-png' option. 1.2959 + 1.2960 + * devel/ftoption.h, include/freetype/config/ftoption.h 1.2961 + (FT_CONFIG_OPTION_USE_PNG): New macro. 1.2962 + 1.2963 + * include/freetype/freetype.h (FT_LOAD_COLOR): New load flag. 1.2964 + 1.2965 + * include/freetype/ftimage.h (FT_Pixel_Mode): Add 1.2966 + `FT_PIXEL_MODE_BGRA'. 1.2967 + 1.2968 + * include/freetype/tttags.h (TTAG_CBDT, TTAG_CBLC): New tags. 1.2969 + 1.2970 + * src/base/ftbitmap.c (FT_Bitmap_Embolden): Updated. 1.2971 + (ft_gray_for_premultiplied_srgb_bgra): New function. 1.2972 + (FT_Bitmap_Convert): Handle FT_PIXEL_MODE_BGRA. 1.2973 + 1.2974 + * src/sfnt/pngshim.c, src/sfnt/pngshim.h: New files. 1.2975 + 1.2976 + * src/sfnt/sfnt.c: Include `pngshim.c'. 1.2977 + 1.2978 + * src/sfnt/ttsbit.c: Include FT_BITMAP_H and `pngshim.h' 1.2979 + (tt_face_load_eblc): Load `CBLC'. 1.2980 + (tt_sbit_decoder_init): Load `CBDT'. 1.2981 + (tt_sbit_decoder_alloc_bitmap): Pass load flags to select between 1.2982 + color and grayscale bitmaps. 1.2983 + Set `num_grays'. This is used by `ftview' to choose the blending 1.2984 + algorithm. 1.2985 + (tt_sbit_decoder_load_byte_aligned, 1.2986 + tt_sbit_decoder_load_bit_aligned, tt_sbit_decoder_load_compound, 1.2987 + tt_sbit_decoder_load_image): Pass load flag. 1.2988 + s/write/pwrite/. 1.2989 + Don't call `tt_sbit_decoder_alloc_bitmap'. 1.2990 + Updated. 1.2991 + (tt_sbit_decoder_load_png) [FT_CONFIG_OPTION_USE_PNG]: New function. 1.2992 + (tt_sbit_decoder_load_bitmap): Pass load flag. 1.2993 + Handle new glyph formats 17, 18, and 19. 1.2994 + Call `tt_sbit_decoder_alloc_bitmap'. 1.2995 + Flatten color bitmaps if necessary. 1.2996 + (tt_face_load_sbit_image): Updated. 1.2997 + 1.2998 + * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `pngshim.c'. 1.2999 + 1.3000 + * docs/CHANGES: Updated. 1.3001 + 1.3002 +2013-05-24 Guenter <info@gknw.net> 1.3003 + 1.3004 + Apply Savannah patch #8055. 1.3005 + 1.3006 + Make `apinames' create an import file for NetWare. 1.3007 + 1.3008 + * src/tools/apinames.c (PROGRAM_VERSION): Set to 0.2. 1.3009 + (OutputFormat): Add `OUTPUT_NETWARE_IMP'. 1.3010 + (names_dump): Handle it. 1.3011 + (usage): Updated. 1.3012 + (main): Handle new command line flag `-wN'. 1.3013 + 1.3014 +2013-05-23 Behdad Esfahbod <behdad@behdad.org> 1.3015 + 1.3016 + Compilation fix. 1.3017 + 1.3018 + * src/truetype/ttinterp.c (TT_RunIns) 1.3019 + [!TT_CONFIG_OPTION_SUBPIXEL_HINTING]: Make it work. 1.3020 + 1.3021 +2013-05-22 Infinality <infinality@infinality.net> 1.3022 + 1.3023 + [truetype] Formatting and an additional subpixel tweak. 1.3024 + 1.3025 + * src/truetype/ttinterp.c (Ins_SHPIX): Formatting fix. 1.3026 + * src/truetype/ttsubpix.c (SKIP_NONPIXEL_Y_MOVES_Rules): 1.3027 + Revert previous modification for Verdana clones. 1.3028 + 1.3029 +2013-05-22 Infinality <infinality@infinality.net> 1.3030 + 1.3031 + [truetype] Adjust subpixel zp2 moves and tweak rules. 1.3032 + 1.3033 + These modifications fix thin diagonal stems in some legacy fonts. 1.3034 + 1.3035 + * src/truetype/ttinterp.c (Direct_Move_X): Remove unused macro. 1.3036 + (Move_Zp2_Point): Don't always disable x moves for subpixel rendering. 1.3037 + (Ins_SHP): Disable x moves here for subpixel rendering. 1.3038 + (Ins_SHPIX): Only disable x moves in compatibility mode. 1.3039 + Split out zp2 move reversals and reorder conditional respectively. 1.3040 + 1.3041 + * src/truetype/ttsubpix.c (SKIP_NONPIXEL_Y_MOVES_Rules): Fix oversight. 1.3042 + Only adjust Verdana clones for 17 ppem. 1.3043 + (SKIP_NONPIXEL_Y_MOVES_Rules_Exceptions): Add Courier New. 1.3044 + (ALWAYS_SKIP_DELTAP_Rules): Found additional cases for Arial `s'. 1.3045 + 1.3046 +2013-05-20 Infinality <infinality@infinality.net> 1.3047 + 1.3048 + [truetype] Simplify and improve subpixel function detection. 1.3049 + 1.3050 + Some small enhancements have allowed the removal of many macros and 1.3051 + the simplification of existing rules in `ttsubpix.c'. 1.3052 + 1.3053 + * src/truetype/ttsubpix.h (SPH_TWEAK_ALLOW_X_DMOVEX, 1.3054 + SPH_TWEAK_ALLOW_X_MOVE_ZP2, 1.3055 + SPH_TWEAK_DELTAP_SKIP_EXAGGERATED_VALUES, 1.3056 + SPH_TWEAK_SKIP_INLINE_DELTAS, SPH_TWEAK_MIRP_CVT_ZERO): Removed. 1.3057 + (SPH_TWEAK_SKIP_NONPIXEL_Y_MOVES_DELTAP): New rule macro. 1.3058 + 1.3059 + * src/truetype/ttsubpix.c: Updated affected rules. 1.3060 + 1.3061 + * src/truetype/ttinterp.c (Direct_Move_X): Updated. 1.3062 + (INS_FDEF): Add additional function detection. 1.3063 + (INS_ENDF): Set runtime flag. 1.3064 + (Ins_CALL): Skip the call under certain conditions. 1.3065 + Remove bad code. 1.3066 + (Ins_LOOPCALL): Skip the call under certain conditions. 1.3067 + Remove bad code. 1.3068 + (Move_Zp2_Point): Updated. 1.3069 + (Ins_SHPIX): Updated. 1.3070 + Skip the move under some situations. 1.3071 + (Ins_MIAP): Improve conditions. 1.3072 + (Ins_MIRP): Updated. 1.3073 + (Ins_DELTAP): Skip move under certain conditions. 1.3074 + Simplify conditions. 1.3075 + (TT_RunIns): Updated. 1.3076 + Add code to handle new function detection. 1.3077 + Trace messages. 1.3078 + 1.3079 +2013-05-17 Werner Lemberg <wl@gnu.org> 1.3080 + 1.3081 + Update more FT_Err_XXX macros using FT_ERR and FT_THROW; 1.3082 + 1.3083 + * builds/amiga/src/base/ftsystem.c, builds/mac/ftmac.c, 1.3084 + builds/unix/ftsystem.c, builds/vms/ftsystem.c: Do it. 1.3085 + 1.3086 +2013-05-15 Werner Lemberg <wl@gnu.org> 1.3087 + 1.3088 + [truetype] Add `interpreter-version' property. 1.3089 + 1.3090 + This makes the option TT_CONFIG_OPTION_SUBPIXEL_HINTING controllable 1.3091 + at runtime. 1.3092 + 1.3093 + * include/freetype/ftttdrv.h: New file. 1.3094 + 1.3095 + * include/freetype/config/ftheader.h (FT_TRUETYPE_DRIVER_H): New 1.3096 + macro. 1.3097 + 1.3098 + * src/truetype/ttdriver.c: Include FT_TRUETYPE_DRIVER_H. 1.3099 + (tt_property_set, tt_property_get): Fill templates. 1.3100 + 1.3101 + * src/truetype/ttobjs.h (TT_DriverRec): Add `interpreter_version' 1.3102 + member. 1.3103 + Remove unused `extension_component' member. 1.3104 + 1.3105 + * src/truetype/ttgload.c: Include FT_TRUETYPE_DRIVER_H. 1.3106 + (tt_get_metrics, TT_Hint_Glyph, TT_Process_Simple_Glyph, 1.3107 + compute_glyph_metrics, tt_loader_init): Use `interpreter_version'. 1.3108 + 1.3109 + * src/truetype/ttinterp.c: Include FT_TRUETYPE_DRIVER_H. 1.3110 + (SUBPIXEL_HINTING): New macro to check `interpreter_version' flag. 1.3111 + Update all affected functions to use it. 1.3112 + Use TT_INTERPRETER_VERSION_XXX where appropriate. 1.3113 + 1.3114 + * src/truetype/ttobjs.c: Include FT_TRUETYPE_DRIVER_H. 1.3115 + (tt_driver_init): Initialize `interpreter_version'. 1.3116 + 1.3117 + * src/truetype/ttsubpix.c: Include FT_TRUETYPE_DRIVER_H. 1.3118 + Use TT_INTERPRETER_VERSION_XXX where appropriate. 1.3119 + 1.3120 +2013-05-13 Werner Lemberg <wl@gnu.org> 1.3121 + 1.3122 + [truetype] Avoid empty source file. 1.3123 + 1.3124 + * src/truetype/ttsubpix.c [!TT_CONFIG_OPTION_SUBPIXEL_HINTING]: 1.3125 + Provide dummy typedef. 1.3126 + 1.3127 +2013-05-13 Werner Lemberg <wl@gnu.org> 1.3128 + 1.3129 + * src/cff/cf2font.c (cf2_getGlyphWidth): Fix uninitialized variable. 1.3130 + 1.3131 + Fix suggested by Vaibhav Nagarnaik <vnagarnaik@gmail.com>. 1.3132 + 1.3133 +2013-05-13 Brian Nixon <bnixon@yahoo.com> 1.3134 + 1.3135 + Fix Savannah bug #38970. 1.3136 + 1.3137 + * src/base/ftdebug.c, builds/win32/ftdebug.c, 1.3138 + builds/wince/ftdebug.c, builds/amiga/src/base/ftdebug.c 1.3139 + (ft_debug_init): Don't read past the environment variable FT2_DEBUG. 1.3140 + 1.3141 +2013-05-12 Werner Lemberg <wl@gnu.org> 1.3142 + 1.3143 + [truetype] Add framework for TrueType properties. 1.3144 + 1.3145 + * src/truetype/ttdrivr.c: Include FT_SERVICE_PROPERTIES_H. 1.3146 + (tt_property_set, tt_property_get): New functions, still empty. 1.3147 + Define `tt_service_properties' service. 1.3148 + Update `tt_services'. 1.3149 + 1.3150 + * src/truetype/ttpic.h: Include FT_SERVICE_PROPERTIES_H. 1.3151 + (TT_SERVICE_PROPERTIES_GET): New macro. 1.3152 + (TTModulePIC): Add `tt_service_properties'. 1.3153 + 1.3154 +2013-05-12 Werner Lemberg <wl@gnu.org> 1.3155 + 1.3156 + Fix Savannah bug #38967. 1.3157 + 1.3158 + * src/base/ftcalc.c (FT_DivFix) [FT_LONG64]: Fix cast. 1.3159 + 1.3160 +2013-05-12 Werner Lemberg <wl@gnu.org> 1.3161 + 1.3162 + Introduce unsigned 64bit type (if available). 1.3163 + 1.3164 + * include/freetype/config/ftconfig.h: Define FT_UINT64 if available. 1.3165 + [FT_LONG64]: Provide FT_UInt64. 1.3166 + 1.3167 + * builds/unix/ftconfig.in: Synchronized. 1.3168 + 1.3169 +2013-05-12 Werner Lemberg <wl@gnu.org> 1.3170 + 1.3171 + Fix Savannah bug #38968. 1.3172 + 1.3173 + * include/freetype/ftmodapi.h: Add `FT_EXPORT' to 1.3174 + FT_Property_{Set,Get}. 1.3175 + * src/base/ftobjs.c: Add `FT_EXPORT_DEF' to 1.3176 + FT_Property_{Set,Get}. 1.3177 + 1.3178 +2013-05-10 Werner Lemberg <wl@gnu.org> 1.3179 + 1.3180 + [sfnt] Clean up bitmap code. 1.3181 + 1.3182 + * src/sfnt/ttsbit.c: Deleted. 1.3183 + * src/sfnt/ttsbit0.c: Renamed to `ttsbit.c'. 1.3184 + * rules.mk (SFNT_DRV_H): Updated. 1.3185 + 1.3186 +2013-05-10 Werner Lemberg <wl@gnu.org> 1.3187 + 1.3188 + */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code. 1.3189 + 1.3190 +---------------------------------------------------------------------------- 1.3191 + 1.3192 +Copyright 2013-2014 by 1.3193 +David Turner, Robert Wilhelm, and Werner Lemberg. 1.3194 + 1.3195 +This file is part of the FreeType project, and may only be used, modified, 1.3196 +and distributed under the terms of the FreeType project license, 1.3197 +LICENSE.TXT. By continuing to use, modify, or distribute this file you 1.3198 +indicate that you have read the license and understand and accept it 1.3199 +fully. 1.3200 + 1.3201 + 1.3202 +Local Variables: 1.3203 +version-control: never 1.3204 +coding: utf-8 1.3205 +End: