🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3211 lines
103 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. 2022-05-01 Werner Lemberg <wl@gnu.org>
  2. * Version 2.12.1 released.
  3. ==========================
  4. Tag sources with `VER-2-12-1'.
  5. * docs/VERSION.TXT: Add entry for version 2.12.1.
  6. * docs/CHANGES, docs/release: Updated.
  7. * README, src/base/ftver.rc, builds/windows/vc2010/index.html,
  8. builds/windows/visualc/index.html, builds/windows/visualce/index.html,
  9. builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html,
  10. docs/freetype-config.1: s/2.12.0/2.12.1/, s/2120/2121/.
  11. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
  12. * builds/unix/configure.raw (version_info): Set to 24:3:18.
  13. * CMakeLists.txt (VERSION_PATCH): Set to 1.
  14. 2022-04-30 Anuj Verma <anuj@posteo.net>
  15. [sdf] Do not throw errors for invisible glyphs.
  16. * src/sdf/ftsdfrend.c (ft_sdf_render, ft_bsdf_render): Return `FT_Err_Ok` if
  17. width or height is zero, since some glyphs do not generate visible bitmaps.
  18. Fixes #1150.
  19. 2022-04-30 Werner Lemberg <wl@gnu.org>
  20. * src/sfnt/sfobjs.c (sfnt_load_face): Set `FT_FACE_FLAG_COLOR` for SVG fonts.
  21. Fixes #1151.
  22. 2022-04-27 Brendan Shanks <bshanks@codeweavers.com>
  23. autogen.sh: Fix building when freetype is itself a git submodule.
  24. There are situations where .git is not a directory, like when
  25. freetype is a submodule in another repository.
  26. 2022-04-26 Alexei Podtelezhnikov <apodtele@gmail.com>
  27. [builds/windows] Simplify non-desktop UWP check.
  28. Fixes mingw compilation described in !159.
  29. * builds/windows/ftsystem.c: Do not use WINAPI_FAMILY_PARTITION macro.
  30. 2022-04-25 Alexei Podtelezhnikov <apodtele@gmail.com>
  31. [truetype] Reset IUP flags in `TT_RunIns`.
  32. Fixes #1148 by moving the flag initialization back, partly reverting
  33. 7809007a and fd03dcc1. Initializing these flags elsewhere skips 'cvt'.
  34. * src/truetype/ttinterp.c (TT_RunIns): Initialize the IUP flag here...
  35. (TT_Run_Context): ... instead of here.
  36. 2022-04-24 Xavier Claessens <xavier.claessens@collabora.com>
  37. [meson] Remove `default_library=both` from `default_options`.
  38. It is inconsistent with what all other Meson projects do.
  39. It also prevents static linking to FreeType when it is a subproject because
  40. `default_options` in a subproject takes precedence on values set on the main
  41. project. For example, building 'GStreamer' with `-Ddefault_library=static`
  42. would still dynamically link on FreeType unless the user also sets
  43. `-Dfreetype2:default_library=static`.
  44. * meson.build: Updated.
  45. * .gitlab-ci.yml: Retain `both` option for testing.
  46. 2022-04-19 Werner Lemberg <wl@gnu.org>
  47. * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Integer overflow.
  48. Reported as
  49. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=46792
  50. 2022-04-16 Georg Brandl <georg@python.org>
  51. * src/cff/cffgload.c (cff_slot_load) [FT_CONFIG_OPTION_SVG]: Fix segfault.
  52. This can happen if the function is called with `size` being `NULL`.
  53. Fixes #1147.
  54. 2022-04-14 Steve Lhomme <robux4@ycbcr.xyz>
  55. .gitlab-ci.yml: Add a Universal Windows build target
  56. It's compiled for Windows 10 and up, ensuring UNICODE is set (default for UWP)
  57. and selecting the proper WINAPI_FAMILY (WINAPI_FAMILY_APP).
  58. Do not try to run the UWP exe in the Docker as it doesn't work.
  59. 2022-04-04 Ben Wagner <bungeman@chromium.org>
  60. [sfnt] Correct FT_ColorStopIterator documentation.
  61. * include/freetype/ftcolor.h (FT_ColorStopIterator): the user should not
  62. set `p` to NULL before calling `FT_Get_Colorline_Stops`. `p` and
  63. `num_color_stops` are set by `FT_Get_Paint`. `p` and
  64. `current_color_stop` are updated by `FT_Get_Colorline_Stops`.
  65. 2022-04-01 Werner Lemberg <wl@gnu.org>
  66. * builds/unix/configure.raw: Add option `--with-librsvg`.
  67. Since 'librsvg' is written in Rust, this option allows distributions to
  68. avoid a dependency on the entire Rust toolchain to provide the FreeType demo
  69. programs.
  70. Suggested by Lars Wendler in !156.
  71. 2022-04-01 Werner Lemberg <wl@gnu.org>
  72. * src/sfnt/sfwoff.c (reconstruct_glyf): Fix gcc 10 warning.
  73. 2022-04-01 Werner Lemberg <wl@gnu.org>
  74. [gzip] Update sources to zlib 1.2.12.
  75. 2022-04-01 Eric Jing <@CPUcontrol>
  76. CMakeLists.txt: Fix `Info.plist` path.
  77. When building a framework using CMake with `add_subdirectory`, CMake must be
  78. able to find `freetype-Info.plist` when configuring the framework
  79. properties.
  80. Fixes #1145.
  81. 2022-04-01 Werner Lemberg <wl@gnu.org>
  82. Whitespace.
  83. 2022-04-01 Ben Wagner <bungeman@chromium.org>
  84. [truetype] Use SUB_LONG for component offset.
  85. * src/truetype/ttgload.c (TT_Process_Composite_Component): do it.
  86. Bug: https://crbug.com/1309429
  87. 2022-03-31 Werner Lemberg <wl@gnu.org>
  88. CMakeList.txt: Update code to handle recent changes for `freetype.pc`.
  89. Fixes #1144.
  90. 2022-03-31 Werner Lemberg <wl@gnu.org>
  91. CMakeLists.txt: s/PKG_CONFIG/PKGCONFIG/, s/REQUIRED_/REQUIRES_/.
  92. 2022-03-31 Werner Lemberg <wl@gnu.org>
  93. * Version 2.12.0 released.
  94. ==========================
  95. Tag sources with `VER-2-12-0'.
  96. * docs/VERSION.TXT: Add entry for version 2.12.0.
  97. * docs/CHANGES, docs/release: Updated.
  98. * README, src/base/ftver.rc, builds/windows/vc2010/index.html,
  99. builds/windows/visualc/index.html, builds/windows/visualce/index.html,
  100. builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html,
  101. docs/freetype-config.1: s/2.11.1/2.12.0/, s/2111/2120/.
  102. * include/freetype/freetype.h (FREETYPE_MINOR): Set to 12.
  103. (FREETYPE_PATCH): Set to 0.
  104. * builds/unix/configure.raw (version_info): Set to 24:2:18.
  105. * CMakeLists.txt (VERSION_MINOR): Set to 12.
  106. (VERSION_PATCH): Set to 0.
  107. * builds/toplevel.mk (do-dist): Generate `ChangeLog` entries for all commits
  108. since version 2.11.0 (when we stopped creating this file manually).
  109. 2022-03-31 Werner Lemberg <wl@gnu.org>
  110. Fix clang++ warnings.
  111. * src/base/ftglyph.c (ft_svg_glyph_prepare), src/base/ftobj.c
  112. (ft_glyphslot_init), src/cache/ftccmap.c (ftc_cmap_node_new),
  113. src/cache/ftcimage.c (FTC_INode_New), src/lzw/ftlzw.c (FT_Stream_OpenLZW),
  114. src/psaux/psobjs.c (ps_parser_load_field), src/pshinter/pshglob.c
  115. (psh_globals_new), src/sfnt/ttsvg.c (tt_face_load_svg_doc): Initialize
  116. variables used for allocation.
  117. * src/sdf/ftsdf.c (split_sdf_conic, split_sdf_cubic): Change type of
  118. `max_splits` to FT_UInt.
  119. (sdf_generate_bounding_box): Add cast.
  120. 2022-03-30 Werner Lemberg <wl@gnu.org>
  121. Whitespace.
  122. 2022-03-30 Werner Lemberg <wl@gnu.org>
  123. [builds] Fix creation of `freetype2.pc` for static-only builds.
  124. We have to help `pkg-config` since it can't recognize that there is no
  125. shared library installed.
  126. Note that meson already does exactly the same.
  127. * builds/unix/configure.raw (REQUIRES_PRIVATE, LIBS_PRIVATE): Rename to...
  128. (PKGCONFIG_REQUIRES_PRIVATE, PKGCONFIG_LIBS_PRIVATE): This. Adjust them
  129. depending on `$enable_shared`.
  130. (PKGCONFIG_REQUIRES, PKGCONFIG_LIBS): New variables.
  131. * builds/unix/freetype2.in, builds/unix/unix-def.in: Use new and updated
  132. variables.
  133. 2022-03-25 Werner Lemberg <wl@gnu.org>
  134. Add `FT_FACE_FLAG_SBIX_OVERLAY` and `FT_HAS_SBIX_OVERLAY`.
  135. * include/freetype/freetype.h (FT_FACE_FLAG_SBIX_OVERLAY,
  136. FT_HAS_SBIX_OVERLAY): New macro.
  137. * src/sfnt/ttsbit.c (tt_face_load_sbit): Handle `FT_FACE_FLAG_SBIX_OVERLAY`.
  138. Remove obsolete tracing message.
  139. 2022-03-25 Werner Lemberg <wl@gnu.org>
  140. Add `FT_PARAM_TAG_IGNORE_SBIX`.
  141. This is another bit to handle 'sbix' tables as described in the OpenType
  142. specification.
  143. * include/freetype/ftparams.h (FT_PARAM_TAG_IGNORE_SBIX): New macro.
  144. * src/sfnt/sfobjc.c (is_apple_sbix): Rename to...
  145. (has_sbix): ... this.
  146. Check for more sbit tables.
  147. Handle `FT_PARAM_TAG_IGNORE_SBIX` to eventually control `has_sbix`.
  148. Only call sbit table loader if an sbit table is present.
  149. 2022-03-25 Werner Lemberg <wl@gnu.org>
  150. [truetype] Fix 'sbix' table handling.
  151. * src/sfnt/ttsbit.c (tt_face_load_sbix_image): Correct calculation of
  152. 'metrics->horiBearingY'.
  153. Set vertical metrics.
  154. * src/sfnt/sfobjs.c (sfnt_load_face): Adjust setting of `FT_FACE_FLAG_SBIX`.
  155. Handle metrics of fonts with 'sbix' table.
  156. * src/truetype/ttgload.c (TT_Load_Glyph): For 'sbix' embedded bitmaps, apply
  157. bbox offset and bearing values of the corresponding glyph in the 'glyf'
  158. table if it exists and has a contour.
  159. * src/truetype/ttobjs.c (tt_face_init): Handle font with 'sbix' table.
  160. Fixes issue #998.
  161. 2022-03-25 Werner Lemberg <wl@gnu.org>
  162. Add `FT_FACE_FLAG_SBIX` and `FT_HAS_SBIX`.
  163. Fonts with 'sbix' tables need special handling by the application.
  164. * include/freetype/freetype.h (FT_FACE_FLAG_SBIX, FT_HAS_SBIX): New macros.
  165. * src/sfnt/sfobjs.c (sfnt_load_face): Set `FT_FACE_FLAG_SBIX` if 'sbix'
  166. table is present.
  167. 2022-03-25 Werner Lemberg <wl@gnu.org>
  168. * include/freetype/freetype.h (FT_LOAD_SBITS_ONLY): Tag macro as public.
  169. 2022-03-24 Carlo Bramini <carlo.bramix@libero.it>
  170. [builds/windows] Fix WCE support.
  171. * builds/windows/ftsystem.c [_WIN32_WCE]: Include <malloc.h> needed by
  172. _alloca.
  173. 2022-03-24 Steve Lhomme <robux4@ycbcr.xyz>
  174. [build/windows] Improve UWP support.
  175. * builds/windows/ftsystem.c [UWP]: Wrap CreateFile2 into CreateFileA.
  176. 2022-03-21 Werner Lemberg <wl@gnu.org>
  177. * src/sfnt/ttkern.c (tt_face_get_kerning): Exit early if no table.
  178. Fixes #1141.
  179. 2022-03-20 Ben Wagner <bungeman@chromium.org>
  180. [woff2] Support overlap flag for simple glyphs.
  181. In the woff2 spec it has been proposed to allow the OVERLAP_SIMPLE flag
  182. to be retained through the woff2 format [0].
  183. [0] https://www.w3.org/TR/WOFF2/#glyf_table_format
  184. * src/sfnt/sfwoff2.h (GLYF_OVERLAP_SIMPLE): add glyf flag.
  185. * src/sfnt/sfwoff2.c (reconstruct_glyf): parse optionFlags and
  186. overlapSimpleBitmap[]. (store_points): set OVERLAP_SIMPLE on first point's
  187. flag if the overlap bit is set.
  188. 2022-03-19 Werner Lemberg <wl@gnu.org>
  189. [cff] Synchronize `cff_slot_load` with `TT_Load_Glyph`.
  190. * src/cff/cffgload.c (IS_DEFAULT_INSTANCE): New macro.
  191. (cff_slot_load): Use it.
  192. 2022-03-19 Werner Lemberg <wl@gnu.org>
  193. * src/base/ftobjs.c (FT_Request_Size): Guard `face->size`.
  194. Fixes #1140.
  195. 2022-03-19 Werner Lemberg <wl@gnu.org>
  196. * src/base/ftobjs.c (ft_open_face_internal): Thinko.
  197. 2022-03-19 Ben Wagner <bungeman@chromium.org>
  198. [doc] FT_OUTLINE_OVERLAP was introduced in 2.10.3.
  199. * include/freetype/ftimage.h (FT_OUTLINE_OVERLAP): Document when added.
  200. 2022-03-19 Werner Lemberg <wl@gnu.org>
  201. * src/base/ftobjs.c (ft_open_face_internal): Properly guard `face_index`.
  202. We must ensure that the cast to `FT_Int` doesn't change the sign.
  203. Fixes #1139.
  204. 2022-03-17 Werner Lemberg <wl@gnu.org>
  205. [sfnt] Avoid invalid face index.
  206. Fixes #1138.
  207. * src/sfnt/sfobjs.c (sfnt_init_face), src/sfnt/sfwoff2.c (woff2_open_font):
  208. Check `face_index` before decrementing.
  209. 2022-03-07 Werner Lemberg <wl@gnu.org>
  210. Documentation, whitespace.
  211. 2022-03-05 Anuj Verma <anuj@womp.xyz>
  212. [sdf] Fix corner checks and improve performance.
  213. * src/sdf/ftsdf.c (sdf_generate_bounding_box): Always check for a corner if
  214. two distances (for different curves) are very close.
  215. (sdf_conic_to): Check whether the conic curve can be treated as a line
  216. (which happens if the control point coincides with any end point).
  217. 2022-03-05 Anuj Verma <anuj@womp.xyz>
  218. [sdf] Implement deviation-based splitting for Bezier curves.
  219. * src/sdf/ftsdf.c (split_sdf_cubic, split_sdf_shape): Add checks to figure
  220. out the deviation of Bezier curves and stop splitting if the curve is flat
  221. enough.
  222. * src/sdf/ftsdfcommon.h (ONE_PIXEL): New macro.
  223. 2022-03-05 Anuj Verma <anuj@womp.xyz>
  224. * include/freetype/freetype.h: Improve SDF documentation.
  225. 2022-03-03 Ben Wagner <bungeman@chromium.org>
  226. [sfnt] Fix bounds check in SVG.
  227. The `SVG_DOCUMENT_LIST_MINIMUM_SIZE` macro is non trivial and not
  228. protected by parentheses. As a result, the expression
  229. `table_size - SVG_DOCUMENT_LIST_MINIMUM_SIZE` expands to
  230. `table_size - 2U + SVG_DOCUMENT_RECORD_SIZE` instead of the expected
  231. `table_size - (2U + SVG_DOCUMENT_RECORD_SIZE)`. This causes an incorrect
  232. bounds check which may lead to reading past the end of the `SVG ` table.
  233. * src/sfnt/ttsvg.c (tt_face_load_svg): wrap macro definitions in
  234. parentheses.
  235. Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45179
  236. 2022-02-23 Ben Wagner <bungeman@chromium.org>
  237. [psaux] Full bounds check for OtherSubr 19.
  238. It is possible for OtherSubr 19 to be invoked when `decoder->buildchar` is
  239. NULL (so that `decoder->len_buildchar` is 0), the `blend` is non-NULL with
  240. `blend->num_designs` set to 2, and the user supplied `idx` to be large (for
  241. example 0xFFFFFFFE). Since these are all `FT_UInt32` the existing bounds
  242. check overflows in a well defined manner, allowing for an invalid call to
  243. `memcpy`.
  244. In addition, it is possible to call OtherSubr 19 with
  245. `decoder->len_buildchar`, `blend->num_designs`, and `idx` all zero (implying
  246. that `blend->weight_vector` and `decoder->buildchar` are NULL). This passes
  247. the bounds check (it is logically always fine to copy nothing starting at
  248. index zero) but may invoke undefined behavior in `ft_memcpy` if it is backed
  249. by `memcpy`. Calling `memcpy` with either the `src` or `dst` NULL is
  250. undefined behavior (even if `count` is zero).
  251. * src/psaux/psintrp.c (cf2_interpT2CharString): Correctly check that
  252. `blend->num_designs` can be copied to `decoder->buildchar[idx]`.
  253. Also avoid passing NULL to `ft_memcpy`.
  254. Bug: https://crbug.com/1299259
  255. 2022-02-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  256. [cmake] Drop the support of CMake 2.x.
  257. * CMakeLists.txt: Require CMake 3.0 (released on 2014) or newer.
  258. The issue #1059 reports the difficulty to support both of
  259. CMake 2.x and newer one by single CMakeLists.txt without
  260. the inflation of cmake_policy() workarounds.
  261. For better maintainability, the support of CMake 2.x is
  262. dropped.
  263. 2022-02-19 Werner Lemberg <wl@gnu.org>
  264. * src/bdf/README: Updated.
  265. 2022-02-19 Werner Lemberg <wl@gnu.org>
  266. * builds/mac/ftmac.c, src/base/ftmac.c: s|FT_MAC_H|<freetype/ftmac.h>|.
  267. 2022-02-19 Werner Lemberg <wl@gnu.org>
  268. src/sfnt/ttkern.c (tt_face_load_kern): Micro-optimize.
  269. A kerning table can be handled by binary search if it has equal entries.
  270. Fixes #1132.
  271. 2022-02-17 Steve Lhomme <robux4@ycbcr.xyz>
  272. Alexei Podtelezhnikov <apodtele@gmail.com>
  273. [builds/windows] Add support for legacy UWP builds.
  274. * builds/windows/ftsystem.c: Add neccessary macro substitutions to
  275. enable strict UWP builds.
  276. See !141.
  277. 2022-02-16 Werner Lemberg <wl@gnu.org>
  278. ftmm.h: Minor documentation improvement.
  279. 2022-02-13 Alexei Podtelezhnikov <apodtele@gmail.com>
  280. [pshinter] Tune PSH_STRONG_THRESHOLD_MAXIMUM value.
  281. Before the change, the hinting engine frequently confused horizontal
  282. stem and serif hints making some stems too thin and some serifs too
  283. thick. The value was tuned using serif fonts from the URW+ base 35
  284. collection.
  285. * src/pshinter/pshalgo.c [PSH_STRONG_THRESHOLD_MAXIMUM]: s/30/12/.
  286. 2022-02-12 Werner Lemberg <wl@gnu.org>
  287. t1tables.h: Documentation improvements.
  288. 2022-02-12 Werner Lemberg <wl@gnu.org>
  289. t1tables.h: Whitespace.
  290. 2022-02-11 Werner Lemberg <wl@gnu.org>
  291. [type42] Fix `FT_Get_PS_Font_Private` for this format.
  292. Since Type42 fonts don't have a 'Private' dictionary, the return value
  293. should be `FT_Err_Invalid_Argument`.
  294. * src/type42/t42drivr.c (t42_ps_get_font_private): Removed.
  295. (t42_service_ps_info): Updated.
  296. 2022-02-09 Alexei Podtelezhnikov <apodtele@gmail.com>
  297. [pshinter] Clear reused mask.
  298. In PS hinter, memory allocations persist until the module is done.
  299. Therefore, we have to clear reused masks.
  300. * src/pshinter/pshrec.c (ps_mask_table_alloc): Clear reused mask.
  301. 2022-02-09 Alexei Podtelezhnikov <apodtele@gmail.com>
  302. [pshinter] Use unsigned indices.
  303. This reduces casting and eliminates some checks.
  304. * src/pshinter/pshrec.c (ps_mask_test_bit, ps_mask_table_merge,
  305. ps_dimension_add_t1stem, ps_hints_t1stem3): Updated.
  306. (ps_dimension_add_counter): Updated, unnecessary checks removed.
  307. 2022-02-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  308. [pshinter] Fix mask merging.
  309. We forgot to update the number of bits when merging a larger mask
  310. into a smaller one. This fix might have rendering effects.
  311. * src/pshinter/pshrec.c (ps_mask_table_merge): Inherit the number
  312. of bits from a larger mask. There is no need to zero unused bits,
  313. already zeroed during allocation.
  314. (ps_mask_clear_bit): Removed.
  315. (ps_mask_ensure): Minor.
  316. 2022-02-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  317. [pshinter] Revise the hint table handling.
  318. * src/pshinter/pshrec.c (ps_hint_table_ensure): Remove redundant size
  319. check; avoid array zeroing because it is fully initialized when used.
  320. (ps_hint_table_alloc): Fix off-by-one comparison and remove another
  321. zeroing of the array elements.
  322. 2022-02-06 Werner Lemberg <wl@gnu.org>
  323. Various minor doc fixes.
  324. 2022-02-06 Alexei Podtelezhnikov <apodtele@gmail.com>
  325. [builds/windows] Add SVG to to project files.
  326. * builds/windows/vc2010/freetype.vcxproj: Updated.
  327. * builds/windows/vc2010/freetype.vcxproj.filters: Updated.
  328. * builds/windows/visualc/freetype.vcproj: Updated.
  329. 2022-02-03 Alexei Podtelezhnikov <apodtele@gmail.com>
  330. * src/winfonts/winfnt.c (fnt_face_get_dll_font): Trace font resources.
  331. 2022-02-02 Eric Jing <@CPUcontrol>
  332. [cmake] Fix build on MacOS.
  333. * CMakeLists.txt (CMAKE_OSX_ARCHITECTURES): Update value to fix the building
  334. of a framework on MacOS.
  335. * builds/mac/freetype-Info.plist (CFBundleExecutable): Make identifier
  336. lowercase only.
  337. Fixes #1127.
  338. 2022-02-02 Alexei Podtelezhnikov <apodtele@gmail.com>
  339. [psaux] Revise `PS_Table` handling.
  340. The old impleemntation was not using `FT_REALLOC`, buing too careful
  341. with the offset rebasing. It shoudl be safe to rely on the base
  342. movements.
  343. * src/psaux/psobjs.c (reallocate_t1_table, shift_elements): Combine
  344. into...
  345. (ps_table_realloc): ... this function based on `FT_REALLOC`.
  346. (ps_table_done): Simplified.
  347. (ps_table_add): Updated.
  348. 2022-02-02 Alexei Podtelezhnikov <apodtele@gmail.com>
  349. * src/cache/ftcmru.c (FTC_MruList_New): Explain zeroing.
  350. 2022-01-31 Alexei Podtelezhnikov <apodtele@gmail.com>
  351. [cache] Partially revert 9870b6c07e2c.
  352. Fix crashes reported by Werner.
  353. * src/cache/ftcmru.c (FTC_MruList_New): Use `FT_ALLOC` again.
  354. 2022-01-31 Werner Lemberg <wl@gnu.org>
  355. freetype.h: Minor documentation improvement.
  356. 2022-01-31 Alexei Podtelezhnikov <apodtele@gmail.com>
  357. [cache] Fix fallouts from edd4fedc5427.
  358. Reported by Werner.
  359. * src/cache/ftcimage.c (FTC_INode_New): Always initialize FT_Glyph.
  360. * src/cache/ftcsbits.c (FTC_SNode_New): Always initialize FT_SBit.
  361. 2022-01-31 Alexei Podtelezhnikov <apodtele@gmail.com>
  362. Clean-up - do not doubt FT_FREE.
  363. * src/base/ftobjs.c (memory_stream_close): Do not reassign zero
  364. after `FT_FREE`.
  365. * src/sfnt/sfwoff.c (sfnt_stream_close): Ditto.
  366. * src/sfnt/sfwoff2.c (stream_close): Ditto.
  367. * src/psaux/psobjs.c (ps_parser_load_field): Ditto.
  368. * src/truetype/ttgxvar.c (ft_var_load_avar, tt_set_mm_blend,
  369. tt_set_mm_blend): Ditto.
  370. 2022-01-30 Werner Lemberg <wl@gnu.org>
  371. * CMakeLists.txt: Include 'FindPkgConfig' module.
  372. Older cmake versions don't provide `pkg_check_modules` by default.
  373. Fixes #1126.
  374. 2022-01-30 Alexei Podtelezhnikov <apodtele@gmail.com>
  375. * src/psaux/psobjs.c (ps_parser_load_field): Reduce `string` scope.
  376. 2022-01-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  377. [cmake] Check the availability of `bzip2.pc'.
  378. (CMakeLists.txt): Check the availability of `bzip2.pc'.
  379. * If `bzip2.pc' is available, Requires.private should include
  380. bzip2, but Libs.private should not include -lbz2.
  381. * If `bzip2.pc' is unavailable, Requires.private cannot include
  382. bzip2, but Libs.private should include -lbz2.
  383. Fix #897.
  384. 2022-01-28 Werner Lemberg <wl@gnu.org>
  385. * unix/configure.raw: We need 'librsvg' version 2.46.0 or newer.
  386. Older versions don't have function `rsvg_handle_get_intrinsic_dimensions`.
  387. 2022-01-28 Alexei Podtelezhnikov <apodtele@gmail.com>
  388. Minor clean-ups.
  389. * src/base/ftrfork.c (raccess_make_file_name): Do not set error.
  390. * src/sfnt/sfdriver.c (get_win_string, get_apple_string): Ditto.
  391. * src/cff/cffobjs.c (cff_strcpy): Do not confuse about error.
  392. * src/psaux/psobjs.c (ps_table_done): Ditto.
  393. * src/truetype/ttgxvar.c (ft_var_readpacked*, ft_var_load_avar): Ditto.
  394. 2022-01-27 Ben Wagner <bungeman@chromium.org>
  395. Document `FT_Outline_Decompose` degenerate segments.
  396. `FT_Outline_Decompose` does not filter out and can return degenerate
  397. segments in an outline. This can be surprising when attemping to
  398. stroke such an outline. Clarify the existing documentation on this
  399. matter to cover all forms of degeneracy (without specifying exactly
  400. how they will be reported), why they might arise, and better explain in
  401. what cases they may be an issue.
  402. * include/freetype/ftoutlin.h (FT_Outline_Decompose): update
  403. documentation.
  404. Fixes #952.
  405. 2022-01-27 Anuj Verma <anujv@posteo.net>
  406. Fix sdf computation while `USE_SQUARED_DISTANCES`.
  407. Function `map_fixed_to_sdf` expects spread to be absolute
  408. and not squared.
  409. * src/sdf/ftbsdf.c (finalize_sdf): Pass absolute spread
  410. while `map_fixed_to_sdf`.
  411. * src/sdf/ftsdf.c (sdf_generate_bounding_box): Ditto.
  412. 2022-01-27 Tapish Ojha <tapishojha2000@gmail.com>
  413. [sfnt] Improve sRGB constants.
  414. * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Use slightly
  415. more precise values.
  416. Fixes #1018.
  417. 2022-01-27 Werner Lemberg <wl@gnu.org>
  418. docs/release: Updated.
  419. 2022-01-26 Alexei Podtelezhnikov <apodtele@gmail.com>
  420. * src/pfr/pfrload.c (pfr_phy_font_load): Use FT_QNEW_ARRAY.
  421. 2022-01-26 Alexei Podtelezhnikov <apodtele@gmail.com>
  422. * src/sdf/ftsdf.c (sdf_*_new): Use standard macro.
  423. 2022-01-26 Alexei Podtelezhnikov <apodtele@gmail.com>
  424. [pcf] Delay encoding allocation and avoid its zeroing.
  425. * src/pcf/pcfread.c (pcf_get_encodings): Refactor and use FT_QNEW_ARRAY.
  426. 2022-01-25 Werner Lemberg <wl@gnu.org>
  427. Aarg, typo.
  428. 2022-01-25 Werner Lemberg <wl@gnu.org>
  429. freetype.h: More updates to `FT_LOAD_COLOR` description.
  430. 2022-01-25 Werner Lemberg <wl@gnu.org>
  431. * builds/unix/configure.raw (FT_DEMO_CFLAGS): Pass `-DHAVE-LIBRSVG`.
  432. This helps in decoupling library support from `pkg-config` for other
  433. platforms.
  434. 2022-01-25 Werner Lemberg <wl@gnu.org>
  435. Update documentation for `FT_LOAD_COLOR`.
  436. 2022-01-24 Ben Wagner <bungeman@chromium.org>
  437. [pshinter] Ensure all point flags are initialized.
  438. Only off curve point flags were fully initialized.
  439. * src/pshinter/pshalgo.c (psh_glyph_init): always initialize flags.
  440. Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43930
  441. 2022-01-24 Werner Lemberg <wl@gnu.org>
  442. .mailmap: Typo.
  443. 2022-01-23 Werner Lemberg <wl@gnu.org>
  444. * src/svg/ftsvg.c (ft_svg_property_set): Disallow NULL pointers.
  445. 2022-01-23 Werner Lemberg <wl@gnu.org>
  446. .mailmap: Updated.
  447. 2022-01-23 Werner Lemberg <wl@gnu.org>
  448. More documentation on handling OT-SVG.
  449. 2022-01-23 Werner Lemberg <wl@gnu.org>
  450. * src/svg/ftsvg.c: Rename `svg_hooks` to `svg-hooks` for consistency.
  451. 2022-01-22 Werner Lemberg <wl@gnu.org>
  452. [sfnt] Reject malformed SVG tables.
  453. * src/sfnt/ttsvg.c (SVG_TABLE_HEADER_SIZE, SVG_DOCUMENT_RECORD_SIZE,
  454. SVG_DOCUMENT_LIST_MINIMUM_SIZE, SVG_MINIMUM_SIZE): New macros.
  455. (tt_face_load_svg): Check offsets.
  456. Check table and record sizes.
  457. Reported as
  458. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43918
  459. 2022-01-22 Alexei Podtelezhnikov <apodtele@gmail.com>
  460. * src/psaux/psobjs.c (ps_table_new): Revert to zeroing.
  461. 2022-01-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  462. [psaux, type1, type42] Avoid annecessary zeroing.
  463. * src/psaux/psobjs.c (ps_table_new): Use FT_QNEW_ARRAY.
  464. * src/type1/t1load.c (parse_encoding): Ditto.
  465. * src/type42/t42parse.c (t42_parse_encoding): Ditto.
  466. 2022-01-20 Werner Lemberg <wl@gnu.org>
  467. [builds/unix] Handle 'librsvg' for demo programs.
  468. * builds/unix/configure.raw: Check for 'librsvg'.
  469. (LIB_CLOCK_GETTIME): Don't call `AC_SUBST` on this but on...
  470. (FT_DEMO_CFLAGS, FT_DEMO_LDFLAGS): ... these two new variables.
  471. * builds/unix/unix-cc.in (LIB_CLOCK_GETTIME): Replaced by...
  472. (FT_DEMO_CFLAGS, FT_DEMO_LDFLAGS): ... these two new variables.
  473. 2022-01-20 Moazin Khatti <moazinkhatri@gmail.com>
  474. Add 'svg' module for OT-SVG rendering.
  475. * CMakeLists.txt (BASE_SRCS): Add svg module file.
  476. * meson.build (ft2_public_headers): Add `otsvg.h`.
  477. * modules.cfg (RASTER_MODULES): Add `svg` module.
  478. * builds/meson/parse_modules_cfg.py: Add svg module.
  479. * include/freetype/config/ftmodule.h: Add `ft_svg_renderer_class`.
  480. * include/freetype/fterrdef.h: Add `Invalid_SVG_Document` and
  481. `Missing_SVG_Hooks` error codes.
  482. * include/freetype/internal/fttrace.h: Add tracing for `otsvg`.
  483. * include/freetype/internal/svginterface.h: New file. It adds an interface
  484. to enable the presetting hook from the `base` module.
  485. * include/freetype/otsvg.h (SVG_Lib_Init_Func, SVG_Lib_Free_Func,
  486. SVG_Lib_Render_Func, SVG_Lib_Preset_Slot_Func): New hooks for SVG rendering.
  487. (SVG_RendererHooks): New structure to access them.
  488. * src/base/ftobjs.c: Include `svginterface.h`.
  489. (ft_glyphslot_preset_bitmap): Add code for presetting the slot for SVG
  490. glyphs.
  491. (ft_add_renderer): Updated.
  492. * src/svg/*: New files.
  493. 2022-01-20 Moazin Khatti <moazinkhatri@gmail.com>
  494. Add `FT_Glyph` support for OT-SVG glyphs.
  495. * include/freetype/ftglyph.h (FT_SvgGlyphRec, FT_SvgGlyph): New structure.
  496. * src/base/ftglyph.c: Include `otsvg.h`.
  497. (ft_svg_glyph_init, ft_svg_glyph_done, ft_svg_glyph_copy,
  498. ft_svg_glyph_transform, ft_svg_glyph_prepare): New function.
  499. (ft_svg_glyph_class): New class.
  500. (FT_New_Glyph, FT_Glyph_To_Bitmap): Updated to handle OT-SVG glyphs.
  501. * src/base/ftglyph.h: Updated.
  502. 2022-01-20 Moazin Khatti <moazinkhatri@gmail.com>
  503. [truetype, cff] Add code to load SVG document.
  504. * src/cff/cffgload.c (cff_slot_load): Add code to load SVG doc.
  505. * src/truetype/ttgload.c (TT_Load_Glyph): Add code to load SVG doc.
  506. 2022-01-20 Moazin Khatti <moazinkhatri@gmail.com>
  507. Add code to load OT-SVG glyph documents.
  508. * include/freetype/config/ftheader.h (FT_OTSVG_H): New macro.
  509. * include/freetype/freetype.h (FT_FACE_FLAG_SVG, FT_HAS_SVG): New macros.
  510. (FT_LOAD_SVG_ONLY): New internal macro.
  511. * include/freetype/ftimage.h (FT_Glyph_Format): New enumeration value
  512. `FT_GLYPH_FORMAT_SVG`.
  513. * include/freetype/internal/ftobjs.h (FT_GLYPH_OWN_GZIP_SVG): New macro.
  514. * include/freetype/internal/fttrace.h: Add `ttsvg` for `ttsvg.c`.
  515. * include/freetype/internal/sfnt.h(load_svg, free_svg, load_svg_doc): New
  516. functions.
  517. * include/freetype/internal/tttypes.h (TT_FaceRec): Add `svg` for
  518. the SVG table.
  519. * include/freetype/otsvg.h (FT_SVG_DocumentRec): New structure to hold the
  520. SVG document and other necessary information of an OT-SVG glyph in a glyph
  521. slot.
  522. * include/freetype/tttags.h (TTAG_SVG): New macro.
  523. * src/base/ftobjs.c: Include `otsvg.h`.
  524. (ft_glyphslot_init): Allocate `FT_SVG_DocumentRec` in `slot->other`
  525. if the SVG table exists.
  526. (ft_glyphslot_clear): Free it upon clean-up if it is a GZIP compressed
  527. glyph.
  528. (ft_glyphslot_done): Free the document data if it is a GZIP compressed
  529. glyph.
  530. (FT_Load_Glyph): Don't auto-hint SVG documents.
  531. * src/cache/ftcbasic.c (ftc_basic_family_load_glyph): Add support for
  532. FT_GLYPH_FORMAT_SVG.
  533. * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `ttsvg.c`.
  534. * src/sfnt/sfdriver.c: Include `ttsvg.h`.
  535. (sfnt_interface): Add `tt_face_load_svg`, `tt_face_free_svg` and
  536. `tt_face_load_svg_doc`.
  537. * src/sfnt/sfnt.c: Include `ttsvg.c`.
  538. * src/sfnt/sfobjs.c (sfnt_load_face, sfnt_done_face): Add code to load and
  539. free data of the the SVG table.
  540. * src/sfnt/ttsvg.c: New file, implementing `tt_face_load_svg`,
  541. `tt_face_free_svg` and `tt_face_load_svg_doc`.
  542. * src/sfnt/ttsvg.h: Declarations of the SVG functions in
  543. `ttsvg.c`.
  544. 2022-01-20 Moazin Khatti <moazinkhatri@gmail.com>
  545. Add flag `FT_CONFIG_OPTION_SVG`.
  546. This flag is going to be used to conditionally compile support for OT-SVG
  547. glyphs. FreeType will do the parsing and rely on external hooks for
  548. rendering of OT-SVG glyphs.
  549. * devel/ftoption.h, include/freetype/config/ftoption.h
  550. (FT_CONFIG_OPTION_SVG): New flag.
  551. 2022-01-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  552. [pshinter] Avoid unnecessary zeroing.
  553. * src/pshinter/pshalgo.c (psh_hint_table_init,psh_glyph_init,
  554. psh_glyph_interpolate_normal_points): Use FT_QNEW_ARRAY.
  555. 2022-01-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  556. * include/freetype/freetype.h: Clarify `FT_Size` life cycle.
  557. 2022-01-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  558. [base] Undefined scale means no scale.
  559. It might be surprising that FreeType does not have default ppem and
  560. the size has to be set explicitly or face undefined behavior with
  561. undefined variables and errors. This offers an alternative to
  562. missing or zero scale by simply setting FT_LOAD_NO_SCALE. Defined
  563. behavior is bettr than undefined one.
  564. This is alternative to !132 and discussed in
  565. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43708
  566. * src/base/ftobjs.c (FT_Load_Glyph): Deal with zero scale.
  567. * include/freetype/freetype.h: Document it.
  568. 2022-01-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  569. * src/autofit/afglobal.c (af_face_globals_new): Reduce zeroing.
  570. Everything in AF_FaceGlobals is initialized except metrics. Those
  571. are zeroed here and initialized on demand later.
  572. 2022-01-16 Alexei Podtelezhnikov <apodtele@gmail.com>
  573. [bdf,type1] Avoid unnecessary hash zeroing.
  574. * src/bdf/bdflib.c (_bdf_parse_start): Use `FT_QALLOC`.
  575. * src/type1/t1load.c (parse_subrs): Use `FT_QNEW`.
  576. 2022-01-16 Ozkan Sezer <sezeroz@gmail.com>
  577. Add Watcom C/C++ calling.
  578. In the unlikely case the source is built with OpenWatcom's -ec?
  579. switches to enforce a calling convention, the qsort() compare
  580. function must still be set to __watcall.
  581. * include/freetype/internal/compiler-macros.h (FT_COMPARE_DEF):
  582. Updated.
  583. 2022-01-15 Ben Wagner <bungeman@chromium.org>
  584. [pshinter] Avoid accessing uninitialized zone.
  585. The `normal_top.count` may be 0, implying no `normal_top.zones` exist.
  586. The code must not access these (non-existent) `normal_top.zones`.
  587. * src/pshinter/pshalgo.c (ps_hints_apply): Do not assume that
  588. `normal_top.zones[0]` is initialized. Test `normal_top.count`
  589. before using `normal_top.zones[0]`. Do not rescale if there are no
  590. `zones`.
  591. Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43675
  592. 2022-01-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  593. [cache] Avoid unnecessary zeroing.
  594. * src/cache/ftccmap.c (ftc_cmap_node_new): Use `FT_QNEW`.
  595. * src/cache/ftcimage.c (FTC_INode_New): Ditto.
  596. * src/cache/ftcsbits.c (FTC_SNode_New): Ditto.
  597. 2022-01-15 Ozkan Sezer <sezeroz@gmail.com>
  598. Add Watcom C/C++ support.
  599. * include/freetype/config/integer-types.h: Make sure `long long` is
  600. used then available.
  601. * include/freetype/internal/ftcalc.h (FT_MSB): Add Watcom C/C++ pragma.
  602. 2022-01-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  603. * src/sdf/ftbsdf.c (ED): s/near/prox/.
  604. This works around the Watcom C definition of `near` as restricted
  605. __near.
  606. 2022-01-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  607. * include/freetype/internal/compiler-macros.h [FT_COMPARE_DEF]: Tighten.
  608. This works around Watcom C library using __watcall.
  609. 2022-01-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  610. * src/pshinter/pshglob.c (psh_globals_new): Avoid zeroing.
  611. This large allocation is followed by careful initialization. Whatever
  612. is missed should be initialized manually.
  613. 2022-01-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  614. * src/base/fthash.c (hash_insert): Avoid unnecessary zeroing.
  615. 2022-01-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  616. * src/bdf/bdflib.c (_bdf_parse_glyphs): Remove redundant assignment.
  617. 2022-01-13 Alexei Podtelezhnikov <apodtele@gmail.com>
  618. * src/lzw/ftlzw.c (FT_Stream_OpenLZW): Avoid unnecessary zeroing.
  619. 2022-01-13 Ben Wagner <bungeman@chromium.org>
  620. [bzip2] Reset bzip stream on any error.
  621. According to the bzip documentation it is undefined what will happen if
  622. `BZ2_bzDecompress` is called on a `bz_stream` it has previously returned an
  623. error against. If `BZ2_bzDecompress` returns anything other than `BZ_OK`
  624. the only valid next action is `BZ2_bzDecompressEnd`.
  625. Reported as
  626. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43564
  627. * src/bzip2/ftbzip2.c (FT_BZip2FileRec_): Add `reset` to track the need to
  628. reset the stream.
  629. (ft_bzip2_file_init): Initialize `reset` to 0.
  630. (ft_bzip2_file_reset): Set `reset` to 0 after resetting.
  631. (ft_bzip2_file_fill_output): Set `reset` to 1 when `BZ2_bzDecompress`
  632. returns anything other than `BZ_OK`.
  633. 2022-01-12 Werner Lemberg <wl@gnu.org>
  634. .gitlab-ci.yml: Minor comment cleanups.
  635. 2022-01-12 Azamat H. Hackimov <azamat.hackimov@gmail.com>
  636. .gitlab-ci.yml: Add steps to `before_script` to ensure recent CA.
  637. Fetch current list of valid CAs from Windows Update and manually import them
  638. to trusted datastore. This action is required to make downloads work from
  639. sites that need recent Let's Encrypt ISRG Root X1 certificate.
  640. 2022-01-11 Ben Wagner <bungeman@chromium.org>
  641. Revert "[bzip2] Avoid use of uninitialized memory."
  642. This reverts commit d276bcb7f0c02c20d3585b2e5626702df6d140a6.
  643. The original commit did avoid the use of uninitialized memory. However,
  644. it appears that the original commit is no longer required. The
  645. underlying issue was resolved by a change in freetype2-testing "Build
  646. bzip2 correctly." [0]. Prior to [0] bzip2 was built without msan, so
  647. bzip2 writes were not tracked or considered initialized. Clearing
  648. `buffer` in the original commit allowed msan to see the `buffer` content
  649. initialized once in FreeType code, but msan saw no writes into buffer
  650. from bzip2. With bzip2 now built with msan, the bzip2 writes are
  651. properly instrumented and msan sees the bzip2 writes into the buffer. As
  652. a result the original commit can be safely reverted to allow for better
  653. detection of other uninitialized data scenarios.
  654. * src/bzip2/ftbzip2.c (FT_Stream_OpenBzip2): Revert to using `FT_QNEW`.
  655. [0] https://github.com/freetype/freetype2-testing/commit/3c052a837a3c960709227a0d6ddd256e87b88853
  656. 2022-01-11 Ben Wagner <bungeman@chromium.org>
  657. [type42] Track how much type42 ttf data is available.
  658. Currently `T42_Open_Face` eagerly allocates 12 bytes for the ttf header
  659. data which it expects `t42_parse_sfnts` to fill out from /sfnts data.
  660. However, there is no guarantee that `t42_parse_sfnts` will actually be
  661. called while parsing the type42 data as the /sfnts array may be missing
  662. or very short. This is also confusing behavior as it means
  663. `T42_Open_Face` is tightly coupled to the implementation of the very
  664. distant `t42_parse_sfnts` code which requires at least 12 bytes to
  665. already be reserved in `face->ttf_data`.
  666. `t42_parse_sfnts` itself eagerly updates `face->ttf_size` to track how
  667. much space is reserved for ttf data instead of traking how much data has
  668. actually been written into `face->ttf_data`. It will also act strangely
  669. in the presense of multiple /sfnts arrays.
  670. * src/type42/t42objs.c (T42_Open_Face): ensure `ttf_data` is initialized
  671. to NULL. Free `ttf_data` on error.
  672. * src/type42/t42parse.c (t42_parse_sfnts): delay setting `ttf_size` and
  673. set it to the actual number of bytes read. Ensure `ttf_data` is freed
  674. if there are multiple /sfnts arrays or there are any errors.
  675. 2022-01-11 Dominik Röttsches <drott@chromium.org>
  676. [sfnt] Fix limit checks for `COLR` v1 ClipBoxes
  677. * src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Fix off-by-one in
  678. limit checks.
  679. 2022-01-11 Werner Lemberg <wl@gnu.org>
  680. Update all copyright notices.
  681. 2022-01-11 Werner Lemberg <wl@gnu.org>
  682. * src/sfnt/ttcolr.c (read_paint): Fix undefined left-shift operation.
  683. Reported as
  684. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43151
  685. 2022-01-11 Werner Lemberg <wl@gnu.org>
  686. * src/type42/t42objs.c (T42_Open_Face): Avoid use of uninitialized memory.
  687. Reported as
  688. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43508
  689. 2022-01-11 Werner Lemberg <wl@gnu.org>
  690. .gitlab-ci.yml: Fix typo in previous commit.
  691. 2022-01-11 Werner Lemberg <wl@gnu.org>
  692. .gitlab-ci.yml: Update Windows image.
  693. The old image produced errors like
  694. ```
  695. Downloading zlib patch from
  696. https://wrapdb.mesonbuild.com/v2/zlib_1.2.11-5/get_patch
  697. A fallback URL could be specified using patch_fallback_url key in the wrap file
  698. WrapDB connection failed to
  699. https://wrapdb.mesonbuild.com/v2/zlib_1.2.11-5/get_patch
  700. with error
  701. <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify
  702. failed: certificate has expired (_ssl.c:1122)>
  703. ```
  704. 2022-01-11 Werner Lemberg <wl@gnu.org>
  705. * subprojects/zlib.wrap: Update from upstream.
  706. 2022-01-10 Werner Lemberg <wl@gnu.org>
  707. * src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Add limit checks.
  708. Reported as
  709. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40716
  710. 2022-01-10 Werner Lemberg <wl@gnu.org>
  711. [zlib] Don't typedef `ptrdiff_t`.
  712. While using zlib in 'solo' mode (via the `Z_SOLO` macro), we actually
  713. include some standard header files, making the typedef fail on systems where
  714. the native `ptrdiff_t` type differs.
  715. Fixes #1124.
  716. * src/zlib/zutil.h: Comment out definition; it doesn't work on Windows.
  717. * src/zlib/patches/freetype-zlib.diff: Updated.
  718. 2022-01-10 Werner Lemberg <wl@gnu.org>
  719. [zlib] Some organizational changes.
  720. We now first apply zlib's `zlib2ansi` script, then FreeType's patch file.
  721. * src/gzip/README.freetype: Updated.
  722. * patches/0001-zlib-Fix-zlib-sources-to-compile-for-FreeType.patch: Renamed
  723. to...
  724. * patches/freetype-zlib.diff: This.
  725. Clean up description, then regenerate it as follows:
  726. - Copy unmodified files from `zlib` repository.
  727. - Run `zlib2ansi` script.
  728. - Run `git diff -R > patches/freetype-zlib.diff.new`.
  729. - Insert patch description of old diff file, then replace old diff with
  730. new diff file.
  731. 2022-01-09 David Turner <david@freetype.org>
  732. [gzip] Update sources to zlib 1.2.11
  733. This can be tested by building with the Unix development build
  734. make setup devel
  735. make
  736. or by building the freetype-demos programs with
  737. meson setup build -Dfreetype2:zlib=internal
  738. meson compile -C out
  739. and trying to run `ftview` with a `.pcf.gz` font file.
  740. * src/gzip/ftgzip.c, src/gzip/rules.mk: Update for new zlib sources. Also
  741. remove the temporary fix introduced in commit 6a431038 to work around the
  742. fact that the internal sources were too old.
  743. * src/gzip/README.freetype: New file describing the origin of the sources
  744. and how they were modified.
  745. * src/gzip/patches/*: Patch files applied to original sources.
  746. * src/gzip/*: Updated zlib sources with the patch file(s) from
  747. `src/gzip/patches/` applied, followed by a conversion with zlib's
  748. `zlib2ansi` script.
  749. 2022-01-09 David Turner <david@freetype.org>
  750. [meson] Change Zlib configuration option.
  751. * meson_options.txt, meson.build: Change the format of the 'zlib' meson
  752. build configuration option to be a combo with the following choices:
  753. - none: Do not support gzip-compressed streams at all.
  754. - internal: Support gzip-compressed streams using the copy of the gzip
  755. sources under `src/gzip/`; this should only be used during development
  756. to ensure these work properly.
  757. - external: Support gzip-compressed streams using the 'zlib' Meson
  758. subproject, linked as a static library.
  759. - system: Support gzip-compressed streams using a system-installed version
  760. of zlib.
  761. - auto: Support gzip-compressed streams using a system-installed version
  762. of zlib, if available, or using the 'zlib' subproject otherwise. This
  763. is the default.
  764. - disabled: Backward-compatible alias for 'none'.
  765. - enabled: Backward-compatible alias for 'auto'.
  766. 2022-01-09 Werner Lemberg <wl@gnu.org>
  767. [bzip2] Avoid use of uninitialized memory.
  768. * src/bzip2/ftbzip2.c (FT_Stream_OpenBzip2): Don't use `FT_QNEW` but
  769. `FT_NEW` for setting up `zip` to avoid uninitialized memory access while
  770. handling malformed PCF fonts later on.
  771. Fixes
  772. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=42800
  773. 2022-01-09 Alexei Podtelezhnikov <apodtele@gmail.com>
  774. [sfnt] Fix off-by-one error.
  775. The 0-base index is equal to the number of previosly parsed entries.
  776. It is an error to adjust it by one to get the number truncated by
  777. a stream error. This is probably inconsequential because valid
  778. entries are correctly accounted for.
  779. * src/sfnt/ttload.c (check_table_dir): Do not adjust the truncated
  780. number of tables.
  781. 2022-01-08 Werner Lemberg <wl@gnu.org>
  782. [sfnt, type42] Correct previous commit.
  783. Really fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=42773.
  784. * src/sfnt/ttload.c (check_table_dir): Revert change.
  785. * src/type42/t42.parse.c (t42_parse_sfnts): Don't use `FT_QREALLOC` but
  786. `FT_REALLOC` for setting up `ttf_data` to avoid uninitialized memory access
  787. while handling malformed TrueType fonts later on.
  788. 2022-01-07 Werner Lemberg <wl@gnu.org>
  789. * src/sfnt/ttload.c (check_table_dir): Initialize `table`.
  790. Reported as
  791. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=42773
  792. 2022-01-07 Werner Lemberg <wl@gnu.org>
  793. [sfnt] Avoid 'runtime error: applying zero offset to null pointer'.
  794. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_byte_aligned): Exit early if
  795. `line` is NULL.
  796. 2022-01-07 Werner Lemberg <wl@gnu.org>
  797. [autofit, pshinter] Use `FT_OFFSET`.
  798. This avoids
  799. ```
  800. runtime error: applying zero offset to null pointer
  801. ```
  802. warnings of clang's undefined behaviour sanitizer.
  803. * src/autofit/afcjk.c (af_cjk_hints_link_segments,
  804. af_cjk_hints_compute_edges, af_cjk_hints_compute_blue_edges,
  805. af_cjk_hint_edges, af_cjk_align_edge_points): Do it.
  806. * src/autofit/afhints.c (af_glyph_hints_align_edge_points,
  807. af_glyph_hints_align_strong_points): Ditto.
  808. * src/autofit/aflatin.c (af_latin_metrics_init_widths,
  809. af_latin_hints_link_segments, af_latin_hints_compute_edges,
  810. af_latin_hints_compute_blue_edges, af_latin_hint_edges): Ditto.
  811. * src/pshinter/pshalgo.c (psh_hint_table_init): Ditto.
  812. 2022-01-06 Ben Wagner <bungeman@chromium.org>
  813. [truetype] Reset localpoints when varying cvt.
  814. When iterating over the cvt tuples and reading in the points it is necessary
  815. to set all of `localpoints`, `points`, and `point_count` in all cases. The
  816. existing code did not reset `localpoints` to `NULL` when there were no
  817. private point numbers. If the previous tuple did have private point numbers
  818. and set `localpoints` to `ALL_POINTS` this would not be cleared and the
  819. wrong branch would be taken later, leading to possible heap buffer overflow.
  820. * src/truetype/ttgxvar.c (tt_face_vary_cvt): Reset `localpoints` to `NULL`
  821. when it isn't valid.
  822. Fixes: https://crbug.com/1284742
  823. 2022-01-02 Werner Lemberg <wl@gnu.org>
  824. * builds/unix/configure.raw: Restore `SYSTEM_ZLIB` variable.
  825. This was accidentally removed with commit 93ebcbd0 almost eight years ago.
  826. 2021-12-27 Alexander Borsuk <me@alex.bio>
  827. Fix warnings for CMake Unity builds.
  828. * src/cache/ftcbasic.c (FT_COMPONENT): Undefine macro before redefinition.
  829. * src/smooth/ftgrays.c (TRUNC, FRACT): Ditto.
  830. 2021-12-18 Alexander Borsuk <alexander.borsuk@qnective.com>
  831. Clang-Tidy warning fixes.
  832. * src/base/ftobjs.c (FT_Get_Paint): Operator has equivalent nested operands.
  833. * src/bdf/bdflib.c (_bdf_add_property): Value stored to `fp` is never read.
  834. * src/sdf/ftbsdf.c (bsdf_init_distance_map): Value stored to `pixel` is
  835. never read.
  836. * src/sdf/ftsdf.c (split_sdf_shape): Value stored to `error` is never read.
  837. 2021-12-17 Eli Schwartz <eschwartz@archlinux.org>
  838. * meson.build: Optimize lookup for `python3` program.
  839. The python module's `find_installation` method is intended to provide
  840. routines for compiling and installing python modules into the
  841. `site-packages` directory. It does a couple of slow things, including run
  842. an introspection command to scrape sysconfig info from the detected
  843. interpreter, which are not needed for the sole use case of invoking the
  844. found installation as an executable.
  845. Furthermore, when invoked without the name or path of a python binary, it is
  846. hardcoded to always look for `python3` corresponding to the interpreter
  847. meson itself uses to run. So using `find_installation` did not even allow
  848. detecting `python2` as a fallback.
  849. Instead, switch to a simple `find_program` lookup that finishes as soon as
  850. the program is found.
  851. 2021-12-17 Eli Schwartz <eschwartz@archlinux.org>
  852. * builds/meson/*.py: Fix name of python executable for auxiliary scripts.
  853. The previous change to check the return code of `run_command` invocations
  854. caused the CI to fail. Although most scripts used `python_exe` as the
  855. program command, the script to determine the project version did not.
  856. But, all scripts used `python` as the shebang, and this is not available on
  857. all systems. Particularly Debian does not provide a `python` command,
  858. though `python3` does exist. This meant that formerly the version number
  859. was lacking, and now the build simply fails.
  860. Instead, rely on `python3` since it is guaranteed to exist when running
  861. meson, and `python2` is end of life anyway.
  862. 2021-12-17 Eli Schwartz <eschwartz@archlinux.org>
  863. * meson.build: Check the return value of `run_command`.
  864. By default, errors are not checked and a command that is somehow broken will
  865. just capture incorrect output (likely an empty string). Current development
  866. versions of meson now raise a warning for this implicit behavior, and advise
  867. explicitly setting the `check:` keyword argumend to determine whether a
  868. failing return code should be considered an error.
  869. Since none of the commands in this project are expected to fail, mark them
  870. as required to succeed.
  871. 2021-12-13 Alexei Podtelezhnikov <apodtele@gmail.com>
  872. [truetype] Upstream the hdmx binary search.
  873. * src/truetype/ttobjs.h (TT_SizeRec): Add `widthp` for the hdmx
  874. widths.
  875. * src/truetype/ttobjs.c (tt_size_reset): Initialize `widthp` even
  876. though it might never be used by the interpreter.
  877. * src/truetype/ttgload.c (tt_loader_init): Avoid repeated searches
  878. in the hdmx table.
  879. 2021-12-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  880. [truetype] Reset the IUP-called flags for each subglyph.
  881. This fixes fall-out from 7809007a5b88b15, where the composite
  882. accents were no longer hinted.
  883. * src/truetype/ttgload.c (ttloader_init): Move the IUP-called flag
  884. initialization from here...
  885. * src/truetype/ttinterp.c (TT_Run_Context): ... to here.
  886. 2021-12-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  887. [truetype] Binary search through the `hdmx` records.
  888. The `hdmx` table is supposed to be sorted by ppem size, which
  889. enables binary search. We also drop the check for the sufficient
  890. length of the record because it is now enforced when the table
  891. is loaded.
  892. * include/freetype/internal/tttypes.h (TT_FaceRec): Store the `hdmx`
  893. record pointers sorted by ppem instead of ppem's themselves.
  894. * src/truetype/ttpload.c (tt_face_load_hdmx): Prudently sort records.
  895. (tt_face_get_device_metrics): Implement binary search to retrieve
  896. advances.
  897. 2021-12-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  898. [truetype] Honor FT_LOAD_ADVANCE_ONLY if `hdmx` is usable.
  899. This simply shortcuts the glyph loading if FT_LOAD_ADVANCE_ONLY
  900. is specified by FT_Get_Advances and the `hdmx` data are located.
  901. Particularly, the classic v35 interpreter or "verified" ClearType
  902. fonts might see 100x speed up in retrieving the hdmx cache.
  903. * src/truetype/ttgload.c (TT_Load_Glyph): Insert the shortcut.
  904. 2021-12-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  905. [truetype] Initialize the loader with `hdmx` data.
  906. The `hdmx` matching can be done before the glyph is loaded.
  907. * include/freetype/internal/tttypes.h (TT_LoaderRec): Add a field.
  908. * src/truetype/ttgload.c (compute_glyph_metrics): Relocate the `hdmx`
  909. code from here...
  910. (tt_loader_init): ... to here, before the glyph is loaded.
  911. 2021-12-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  912. [truetype] Relocate subpixel flag setting.
  913. `TT_RunIns` is too busy to deal with subpixel flags. It is better
  914. to set them in `tt_loader_init`, which is executed before each
  915. glyph program.
  916. * src/truetype/ttinterp.c (TT_RunIns): Move the flag setting from
  917. here...
  918. * src/truetype/ttgload.c (tt_loader_init): ... to here.
  919. 2021-12-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  920. [truetype] Limit INSTCTRL appication within specs.
  921. * src/truetype/ttinterp.c (Ins_INSTCTRL): Limit its global effects
  922. to the CVT program and local effects to the glyph program.
  923. This also fixes an Infinality buglet. The `ignore_x_mode` should be
  924. locally unset by the glyph program.
  925. 2021-12-09 Ben Wagner <bungeman@chromium.org>
  926. [bdf] Fix use of uninitialized value.
  927. In _bdf_readstream if the data contained no newline then the buffer
  928. would continue to grow and uninitialized data read until either the
  929. uninitialized data contained a newline or the buffer reached its
  930. maxiumum size. The assumption was that the line was always too long and
  931. the buffer had been filled, however this case can also happen when there
  932. is not enough data to fill the buffer.
  933. Correct this by properly setting the cursor to the end of the available
  934. data, which may be different from the end of the buffer. This may still
  935. result in one extra allocation, but only on malformed fonts.
  936. * src/bdf/bdflib.c (_bfd_readstream): Correctly update cursor. Remove
  937. unread set of `avail`.
  938. Bug: https://lists.nongnu.org/archive/html/freetype-devel/2021-12/msg00001.html
  939. 2021-12-07 Alexei Podtelezhnikov <apodtele@gmail.com>
  940. [truetype] Reduce Infinality footprint again.
  941. * src/truetype/ttgload.c (compute_glyph_metrics): Streamline and
  942. prioritize the Infinality checks to use `hdmx`.
  943. 2021-12-07 Cameron Cawley <ccawley2011@gmail.com>
  944. [builds/windows] Guard some non-ancient API.
  945. We can support Windows 98 and NT 4.0 in principle...
  946. * builds/windows/ftdebug.c, builds/windows/ftsystem.c: Check for the
  947. ancient SDK using _WIN32_WINDOWS, _WIN32_WCE, or _WIN32_WINNT.
  948. 2021-12-07 Cameron Cawley <ccawley2011@gmail.com>
  949. * builds/windows/visualc/freetype.vcproj: Add missing file.
  950. 2021-12-02 Werner Lemberg <wl@gnu.org>
  951. * Version 2.11.1 released.
  952. ==========================
  953. Tag sources with `VER-2-11-1'.
  954. * docs/VERSION.TXT: Add entry for version 2.11.1.
  955. * docs/CHANGES, docs/release: Updated.
  956. * README, src/base/ftver.rc, builds/windows/vc2010/index.html,
  957. builds/windows/visualc/index.html, builds/windows/visualce/index.html,
  958. builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html,
  959. docs/freetype-config.1: s/2.11.0/2.11.1/, s/2110/2111/.
  960. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
  961. * builds/unix/configure.raw (version_info): Set to 24:1:18.
  962. * CMakeLists.txt (VERSION_PATCH): Set to 1.
  963. * builds/toplevel.mk (version_tag, CHANGELOG_SCRIPT): New variables.
  964. (do-dist): Generate `ChangeLog` file with all commits since last release.
  965. 2021-11-30 Alexei Podtelezhnikov <apodtele@gmail.com>
  966. [builds/windows] Improve debugging.
  967. * builds/windows/ftdebug.c (FT_Message, FT_Panic): Buffer output
  968. and call `OutputDebugStringA` only if `IsDebuggerPresent`.
  969. [_WIN32_WCE] (OutputDebugStringA): Implement the missing API.
  970. 2021-11-29 Seigo Nonaka <nona@google.com>
  971. * src/base/ftobjs.c (FT_Request_Metrics): Fix build warning on Android.
  972. Use casts since `FT_USHORT_MAX` is unsigned short in bionic (libc used in
  973. Android).
  974. 2021-11-28 Alexei Podtelezhnikov <apodtele@gmail.com>
  975. * builds/windows/vc2010/freetype.vcxproj (DlgCopy): Minor tweak.
  976. 2021-11-26 Alexei Podtelezhnikov <apodtele@gmail.com>
  977. * src/truetype/ttpload.c (tt_face_load_hdmx): Added comments.
  978. 2021-11-26 Alexei Podtelezhnikov <apodtele@gmail.com>
  979. [truetype] Quietly reject out-of-spec `hdmx` tables.
  980. The `hdmx` table is optional and can be safely rejected without
  981. an error if it does not follow specifications. The record size
  982. must be equal to the number of glyphs + 2 + 32-bit padding.
  983. * src/truetype/ttpload.c (tt_face_load_hdmx): Thoroughly check
  984. the record size and improve tracing.
  985. 2021-11-23 Alexei Podtelezhnikov <apodtele@gmail.com>
  986. [truetype] Partly revert 5b626281.
  987. Fixes #1118.
  988. * src/truetype/ttpload.c (tt_face_load_hdmx): Do not assume that
  989. `record_size` is rounded even though the records are padded.
  990. 2021-11-23 Alexei Podtelezhnikov <apodtele@gmail.com>
  991. * builds/windows/vc2010/freetype.vcxproj (DlgCopy): Use transforms.
  992. 2021-11-22 Werner Lemberg <wl@gnu.org>
  993. Update `CHANGES` files, other minor whitespace and documentation issues.
  994. 2021-11-21 Werner Lemberg <wl@gnu.org>
  995. formats.txt: Add info about WOFF and WOFF2.
  996. 2021-11-21 Werner Lemberg <wl@gnu.org>
  997. meson.build: Initialize `common_ldflags`.
  998. 2021-11-21 Lukas Oberhuber <@lukaso>
  999. * meson.build: Fix compatibility version on MacOS.
  1000. Fixes #1117.
  1001. 2021-11-21 Werner Lemberg <wl@gnu.org>
  1002. * src/truetype/ttinterp.c (Ins_MD): Avoid `FT_ABS`.
  1003. Reported as
  1004. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38562
  1005. 2021-11-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  1006. * include/freetype/fttypes.h (FT_MAKE_TAG): Remove the same casting.
  1007. 2021-11-20 Werner Lemberg <wl@gnu.org>
  1008. [gxvalid] Fix minor compilation warning.
  1009. * src/gxvalid/gxvmort5.c (gxv_mort_subtable_type5_subtable_setup): Declare
  1010. as static.
  1011. 2021-11-20 Werner Lemberg <wl@gnu.org>
  1012. [smooth] Fix stand-alone compilation.
  1013. * src/smooth/ftgrays.c (FT_Trace_Enable, FT_Trace_Disable)[STANDALONE_]:
  1014. Define.
  1015. 2021-11-20 Werner Lemberg <wl@gnu.org>
  1016. Avoid undefined left-shifts.
  1017. We really have to use double casts to avoid issues with C's and C++'s
  1018. signedness propagation rules in implicit casts.
  1019. Reported as
  1020. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41178
  1021. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41182
  1022. * include/freetype/config/public-macros.h (FT_STATIC_CAST,
  1023. FT_REINTERPRET_CAST): Modify macro to take two arguments.
  1024. Update all callers.
  1025. (FT_STATIC_BYTE_CAST): New macro.
  1026. * include/freetype/freetype.h (FT_ENC_TAG): Use `FT_STATIC_BYTE_CAST`.
  1027. * include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto.
  1028. * include/freetype/fttypes.h (FT_MAKE_TAG): Ditto.
  1029. Use `FT_Tag` for casting.
  1030. * src/ftraster/ftmisc.h (FT_MAKE_TAG): Removed, no longer needed.
  1031. (FT_STATIC_BYTE_CAST): New macro.
  1032. * src/smooth/ftgrays.c (FT_STATIC_CAST): Replace with...
  1033. (FT_STATIC_BYTE_CAST): ... this.
  1034. 2021-11-18 Werner Lemberg <wl@gnu.org>
  1035. Provide C++ versions for public macros with casts.
  1036. Many FreeType clients use C++. However `g++ -Wold-style-cast` warns for
  1037. macros with C-style casts even for system header files; this also affects
  1038. directories included with `-isystem`. While this could be seen as a problem
  1039. with g++, the problem is more a philosophical one: Over the time, C and C++
  1040. diverged more and more, and some features of C are no longer the 'right'
  1041. solution in C++.
  1042. * include/freetype/config/public-macros.h (FT_STATIC_CAST,
  1043. FT_REINTERPRET_CAST): New macros.
  1044. * include/freetype/freetype.h (FT_ENC_TAG, FT_LOAD_TARGET_,
  1045. FT_LOAD_TARGET_MODE): Use `FT_STATIC_CAST`.
  1046. Correctly handle negative 'signed char' input.
  1047. * include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto.
  1048. * include/freetype/fttypes.h (FT_MAKE_TAG, FT_BOOL): Ditto.
  1049. * include/freetype/ftmodapi.h (FT_FACE_DRIVER_NAME): Use
  1050. `FT_REINTERPRET_CAST`.
  1051. * src/smooth/ftgrays.c (FT_STATIC_CAST)[STANDALONE_]: New macro.
  1052. [!STANDALONE]: Include `FT_CONFIG_CONFIG_H`.
  1053. Fixes #1116.
  1054. 2021-11-16 Werner Lemberg <wl@gnu.org>
  1055. Fix clang++ warnings.
  1056. * src/*: Initialize some variables to NULL.
  1057. 2021-11-16 Werner Lemberg <wl@gnu.org>
  1058. [truetype] Updates for the forthcoming OpenType 1.9 standard (2/2).
  1059. * src/truetype/ttgxvar.c (ft_var_load_item_variation_store):
  1060. s/shortDeltaCount/wordDeltaCount/ (as done in the specification, too).
  1061. Recognize new format and reject it for now.
  1062. 2021-11-16 Werner Lemberg <wl@gnu.org>
  1063. [truetype] Updates for the forthcoming OpenType 1.9 standard (1/2).
  1064. This is in preparation for implementing `DeltaSetIndexMap` format 1, which
  1065. is used by `COLR` v1 tables, and which allows 32bit indices.
  1066. https://docs.microsoft.com/en-us/typography/opentype/otspec190/delta/otvarcommonformats_delta.html
  1067. * src/truetype/ttgxvar.h (GX_DeltaSetIdxMapRec): Change type of `mapCount`
  1068. to `FT_ULong`.
  1069. * src/truetype/ttgxvar.c (ft_var_load_delta_set_index_mapping): Add argument
  1070. for passing the table size; update caller.
  1071. Implement new format.
  1072. 2021-11-14 Werner Lemberg <wl@gnu.org>
  1073. Fix clang warnings.
  1074. * src/gxvalid/gxvcmmn.h (GXV_SET_ERR_IF_PARANOID): Use 'do' block.
  1075. * src/gxvalid/gxvmod.c (GXV_TABLE_LOAD, GXV_TABLE_VALIDATE): Ditto.
  1076. * src/smooth/ftgrays.c (gray_convert_glyph): Add cast.
  1077. * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Remove cast.
  1078. * src/type1/t1load.c (read_binay_data): Use `FT_ULong` for `size` parameter.
  1079. (parse_subrs, parse_charstrings, parse_dict): Ditto; also add some casts.
  1080. 2021-11-13 Dominik Röttsches <drott@chromium.org>
  1081. [sfnt] Avoid undefined shifts in `COLR` v1 paint parsing
  1082. * src/sfnt/ttcolr.c (read_paint, tt_face_get_paint): Tighten shift
  1083. behavior by using multiplication, mostly using macros from ftcalc.h.
  1084. Fixes: https://bugs.chromium.org/p/chromium/issues/detail?id=1269168
  1085. 2021-11-13 Alexei Podtelezhnikov <apodtele@gmail.com>
  1086. [builds/windows] Improve `DlgCopy` target.
  1087. Fixes #1113.
  1088. * builds/windows/vc2010/freetype.vcxproj: Run `DlgCopy` conditionally
  1089. and decouple it from `Build`.
  1090. 2021-11-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  1091. Explicitly define `FT_MSB` for Clang.
  1092. * include/freetype/internal/ftcalc.h [__clang__] (FT_MSB): Updated.
  1093. 2021-11-10 Alexei Podtelezhnikov <apodtele@gmail.com>
  1094. * src/truetype/ttgxvar.c (ft_var_to_normalized): Edge optimization.
  1095. 2021-11-10 Alexei Podtelezhnikov <apodtele@gmail.com>
  1096. Additional `FT_MSB` macro definitions.
  1097. Better macros for Windoes CE and ARM in general, based on !109
  1098. from metarutaiga.
  1099. * include/freetype/internal/ftcalc.h [_MSC_VER] (FT_MSB): Updated.
  1100. 2021-11-09 Alexei Podtelezhnikov <apodtele@gmail.com>
  1101. [build/windows] Remove logging from default debug configurations.
  1102. DLG is rather costly for performance and should be used judiciously.
  1103. This removes it from the default configurations but gives an example
  1104. how to enable it using the `UserDefines` property.
  1105. * builds/windows/vc2010/freetype.vcxproj: Hide FT_DEBUG_LOGGING.
  1106. 2021-11-08 Werner Lemberg <wl@gnu.org>
  1107. * src/sfnt/sfobjs.c (sfnt_open_font): Fix typo.
  1108. 2021-11-08 Werner Lemberg <wl@gnu.org>
  1109. * src/gxvalid.*, src/otvalid.*: Fix `-Wformat` warnings.
  1110. 2021-11-08 Werner Lemberg <wl@gnu.org>
  1111. [pshinter] Fix C++ compilation.
  1112. * src/pshinter/pshalgo.c (psh_compute_dir): Fix type of `result`.
  1113. (psh_hint_table_find_strong_points): Add cast.
  1114. 2021-11-08 Werner Lemberg <wl@gnu.org>
  1115. [sfnt] Reduce footprint if WOFF and WOFF2 support is not needed.
  1116. Based on a patch from metarutaiga (MR !106). The gist of this commit is
  1117. that it doesn't make sense to support WOFF without compression (which would
  1118. be only possible in WOFF 1.0 anyway).
  1119. * src/sfnt/sfobjs.c (sfnt_open_font): Guard WOFF code with
  1120. `FT_CONFIG_OPTION_USE_ZLIB` block.
  1121. Guard WOFF2 code with `FT_CONFIG_OPTION_USE_BROTLI` block.
  1122. * src/sfnt/sfwoff.c, src/sfnt/sfwoff.h: Guard files with
  1123. `FT_CONFIG_OPTION_USE_ZLIB` blocks, not parts of the code.
  1124. * src/sfnt/sfwoff2.c, src/sfnt/sfwoff2.h, src/sfnt/woff2tags.c,
  1125. src/sfnt/woff2tags.h: Guard files with `FT_CONFIG_OPTION_USE_BROTLI` blocks,
  1126. not parts of the code.
  1127. Fixes #1111.
  1128. 2021-11-08 Werner Lemberg <wl@gnu.org>
  1129. [truetype] Make trickyness checks depend on TT_USE_BYTECODE_INTERPRETER.
  1130. Based on a patch from metarutaiga (MR !106).
  1131. * src/truetype/ttobjs.c (tt_skip_pdffont_random_tag,
  1132. tt_check_trickyness_family, tt_synth_sfnt_checksum, tt_get_sfnt_checksum,
  1133. tt_check_trickyness_sfnt_ids, tt_check_trickyness): Put functions into a
  1134. `TT_USE_BYTECODE_INTERPRETER` block.
  1135. (tt_face_init): Put trickyness checks into a `TT_USE_BYTECODE_INTERPRETER`
  1136. block.
  1137. Fixes #1111.
  1138. 2021-11-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  1139. * src/sfnt/ttload.c (tt_face_load_gasp): Fix a type mismatch warning.
  1140. 2021-11-07 Alexei Podtelezhnikov <apodtele@gmail.com>
  1141. [dlg] Define DLG_STATIC explicitly.
  1142. DLG_STATIC is intended to disable Windows DLL linking attributes.
  1143. It does not hurt to define it explicitly when we wrap DLG code.
  1144. This fixes tons of LNK4286 and C4273 warnings from MSVC if we
  1145. forget to define DLG_STATIC as a compiler option.
  1146. * builds/windows/vc2010/freetype.vcxproj: Remove DLG_STATIC option.
  1147. * src/dlg/dlgwrap.c [FT_DEBUG_LOGGING]: Define DLG_STATIC.
  1148. * include/freetype/internal/ftdebug.h [FT_DEBUG_LOGGING]: Ditto.
  1149. 2021-11-07 Alexei Podtelezhnikov <apodtele@gmail.com>
  1150. [dlg] Lighten up the inclusions.
  1151. The DLG wrapper needs to know if FT_DEBUG_LOGGING is defined in
  1152. `ftoption.h`. It does not need entire FreeType.
  1153. * src/dlg/dlgwrap.c: Include FT_CONFIG_OPTIONS_H directly.
  1154. 2021-11-07 Alexei Podtelezhnikov <apodtele@gmail.com>
  1155. [truetype] Avoid some memory zeroing in variations.
  1156. * src/truetype/ttgxvar.c (ft_var_readpackeddeltas, ft_var_load_avar,
  1157. ft_var_load_item_variation_store, ft_var_load_gvar): Use FT_QNEW_ARRAY
  1158. if memory immediately initialized or discarded otherwise.
  1159. 2021-11-05 Jany Belluz <jany.belluz@daltonmaag.com>
  1160. [truetype] Fix handling of packed deltas in Variation Fonts.
  1161. * src/truetype/ttgxvar (ft_var_readpackeddeltas): Don't expect the number of
  1162. bytes used to encode the deltas to be higher than the number of encoded
  1163. values. The specification allows a very compact encoding; for example, a
  1164. list of 200 zeros can be encoded with just a couple of bytes.
  1165. We now count the consumed bytes to make sure to not read more than expected.
  1166. 2021-11-04 Jany Belluz <jany.belluz@daltonmaag.com>
  1167. [truetype] Fix CVAR handling of tuples for all points.
  1168. * src/truetype/ttgxvar (tt_face_vary_cvt): Function
  1169. `ft_var_readpackedpoints`, when it returns `ALL_POINTS`, also sets
  1170. `point_count` to value 0. However, the CVAR code was incorrectly expecting
  1171. that `point_count` would be set to match the length of the CVT table.
  1172. 2021-11-04 Jany Belluz <jany.belluz@daltonmaag.com>
  1173. * src/truetype/ttgxvar.c: Fix typos in macros that guard CVAR code.
  1174. 2021-11-04 Alexei Podtelezhnikov <apodtele@gmail.com>
  1175. * docs/INSTALL: Mention Meson and MSBuild more prominently.
  1176. 2021-11-03 Gabor Kertesz <gabor.kertesz@linaro.org>
  1177. [libpng] Update Meson wrap for win-arm64
  1178. 1.6.37-5 released patches for win-arm64 to successfully build
  1179. libpng with Meson:
  1180. https://github.com/mesonbuild/wrapdb/pull/205
  1181. https://github.com/mesonbuild/wrapdb/pull/216
  1182. Updated by the following command:
  1183. meson wrap update libpng
  1184. Tested on win-arm64 and x64.
  1185. 2021-11-03 Dominik Röttsches <drott@chromium.org>
  1186. [sfnt] Clarify `COLR` v1 FT_Paint* format representations
  1187. * include/freetype/ftcolor.h (FT_PaintLinearGradient,
  1188. FT_PaintRadialGradient, FT_PaintSweepGradient, FT_PaintTransform,
  1189. FT_PaintTranslate, FT_PaintScale, FT_PaintRotate, FT_PaintSkew): Clarify
  1190. 16.16 fixed point representation of struct fields.
  1191. * src/sfnt/ttcolr.c (read_paint): Shift coordinates for
  1192. FT_PaintLinearGradient, FT_PaintRadialGradient, FT_PaintSweepGradient
  1193. accordingly.
  1194. Fixes: https://gitlab.freedesktop.org/freetype/freetype/-/issues/1110
  1195. 2021-11-03 Alexei Podtelezhnikov <apodtele@gmail.com>
  1196. [builds/windows] Let MSBuild handle DLG copy.
  1197. * builds/windows/vc2010/freetype.vcxproj: Specify DlgCopy target.
  1198. * builds/windows/vc2010/script.bat: Deleted.
  1199. 2021-10-29 Alexei Podtelezhnikov <apodtele@gmail.com>
  1200. * src/truetype/ttgload.c (load_truetype_glyph): Fix MSVC warning C4312.
  1201. 2021-10-29 Alexei Podtelezhnikov <apodtele@gmail.com>
  1202. [builds/windows] Separate MSVC linker and librarian.
  1203. MSVC uses LIB for static and LINK for dynamic libraries. They are
  1204. related but the former has much smaller set of options.
  1205. * builds/windows/vc2010/freetype.vcxproj: Updated.
  1206. 2021-10-29 Alexei Podtelezhnikov <apodtele@gmail.com>
  1207. [builds/windows] Revise MSVC linking optimizations.
  1208. * builds/windows/vc2010/freetype.vcxproj: Optimize DLL linking only.
  1209. * builds/windows/visualc/freetype.dsp: Ditto.
  1210. * builds/windows/visualc/freetype.vcproj: Ditto.
  1211. 2021-10-28 Alexei Podtelezhnikov <apodtele@gmail.com>
  1212. [woff] Optimize table tagging.
  1213. * include/freetype/internal/wofftypes.h (WOFF_TableRec): Use
  1214. 32-bit tag.
  1215. * src/sfnt/sfwoff.c (woff_open_font): Use 32-bit tag.
  1216. 2021-10-28 Alexei Podtelezhnikov <apodtele@gmail.com>
  1217. [woff2] Optimize table tagging.
  1218. Fixes #1107.
  1219. * include/freetype/internal/wofftypes.h (WOFF2_TableRec): Use
  1220. 32-bit tag.
  1221. * src/sfnt/sfwoff2.c (compare_tags, find_table, woff2_open_font):
  1222. Use 32-bit tag.
  1223. * src/sfnt/woff2tags.[ch] (woff2_known_tags): Use static storage and
  1224. return 32-bit tag.
  1225. 2021-10-26 Werner Lemberg <wl@gnu.org>
  1226. Formatting.
  1227. 2021-10-26 Ben Wagner <bungeman@chromium.org>
  1228. [mm] Tolerate missing Blend dictionary entries
  1229. In a Multiple Master font, the Blend dictionary must contain valid
  1230. Private, FontInfo, and FontBBox. The current code will error if any of
  1231. these are present and invalid, but will not error and will provide
  1232. uninitialized data if the Blend dictionary exists but does not contain
  1233. one of these entries. This change reverts to the older behavior of
  1234. treating any missing entries as containing all zero data and not
  1235. returning an error.
  1236. In the future it may be best to keep track of when these are actually
  1237. initialized and error if they are not.
  1238. * src/type1/t1load.c (t1_allocate_blend): Zero initiailize.
  1239. 2021-10-26 Alexei Podtelezhnikov <apodtele@gmail.com>
  1240. [builds/windows] Add MSVC linker optimazations.
  1241. We continue to build static libraries with statically linked C run-
  1242. time and add options to optimize references.
  1243. * builds/windows/vc2010/freetype.vcxproj: Sort entries, add options.
  1244. 2021-10-23 Alexei Podtelezhnikov <apodtele@gmail.com>
  1245. * builds/windows/vc2010/freetype.vcxproj: Use MachineARM64.
  1246. 2021-10-22 Alexei Podtelezhnikov <apodtele@gmail.com>
  1247. [builds/windows] Prioritize x64.
  1248. * builds/windows/vc2010/freetype.sln: Sort entries.
  1249. 2021-10-22 Gabor Kertesz <gabor.kertesz@linaro.org>
  1250. [builds/windows] Add ARM64 platform.
  1251. * builds/windows/vc2010/freetype.sln: Updated
  1252. * builds/windows/vc2010/freetype.vcxproj: Updated.
  1253. * builds/windows/vc2010/freetype.vcxproj.filters: Minor fix.
  1254. 2021-10-21 Ben Wagner <bungeman@chromium.org>
  1255. [mm] Delay setting blend weight and design position.
  1256. Previously the `blend->weight_vector`, `blend->default_weight_vector`,
  1257. and `blend->design_pos` were set early to allocated but uninitialized
  1258. memory under the assumption that the memory would eventually be
  1259. initialized. However, it is possible that some of the required
  1260. keywords may not actually be present, leaving the memory uninitialized.
  1261. This is different from a present but invalid table, which would produce
  1262. an error.
  1263. Reported as
  1264. https://bugs.chromium.org/p/chromium/issues/detail?id=1261762
  1265. * src/type1/t1load.c (t1_allocate_blend): Remove early allocation and
  1266. initialization.
  1267. (parse_blend_design_positions, parse_weight_vector): Parse into local
  1268. and assign to blend if valid.
  1269. (T1_Open_Face): Check that if a blend exists that it has the weight
  1270. vector and design positions.
  1271. 2021-10-21 Ben Wagner <bungeman@chromium.org>
  1272. [cff] Commit vstore data and regions on allocation.
  1273. The vstore->regionCount and vstore->dataCount were read directly
  1274. from the data. However, vstore->varRegionList and vstore->varData
  1275. would still contain uninitialized entries with uninitialized
  1276. pointers in the event of an error, leading to issues when attempting
  1277. to clean up.
  1278. Reportd as
  1279. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40104
  1280. * src/cff/cffload.c (cff_vstore_load): Read the region and data counts
  1281. into locals and update the vstore counts immediately after each entry
  1282. becomes free-able.
  1283. 2021-10-20 Ben Wagner <bungeman@chromium.org>
  1284. [sfnt] Delay setting gasp ranges and count until computed.
  1285. Previously, the gasp.numRanges was set and gasp.gaspRanges was
  1286. allocated and assigned before a possible early exit if the frame could
  1287. not be entered. It is also possible that the gaspRanges allocation
  1288. could fail but the numRanges still be set to non-zero. In such cases
  1289. an error would be returned, but the face would have a gasp in an
  1290. inconsistent state which may still be accessed.
  1291. Reported as
  1292. https://bugs.chromium.org/p/chromium/issues/detail?id=1261450
  1293. * src/sfnt/ttload.c (tt_face_load_gasp): Delay setting gasp.numRanges
  1294. and gasp.gaspRanges until after the ranges are initialized.
  1295. 2021-10-20 Ben Wagner <bungeman@chromium.org>
  1296. [sfnt] Delay setting names and langTags until computed.
  1297. Previously, the table->names and table->langTags fields were created
  1298. pointing to uninitialized memory and an early exit could happen if the
  1299. frame could not be entered. The caller would then be unable to properly
  1300. dispose of the memory as the string fields had not been initialized.
  1301. Reported as
  1302. https://bugs.chromium.org/p/chromium/issues/detail?id=1261343
  1303. * src/sfnt/ttload.c (tt_face_load_name): delay setting table->langTags
  1304. and table->names until after the memory they will point to is fully
  1305. initialized.
  1306. 2021-10-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  1307. * tests/issue-1063/main.c: s/PATH_MAX/FILENAME_MAX/.
  1308. Closes !97 for Windows by using a standard macro.
  1309. 2021-10-19 Werner Lemberg <wl@gnu.org>
  1310. [bdf, cid, pfr, winfonts] Improve rejection of other font formats.
  1311. This is mainly for better diagnostics of malformed fonts.
  1312. * src/bdf/bdflib.c (_bfd_readstream): Stop font format testing if the first
  1313. input line is too long or doesn't end with `\r` or `\n`.
  1314. * src/cid/cidparse.c (cid_parser_new): Don't handle too short input as an
  1315. error but as an unknown format.
  1316. * src/pfr/pfrobjs.c (pfr_face_init): Ditto.
  1317. * src/winfonts/winfnt.c (fnt_font_load, fnt_face_get_dll_font): Ditto.
  1318. 2021-10-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  1319. [pcf] Zero out the allocated properties.
  1320. Fallout reported as
  1321. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40033
  1322. * src/pcf/pcfread.c (pcf_get_properties): Use FT_NEW_ARRAY and zero
  1323. out `properties` in case of failure.
  1324. 2021-10-18 Werner Lemberg <wl@gnu.org>
  1325. configure: Use string comparison for directory inodes.
  1326. Inode values might be larger than integers supported by the shell.
  1327. Fixes #1105.
  1328. 2021-10-17 Alexei Podtelezhnikov <apodtele@gmail.com>
  1329. * src/sfnt/ttload.c (tt_face_load_name): NULL-initialize langTag.
  1330. Another attempt to fix fallout reported as
  1331. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40024
  1332. 2021-10-17 Alexei Podtelezhnikov <apodtele@gmail.com>
  1333. [bdf] Fix up user properties.
  1334. Fallout reported as
  1335. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40027
  1336. * src/bdf/bdflib.c (_bdf_add_property): Cosmetic NULL.
  1337. (bdf_create_property): Limit allocations to customary signed
  1338. FT_Long and NULL-initialize unused storage.
  1339. (bdf_free_font): Do not free unused storage.
  1340. 2021-10-17 Alexei Podtelezhnikov <apodtele@gmail.com>
  1341. * src/sfnt/ttload.c (tt_face_load_name): Accounting fix.
  1342. Fallout reported as
  1343. https://crbug.com/40024
  1344. 2021-10-16 Ben Wagner <bungeman@chromium.org>
  1345. Fix typos in memory macros.
  1346. FT_QNEW_ARRAY and FT_QRENEW_ARRAY were using the non-Q
  1347. FT_MEM_NEW_ARRAY and FT_MEM_RENEW_ARRAY. Change these to use the Q
  1348. versions. Also fix the one issue discovered in tt_face_load_name
  1349. where table->names is created with FT_QNEW_ARRAY but the extra
  1350. string member is not initialized to NULL.
  1351. * include/freetype/internal/ftmemory.h (FT_Q(RE)NEW_ARRAY):
  1352. Use FT_MEM_Q(RE)NEW_ARRAY as needed.
  1353. * src/sfnt/ttload.c (tt_face_load_name): Initialize `entry->string`.
  1354. 2021-10-15 Ben Wagner <bungeman@chromium.org>
  1355. [truetype] Reload context after re-executing `prep`.
  1356. When a different hinting mode from the current is selected, the `prep` table
  1357. must be re-executed with the new mode. After this happens the context must
  1358. be re-loaded in preparation for the glyph program to be run.
  1359. Fixes #1104.
  1360. * truetype/ttgload.c (tt_loader_init): Add call to `TT_Load_Context`.
  1361. 2021-10-15 Werner Lemberg <wl@gnu.org>
  1362. [truetype] Minor documentation improvements.
  1363. 2021-10-14 Anurag Thakur <anuthadev@gmail.com>
  1364. Add clang build to linux CI
  1365. 2021-10-12 Anurag Thakur <anuthadev@gmail.com>
  1366. CI: Add macOS CI, including a clang build
  1367. 2021-10-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  1368. * src/cid/cidload.c (parse_fd_array): Protect against trancation.
  1369. 2021-10-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  1370. [type1] Revert to signed size for binary data.
  1371. Recently introduced and reported as
  1372. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39838
  1373. * src/type1/t1load.c (read_binary_data): Reject negative size.
  1374. (parse_subrs, parse_charstrings): Use customary signed size.
  1375. 2021-10-11 Alexei Podtelezhnikov <apodtele@gmail.com>
  1376. [psaux] Signedness revisions.
  1377. Unsigned indexes are easier to check.
  1378. * src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Updated.
  1379. * src/psaux/psintrp.c (cf2_interpT2CharString): Ditto.
  1380. * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Ditto.
  1381. * src/type1/t1load.c (read_binary_data): Ditto.
  1382. 2021-10-11 Alexei Podtelezhnikov <apodtele@gmail.com>
  1383. [cid] Signedness revisions.
  1384. Unsigned checks are simpler.
  1385. * include/freetype/t1tables.h (CID_FaceInfoRec): Change to unsignd
  1386. `num_dicts`.
  1387. * src/cid/cidparse.h (CID_Parser): Change to unsigned `num_dict`.
  1388. * src/cid/cidgload.c (cid_load_glyph): Updated.
  1389. * src/cid/cidload.c (cid_load_keyword, parse_fd_array,
  1390. parse_expansion_factor, parse_font_name, cid_read_subrs,
  1391. cid_face_open): Updated.
  1392. * src/cid/cidobjs.c (cid_face_done): Updated.
  1393. * src/cid/cidparse.c (cid_parser_new): Updated.
  1394. 2021-10-09 Alexei Podtelezhnikov <apodtele@gmail.com>
  1395. * src/cid/cidload.c (cid_face_open): Streamline CIDCount check.
  1396. 2021-10-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  1397. * src/cid/cidload.c (cid_face_open): Streamline SubrCount check.
  1398. 2021-10-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  1399. * src/cid/cidgload.c (cid_load_glyph): Fortify incremental loading.
  1400. 2021-10-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  1401. Signedness revisions.
  1402. This eliminates explicit casting by switching to unsigned fields.
  1403. The revisions mostly impact the handling of CID fonts.
  1404. * include/freetype/fttypes.h (FT_Data): Change to unsigned `length`.
  1405. * include/freetype/t1tables.h (CID_FaceDictRec): Ditto for `sd_bytes`.
  1406. (CID_FaceInfoRec): Ditto for `gd_bytes` and `gd_bytes`.
  1407. * include/freetype/internal/tttypes.h (TT_LoaderRec): Ditto for
  1408. `byte_len`.
  1409. * src/cid/cidgload.c (cid_load_glyph): Updated.
  1410. * src/cid/cidload.h (cid_get_offset): Update argument.
  1411. * src/cid/cidload.c (cid_get_offset, cid_read_subrs, cid_face_open):
  1412. Updated.
  1413. * src/cff/cffgload.c (cff_get_glyph_data, cff_free_glyph_data):
  1414. Updated.
  1415. * src/psaux/psft.c (cf2_getT1SeacComponent): Updated.
  1416. * src/truetype/ttgload.c (TT_Process_Composite_Glyph,
  1417. load_truetype_glyph): Updated.
  1418. 2021-10-07 Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
  1419. meson.build (gen_docs): Use `current_source_dir` instead of `source_root`.
  1420. These two are not equal when FreeType is used as a subproject, such as in
  1421. `freetype-demos`. In that case, `source_root` points at the root project,
  1422. causing the docs build to fail.
  1423. 2021-10-05 Alexei Podtelezhnikov <apodtele@gmail.com>
  1424. * src/smooth/ftgrays.c (FT_DIV_MOD): Limit the ARM workaround.
  1425. 2021-10-05 Alexei Podtelezhnikov <apodtele@gmail.com>
  1426. [builds/unix, builds/vms] Standardize `mmap` failure.
  1427. * builds/unix/ftsystem.c (FT_Stream_Open): Check for MAP_FAILED.
  1428. * builds/vms/ftsystem.c (FT_Stream_Open): Ditto.
  1429. This should cover https://savannah.nongnu.org/patch/?5909 as well.
  1430. 2021-10-05 Hugh McMaster <hugh.mcmaster@outlook.com>
  1431. autogen.sh: Only copy submodules if building from a git branch.
  1432. `autogen.sh` fails if building from a standard source tarball. Firstly, git
  1433. expects to be called in a git repository, then `copy_submodule_files`
  1434. blindly attempts to copy files.
  1435. Debian, Ubuntu, Linux Mint, and other derivatives all run `autogen.sh`
  1436. before compiling to regenerate build files.
  1437. This patch ensures that various git commands are only called and 'dlg' files
  1438. are only copied if `autogen.sh` is called from a git repository.
  1439. 2021-10-05 Alexei Podtelezhnikov <apodtele@gmail.com>
  1440. * include/freetype/internal/ftgloadr.h: Add missing header.
  1441. Noticed by Jouk Jansen.
  1442. 2021-10-05 Alexei Podtelezhnikov <apodtele@gmail.com>
  1443. [pshinter] Additional clean-ups.
  1444. * src/pshinter/pshalgo.h (psh_hint_table_find_strong_points): Streamline code.
  1445. * src/pshinter/pshalgo.h (PSH_Glyph): Remove unused fields.
  1446. 2021-10-04 Alexei Podtelezhnikov <apodtele@gmail.com>
  1447. [pshinter] More convenient direction definition.
  1448. It is easier to check directions using flags than integer values.
  1449. * src/pshinter/pshalgo.h (PSH_Dir): Redefine directions.
  1450. (PSH_PointRec): Use them as an enum type.
  1451. * src/pshinter/pshalgo.c (psh_compute_dir): Modify return type.
  1452. (psh_glyph_init, psh_hint_table_find_strong_points,
  1453. psh_glyph_find_blue_points): Update users.
  1454. 2021-10-04 Alexei Podtelezhnikov <apodtele@gmail.com>
  1455. [pshinter] Remove unnecessary check.
  1456. * src/pshinter/pshalgo.c (psh_hint_table_find_strong_points): Do not
  1457. check if direction is defined before checking how.
  1458. 2021-10-02 AnuthaDev <anuthadev@gmail.com>
  1459. CI: Hardcode meson version to fix build failure on windows
  1460. 2021-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
  1461. Additional `FT_MSB` macro definitions.
  1462. * include/freetype/internal/ftcalc.h [__DECC,_CRAYC]: Use builtins
  1463. and intrinsics.
  1464. 2021-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
  1465. * src/autofit/afhints.c (af_glyph_hints_reload): Decrease casting.
  1466. 2021-09-30 Alexei Podtelezhnikov <apodtele@gmail.com>
  1467. * src/tools/apinames.c: Facilitate OpenVMS linker options.
  1468. 2021-09-29 Alexei Podtelezhnikov <apodtele@gmail.com>
  1469. * src/winfonts/winfnt.c (FNT_Face_Init): Correct reallocation.
  1470. 2021-09-25 Alexei Podtelezhnikov <apodtele@gmail.com>
  1471. [builds/unix] Do not use autoconf SIZEOF.
  1472. * builds/unix/ftconfig.h.in [FT_USE_AUTOCONF_SIZEOF_TYPES]: Removed.
  1473. * builds/unix/configure.raw: Remove AC_CHECK_SIZEOF and update.
  1474. After this commit, autoconf builds will fully rely on <limits.h>
  1475. rather than falling back on it if AC_CHECK_SIZEOF failed for some
  1476. reason. There is a risk that misconfigured cross-compilation might
  1477. have wrong headers. Note that Meson and CMake builds always relied on
  1478. <limits.h> for sizes and availability of integer types.
  1479. 2021-09-25 Alexei Podtelezhnikov <apodtele@gmail.com>
  1480. Propagate sign when reading OFF3.
  1481. Signed 24-bit values are extremely rare. FreeType only reads them in
  1482. PFR fonts with bitmap strikes conditionally. They have not been seen
  1483. in the known fonts. That is why this bug could never be discovered.
  1484. `FT_FRAME_OFF3` propagates sign correctly.
  1485. * include/freetype/internal/ftstream.h (FT_PEEK_OFF3, FT_PEEK_OFF3_LE):
  1486. Propagate sign into 32-bit value.
  1487. (FT_GET_OFF3, FT_READ_OFF3): Needed fixing but removed as unused.
  1488. 2021-09-25 Alexei Podtelezhnikov <apodtele@gmail.com>
  1489. [bdf] Simplify comment collection or lack thereof.
  1490. BDF comments are neither actually collected nor retrieved. There is
  1491. no need to be fancy with delimiters.
  1492. * src/bdf/bdflib.c (_add_bdf_comment): Delimit comments with zeros...
  1493. (bdf_load_font): ...and do not null-terminate comments additionally.
  1494. (_bdf_parse_glyphs): Check if comments are kept, which they are not.
  1495. (_bdf_parse_start): Minor clean up.
  1496. 2021-09-24 Alexei Podtelezhnikov <apodtele@gmail.com>
  1497. Use NULL for pointers only.
  1498. * src/bdf/bdflib.c (*): Code changes.
  1499. * include/freetype/freetype.h: Comments only.
  1500. * src/cff/cffload.c, src/cff/cffobjs.c: Ditto.
  1501. * src/winfonts/winfnt.c: Ditto.
  1502. 2021-09-23 Werner Lemberg <wl@gnu.org>
  1503. Minor documentation fixes and improvements.
  1504. 2021-09-23 Alexei Podtelezhnikov <apodtele@gmail.com>
  1505. Reference `fopen` in the docs.
  1506. 2021-09-23 Alexei Podtelezhnikov <apodtele@gmail.com>
  1507. [bdf, pcf] Minor optimization.
  1508. * src/pcf/pcfread.c (pcf_load_font): Do not call `FT_MulDiv` for a
  1509. small job.
  1510. * src/bdf/bdfdrivr.c (BDF_Face_Init): Ditto.
  1511. * src/bdf/bdflib.c (_bdf_parse_glyphs): Fix a comment.
  1512. 2021-09-22 Alexei Podtelezhnikov <apodtele@gmail.com>
  1513. [base] Initialize stream memory earlier.
  1514. With Windows memory management tracking heap, it is important to use
  1515. it during the stream opening fallback. In Unix, the argument is
  1516. unused, but it is better to set it correctly.
  1517. * src/base/ftobjs.c (FT_Stream_New): Set memory before calling
  1518. `FT_Stream_Open`.
  1519. * builds/windows/ftsystem.c, builds/unix/ftsystem.c (FT_Stream_Open,
  1520. ft_close_stream_by_free): Call `ft_alloc` and `ft_free` with proper
  1521. memory argumment.
  1522. 2021-09-22 Alexei Podtelezhnikov <apodtele@gmail.com>
  1523. [builds/windows] Revert back to `CreateFileA` only.
  1524. Calling `CreateFileW` without making sure that the patname is really
  1525. `wchar_t` is a bad idea and can lead to unpredictable overreads. For
  1526. Windows CE, we impelemnt the missing API.
  1527. Fixes #1098 and !76 again.
  1528. * builds/windows/ftsystem.c (FT_Stream_Open): Call `CreateFileA`.
  1529. [_WIN32_WCE] (CreateFileA, FileSizeEx): Implement missing interfaces.
  1530. 2021-09-21 Alexei Podtelezhnikov <apodtele@gmail.com>
  1531. * src/bdf/bdflib.c (_bdf_parse_{start,glyphs}): Use appropriate scanner.
  1532. 2021-09-21 Alexei Podtelezhnikov <apodtele@gmail.com>
  1533. Minor.
  1534. 2021-09-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  1535. * src/cff/cffdrivr.c (cff_ps_get_font_{info,extra}): Use FT_QNEW.
  1536. 2021-09-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  1537. [cache] Minor clean-ups.
  1538. * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Remove parantheses.
  1539. * src/cache/ftccache.c (FTC_Cache_Lookup): Ditto.
  1540. (FTC_Cache_RemoveFaceID): Remove unnecessary variable.
  1541. 2021-09-17 Alexei Podtelezhnikov <apodtele@gmail.com>
  1542. [builds/windows] Try both wide and narrow `CreateFile`
  1543. Windows handles wchar_t* UTF-16 and char* ANSI (presently UTF-8)
  1544. filenames using alternative -A and -W API. We'll try them both
  1545. when opening a file. This means that you should not worry about
  1546. about conversions.
  1547. Fixes #1098 and !76.
  1548. * builds/windows/ftsystem.c (FT_Stream_Open): Call alternative
  1549. `CreateFile` in the case of failure.
  1550. 2021-09-17 Edwin Steiner <edwin.steiner@gmail.com>
  1551. [cff] Explicitly set StandardEncoding or ExpertEncoding offsets.
  1552. Fixes #1097.
  1553. * src/cff/cffload.c (cff_encoding_load): Set special offset values.
  1554. 2021-09-16 Alexei Podtelezhnikov <apodtele@gmail.com>
  1555. [cache] Miscellaneous clean-ups.
  1556. * src/cache/ftccache.c (ftc_get_top_node_for_hash, FTC_Cache_Clear):
  1557. Remove barely used variables.
  1558. (ftc_cache_add): Adjust casting.
  1559. * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Remove casting.
  1560. * src/cache/ftcsbits.c (ftc_snode_load): Remove casting.
  1561. 2021-09-16 Alexei Podtelezhnikov <apodtele@gmail.com>
  1562. * src/cff/cffload.c (cff_fd_select_get): Remove casting.
  1563. 2021-09-16 Alexei Podtelezhnikov <apodtele@gmail.com>
  1564. * src/pcf/pcfread.c (pcf_read_TOC): Remove casting.
  1565. 2021-09-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  1566. Minor type adjustments.
  1567. * src/cff/cffobjs.c (cff_face_init): Reduce casting.
  1568. * src/truetype/ttobjs.c (tt_size_ready_bytecode): Ditto.
  1569. * src/type1/t1load.c (T1_Set_MM_Design): Ditto.
  1570. 2021-09-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  1571. Replace boolean allocation macros with MEM ones.
  1572. * src/base/ftbitmap.c (FT_Bitmap_Copy): Use MEM-macro.
  1573. * src/base/ftobjs.c (ft_glyphslot_alloc_bitmap): Ditto.
  1574. * src/bzip2/ftbzip2.c (ft_bzip2_alloc): Ditto.
  1575. * src/cache/ftccache.c (ftc_cache_init): Ditto
  1576. * src/gzip/ftgzip.c (ft_gzip_alloc): Ditto.
  1577. * src/psnames/psmodule.c (ps_unicodes_init): Ditto.
  1578. * src/sfnt/sfobjs.c (sfnt_load_face): Ditto.
  1579. * src/sfnt/ttload.c (tt_face_load_name): Ditto.
  1580. 2021-09-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  1581. [cache] Revert to some zeroing.
  1582. * src/cache/ftccache.c (ftc_cache_init, ftc_cache_resize): Zero
  1583. `buckets` again to fix some crashes.
  1584. 2021-09-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  1585. * src/pshinter/pshrec.c (ps_mask_table_merge_all): Tweak loops.
  1586. Fixes fallout from 731d0b685685 reported as
  1587. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38685
  1588. 2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
  1589. [cff, pshinter] Clean up unsigned counters.
  1590. Loops with unsigned decrement can be reliably stopped when the counter
  1591. wraps around after reaching zero.
  1592. * src/cff/cffload.c (cff_charset_compute_cids): Use unsigned counter.
  1593. * src/pshinter/pshalgo.c (psh_hint_table_activate_mask): Ditto.
  1594. * src/pshinter/pshrec.c (ps_mask_table_merge): Ditto.
  1595. 2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
  1596. [bdf, psnames, sfnt] Avoid some memory zeroing.
  1597. * src/bdf/bdfdrivr.c (BDF_Face_Init): Use Q-macro.
  1598. * src/sfnt/sfobjs.c (sfnt_load_face): Ditto.
  1599. * src/psnames/psmodule.c (src/psnames/psmodule.c): Remove zero.
  1600. 2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
  1601. * src/base/ftobjs.c (FT_CMap_New): Revert to zeroing.
  1602. Fixes fallout from c1fa7aa2bc96, reported as
  1603. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38641
  1604. 2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
  1605. [truetype] Clean up `exec` initialization.
  1606. * src/truetype/ttinterp.c (Init_Context): Absorbed into...
  1607. (TT_New_Context): ... this function.
  1608. 2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
  1609. [truetype] Avoid some memory zeroing.
  1610. * src/truetype/ttgload.c (load_truetype_glyph): Use Q-macro.
  1611. * src/truetype/ttinterp.c (Update_Max): Ditto.
  1612. * src/truetype/ttpload.c (src/truetype/ttpload.c): Ditto.
  1613. 2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
  1614. [base] Avoid some memory zeroing.
  1615. * src/base/ftobjs.c (FT_New_Size, FT_CMap_New, FT_CMap_Done,
  1616. ft_open_face_internal, ft_open_face_internal): Use Q-macros.
  1617. 2021-09-13 Alexei Podtelezhnikov <apodtele@gmail.com>
  1618. [cache, psaux] Remove zeros.
  1619. * src/cache/ftcmru.c (FTC_MruList_New): Remove initialization.
  1620. * src/psaux/psstack.c (cf2_stack_init): Ditto.
  1621. 2021-09-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  1622. [cache] Avoid some memory zeroing.
  1623. * src/cache/ftcmru.c (FTC_MruList_New): Use Q-macro.
  1624. * src/cache/ftcmanag.c (FTC_Manager_RegisterCache): Ditto.
  1625. * src/cache/ftccache.c (ftc_cache_init, ftc_cache_resize): Ditto.
  1626. 2021-09-11 Alexei Podtelezhnikov <apodtele@gmail.com>
  1627. * src/cache/ftcmanag.c (FTC_Manager_New): Add missing zero.
  1628. Fixes fall out from a7b199d081e7.
  1629. 2021-09-10 Alexei Podtelezhnikov <apodtele@gmail.com>
  1630. [truetype] Tweak `hdmx` checking.
  1631. Fixes #1096.
  1632. * src/truetype/ttpload.c (tt_face_load_hdmx): Account for padding.
  1633. 2021-09-10 Alexei Podtelezhnikov <apodtele@gmail.com>
  1634. [truetype] Tweak `loca` clamping.
  1635. Fixes #1095.
  1636. * src/truetype/ttpload.c (tt_face_load_loca): Fix up clamping.
  1637. * include/freetype/internal/tttypes.h (TT_Face): Correct docs.
  1638. 2021-09-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  1639. Fortify memory debugging (cont'd).
  1640. * src/base/ftdbgmem.c (FT_DumpMemory): Check for active debugger.
  1641. (ft_mem_table_destroy): Move `FT_DumpMemory` call from here...
  1642. (ft_mem_debug_done): ... to here.
  1643. 2021-09-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  1644. Fortify memory debugging.
  1645. These changes are neccessary to properly recover `memory->user` that
  1646. holds the Windows heap handle now.
  1647. * src/base/ftdbgmem.c (ft_mem_debug_init): Handle all table allocations,
  1648. initializations, and sizing instead of...
  1649. (ft_mem_table_new): ... this function removed.
  1650. (ft_mem_debug_done): Better check for the active debugger and free the
  1651. debugger table here instead of...
  1652. (ft_mem_table_destroy): ... here.
  1653. 2021-09-08 Werner Lemberg <wl@gnu.org>
  1654. src/tools/ftrandom/ftrandom.c (_XOPEN_SOURCE): Set to 600.
  1655. This allows C99 compilation on Solaris.
  1656. Problem reported by Mojca Miklavec.
  1657. 2021-09-07 Alexei Podtelezhnikov <apodtele@gmail.com>
  1658. [builds/windows] Use native memory allocation API.
  1659. * builds/windows/ftsystem.c (ft_alloc, ft_realloc, ft_free):
  1660. Wrap HeapAlloc, HeapReAlloc, and HeapFree.
  1661. (FT_New_Memory): Set the heap handle.
  1662. 2021-09-07 Werner Lemberg <wl@gnu.org>
  1663. [dlg] Synchronize with upstream.
  1664. * src/dlg/dlgwrap.c (_XOPEN_SOURCE): Set to 600.
  1665. Fixes #1093.
  1666. 2021-09-04 Alexei Podtelezhnikov <apodtele@gmail.com>
  1667. Cosmetic zeros.
  1668. 2021-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
  1669. * src/bdf/bdflib.c (_bdf_parse_start): Keep parser memory.
  1670. 2021-09-03 Werner Lemberg <wl@gnu.org>
  1671. autogen.sh: Make it work with old Solaris 10 shell.
  1672. 2021-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
  1673. [smooth, raster, sdf] Clean up initialization calls.
  1674. * src/raster/ftraster.c (ft_black_init): Removed.
  1675. (ft_black_new): Clean up.
  1676. * src/sdf/ftbsdf.c (bsdf_raster_new): Ditto.
  1677. * src/sdf/ftsdf.c (sdf_raster_new): Ditto.
  1678. * src/smooth/ftgrays.c (gray_raster_new): Ditto.
  1679. 2021-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
  1680. * src/cache/ftcmanag.c (FTC_Manager_New): Avoid some zeroing.
  1681. 2021-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
  1682. * src/bdf/bdflib.c (bdf_load_font): Remove memory shuffling.
  1683. 2021-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
  1684. Cosmetic zeros.
  1685. 2021-09-02 Alexei Podtelezhnikov <apodtele@gmail.com>
  1686. [base] Clean up stream reading.
  1687. * src/base/ftstream.c (FT_Stream_ReadUShort, FT_Stream_ReadUOffset,
  1688. FT_Stream_ReadULong and their LE variants): Remove unnecessary
  1689. initialization and slightly refactor.
  1690. (FT_Stream_GetByte, FT_Stream_ReadByte): Rename to return unsigned
  1691. value and align with sister functions.
  1692. * include/freetype/internal/ftstream.h (FT_Stream_GetByte,
  1693. FT_Stream_ReadByte): Update prototypes and caller macros.
  1694. 2021-09-02 Alexei Podtelezhnikov <apodtele@gmail.com>
  1695. s/0/NULL/ where appropriate.
  1696. 2021-08-30 Alexei Podtelezhnikov <apodtele@gmail.com>
  1697. * builds/windows/ftsystem.c (FT_Stream_Open): Fix double-close.
  1698. 2021-08-30 Alexei Podtelezhnikov <apodtele@gmail.com>
  1699. [smooth] Reduce shift in multiply-shift optimization.
  1700. * src/smooth/ftgrays.c (FT_UDIVPREP, FT_UDIV): Reduce shift.
  1701. Smaller shifts that keep the division operands of FT_UDIVPREP within
  1702. 32 bits result in slightly faster divisions, which is noticeable in
  1703. the overall performance. The loss of precision is tolerable until the
  1704. divisors (the components dx and dy) approach 32 - PIXEL_BITS. With
  1705. PIXEL_BITS = 8, this corresponds to 65,000 pixels or the bitmap size
  1706. that we refuse to render anyway.
  1707. Using `ftbench -p -s60 -t5 -bc timesi.ttf`,
  1708. Before: 8.52 us/op
  1709. After: 8.32 us/op
  1710. 2021-08-28 Werner Lemberg <wl@gnu.org>
  1711. [truetype] Fix compilation if !TT_CONFIG_OPTION_BYTECODE_INTERPRETER.
  1712. * src/truetype/ttgxvar.c (tt_cvt_ready_iterator): Compile function
  1713. conditionally.
  1714. (tt_face_vary_cvt) [!TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Add code.
  1715. Fixes #1091.
  1716. 2021-08-27 Alexei Podtelezhnikov <apodtele@gmail.com>
  1717. [builds/windows] Revise SSE2 settings.
  1718. * builds/windows/vc2010/freetype.vcxproj [x64]: Remove explicit SSE2.
  1719. * builds/windows/visualc/freetype.vcproj [Win32]: Add explicit SSE2.
  1720. 2021-08-27 Ben Wagner <bungeman@chromium.org>
  1721. [smooth] Detect SSE2 with MSVC for x86
  1722. MSVC does not set `__SSE2__`. Instead one must check whether `_M_IX86_FP` is
  1723. defined and greater than or equal to 2.
  1724. * src/smooth/ftgrays.c (FT_SSE2): New macro.
  1725. Use it where appropriate.
  1726. 2021-08-26 Alexei Podtelezhnikov <apodtele@gmail.com>
  1727. Expand comment (cont'd).
  1728. 2021-08-26 Alexei Podtelezhnikov <apodtele@gmail.com>
  1729. Expand comment.
  1730. 2021-08-24 Alexei Podtelezhnikov <apodtele@gmail.com>
  1731. * src/smooth/ftgrays.c (gray_render_conic): Refactor redundancy.
  1732. 2021-08-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1733. [truetype] Fix for the family name shorter than 8 characters.
  1734. * src/truetype/ttobjs.c (tt_skip_pdffont_random_tag):
  1735. If the family name to be checked is shorter than 8 characters,
  1736. do not check its syntax.
  1737. 2021-08-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1738. [truetype] Simplify `trick_names'.
  1739. * src/truetype/ttobjs.c (tt_check_trickyness_family): For the case
  1740. that the beginning part of a long tricky family name is already
  1741. registered as another tricky family name, no need to double-check
  1742. the longer one. Such long tricky family names are removed from
  1743. the `trick_names'.
  1744. 2021-08-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1745. [truetype] Add 2 tricky font names.
  1746. Additional fix for the issue #1087.
  1747. * src/truetype/ttobjs.c (tt_check_trickyness_family): Add 2 tricky
  1748. font names reported in #1087.
  1749. 2021-08-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1750. [truetype] New function to skip the randomization tag.
  1751. * src/truetype/ttobjs.c (tt_skip_pdffont_random_tag):
  1752. New function to skip the randomization tag in the names of the
  1753. fonts embedded in a PDF. It is used by tt_check_trickyness_family(),
  1754. to keep from mistaking "DLC" in the randomization tag as a
  1755. tricky font name. See discussion in:
  1756. https://lists.nongnu.org/archive/html/freetype-devel/2021-02/msg00002.html
  1757. For technical detail about the randomization tag, please find
  1758. PDF Reference 5.5.3 "Font Subsets". Thanks to Justyna Wawrzynska
  1759. for pointing out the issue caused by the randomization tag.
  1760. 2021-08-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1761. [truetype] Add checksums for 2 tricky fonts.
  1762. Thanks to Ting717 for providing sample PDF. Fixes #1087.
  1763. * src/truetype/ttobjs.c (tt_check_trickyness_sfnt_ids): Add
  1764. checksums for 2 tricky fonts `DFHei-Bd-WIN-HK-BF' and
  1765. `DFMing-Md-WIN-HK-BF'.
  1766. 2021-08-23 Alexei Podtelezhnikov <apodtele@gmail.com>
  1767. Whitespace formatting.
  1768. 2021-08-22 Alexei Podtelezhnikov <apodtele@gmail.com>
  1769. Decorate const arguments.
  1770. * src/base/ftglyph.c (FT_Glyph_Transform, FT_Glyph_To_Bitmap): Do it.
  1771. * include/freetype/ftglyph.h (FT_Glyph_Transform, FT_Glyph_To_Bitmap):
  1772. Do it.
  1773. 2021-08-21 Alexei Podtelezhnikov <apodtele@gmail.com>
  1774. [smooth] Clean up the null cell usage.
  1775. Put the null cell at the end of the pool and store it explicitly so that
  1776. we can use it as both the limit and the dumpster.
  1777. * src/smooth/ftgrays.c (gray_TWorker): Store the last `cell_null` and
  1778. remove unnecesary fields.
  1779. (NULL_CELL_PTR, CELL_IS_NULL): Remove in favor of explicit `cell_null`.
  1780. (gray_dump_cells, gray_set_cell, gray_sweep{,_direct}): Update callers.
  1781. (gray_convert_glyph_inner): Trace remaining cells (oh well).
  1782. (gray_convert_glyph): Set up `cell_null` and slightly improve the pool
  1783. management.
  1784. 2021-08-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  1785. [base] Restore quiet no-op rendering of bitmap glyphs.
  1786. Fixes #1076.
  1787. * src/base/ftobjs.c (FT_Render_Glyph_Internal): Discard an error when
  1788. rendering a bitmap glyph.
  1789. 2021-08-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  1790. [smooth] Fortify 64-bit algorithm.
  1791. * src/smooth/ftgrays.c (FT_UDIVPREP, FT_UDIV): s/long/FT_Int64/ and
  1792. s/unsigned long/FT_UInt64/.
  1793. (gray_render_line): Adjust a critical variable type.
  1794. 2021-08-20 Carlo Bramini <carlo.bramix@libero.it>
  1795. * builds/windows/ftsystem.c (FT_Stream_Open): Support legacy Windows.
  1796. 2021-08-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  1797. Determine `long long` availability based on its size.
  1798. MSVC, for example, used `long long` even without full C99 support.
  1799. * include/freetype/config/ftstdlib.h: Check if `long long` limits are
  1800. defined in <limits.h>.
  1801. * include/freetype/config/integer-types.h: Check `long long` size and
  1802. use it to typedef FT_Int64.
  1803. 2021-08-19 Dominik Röttsches <drott@chromium.org>
  1804. [sfnt] Fix format expectation for `COLR` v1 ClipList
  1805. * src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Change ClipList
  1806. format expectation to 1 instead of 0 to make it compliant with the
  1807. latest spec.
  1808. 2021-08-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  1809. Readily use `long long` as a 64-bit type in C99 mode.
  1810. * include/freetype/config/integer-types.h (FT_INT64):
  1811. FT_CONFIG_OPTION_FORCE_INT64 is no longer required to use `long long`.
  1812. 2021-08-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  1813. Use FT_INT64 instead of FT_LONG64.
  1814. * include/freetype/config/integer-types.h: Remove synonymous FT_LONG64.
  1815. * include/freetype/internal/ftcalc.h: s/FT_LONG64/FT_INT64/.
  1816. * src/base/ftcalc.c: Ditto.
  1817. * src/base/fttrigon.c: Ditto.
  1818. * src/smooth/ftgrays.c: Ditto.
  1819. 2021-08-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  1820. [builds/windows] Do not set CharacterSet for VC++.
  1821. * builds/windows/vc2010/freetype.vcxproj: s/Unicode/NotSet/.
  1822. * builds/windows/visualc/freetype.vcproj: s/"1"/"0"/.
  1823. 2021-08-18 Werner Lemberg <wl@gnu.org>
  1824. * src/sdf/ftsdf.c (get_control_box): Fix compiler warning.
  1825. 2021-08-18 Werner Lemberg <wl@gnu.org>
  1826. [base] Fix ppem size overflow.
  1827. Fixes #1086.
  1828. * src/base/ftobjs.c (FT_Request_Metrics): Add return value.
  1829. Check whether ppem values fit into unsigned short values.
  1830. (FT_Request_Size): Updated.
  1831. * include/freetype/internal/ftobjs.h: Updated.
  1832. * src/cff/cffobjs.c (cff_size_request), src/cid/cidobjs.c
  1833. (cid_size_request), src/truetype/ttdriver.c (tt_size_request),
  1834. src/type1/t1objs.c (T1_Size_Request): Updated.
  1835. 2021-08-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  1836. * builds/windows/ftsystem.c (FT_Stream_Open): Cast to remove warning.
  1837. 2021-08-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  1838. * builds/windows/ftsystem.c (FT_Stream_Open): Support UNICODE compilation.
  1839. 2021-08-09 Werner Lemberg <wl@gnu.org>
  1840. * src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Minor fix.
  1841. 2021-08-09 Dominik Röttsches <drott@chromium.org>
  1842. [sfnt] Add missing blend mode 'plus' to 'COLR' v1.
  1843. * include/freetype/ftcolor.h (FT_Composite_Mode): Add missing blend mode
  1844. 'plus' after it was added to the spec.
  1845. 2021-08-08 Werner Lemberg <wl@gnu.org>
  1846. include/freetype/freetype.h (FT_Encoding): Improve documentation.
  1847. Based on a suggestion by Antony Lee <anntzer.lee@gmail.com>.
  1848. 2021-08-07 Werner Lemberg <wl@gnu.org>
  1849. [smooth] Avoid integer overflow.
  1850. Reported as
  1851. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36243
  1852. * src/smooth/ftgrays.c(ADD_LONG, SUB_LONG, MUL_LONG, NEG_LONG)
  1853. [STANDALONE_]: Removed, unused.
  1854. (ADD_INT) [STANDALONE_]: New macro.
  1855. (FT_INTEGRATE): Use ADD_INT.
  1856. 2021-08-07 Dominik Röttsches <drott@chromium.org>
  1857. [sfnt] Add API for retrieving a 'COLR' v1 'ClipBox' table.
  1858. The optional 'COLR' v1 glyph-specific clip box helps upstream graphics
  1859. libraries allocate a sufficiently large bitmap for a glyph without having to
  1860. traverse the glyph graph for that. See
  1861. https://github.com/googlefonts/colr-gradients-spec/issues/251
  1862. for background on the introduction of this specification change.
  1863. * include/freetype/ftcolor.h (FT_ClipBox): New structure.
  1864. (FT_Get_Color_Glyph_ClipBox): New function declaration.
  1865. * include/freetype/internal/sfnt.h (TT_Get_Color_Glyph_ClipBox_Func):
  1866. New function type.
  1867. (SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Use it.
  1868. * src/base/ftobjs.c (FT_Get_Color_Glyph_ClipBox): New function to link API
  1869. with SFNT implementation.
  1870. * src/sfnt/sfdriver.c (sfnt_interface): Updated.
  1871. * src/sfnt/ttcolr.c (Colr): New field `clip_list`.
  1872. (tt_face_load_colr): Parse global clip list offset.
  1873. (tt_face_get_color_glyph_clipbox): New function to find the clip box for a
  1874. glyph id from the clip list array.
  1875. * src/sfnt/ttcolr.h: Updated.
  1876. 2021-08-06 Werner Lemberg <wl@gnu.org>
  1877. [smooth] Fix left shifts of negative numbers.
  1878. Reported as
  1879. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36241
  1880. * src/smooth/ftgrays.c (LEFT_SHIFT): New macro.
  1881. (gray_render_conic) [BEZIER_USE_DDA]: Use it.
  1882. 2021-08-02 Werner Lemberg <wl@gnu.org>
  1883. * meson.build: Fix zlib support.
  1884. This commit synchronizes zlib support with both autotools and cmake: If no
  1885. external zlib is found (or intentionally disabled on the command line), use
  1886. the internal zlib by undefining `FT_CONFIG_OPTION_SYSTEM_ZLIB` without
  1887. modifying `FT_CONFIG_OPTION_USE_ZLIB`.
  1888. Also improve summary output.
  1889. Problem reported by Moazin.
  1890. 2021-08-02 Anuj Verma <anujv@iitbhilai.ac.in>
  1891. [sdf] Fix out-of-range-access.
  1892. * src/sdf/ftbsdf.c (first_pass, second_pass): Fix range during forward pass.
  1893. Otherwise the index goes out of range for the last column.
  1894. Fixes issue #1077.
  1895. 2021-08-02 Anuj Verma <anujv@iitbhilai.ac.in>
  1896. Fix invalid memory access in `bsdf` rasterizer.
  1897. Do not generate SDF from bitmap if the `FT_GLYPH_OWN_BITMAP` flag is not
  1898. set. In some cases the bitmap buffer is freed but still points to a valid
  1899. address; to handle those cases check the flag before accessing the memory.
  1900. * src/sdf/ftsdfrend.c (ft_bsdf_render): Handle the above case.
  1901. Also, return an error message if the bitmap's rows/pitch is invalid,
  1902. otherwise `slot->buffer` might be assigned to some invalid memory location.
  1903. (ft_sdf_render): Same as above.
  1904. Plus, move the outline back to original state after rasterization and not if
  1905. any error occurs.
  1906. 2021-07-29 Heiko Becker <heirecka@exherbo.org>
  1907. * meson.build: Honor `--includedir` instead of hard-coding 'include'.
  1908. 2021-07-29 Werner Lemberg <wl@gnu.org>
  1909. src/sfnt/ttcolr.c: Minor formatting.
  1910. 2021-07-29 Dominik Röttsches <drott@chromium.org>
  1911. [sfnt] 'COLR' v1 PaintSweepGradient spec update
  1912. * src/sfnt/ttcolr.c (read_paint): PaintSweepGradient follows other
  1913. spec changes and now has the angles specified as F2DOT14, reflect
  1914. that in the implementation.
  1915. * include/freetype/ftcolor.h (FT_PaintSweepGradient): Update
  1916. documentation.
  1917. 2021-07-29 Dominik Röttsches <drott@chromium.org>
  1918. [sfnt] Retrieve affine matrix from offset in 'COLR' v1 parsing.
  1919. * src/sfnt/ttcolr.c (read_paint): Implement spec change where
  1920. affine transform matrix is now referenced by offset instead of
  1921. being placed inline in the PaintTransform table.
  1922. 2021-07-29 Dominik Röttsches <drott@chromium.org>
  1923. [sfnt] 'COLR' v1 PaintSkew related spec updates
  1924. * src/sfnt/ttcolr.c (read_paint): Implement spec changes around
  1925. PaintSkew, PaintSkewAroundCenter. Update parsing to read shorter
  1926. values as changed in the spec.
  1927. * include/freetype/ftcolor.h (FT_PaintSkew): Update documentation.
  1928. 2021-07-29 Dominik Röttsches <drott@chromium.org>
  1929. [sfnt] PaintRotate/PaintRotateAroundCenter spec updates
  1930. * src/sfnt/ttcolr.c (read_paint): Implement spec change where
  1931. PaintRotate and PaintRotateAroundCenter were split for a more
  1932. compact format definition. Update parsing to read shorter values
  1933. as changed in the spec.
  1934. * include/freetype/ftcolor.h (FT_PaintRotate): Update documentation.
  1935. 2021-07-29 Dominik Röttsches <drott@chromium.org>
  1936. [sfnt] 'COLR' v1 PaintTranslate and PaintScale precision
  1937. * src/sfnt/ttcolr.c (read_paint): Implement spec changes in
  1938. PaintTranslate and PaintScale and friends. Update parsing to read
  1939. new shorter values.
  1940. 2021-07-29 AnuthaDev <anuthadev@gmail.com>
  1941. README.git: Add Code of Conduct.
  1942. 2021-07-25 Werner Lemberg <wl@gnu.org>
  1943. ChangeLog housekeeping.
  1944. Archive old `ChangeLog` file.
  1945. We no longer write ChangeLog entries manually; instead, the file will be
  1946. created from commit messages (which should be formatted in GNU's ChangeLog
  1947. style) by a call to
  1948. gitlog-to-changelog --format='%B%n'
  1949. or something similar (this script is part of the 'gnulib' repository).
  1950. 2021-07-24 Werner Lemberg <wl@gnu.org>
  1951. Fix some `cppcheck` warnings.
  1952. * src/bzip2/ftbzip2.c (ft_bzip2_file_skip_output), src/gzip/ftgzip.c
  1953. (ft_gzip_file_skip_output): Reduce scope of `delta`.
  1954. * src/psaux/psintrp.c, src/psaux/psintrp.h (cf2_interpT2CharString): Add
  1955. `const` to `buf` parameter.
  1956. * src/raster/ftraster.c (DelOld): Add `const` to `profile` parameter.
  1957. (Vertical_Sweep_Span): Reduce scope of `target`.
  1958. (FT_Outline_Get_CBox): Reduce scope of `xMin`, `xMax`, `yMin`, `yMax`.
  1959. * src/smooth/ftgrays.c (gray_render_conic): Reduce scope of `split`.
  1960. (gray_sweep, gray_sweep_direct): Reduce scope of `area`.
  1961. * src/tools/apinames.c (names_dump) <OUTPUT_WATCOM_LBC>: Reduce scope of
  1962. `temp`.
  1963. 2021-07-24 AnuthaDev <anuthadev@gmail.com>
  1964. * .gitlab-ci.yml: Fixed cmake build, using correct options.
  1965. 2021-07-24 AnuthaDev <anuthadev@gmail.com>
  1966. * CMakeLists.txt: Make `cmake` handle disabled dependencies correctly.
  1967. Include 'CMakeDependentOption'.
  1968. Replace `FT_WITH_XXX` options with `FT_DISABLE_XXX` and `FT_REQUIRE_XXX`
  1969. pairs. Update option logic accordingly.
  1970. Fixes #1066.
  1971. 2021-07-24 Ben Wagner <bungeman@chromium.org>
  1972. [autofit] Split `afwrtsys.h`.
  1973. The header file `afwrtsys.h` has two distinct functions: to include the
  1974. required writing system headers and also to generate code for each writing
  1975. system. At each current use site only one or the other is used, with
  1976. various macro trickery selecting one or the other. Split this header into
  1977. `afws-decl.h` for the required writing system declarations and `afws-iter.h`
  1978. for iterating over the writing systems to generate code.
  1979. The motivation for this change is that the Visual C++ compiler treats the
  1980. standard include guard idiom like `#pragma once` 'if no non-comment code or
  1981. preprocessor directive comes before or after the standard form of the
  1982. idiom'. It appears to check this after macro expansion, so if
  1983. `WRITING_SYSTEM` expands to empty the bottom of `afwrtsys.h` is empty and
  1984. looks like the standard include guard idiom which is treated like `#pragma
  1985. once`, so subsequent inclusion of `afwrtsys.h` is elided.
  1986. Fixes #1075.
  1987. * src/autofit/afglobal.c (af_writing_system_classes), src/autofit/aftypes.h
  1988. (AF_WritingSystem), src/autofit/rules.mk (AUTOF_DRV_H): Updated.
  1989. * src/autofit/afwrtsys.h: Split into...
  1990. * src/autofit/afws-decl.h, src/autofit/afws-iter.h: New files.