| 1 |
2026-03-22 Werner Lemberg <[email protected]> |
| 2 |
|
| 3 |
* Version 2.14.3 released. |
| 4 |
========================== |
| 5 |
|
| 6 |
Tag sources with `VER-2-14-3'. |
| 7 |
|
| 8 |
* docs/VERSION.TXT: Add entry for version 2.14.3. |
| 9 |
* docs/CHANGES: Updated. |
| 10 |
* docs/release, docs/README, builds/macs/README: Updated. |
| 11 |
|
| 12 |
* README, src/base/ftver.rc, builds/windows/vc2010/index.html, |
| 13 |
builds/windows/visualc/index.html, builds/windows/visualce/index.html, |
| 14 |
builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html, |
| 15 |
docs/freetype-config.1: s/2.14.2/2.14.3/, s/2142/2143/. |
| 16 |
|
| 17 |
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 3. |
| 18 |
|
| 19 |
* builds/unix/configure.raw (version_info): Set to 26:6:20. |
| 20 |
* CMakeLists.txt (VERSION_PATCH): Set to 3. |
| 21 |
|
| 22 |
2026-03-22 Werner Lemberg <[email protected]> |
| 23 |
|
| 24 |
* subprojects/harfbuzz.wrap: Updated. |
| 25 |
|
| 26 |
2026-03-22 David Pokora <[email protected]> |
| 27 |
|
| 28 |
[psaux] Avoid stack overflow. |
| 29 |
|
| 30 |
* src/psaux/t1.decode.c (t1_decoder_parse_charstrings) [op_pop]: Check stack |
| 31 |
size. |
| 32 |
|
| 33 |
Fixes issue #1406. |
| 34 |
|
| 35 |
2026-03-22 Werner Lemberg <[email protected]> |
| 36 |
|
| 37 |
* src/psaux/t1decide.c (t1_decoder_parse_charstrings): Fix bounds check. |
| 38 |
|
| 39 |
During charstring processing, the `decoder->len_buildchar` field can be |
| 40 |
corrupted. Avoid this by caching this value in a local variable at function |
| 41 |
entry. |
| 42 |
|
| 43 |
Based on a patch submitted by David Pokora <[email protected]>. |
| 44 |
|
| 45 |
Fixes issue #1405. |
| 46 |
|
| 47 |
2026-03-20 Werner Lemberg <[email protected]> |
| 48 |
|
| 49 |
ttnameid.h: Minor documentation improvement. |
| 50 |
|
| 51 |
2026-03-20 Werner Lemberg <[email protected]> |
| 52 |
|
| 53 |
* src/sdf/ftsdf.c (sdf_generate_bounding_box): Fix thinko. |
| 54 |
|
| 55 |
Bug introduced in commit bda1d87f694dd. |
| 56 |
|
| 57 |
We would need an `FT_NEW_ARRAY_MULT` array... |
| 58 |
|
| 59 |
Reported as |
| 60 |
|
| 61 |
https://issues.oss-fuzz.com/issues/494362618 |
| 62 |
|
| 63 |
2026-03-19 Alexei Podtelezhnikov <[email protected]> |
| 64 |
|
| 65 |
[sfnt/COLRv0] Revise sanity checks. |
| 66 |
|
| 67 |
This re-implements 6d62076a and potentially fixes #1404. |
| 68 |
|
| 69 |
* src/sfnt/ttcolr.c (tt_face_get_colr_layer): Rely on validated total num_layers. |
| 70 |
|
| 71 |
2026-03-19 Alexei Podtelezhnikov <[email protected]> |
| 72 |
|
| 73 |
* src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix allocation. |
| 74 |
|
| 75 |
Fixes #1403, proposed by Chris Anderson. |
| 76 |
|
| 77 |
2026-03-18 Werner Lemberg <[email protected]> |
| 78 |
|
| 79 |
* src/sdf/ftsdf.c (sdf_generate_bounding_box): Fix allocation. |
| 80 |
|
| 81 |
Reported in |
| 82 |
|
| 83 |
https://mail.gnu.org/archive/html/freetype-devel/2026-02/msg00005.html |
| 84 |
|
| 85 |
2026-03-11 Werner Lemberg <[email protected]> |
| 86 |
|
| 87 |
Update all copyright notices. |
| 88 |
|
| 89 |
2026-03-10 Alexei Podtelezhnikov <[email protected]> |
| 90 |
|
| 91 |
.gitlab-ci.yml: Upgrade Windows pipelines. |
| 92 |
|
| 93 |
2026-03-10 Alexei Podtelezhnikov <[email protected]> |
| 94 |
|
| 95 |
[base] Reintroduce overall rendering limits. |
| 96 |
|
| 97 |
* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Limit absolute |
| 98 |
outline coordinnates to prevent integer issues downstream. |
| 99 |
|
| 100 |
2026-03-10 Alexei Podtelezhnikov <[email protected]> |
| 101 |
|
| 102 |
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Fix memory leak. |
| 103 |
|
| 104 |
This leak was introduced in 85c8efe0afa5ad by overlooking the |
| 105 |
direct `ft_bitmap_glyph_init` call (now gone). Fixes #1399, |
| 106 |
also reported earlier: |
| 107 |
https://issues.oss-fuzz.com/issues/482909897. |
| 108 |
|
| 109 |
2026-03-10 Alexei Podtelezhnikov <[email protected]> |
| 110 |
|
| 111 |
* src/raster/ftraster.c (Conic_To, Cubic_To): Avoid UB. |
| 112 |
|
| 113 |
Fixes #1396. |
| 114 |
|
| 115 |
2026-03-10 Alexei Podtelezhnikov <[email protected]> |
| 116 |
|
| 117 |
[stroker] Actually validate outlines. |
| 118 |
|
| 119 |
Fixes #1400. |
| 120 |
|
| 121 |
* src/base/ftstroke.c (FT_Glyph_Stroke): Check for `GetCount` error. |
| 122 |
(ft_stroke_border_get_counts): Actually return expected error. |
| 123 |
(FT_Glyph_Stroke): Minor. |
| 124 |
|
| 125 |
2026-03-09 Miguel Sousa <@miguelsousa> |
| 126 |
|
| 127 |
* src/sfnt/ttobjs.c (tt_size_init_bytecode): Be more generous. |
| 128 |
|
| 129 |
Fixes issue #1137. |
| 130 |
|
| 131 |
2026-03-09 Werner Lemberg <[email protected]> |
| 132 |
|
| 133 |
* src/sfnt/ttgpos.c (tt_face_load_gpos): Correctly release `gpos`. |
| 134 |
|
| 135 |
This is a follow-up to issue #1398. |
| 136 |
|
| 137 |
2026-03-09 Dominik Röttsches <[email protected]> |
| 138 |
|
| 139 |
[sfnt] Use array count in sanitization of `BaseGlyphPaintRecord` list. |
| 140 |
|
| 141 |
* src/sfnt/ttcolr.c (tt_face_load_colr): Compute correct length |
| 142 |
of `BaseGlyphPaintRecord` array size. |
| 143 |
|
| 144 |
Fixes issue #1397. |
| 145 |
|
| 146 |
2026-03-09 Werner Lemberg <[email protected]> |
| 147 |
|
| 148 |
* src/sfnt/ttgpos.c (tt_face_validate_pair_pos2): Correct limit check. |
| 149 |
|
| 150 |
Fixes issue #1398. |
| 151 |
|
| 152 |
2026-03-09 Werner Lemberg <[email protected]> |
| 153 |
|
| 154 |
* src/truetype/ttgload.c (load_truetype_glyph): Limit recursion. |
| 155 |
|
| 156 |
Fixes issue #1395. |
| 157 |
|
| 158 |
2026-03-08 Alexei Podtelezhnikov <[email protected]> |
| 159 |
|
| 160 |
* src/raster/ftraster.c (Set_High_Precision): Limit size. |
| 161 |
|
| 162 |
This should avoid integer overflows: |
| 163 |
https://issues.oss-fuzz.com/issues/490433932 |
| 164 |
https://issues.oss-fuzz.com/issues/490464129 |
| 165 |
|
| 166 |
2026-03-06 Werner Lemberg <[email protected]> |
| 167 |
|
| 168 |
[cid] Add boundary check in incremental interface. |
| 169 |
|
| 170 |
* src/cid/cidgload.c (cid_load_glyph) [FT_CONFIG_OPTION_INCREMENTAL]: |
| 171 |
Validate `fd_select`. |
| 172 |
|
| 173 |
Fixes issue #1394. |
| 174 |
|
| 175 |
2026-03-06 Werner Lemberg <[email protected]> |
| 176 |
|
| 177 |
* src/sfnt/ttgpos.c (tt_face_get_pair_pos1_kerning): Typo. |
| 178 |
|
| 179 |
This could lead to make FreeType miss some kerning pairs. |
| 180 |
|
| 181 |
Fixes issue #1393. |
| 182 |
|
| 183 |
2026-03-06 Werner Lemberg <[email protected]> |
| 184 |
|
| 185 |
* src/sfnt/ttgpos.c (tt_face_get_class): Fix range check. |
| 186 |
|
| 187 |
Fixes issue #1392. |
| 188 |
|
| 189 |
2026-03-06 Alexei Podtelezhnikov <[email protected]> |
| 190 |
|
| 191 |
[base] Adjust rendering limits. |
| 192 |
|
| 193 |
* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Check width and |
| 194 |
height directly. Fixes #1390. |
| 195 |
|
| 196 |
2026-03-03 Debbie Goldsmith <[email protected]> |
| 197 |
|
| 198 |
[truetype] Reject fonts without 'glyf' and 'loca' table. |
| 199 |
|
| 200 |
* src/truetype/ttobjs.c (tt_face_init): Add check. |
| 201 |
|
| 202 |
2026-03-03 Werner Lemberg <[email protected]> |
| 203 |
|
| 204 |
Minor whitespace. |
| 205 |
|
| 206 |
2026-03-03 Werner Lemberg <[email protected]> |
| 207 |
|
| 208 |
CMakeLists.txt: Formatting. |
| 209 |
|
| 210 |
2026-03-02 Werner Lemberg <[email protected]> |
| 211 |
|
| 212 |
* subprojects/*: Fix meson wrap files. |
| 213 |
|
| 214 |
2026-03-01 Werner Lemberg <[email protected]> |
| 215 |
|
| 216 |
* Version 2.14.2 released. |
| 217 |
========================== |
| 218 |
|
| 219 |
Tag sources with `VER-2-14-2'. |
| 220 |
|
| 221 |
* docs/VERSION.TXT: Add entry for version 2.14.2. |
| 222 |
* docs/CHANGES: Updated. |
| 223 |
* docs/release, docs/README, builds/macs/README: Updated. |
| 224 |
|
| 225 |
* README, src/base/ftver.rc, builds/windows/vc2010/index.html, |
| 226 |
builds/windows/visualc/index.html, builds/windows/visualce/index.html, |
| 227 |
builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html, |
| 228 |
docs/freetype-config.1: s/2.14.1/2.14.2/, s/2141/2142/. |
| 229 |
|
| 230 |
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 2. |
| 231 |
|
| 232 |
* builds/unix/configure.raw (version_info): Set to 26:5:20. |
| 233 |
* CMakeLists.txt (VERSION_PATCH): Set to 2. |
| 234 |
|
| 235 |
2026-03-01 Werner Lemberg <[email protected]> |
| 236 |
|
| 237 |
* subprojects/*.wrap: Updated. |
| 238 |
|
| 239 |
2026-03-01 Werner Lemberg <[email protected]> |
| 240 |
|
| 241 |
Very minor doc fixes. |
| 242 |
|
| 243 |
2026-02-23 Alexei Podtelezhnikov <[email protected]> |
| 244 |
|
| 245 |
[truetype] Clean up TT_Load_Context. |
| 246 |
|
| 247 |
* src/truetype/ttinterp.c (TT_Load_Context): Remove return type. |
| 248 |
* src/truetype/ttinterp.h (TT_Load_Context): Update signature. |
| 249 |
* src/truetype/ttobjs.c (tt_size_run_{fpgm,prep}): Update callers. |
| 250 |
* src/truetype/ttgload.c (tt_loader_init): Ditto. |
| 251 |
|
| 252 |
2026-02-21 Alexei Podtelezhnikov <[email protected]> |
| 253 |
|
| 254 |
[truetype] Use FT_QALLOC_MULT. |
| 255 |
|
| 256 |
* src/truetype/ttgxvar.c (tt_var_load_item_variation_store): Here. |
| 257 |
This call provides builtin overflow protection. See #1382. |
| 258 |
|
| 259 |
2026-02-21 Alexei Podtelezhnikov <[email protected]> |
| 260 |
|
| 261 |
* src/base/ftbitmap.c (FT_Bitmap_Blend): Use FT_ALLOC_MULT. |
| 262 |
|
| 263 |
This call is fortified with builtin overflow checks. |
| 264 |
|
| 265 |
2026-02-21 Alexei Podtelezhnikov <[email protected]> |
| 266 |
|
| 267 |
[sdf] Substitute allocation macros. |
| 268 |
|
| 269 |
* src/sdf/ftsdf.c (sdf_generate_bounding_box, |
| 270 |
sdf_generate_with_overlaps): Use more robust macros. |
| 271 |
|
| 272 |
2026-02-21 Alexei Podtelezhnikov <[email protected]> |
| 273 |
|
| 274 |
[base] Clean up bitmap allocations. |
| 275 |
|
| 276 |
* src/base/src/base/ftobjs.c (ft_glyphslot_alloc_bitmap): Use preset |
| 277 |
dimensions and call FT_MEM_ALLOC_MULT. |
| 278 |
* include/freetype/internal/ftobjs.h (ft_glyphslot_alloc_bitmap): |
| 279 |
Updated signature... |
| 280 |
* src/*: ... and all callers. |
| 281 |
|
| 282 |
2026-02-20 Alexei Podtelezhnikov <[email protected]> |
| 283 |
|
| 284 |
* src/sfnt/ttcolr.c (tt_face_colr_blend_layer): Use FT_ALLOC_MULT. |
| 285 |
|
| 286 |
Fixes #1389. The overflow is detected in ft_mem_qrealloc. |
| 287 |
|
| 288 |
2026-02-08 Alexei Podtelezhnikov <[email protected]> |
| 289 |
|
| 290 |
* src/base/ftglyph.c (ft_bitmap_glyph_init): Always copy in full. |
| 291 |
|
| 292 |
Other glyph formats never perform lazy copy. Fixes #1385. |
| 293 |
|
| 294 |
2026-02-07 Alexei Podtelezhnikov <[email protected]> |
| 295 |
|
| 296 |
* include/freetype/config/mac-support.h: Check for FT_MACINTOSH. |
| 297 |
|
| 298 |
Fixes warnings reported in !414. |
| 299 |
|
| 300 |
2026-02-04 Alexei Podtelezhnikov <[email protected]> |
| 301 |
|
| 302 |
[pshinter] Merge extrema and inflex analyses. |
| 303 |
|
| 304 |
Any point on the horizontal or vertical segment, which can either |
| 305 |
be either extreme or inflection point is now marked. This makes |
| 306 |
separate inflection algorithm unnecessary. This simplifies the |
| 307 |
algorithm without noticeable rendering differences. |
| 308 |
|
| 309 |
* src/pshinter/pshalgo.c (psh_glyph_compute_extrema): Rewrite |
| 310 |
to detect both extrema and inflection points. Determine the |
| 311 |
their direction instantly. |
| 312 |
|
| 313 |
2026-02-04 Alexei Podtelezhnikov <[email protected]> |
| 314 |
|
| 315 |
* src/sfnt/ttgpos.c (tt_face_validate_*): Fix check signedness. |
| 316 |
|
| 317 |
This is an alternative to !398 without signed -1. |
| 318 |
|
| 319 |
2026-01-28 Alexei Podtelezhnikov <[email protected]> |
| 320 |
|
| 321 |
* src/sfnt/sfwoff2.c (reconstruct_glyf): Revise variables. |
| 322 |
|
| 323 |
This should fix #1379 while resonstructing the code intent. |
| 324 |
|
| 325 |
2026-01-26 Alexei Podtelezhnikov <[email protected]> |
| 326 |
|
| 327 |
[base, smooth] Implement direct LCD filtering. |
| 328 |
|
| 329 |
Applying an LCD filter to spans rather than the entire image improves |
| 330 |
the performance of ClearType-like rendering by about 40% at 32 ppem |
| 331 |
and much more at larger sizes. Small rounding differences are expected. |
| 332 |
|
| 333 |
* src/smooth/ftsmooth.c (ft_smooth_raster_lcd, ft_smooth_lcd_spans, |
| 334 |
ft_smooth_raster_lcdv, ft_smooth_lcdv_spans, TOrigin): Implement it. |
| 335 |
* include/freetype/internal/ftobjs.h (FT_LibraryRec): lcd_filter_func gone. |
| 336 |
* src/base/ftlcdfil.c (ft_lcd_filter_fir): Removed. |
| 337 |
(ft_lcd_padding): Use padding sufficient for any 5-tap filter. |
| 338 |
(FT_Library_SetLcdFilterWeights, FT_Library_SetLcdFilter): Updated. |
| 339 |
* docs/CHANGES: Updated. |
| 340 |
|
| 341 |
2026-01-25 Alexei Podtelezhnikov <[email protected]> |
| 342 |
|
| 343 |
[base, smooth] Remove LCD filter from face properties. |
| 344 |
|
| 345 |
This removes the internal face property that sets the filtering weights. |
| 346 |
The global filtering algorithms and weights are now optimized to work |
| 347 |
well under all conditions. |
| 348 |
|
| 349 |
* include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Do it. |
| 350 |
* include/freetype/freetype.h (FT_Face_Properties): Revised docs. |
| 351 |
* include/freetype/ftparams.h (FT_PARAM_TAG_LCD_FILTER_WEIGHTS): Ditto. |
| 352 |
* src/base/ftlcdfil.c (ft_lcd_padding): Updated. |
| 353 |
* src/base/ftobjs.c (ft_open_face_internal, FT_Face_Properties): Ditto. |
| 354 |
* src/smooth/ftsmooth.c (ft_smooth_render): Ditto. |
| 355 |
* docs/CHANGES: Updated. |
| 356 |
|
| 357 |
2026-01-25 Alexei Podtelezhnikov <[email protected]> |
| 358 |
|
| 359 |
[base] Remove legacy LCD filter. |
| 360 |
|
| 361 |
* src/base/ftlcdfil.c (_ft_lcd_filter_legacy): Removed. |
| 362 |
(FT_Library_SetLcdFilter): Updated. |
| 363 |
* include/freetype/ftlcdfil.h (FT_LcdFilter): Updated. |
| 364 |
* doc/CHANGES: Updated. |
| 365 |
|
| 366 |
2026-01-22 Alexei Podtelezhnikov <[email protected]> |
| 367 |
|
| 368 |
* src/svg/ftsvg.c: Use FT_ALLOC_MULT. |
| 369 |
|
| 370 |
Fixes #1378. |
| 371 |
|
| 372 |
2026-01-19 Harish Raja Selvan <[email protected]> |
| 373 |
|
| 374 |
* .gitlab-ci.yml: Add MSBuild for ARM64. |
| 375 |
|
| 376 |
2026-01-18 Alexei Podtelezhnikov <[email protected]> |
| 377 |
|
| 378 |
[base, smooth] Fortify direct rendering. |
| 379 |
|
| 380 |
This is a better fix for #1384, which is rather about signed overflow. |
| 381 |
|
| 382 |
* include/freetype/ftimage.h (FT_Span): Use unsigned position. |
| 383 |
* src/smooth/ftgrays.c (gray_sweep_direct): Sync with FT_Span. |
| 384 |
* src/smooth/ftsmooth.c (ft_smooth_render): Remove redundant shift. |
| 385 |
* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Readjust limits. |
| 386 |
|
| 387 |
2026-01-16 Alexei Podtelezhnikov <[email protected]> |
| 388 |
|
| 389 |
[base] Maintain overall rendering limits. |
| 390 |
|
| 391 |
Reject rendering of outlines that stretch beyond 32767 pixels from |
| 392 |
the origin, which is further restricted to 10922 horizontal pixels |
| 393 |
for LCD rendering with ClearType-like algorithms. 16-bit FT_Span is |
| 394 |
one of the reasons to have this limit imposed, fixes #1384. |
| 395 |
|
| 396 |
* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Impose global |
| 397 |
rendering limits. |
| 398 |
|
| 399 |
2026-01-13 Harry Sintonen <[email protected]> |
| 400 |
|
| 401 |
* src/autofit/ft-hb-ft.c (ft_hb_ft_reference_table): Use `ft_sfree`. |
| 402 |
|
| 403 |
2026-01-10 Alexei Podtelezhnikov <[email protected]> |
| 404 |
|
| 405 |
[base] Set ppem-based rendering limits. |
| 406 |
|
| 407 |
Many rendering timeouts occur when the outline stretches far beyond |
| 408 |
the Em size. Limiting the bounding box to 10 Em should reject such |
| 409 |
requests. It is still to possible scribble excessively within the set |
| 410 |
limits. At least, the memory usage will be curtained. |
| 411 |
|
| 412 |
* src/base/ftobjs.c (ft_glyphslot_free_bitmap): Revise limits based |
| 413 |
on ppem when available. |
| 414 |
|
| 415 |
2026-01-07 Werner Lemberg <[email protected]> |
| 416 |
|
| 417 |
[autofit] Prevent signed integer overflow. |
| 418 |
|
| 419 |
Reported as |
| 420 |
|
| 421 |
https://issues.oss-fuzz.com/issues/473887994 |
| 422 |
https://issues.oss-fuzz.com/issues/473912282 |
| 423 |
|
| 424 |
* src/autofit/afatin.c (af_latin_align_top_tilde, |
| 425 |
af_latin_align_bottom_tilde), src/autofit/afloader.c |
| 426 |
(af_loader_load_glyph): Use `FT_PIX_ROUND_LONG`, `FT_PIX_CEIL_LONG`, and |
| 427 |
`SUB_LONG`. |
| 428 |
|
| 429 |
2026-01-06 Werner Lemberg <[email protected]> |
| 430 |
|
| 431 |
[truetype] Prevent signed integer overflow. |
| 432 |
|
| 433 |
Reported as |
| 434 |
|
| 435 |
https://issues.oss-fuzz.com/issues/473582311 |
| 436 |
|
| 437 |
* src/truetype/ttinterp.c (Ins_MDRP): Use `ADD_LONG` and `SUB_LONG`. |
| 438 |
|
| 439 |
2026-01-06 Werner Lemberg <[email protected]> |
| 440 |
|
| 441 |
[autofit] Prevent signed integer overflow. |
| 442 |
|
| 443 |
Reported as |
| 444 |
|
| 445 |
https://issues.oss-fuzz.com/issues/473582304 |
| 446 |
|
| 447 |
* src/autofit/afloader.c (af_loader_load_glyph): Use `ADD_LONG`. |
| 448 |
|
| 449 |
2026-01-05 Ben Wagner <[email protected]> |
| 450 |
|
| 451 |
Fix leak of exec->FDefs in tt_size_init_bytecode |
| 452 |
|
| 453 |
2026-01-04 Werner Lemberg <[email protected]> |
| 454 |
|
| 455 |
[autofit] Prevent signed integer overflow. |
| 456 |
|
| 457 |
Reported as |
| 458 |
|
| 459 |
https://issues.oss-fuzz.com/issues/471525116 |
| 460 |
|
| 461 |
* src/autofit/aflatin.c (af_latin_stretch_top_tilde, |
| 462 |
af_latin_stretch_bottom_tilde): Use `MUL_LONG`. |
| 463 |
|
| 464 |
2026-01-04 Celeste Liu <[email protected]> |
| 465 |
|
| 466 |
[base] Fix support for format 13 charmaps. |
| 467 |
|
| 468 |
According to the OpenType specification of the 'cmap' table, the pair (0,6) |
| 469 |
for platform and encoding IDs is used for format 13 charmap tables. Commit |
| 470 |
ba6f3e18 (from 2017-01-17) introduced the `TT_APPLE_ID_FULL_UNICODE` macro |
| 471 |
(i.e., encoding_id == 6, added to OpenType 1.8); however, the corresponding |
| 472 |
cmap selection code wasn't updated. |
| 473 |
|
| 474 |
Unicode's Last Resort font (https://github.com/unicode-org/last-resort-font) |
| 475 |
can be used to test a format 13 charmap. |
| 476 |
|
| 477 |
Fixes issue #1383. |
| 478 |
|
| 479 |
* src/base/ftobjc.s (find_unicode_charmap): Support |
| 480 |
`TT_APPLE_ID_FULL_UNICODE`. |
| 481 |
|
| 482 |
2026-01-03 Werner Lemberg <[email protected]> |
| 483 |
|
| 484 |
[ttgxvar] Check for overflow in array size computation. |
| 485 |
|
| 486 |
Problem reported and analyzed by povcfe <[email protected]>. |
| 487 |
|
| 488 |
Fixes issue #1382. |
| 489 |
|
| 490 |
* src/truetype/ttgxvar.c (tt_var_load_item_variation_store): Do it. |
| 491 |
|
| 492 |
2025-12-11 Ben Wagner <[email protected]> |
| 493 |
|
| 494 |
Fix leak of exec in tt_size_init_bytecode |
| 495 |
|
| 496 |
* src/truetype/ttobjs.c (tt_size_init_bytecode): Call `TT_Done_Context` |
| 497 |
on `exec` if it has not yet been assigned to `size->context`. |
| 498 |
|
| 499 |
Bug: https://issues.oss-fuzz.com/issues/467782706 |
| 500 |
|
| 501 |
2025-12-05 Alexei Podtelezhnikov <[email protected]> |
| 502 |
|
| 503 |
* src/pcf/pcfdrivr.c (PCF_Face_Init): Handle charmap errors. |
| 504 |
|
| 505 |
This is a quick fix for #1377, more clean-ups to follow. |
| 506 |
|
| 507 |
2025-12-04 Werner Lemberg <[email protected]> |
| 508 |
|
| 509 |
* src/sfnt/ttbdf.c (tt_face_load_bdf_props): Fix size test. |
| 510 |
|
| 511 |
This prevents a potential overflow on 32bit systems. |
| 512 |
|
| 513 |
Problem reported by Zhao Zijie <[email protected]>. |
| 514 |
|
| 515 |
2025-12-04 Werner Lemberg <[email protected]> |
| 516 |
|
| 517 |
Improve documentation of the 'BDF ' table as used in X11 `.otb` files. |
| 518 |
|
| 519 |
Also do some minor code formatting. |
| 520 |
|
| 521 |
2025-12-02 Werner Lemberg <[email protected]> |
| 522 |
|
| 523 |
* src/otvalid/otvcommn.c (otv_FeatureList_validate): Fix array size check. |
| 524 |
|
| 525 |
Reported by Marc Schönefeld. |
| 526 |
|
| 527 |
2025-12-02 Werner Lemberg <[email protected]> |
| 528 |
|
| 529 |
[otvalid] Minor formatting and comment fixes. |
| 530 |
|
| 531 |
2025-11-30 Alexei Podtelezhnikov <[email protected]> |
| 532 |
|
| 533 |
[pshinter] Slightly simplify BlueShift application. |
| 534 |
|
| 535 |
* src/pshinter/pshglob.c (psh_blues_scale_zones): Just divide. |
| 536 |
|
| 537 |
2025-11-30 Alexei Podtelezhnikov <[email protected]> |
| 538 |
|
| 539 |
[pshinter] Slightly simplify BlueScale application. |
| 540 |
|
| 541 |
* src/pshinter/pshglob.c (psh_globals_new): Update condition and |
| 542 |
properly rescale BlueScale. |
| 543 |
(psh_blues_scale_zones): Use it directly. |
| 544 |
|
| 545 |
2025-11-30 Alexei Podtelezhnikov <[email protected]> |
| 546 |
|
| 547 |
[pshinter] Fix up degenerate contours. |
| 548 |
|
| 549 |
* src/pshinter/pshalgo.c (psh_glyph_compute_extrema): Use correct |
| 550 |
goto label and shortcut degenerate contours. |
| 551 |
|
| 552 |
2025-11-29 Alexei Podtelezhnikov <[email protected]> |
| 553 |
|
| 554 |
* src/base/ftutil.c (FT_List_Finalize): Delay reading 'data'. |
| 555 |
|
| 556 |
Fixes #1376. |
| 557 |
|
| 558 |
2025-11-29 Werner Lemberg <[email protected]> |
| 559 |
|
| 560 |
* src/autofit/afgsub.c (af_parse_gsub): Always init `gsub_lookup_count`. |
| 561 |
|
| 562 |
Problem reported by Marc Schönefeld. |
| 563 |
|
| 564 |
2025-11-28 Werner Lemberg <[email protected]> |
| 565 |
|
| 566 |
[autofit] Fix handling of invalid GSUB lookup indices. |
| 567 |
|
| 568 |
Problem reported by Marc Schönefeld. |
| 569 |
|
| 570 |
HarfBuzz validates everything while processing OpenType tables in fonts. |
| 571 |
However, the data returned by `hb_ot_layout_collect_lookups` is not |
| 572 |
validated. This commit adds proper checks. |
| 573 |
|
| 574 |
* src/autofit/afglobal.h (AF_FaceGlobals): New field `gsub_lookup_count`. |
| 575 |
* src/autofit/afgsub.c (af_parse_gsub): Set it. |
| 576 |
|
| 577 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Test result of |
| 578 |
`hb_set_next`. |
| 579 |
|
| 580 |
2025-11-28 Werner Lemberg <[email protected]> |
| 581 |
|
| 582 |
[sfnt] Fix GPOS handling. |
| 583 |
|
| 584 |
Problem reported by Marc Schönefeld. |
| 585 |
|
| 586 |
* src/sfnt/ttgpos.c (tt_face_validate_lookup_table, tt_face_load_gpos): Fix |
| 587 |
counting of fitting subtables by correctly rejecting invalid data. |
| 588 |
|
| 589 |
2025-11-28 Alexei Podtelezhnikov <[email protected]> |
| 590 |
|
| 591 |
* builds/toplevel.mk (dist): Replace `for` with `find ... -exec`. |
| 592 |
|
| 593 |
2025-11-27 Suzuki, Toshiya (鈴木俊哉) <[email protected]> |
| 594 |
|
| 595 |
* builds/toplevel.mk (dist): `-wholename` -> `-name`. |
| 596 |
|
| 597 |
POSIX does not request `find` to support '-wholename'. |
| 598 |
`find ... -wholename '*/.git' -prune -o ...` can be |
| 599 |
rewritten as `find ... -name '*/.git' -prune -o ...` |
| 600 |
for POSIX find. Fixes issue #1370. |
| 601 |
|
| 602 |
2025-11-27 suzuki toshiya <[email protected]> |
| 603 |
|
| 604 |
* .gitlab-ci.yml: update macos image to Tahoe:2025-09-30. |
| 605 |
|
| 606 |
Fixes issue #1394. |
| 607 |
|
| 608 |
2025-11-17 Alexei Podtelezhnikov <[email protected]> |
| 609 |
|
| 610 |
* builds/toplevel.mk (dist): Improve compatibility with BSD tar. |
| 611 |
|
| 612 |
2025-11-05 Alexei Podtelezhnikov <[email protected]> |
| 613 |
|
| 614 |
[cff] Handle underline position and thickness as integers. |
| 615 |
|
| 616 |
This is done for consistency with Type 1 fonts. |
| 617 |
|
| 618 |
* include/freetype/internal/cfftypes.h (CFF_FontRecDic): Change |
| 619 |
the variable types. |
| 620 |
* include/cff/cfftoken.h (CFF_FontRecDic): Change the parsing macros. |
| 621 |
* src/cff/cffobjs.c (cff_face_init), src/cff/cffload.c (cff_subfont_load), |
| 622 |
src/cff/cffdrivr.c (cff_ps_get_font_info): Update users. |
| 623 |
|
| 624 |
2025-11-05 suzuki toshiya <[email protected]> |
| 625 |
|
| 626 |
* src/tools/apinames.c (names_add): Remove unrequired cast of |
| 627 |
`nm->hash` to int, which has been unrequired since eba2781a. |
| 628 |
|
| 629 |
Fixes issue #1361. |
| 630 |
|
| 631 |
2025-11-05 Suzuki, Toshiya (鈴木俊哉) <[email protected]> |
| 632 |
|
| 633 |
* src/autofit/afgsub.c: Evaluate FT_CONFIG_OPTION_USE_HARFBUZZ |
| 634 |
after <freetype/freetype.h> and others. |
| 635 |
|
| 636 |
Fixes issue #1360. |
| 637 |
|
| 638 |
2025-11-05 Alexei Podtelezhnikov <[email protected]> |
| 639 |
|
| 640 |
Minor. |
| 641 |
|
| 642 |
2025-11-05 Alexei Podtelezhnikov <[email protected]> |
| 643 |
|
| 644 |
[cff,cid,type1,type42] Fix up `PS_FontInfo`. |
| 645 |
|
| 646 |
The italic angle is commonly specified in fractional degrees in |
| 647 |
Type 1 fonts and its derivatives. This change clarifies and fixes |
| 648 |
these values. Note that CFF fonts has always reported them as such, |
| 649 |
but truncated the underline position and thickness. Fixes #1367. |
| 650 |
|
| 651 |
* include/freetype/t1tables.h (PS_FontInfoRec): |
| 652 |
Use FT_Fixed for italic_angle. |
| 653 |
* src/cid/cidtoken.h, src/type1/t1tokens.h, src/type42/t42parse.c: |
| 654 |
Modify the italic_angle token. |
| 655 |
* src/cff/cffdrivr.c (cff_ps_get_font_info): Fix the underline |
| 656 |
position and thickness. |
| 657 |
|
| 658 |
* docs/CHANGES: Note this change. |
| 659 |
|
| 660 |
2025-10-26 Alexei Podtelezhnikov <[email protected]> |
| 661 |
|
| 662 |
* src/base/ftadvanc.c (ft_face_scale_advances_): Adjust scaling. |
| 663 |
|
| 664 |
This is safe because advances are short originally. |
| 665 |
|
| 666 |
2025-10-26 Alexei Podtelezhnikov <[email protected]> |
| 667 |
|
| 668 |
[base] Refactor obtaining advances. |
| 669 |
|
| 670 |
* src/base/ftadvanc.c (ft_load_advances): New separate function to |
| 671 |
handle slow advances. |
| 672 |
(FT_Get_Advance, FT_Get_Advances): Updated. |
| 673 |
|
| 674 |
2025-10-17 Alexei Podtelezhnikov <[email protected]> |
| 675 |
|
| 676 |
* src/truetype/ttgload.c (tt_loader_init): Reset compatibility. |
| 677 |
|
| 678 |
This may fix #1262, credits to Honnesh Ramachandra. |
| 679 |
https://lists.nongnu.org/archive/html/freetype-devel/2025-10/msg00004.html |
| 680 |
|
| 681 |
2025-09-28 Werner Lemberg <[email protected]> |
| 682 |
|
| 683 |
[autofit] Prevent signed integer overflow. |
| 684 |
|
| 685 |
* src/autofit/aflatin.c (af_latin_stretch_top_tilde, |
| 686 |
af_latin_stretch_bottom_tilde, af_latin_align_top_tilde, |
| 687 |
af_latin_align_bottom_tilde, |
| 688 |
af_glyph_hints_apply_vertical_separation_adjustments): Use `ADD_LONG` and |
| 689 |
`SUB_LONG` for values that involve `FT_LONG_MAX` and `FT_LONG_MIN`. |
| 690 |
|
| 691 |
Fixes issue #1363. |
| 692 |
|
| 693 |
2025-09-24 Werner Lemberg <[email protected]> |
| 694 |
|
| 695 |
* src/bdf/bdfdriver.c (BDF_Glyph_Load): Use `bdf->bdffont->bpp` directly. |
| 696 |
|
| 697 |
Fixes issue #1362. |
| 698 |
|
| 699 |
2025-09-18 Alan Coopersmith <[email protected]> |
| 700 |
|
| 701 |
* tests/README.md: Fix a script name. |
| 702 |
|
| 703 |
2025-09-14 Werner Lemberg <[email protected]> |
| 704 |
|
| 705 |
[build] Don't use non-POSIX escapes in sed regexp. |
| 706 |
|
| 707 |
* builds/unix/configure.raw (ftoption_set, ftoption_unset): Avoid `\>`. |
| 708 |
|
| 709 |
Fixes issue #1358. |
| 710 |
|
| 711 |
2025-09-14 Werner Lemberg <[email protected]> |
| 712 |
|
| 713 |
Typo. |
| 714 |
|
| 715 |
2025-09-12 Alexei Podtelezhnikov <[email protected]> |
| 716 |
|
| 717 |
* include/freetype/internal/ftobjs.h (ft_default_raster): Relic removed. |
| 718 |
|
| 719 |
2025-09-11 Werner Lemberg <[email protected]> |
| 720 |
|
| 721 |
* Version 2.14.1 released. |
| 722 |
========================== |
| 723 |
|
| 724 |
Tag sources with `VER-2-14-1'. |
| 725 |
|
| 726 |
* docs/VERSION.TXT: Add entry for version 2.14.1. |
| 727 |
* docs/CHANGES: Updated. |
| 728 |
* docs/release, docs/README, builds/macs/README: Updated. |
| 729 |
|
| 730 |
* README, src/base/ftver.rc, builds/windows/vc2010/index.html, |
| 731 |
builds/windows/visualc/index.html, builds/windows/visualce/index.html, |
| 732 |
builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html, |
| 733 |
docs/freetype-config.1: s/2.14.0/2.14.1/, s/2140/2141/. |
| 734 |
|
| 735 |
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 1. |
| 736 |
|
| 737 |
* builds/unix/configure.raw (version_info): Set to 26:4:20. |
| 738 |
* CMakeLists.txt (VERSION_PATCH): Set to 1. |
| 739 |
|
| 740 |
2025-09-10 Behdad Esfahbod <[email protected]> |
| 741 |
|
| 742 |
[base] Fix return values of two Font Variation functions. |
| 743 |
|
| 744 |
* src/base/ftmm.c (FT_Set_Var_Design_Coordinates, |
| 745 |
FT_Set_Var_Blend_Coordinates): Do it. |
| 746 |
|
| 747 |
Fixes issue #1355. |
| 748 |
|
| 749 |
2025-09-10 Werner Lemberg <[email protected]> |
| 750 |
|
| 751 |
* src/autofit/afgsub.c (af_map_lookup): Fix handling of lookup type 7. |
| 752 |
|
| 753 |
Fixes issue #1356. |
| 754 |
|
| 755 |
2025-09-08 Alexei Podtelezhnikov <[email protected]> |
| 756 |
|
| 757 |
* src/truetype/ttinterp.c (TT_Run_Context): Fix IUP tracking bits. |
| 758 |
|
| 759 |
Correctly fixes #1353 and #1349. |
| 760 |
|
| 761 |
2025-09-08 Alexei Podtelezhnikov <[email protected]> |
| 762 |
|
| 763 |
Typo! |
| 764 |
|
| 765 |
2025-09-08 Alexei Podtelezhnikov <[email protected]> |
| 766 |
|
| 767 |
* src/truetype/ttinterp.c (TT_Run_Context): Reset IUP tracking bits. |
| 768 |
|
| 769 |
Fixes #1353. |
| 770 |
|
| 771 |
2025-09-08 Behdad Esfahbod <[email protected]> |
| 772 |
|
| 773 |
[autofit] Fix HarfBuzz calling. |
| 774 |
|
| 775 |
* src/autofit/afadjust.c (af_reverse_character_map_new) |
| 776 |
[FT_CONFIG_OPTION_USE_HARFBUZZ]: Use `ft_hb_enabled`. |
| 777 |
|
| 778 |
Fixes issue #1354. |
| 779 |
|
| 780 |
2025-09-08 Werner Lemberg <[email protected]> |
| 781 |
|
| 782 |
* docs/release: Use `sshpass` for SourceForge.net password. |
| 783 |
|
| 784 |
2025-09-08 Werner Lemberg <[email protected]> |
| 785 |
|
| 786 |
* docs/release: Fix `scp` usage with OpenSSH version >= 9.0. |
| 787 |
|
| 788 |
Starting with this version, OpenSSH uses `scp` with the SFTP protocol as the |
| 789 |
default. However, SFTP is disabled on savannah.gnu.org since January 2025. |
| 790 |
|
| 791 |
2025-09-06 Werner Lemberg <[email protected]> |
| 792 |
|
| 793 |
* Version 2.14.0 released. |
| 794 |
========================== |
| 795 |
|
| 796 |
Tag sources with `VER-2-14-0'. |
| 797 |
|
| 798 |
* docs/VERSION.TXT: Add entry for version 2.14.0. |
| 799 |
* docs/CHANGES: Updated. |
| 800 |
* docs/release, docs/README, builds/macs/README: Updated. |
| 801 |
|
| 802 |
* README, src/base/ftver.rc, builds/windows/vc2010/index.html, |
| 803 |
builds/windows/visualc/index.html, builds/windows/visualce/index.html, |
| 804 |
builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html, |
| 805 |
docs/freetype-config.1: s/2.13.3/2.14.0/, s/2133/2140/. |
| 806 |
|
| 807 |
* include/freetype/freetype.h (FREETYPE_MINOR): Set to 14. |
| 808 |
(FREETYPE_PATCH): Set to 0. |
| 809 |
|
| 810 |
* builds/unix/configure.raw (version_info): Set to 26:3:20. |
| 811 |
* CMakeLists.txt (VERSION_MINOR): Set to 14. |
| 812 |
(VERSION_PATCH): Set to 0. |
| 813 |
|
| 814 |
2025-09-06 Werner Lemberg <[email protected]> |
| 815 |
|
| 816 |
* builds/toplevel.mk (do-dist): Download shallow clone of `config.git`. |
| 817 |
|
| 818 |
No need for any other commit than the current one. |
| 819 |
|
| 820 |
2025-09-06 Werner Lemberg <[email protected]> |
| 821 |
|
| 822 |
Update all copyright notices. |
| 823 |
|
| 824 |
2025-09-05 Werner Lemberg <[email protected]> |
| 825 |
|
| 826 |
src/sfnt/ttload.c (tt_face_load_any): Correctly handle font containers. |
| 827 |
|
| 828 |
Reported as |
| 829 |
|
| 830 |
https://issues.oss-fuzz.com/issues/424613326 |
| 831 |
|
| 832 |
2025-09-05 Jouk Jansen <[email protected]> |
| 833 |
|
| 834 |
Clean up OpenVMS support. |
| 835 |
|
| 836 |
This avoids cluttering the source code with VMS-specific changes. |
| 837 |
|
| 838 |
* include/freetype/internal/ftcalc.h [__VMS], src/base/ftcalc.c |
| 839 |
[vms_auto64_source]: Remove. |
| 840 |
|
| 841 |
* builds/vms/patch_ftcalc.sed: New file. |
| 842 |
|
| 843 |
* vms_make.com: Change macro definitions while this script is running; we |
| 844 |
use `GNU sed` to inject the necessary preprocessor code on the fly. |
| 845 |
|
| 846 |
2025-09-01 Alexei Podtelezhnikov <[email protected]> |
| 847 |
|
| 848 |
* src/psaux/psauxmod.h (psaux_driver_class): Removed declaration. |
| 849 |
|
| 850 |
2025-08-29 Alexei Podtelezhnikov <[email protected]> |
| 851 |
|
| 852 |
[base] Use const FT_Module_Class. |
| 853 |
|
| 854 |
This is intended to warn against modifying any fields in the class, |
| 855 |
at compile-time and avoid crashes at run-time. |
| 856 |
|
| 857 |
* include/freetype/internal/ftobjs.h (FT_ModuleRec): Do it. |
| 858 |
* src/base/ftobjs.c (Destroy_Module, FT_Add_Module): Updated. |
| 859 |
|
| 860 |
2025-08-27 Alexei Podtelezhnikov <[email protected]> |
| 861 |
|
| 862 |
* src/base/ftobjs.c (FT_Load_Glyph): Reduces scope of 'ttface'. |
| 863 |
|
| 864 |
2025-08-25 Alexei Podtelezhnikov <[email protected]> |
| 865 |
|
| 866 |
* src/truetype/ttinterp.c: Fix some builds. |
| 867 |
|
| 868 |
2025-08-23 Werner Lemberg <[email protected]> |
| 869 |
|
| 870 |
* subprojects/*.wrap: Updated. |
| 871 |
|
| 872 |
2025-08-23 Werner Lemberg <[email protected]> |
| 873 |
|
| 874 |
Updating `CHANGES` file; minor fixes elsewhere (mostly formatting). |
| 875 |
|
| 876 |
2025-08-20 Alexei Podtelezhnikov <[email protected]> |
| 877 |
|
| 878 |
[truetype] Fix compilation without bytecode. |
| 879 |
|
| 880 |
Fixes #1351 and various warnings about unused variables. |
| 881 |
|
| 882 |
* src/truetype/ttinterp.c: Put the entire body under #ifdef. |
| 883 |
* src/truetype/ttgload.c (TT_Process_Composite_Glyph): Relocate |
| 884 |
some declarations. |
| 885 |
* src/truetype/ttinterp.h: Remove some #ifdef conditions. |
| 886 |
* src/truetype/ttobjs.c (tt_size_done): Modified. |
| 887 |
|
| 888 |
2025-08-14 Alexei Podtelezhnikov <[email protected]> |
| 889 |
|
| 890 |
[truetype] Small fix in the incremental interface (again). |
| 891 |
|
| 892 |
Fixes #1299, last [-Wdangling-pointer=] warning. |
| 893 |
|
| 894 |
* src/truetype/ttgload.c (load_truetype_glyph): Restore original stream |
| 895 |
on exit unconditionally. |
| 896 |
|
| 897 |
2025-08-14 Alexei Podtelezhnikov <[email protected]> |
| 898 |
|
| 899 |
[truetype] Small fix in the incremental interface. |
| 900 |
|
| 901 |
Fixes #1299, last [-Wdangling-pointer=] warning. |
| 902 |
|
| 903 |
* src/truetype/ttgload.c (load_truetype_glyph): Restore original stream |
| 904 |
on exit. |
| 905 |
|
| 906 |
2025-08-14 Alexei Podtelezhnikov <[email protected]> |
| 907 |
|
| 908 |
* src/autofit/afgsub.c: Fix a warning. |
| 909 |
|
| 910 |
Fixes [-Wunused-function] warning without HarfBuzz. |
| 911 |
|
| 912 |
2025-08-11 Alexei Podtelezhnikov <[email protected]> |
| 913 |
|
| 914 |
* */ftoption.h: Update C99 wording. |
| 915 |
|
| 916 |
2025-08-11 Alexei Podtelezhnikov <[email protected]> |
| 917 |
|
| 918 |
* */ftoption.h: Note C99 compliance. |
| 919 |
|
| 920 |
2025-08-08 Behdad Esfahbod <[email protected]> |
| 921 |
|
| 922 |
[ttgxvar] Fix caching of scalars when there are intermediate tuples. |
| 923 |
|
| 924 |
For example, with `GoogleSansFlex-Regular.ttf` at ROND=100, the 'Q' glyph |
| 925 |
was misrendering. |
| 926 |
|
| 927 |
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Reset `tupleScalars` |
| 928 |
earlier. |
| 929 |
|
| 930 |
2025-08-05 Jouk Jansen <[email protected]> |
| 931 |
|
| 932 |
Improvements to OpenVMS support. |
| 933 |
|
| 934 |
* include/freetype/internal/ftcalc.h [__VMS]: Undefine `FT_MulFix`. |
| 935 |
|
| 936 |
* src/base/ftcalc.c [vms_auto64_source]: Define `FT_MulFix`. |
| 937 |
|
| 938 |
* vms_make.com: Also create 32bit version of the FreeType library. |
| 939 |
|
| 940 |
2025-08-04 Alexei Podtelezhnikov <[email protected]> |
| 941 |
|
| 942 |
* docs/CHANGES: Mention 'ftmulti' improvements. |
| 943 |
|
| 944 |
2025-08-02 Alexei Podtelezhnikov <[email protected]> |
| 945 |
|
| 946 |
[type1/MM] Correctly reset the default instance. |
| 947 |
|
| 948 |
Call T1_Set_MM_WeightVector, which actually sets default weights, |
| 949 |
instead of TT_Set_MM_Blend, which just centers the axes. |
| 950 |
|
| 951 |
* src/type1/t1load.c (T1_Reset_MM_Blend): Do it. |
| 952 |
|
| 953 |
2025-08-01 Alexei Podtelezhnikov <[email protected]> |
| 954 |
|
| 955 |
[truetype/v40] Fix ROUND_XY_TO_GRID handling. |
| 956 |
|
| 957 |
Fixes #1346. |
| 958 |
|
| 959 |
* src/truetype/ttgload.c (TT_Process_Composite_Component): Round |
| 960 |
the x-position unless in backward_compatibility mode. |
| 961 |
|
| 962 |
2025-07-30 Alexei Podtelezhnikov <[email protected]> |
| 963 |
|
| 964 |
* src/truetype/ttinterp.c (Ins_MDRP,MIRP): Small tweak. |
| 965 |
|
| 966 |
2025-07-30 Alexei Podtelezhnikov <[email protected]> |
| 967 |
|
| 968 |
[truetype] Tweak size management. |
| 969 |
|
| 970 |
* include/freetype/internal/services/svmetric.h (FT_Size_Reset_Func): |
| 971 |
Update typedef, do not return error. |
| 972 |
* src/truetype/ttobjs.c (tt_size_reset_height): Move the PPem error |
| 973 |
handling from here... |
| 974 |
(tt_size_reset): ... to here to improve readability. |
| 975 |
src/truetype/ttobjs.h (tt_size_reset_height): Update prototype. |
| 976 |
|
| 977 |
2025-07-30 Alexei Podtelezhnikov <[email protected]> |
| 978 |
|
| 979 |
[truetype] Relocate color compensation (cont'd). |
| 980 |
|
| 981 |
* src/truetype/ttinterp.c (Inc_MDAR,MIAP,MDRP,MIRP): Fix forgotten |
| 982 |
rounding. |
| 983 |
|
| 984 |
2025-07-29 Alexei Podtelezhnikov <[email protected]> |
| 985 |
|
| 986 |
[truetype] Fix EVEN and ODD instructions. |
| 987 |
|
| 988 |
It is possible to have a fractional part after rounding when rounding |
| 989 |
to half-grid or super-rounding. The specs call to ignore the fractional |
| 990 |
part in that case. |
| 991 |
|
| 992 |
^ src/truetype/ttinterp.c (Ins_EVEN, Ins_ODD): Fix mask. |
| 993 |
|
| 994 |
2025-07-28 Alexei Podtelezhnikov <[email protected]> |
| 995 |
|
| 996 |
* src/truetype/ttinterp.c: Fix comments. |
| 997 |
|
| 998 |
2025-07-28 Alexei Podtelezhnikov <[email protected]> |
| 999 |
|
| 1000 |
* src/truetype/ttinterp.h (TT_Round_Func): Fix argument. |
| 1001 |
|
| 1002 |
Fixes #1347: function type mismatch. |
| 1003 |
|
| 1004 |
2025-07-27 Alexei Podtelezhnikov <[email protected]> |
| 1005 |
|
| 1006 |
[truetype] Clean up size validation. |
| 1007 |
|
| 1008 |
Rely on non-zero ppem to validate the size object. |
| 1009 |
|
| 1010 |
* src/truetype/ttobjs.h (TT_Size_Merics): Remove the `valid` flag. |
| 1011 |
* src/truetype/ttobjs.c (tt_size_init,done,reset,reset_height): Updated. |
| 1012 |
* src/truetype/ttgload.c (TT_Load_Glyph): Check for non-zero ppem. |
| 1013 |
|
| 1014 |
2025-07-27 Alexei Podtelezhnikov <[email protected]> |
| 1015 |
|
| 1016 |
[truetype] Relocate color compensation. |
| 1017 |
|
| 1018 |
The rounding color compensation, which is not used by FreeType, belongs |
| 1019 |
to GS. This is a more logical place for it, next to round_state. |
| 1020 |
|
| 1021 |
* src/truetype/ttobjs.h (TT_GraphicsState): Move compensations here... |
| 1022 |
(TT_Size_Metrics): ... from here. |
| 1023 |
* src/truetype/ttobjs.c (tt_size_init_bytecode): Updated. |
| 1024 |
* src/truetype/ttinterp.c (tt_default_graphics_state): Updated. |
| 1025 |
(Ins_ROUND,NROUND,EVEN,ODD): Updated. |
| 1026 |
(Round_*): Updated. |
| 1027 |
|
| 1028 |
2025-07-26 Alexei Podtelezhnikov <[email protected]> |
| 1029 |
|
| 1030 |
[smooth] Remove usage of setjmp and longjmp. |
| 1031 |
|
| 1032 |
To support WASM targets with slow or unsupported setjmp and longjmp, |
| 1033 |
we eliminate these calls in favor of an error propagation model. |
| 1034 |
When gray_set_cell is out of cells, it raises an exception which is |
| 1035 |
later handled in gray_convert_glyph_inner. |
| 1036 |
This is a less invasive alternative to !385. |
| 1037 |
|
| 1038 |
* src/smooth/ftgrays.c (gray_set_cell): Raise the overflow exception |
| 1039 |
and redirect all work to `cell_null`. |
| 1040 |
(gray_move,line,conic,cubic_to): Return the exception. |
| 1041 |
(gray_convert_glyph, gray_convert_glyph_inner): Handle the exception. |
| 1042 |
|
| 1043 |
2025-07-05 Werner Lemberg <[email protected]> |
| 1044 |
|
| 1045 |
[sfnt] Rewrite GPOS kerning support. (2/2) |
| 1046 |
|
| 1047 |
The previous code had a fundamental flaw: it didn't validate the necessary |
| 1048 |
parts of the 'GPOS' table before accessing it, causing crashes with |
| 1049 |
malformed data (since `TT_CONFIG_OPTION_GPOS_KERNING` is off by default, |
| 1050 |
standard fuzzers don't catch these problems). Additionally, it did a lot of |
| 1051 |
parsing while accessing kerning data, making it rather slow. |
| 1052 |
|
| 1053 |
The new implementation fixes this. After validation, offsets to the 'GPOS' |
| 1054 |
lookup subtables used in the 'kern' feature that correspond to 'simple' |
| 1055 |
kerning (i.e., similar to 'kern' table kerning) are stored in `TT_Face`; |
| 1056 |
this greatly simplifies and accelerates access to the kerning data. |
| 1057 |
|
| 1058 |
Testing with font `SF-Pro.ttf` version '1.00', the validation time for the |
| 1059 |
'GPOS' table increases the start-up time of `FT_New_Face` by less than 1%, |
| 1060 |
while calls to `FT_Get_Kerning` become about 3.5 times faster. |
| 1061 |
|
| 1062 |
* include/freetype/internal (gpos_kerning_available): Replace with... |
| 1063 |
(gpos_lookups_kerning, num_gpos_lookups_kerning): ... these new fields. |
| 1064 |
Update callers. |
| 1065 |
|
| 1066 |
* src/ttgpos.c [TT_CONFIG_OPTION_GPOS_KERNING]: A new implementation. |
| 1067 |
|
| 1068 |
2025-07-05 Werner Lemberg <[email protected]> |
| 1069 |
|
| 1070 |
[sfnt] Rewrite GPOS kerning support. (1/2) |
| 1071 |
|
| 1072 |
This commit removes the previous implementation. |
| 1073 |
|
| 1074 |
2025-07-05 Werner Lemberg <[email protected]> |
| 1075 |
|
| 1076 |
[cff] Support GPOS kerning. |
| 1077 |
|
| 1078 |
* src/cff/cffdrivr.c (cff_get_kerning) [TT_CONFIG_OPTION_GPOS_KERNING]: Add |
| 1079 |
code similar to the one in `tt_get_kerning`. |
| 1080 |
|
| 1081 |
2025-07-05 Werner Lemberg <[email protected]> |
| 1082 |
|
| 1083 |
* src/sfnt/ttkern.h (TT_FACE_HAS_KERNING): Remove macro. |
| 1084 |
|
| 1085 |
Given that we also support (limited) 'GPOS' table kerning if |
| 1086 |
`TT_CONFIG_OPTION_GPOS_KERNING` is defined, the name of this macro is |
| 1087 |
misleading since it only is true for 'kern' table kerning. |
| 1088 |
|
| 1089 |
* src/sfnt/sfobjs.c (sfn_load_face): Replace `TT_FACE_HAS_KERNING` with |
| 1090 |
plain code. |
| 1091 |
|
| 1092 |
2025-07-05 Werner Lemberg <[email protected]> |
| 1093 |
|
| 1094 |
[autofit] Remove `globals->gsub_length`. |
| 1095 |
|
| 1096 |
We completely validate the accessed data from the 'GSUB' table, making this |
| 1097 |
field unnecessary. |
| 1098 |
|
| 1099 |
* src/autofit/afglobal.h (AF_FaceGlobalsRec): Remove `gsub_length` field. |
| 1100 |
|
| 1101 |
* src/autofit/afglobal.c (af_face_globals_new), src/autofit/afgsub.c |
| 1102 |
(af_parse_gsub): Updated. |
| 1103 |
|
| 1104 |
2025-07-01 Werner Lemberg <[email protected]> |
| 1105 |
|
| 1106 |
* src/truetype/ttobjs.c (tt_size_init_bytecode): Correct previous fix. |
| 1107 |
|
| 1108 |
`FT_NEW_ARRAY` expects a signed value, not an unsigned one. |
| 1109 |
|
| 1110 |
2025-07-01 Werner Lemberg <[email protected]> |
| 1111 |
|
| 1112 |
* src/autofit/afgsub.c: Include `tttables.h` and `afgsub.h`. |
| 1113 |
|
| 1114 |
This fixes 'make multi' compilation with clang. |
| 1115 |
|
| 1116 |
Reported as |
| 1117 |
|
| 1118 |
https://gitlab.freedesktop.org/freetype/freetype/-/merge_requests/381#note_2984610 |
| 1119 |
|
| 1120 |
2025-07-01 Werner Lemberg <[email protected]> |
| 1121 |
|
| 1122 |
Various minor fixes. |
| 1123 |
|
| 1124 |
As reported by clang 19. |
| 1125 |
|
| 1126 |
* src/autofit/afadjust.c (adjustment_database): Make it static. |
| 1127 |
|
| 1128 |
* src/base/ftdbgmem.c (FT_MEM_SIZE_MIN): Remove unused macro. |
| 1129 |
|
| 1130 |
* src/psaux/psobjs.c (skip_procedure), src/truetype/ttinterp.c (Ins_IF, |
| 1131 |
Ins_ELSE, Ins_FDEF, Ins_IDEF): Add `default` clause. |
| 1132 |
|
| 1133 |
2025-07-01 Werner Lemberg <[email protected]> |
| 1134 |
|
| 1135 |
More signedness fixes. |
| 1136 |
|
| 1137 |
As reported by clang 19. |
| 1138 |
|
| 1139 |
* src/autofit/afadjust.c (add_substitute): Make first argument unsigned. |
| 1140 |
Update all callers. |
| 1141 |
Other minor signedness fixes. |
| 1142 |
(af_reverse_character_map_new): Minor signedness fixes. |
| 1143 |
|
| 1144 |
* src/autofit/afgsub.c (af_hash_insert): Minor signedness fixes. |
| 1145 |
|
| 1146 |
* src/autofit/aflatin.c |
| 1147 |
(af_glyph_hints_apply_vertical_separation_adjustments): Make third |
| 1148 |
argument unsigned. |
| 1149 |
Update all callers. |
| 1150 |
Other minor signedness fixes. |
| 1151 |
(af_latin_hints_apply): Minor signedness fixes. |
| 1152 |
|
| 1153 |
* src/bdf/bdflib.c (bdf_parse_bitmap_): Minor signedness fix. |
| 1154 |
|
| 1155 |
* src/truetype/ttobjs.c (tt_size_init_bytecode): Minor signedness fix. |
| 1156 |
|
| 1157 |
2025-07-01 Werner Lemberg <[email protected]> |
| 1158 |
|
| 1159 |
*/*: Fix trivial signedness issues with format strings in trace messages. |
| 1160 |
|
| 1161 |
As reported with clang 19's `-Wformat` option. |
| 1162 |
|
| 1163 |
2025-07-01 Werner Lemberg <[email protected]> |
| 1164 |
|
| 1165 |
Fix `make multi`. |
| 1166 |
|
| 1167 |
Reported as |
| 1168 |
|
| 1169 |
https://gitlab.freedesktop.org/freetype/freetype/-/merge_requests/381#note_2984253 |
| 1170 |
|
| 1171 |
* src/base/fthash.c: Include `ftobjs.h`. |
| 1172 |
* src/autofit/afgsub.c: Include `afglobal.h`. |
| 1173 |
|
| 1174 |
2025-06-30 Alexei Podtelezhnikov <[email protected]> |
| 1175 |
|
| 1176 |
* MSBuild.sln: Minor. |
| 1177 |
|
| 1178 |
2025-06-29 Werner Lemberg <[email protected]> |
| 1179 |
|
| 1180 |
[doc] Revise font variation API. |
| 1181 |
|
| 1182 |
2025-06-29 Werner Lemberg <[email protected]> |
| 1183 |
|
| 1184 |
[doc] Use 'Adobe MM', 'TrueType GX', and 'OpenType Font Variations'. |
| 1185 |
|
| 1186 |
2025-06-26 Werner Lemberg <[email protected]> |
| 1187 |
|
| 1188 |
Set minimum HarfBuzz version back to 2.0.0. |
| 1189 |
|
| 1190 |
Due to the new GSUB parsing we no longer need |
| 1191 |
`hb_ot_layout_lookup_get_glyph_alternates`. |
| 1192 |
|
| 1193 |
This partially reverts commit 5d2fd7608a9. |
| 1194 |
|
| 1195 |
* CMakeLists.txt (HARFBUZZ_MIN_VERSION), meson.build (harfbuzz_dep), |
| 1196 |
builds/unix/configure.raw (harfbuzz_pkg): Set version to 2.0.0. |
| 1197 |
|
| 1198 |
* src/autofit/ft-hb-decls.h: Remove entry for |
| 1199 |
`hb_ot_layout_lookup_get_glyph_alternates`. |
| 1200 |
|
| 1201 |
2025-06-26 Werner Lemberg <[email protected]> |
| 1202 |
|
| 1203 |
[autofit] Speed up computation of `af_reverse_character_map_new`. (4/4) |
| 1204 |
|
| 1205 |
With this commit, the start-up time for creating the reverse character map |
| 1206 |
gets reduced from more than 300% to about 25% (as tested with `arial.ttf` |
| 1207 |
version 7.00). |
| 1208 |
|
| 1209 |
* src/autofit/afadjust.c [FT_CONFIG_OPTION_USE_HARFBUZZ]: Include |
| 1210 |
`afgsub.h`. |
| 1211 |
(add_substitute): New auxiliary function to recursively add elements to |
| 1212 |
the reverse cmap. |
| 1213 |
(af_reverse_character_map_new): New code that replaces the old code |
| 1214 |
removed in the previous commit. |
| 1215 |
|
| 1216 |
2025-06-26 Werner Lemberg <[email protected]> |
| 1217 |
|
| 1218 |
[autofit] Speed up computation of `af_reverse_character_map_new`. (3/4) |
| 1219 |
|
| 1220 |
Rip out some HarfBuzz code of `af_reverse_character_map_new`. The new code |
| 1221 |
comes immediately in a follow-up commit, making it easier to follow the |
| 1222 |
changes. |
| 1223 |
|
| 1224 |
* src/autofit/afadjust.c (af_get_glyph_alternates_helper, |
| 1225 |
af_get_glyph_alternates): Remove. |
| 1226 |
(af_reverse_character_map_new): Remove code to create the `*map` hash. |
| 1227 |
|
| 1228 |
2025-06-26 Werner Lemberg <[email protected]> |
| 1229 |
|
| 1230 |
[autofit] Speed up computation of `af_reverse_character_map_new`. (2/4) |
| 1231 |
|
| 1232 |
Create an array of GSUB lookup indices for `SingleSubst` and |
| 1233 |
`AlternateSubst` lookup types to exit early if we have different types. |
| 1234 |
|
| 1235 |
Also improve tracing. |
| 1236 |
|
| 1237 |
* src/autofit/afglobal.h (AF_FaceGlobals) [FT_CONFIG_OPTION_USE_HARFBUZZ]: |
| 1238 |
New fields `gsub_length`, `gsub`, and `gsub_lookups_single_alternate`. |
| 1239 |
|
| 1240 |
* src/autofit/afglobal.c [FT_CONFIG_OPTION_USE_HARFBUZZ]: Include |
| 1241 |
`afgsub.h`. |
| 1242 |
(af_face_globals_new) [FT_CONFIG_OPTION_USE_HARFBUZZ]: Call |
| 1243 |
`af_parse_gsub` to fill `gsub_lookups_single_alternate`. |
| 1244 |
(af_face_globals_free): Updated. |
| 1245 |
|
| 1246 |
* src/autofit/afadjust.c (af_get_glyph_alternates_helper): Exit early if we |
| 1247 |
possible. |
| 1248 |
(af_reverse_character_map_new): Trace GSUB lookup indices to be checked. |
| 1249 |
|
| 1250 |
2025-06-26 Werner Lemberg <[email protected]> |
| 1251 |
|
| 1252 |
[autofit] Speed up computation of `af_reverse_character_map_new`. (1/4) |
| 1253 |
|
| 1254 |
Using HarfBuzz's API functions to construct the reverse map is too slow; we |
| 1255 |
have to call `hb_ot_layout_lookup_get_glyph_alternates` far too often |
| 1256 |
because it can only handle a single glyph at a time. For this reason we are |
| 1257 |
going to parse the GSUB table by ourselves. |
| 1258 |
|
| 1259 |
The new non-local functions are `af_parse_gsub` and `af_map_lookup`. |
| 1260 |
|
| 1261 |
* src/autofit/afgsub.c, src/autofit/afgsub.h: New files for parsing, |
| 1262 |
validating, and mapping the `SingleSubst` and `AlternateSubst` subtable |
| 1263 |
types of a GSUB table. |
| 1264 |
|
| 1265 |
* src/autofit/autofit.c, src/autofit/rules.mk (AUTOF_DRV_SRC): Updated. |
| 1266 |
|
| 1267 |
2025-06-26 Werner Lemberg <[email protected]> |
| 1268 |
|
| 1269 |
[base] Add no-overwrite hash insert functions. |
| 1270 |
|
| 1271 |
* src/base/fthash.c (ft_hash_num_insert_no_overwrite, |
| 1272 |
ft_hash_str_insert_no_overwrite): New functions. |
| 1273 |
* include/freetype/internal/fthash.h: Updated. |
| 1274 |
|
| 1275 |
2025-06-26 Werner Lemberg <[email protected]> |
| 1276 |
|
| 1277 |
[base] Add iterators for `FT_Hash`. |
| 1278 |
|
| 1279 |
* src/base/fthash.c (ft_hash_num_iterator, ft_hash_str_iterator): New |
| 1280 |
functions. |
| 1281 |
* include/freetype/internal/fthash.h: Updated. |
| 1282 |
|
| 1283 |
2025-06-24 Werner Lemberg <[email protected]> |
| 1284 |
|
| 1285 |
[truetype] Add comment to explain heuristic limit for twilight points. |
| 1286 |
|
| 1287 |
2025-06-23 Alexei Podtelezhnikov <[email protected]> |
| 1288 |
|
| 1289 |
[truetype] Restore non-persistent CVT and storage. |
| 1290 |
|
| 1291 |
According to specifications, CVT and storage area may or may not be |
| 1292 |
persistent after modifications by a glyf program. FreeType had always |
| 1293 |
reset them, which was broken by the last commit. |
| 1294 |
|
| 1295 |
* src/truetype/ttinterp.c (TT_Load_Context): Set CVT and storage here. |
| 1296 |
* src/truetype.ttobjs.c (tt_size_run_prep): Prioritize TT_Load_Context. |
| 1297 |
(tt_size_init_bytecode): Allocate but not set CVT and storage area. |
| 1298 |
|
| 1299 |
2025-06-22 Alexei Podtelezhnikov <[email protected]> |
| 1300 |
|
| 1301 |
[truetype] Deduplicate 'codeRangeTable'. |
| 1302 |
|
| 1303 |
* src/truetype/ttinterp.c (TT_Load_Context, TT_Save_Context): Do not |
| 1304 |
copy 'codeRangeTable'. |
| 1305 |
* src/truetype/ttobjs.h (TT_Size): Remove 'codeRangeTable'. |
| 1306 |
(TT_CodeRange_Tag, TT_CodeRange, TT_DefArray): Moved to... |
| 1307 |
* src/truetype/ttinterp.h: ... this header.1 |
| 1308 |
|
| 1309 |
2025-06-22 Alexei Podtelezhnikov <[email protected]> |
| 1310 |
|
| 1311 |
[truetype] Simplify bytecode allocations. |
| 1312 |
|
| 1313 |
To avoid repeated synchronization, some TT_Size allocations are moved |
| 1314 |
TT_ExecContext for good. The memory blocks are also consolidated. |
| 1315 |
|
| 1316 |
* src/truetype/ttinterp.c (TT_{Load,Save,Done}_Context): Remove |
| 1317 |
synchronization and stack management. |
| 1318 |
* src/truetype/ttobjs.c (tt_size_{init,done}_bytecode): Manage allocations |
| 1319 |
and assign them to the execution context. |
| 1320 |
(tt_size_run_prep): Updated. |
| 1321 |
|
| 1322 |
2025-06-22 Alexei Podtelezhnikov <[email protected]> |
| 1323 |
|
| 1324 |
[truetype] Rework handling of rendering mode in bytecode. |
| 1325 |
|
| 1326 |
This replaces a large number of confusing boolean constructs that |
| 1327 |
describe the target rendering mode in the execution context with |
| 1328 |
the straight mode variable. It might fix some hidden bugs when |
| 1329 |
FT_LOAD_TARGET_XXX were used as flags, which they are not. |
| 1330 |
|
| 1331 |
The condition that triggers the CV program re-execution is simplified. |
| 1332 |
These events due the rendering mode change are rather rare and unexpected |
| 1333 |
and, therefore, should not be over-analyzed. In v40, all mode changes |
| 1334 |
now trigger the CV program. In v35, only switches to/from mono do. |
| 1335 |
|
| 1336 |
* src/truetype/ttinterp.h (TT_ExecContext): Replace 'grayscale', |
| 1337 |
'grayscale_cleartype', 'subpixel_hinting_lean', and 'vertical_lcd_lean' |
| 1338 |
with the rendering 'mode'. |
| 1339 |
* src/truetype/ttinterp.c (Ins_GETINFO): Updated. |
| 1340 |
* src/truetype/ttgload.c (tt_loader_init): Replace 'prep' re-execution |
| 1341 |
trigger and update 'backward_compatibility' condition. |
| 1342 |
(tt_loader_set_pp): Updated. |
| 1343 |
|
| 1344 |
2025-06-21 Alexei Podtelezhnikov <[email protected]> |
| 1345 |
|
| 1346 |
* src/truetype/{ttinterp.c,ttobjs.c}: Minor. |
| 1347 |
|
| 1348 |
2025-06-21 Alexei Podtelezhnikov <[email protected]> |
| 1349 |
|
| 1350 |
[truetype] Clean up bytecode execution triggers. |
| 1351 |
|
| 1352 |
This avoids executing the CV program twice and cleans up the use of |
| 1353 |
'fpgm' and 'prep' triggers |
| 1354 |
|
| 1355 |
* src/truetype/ttgload.c (tt_loader_init): Call 'tt_size_init_bytecode' |
| 1356 |
and 'tt_size_run_prep' explicitly and avoid the call repetition. |
| 1357 |
* src/truetype/ttobjs.c (tt_size_ready_bytecode): Removed as unused. |
| 1358 |
(tt_size_init, tt_size_init_bytecode, tt_size_done_bytecode): Remove some |
| 1359 |
'fpgm' and 'prep' triggers and update. |
| 1360 |
(tt_size_run_fpgm, tt_size_run_prep): Do not set the pedantic flag here. |
| 1361 |
* src/truetype/ttobjs.h: Update signatures. |
| 1362 |
|
| 1363 |
2025-06-21 Alexei Podtelezhnikov <[email protected]> |
| 1364 |
|
| 1365 |
* src/truetype/ttgload.c (tt_loader_init, load_sbit_image): Clean up. |
| 1366 |
|
| 1367 |
2025-06-21 Alexei Podtelezhnikov <[email protected]> |
| 1368 |
|
| 1369 |
[truetype] Simplify twilight zone management. |
| 1370 |
|
| 1371 |
* include/freetype/internal/tttypes.h (TT_GlyphZone): Remove 'memory'. |
| 1372 |
* src/truetype/ttobjs.c (tt_glyphzone_done): Use 'memory' as argument. |
| 1373 |
(tt_glyphzone_new, tt_glyphzone_done): Allocate/free as a single block. |
| 1374 |
(tt_size_init_bytecode, tt_size_done_bytecode): Updated. |
| 1375 |
* src/truetype/ttobjs.h (tt_glyphzone_done): Updated signature. |
| 1376 |
|
| 1377 |
2025-06-19 Behdad Esfahbod <[email protected]> |
| 1378 |
|
| 1379 |
[autofit] Really fix handling of `RTLD_DEFAULT`. |
| 1380 |
|
| 1381 |
This commit actually implements what commit 43ec023e1a7 describes. |
| 1382 |
|
| 1383 |
* src/autofit/ft-hb.c (FT_RTLD_FLAGS): New macro for `dlopen`; it uses |
| 1384 |
`RTLD_GLOBAL` only if `RTLD_DEFAULT` is available. |
| 1385 |
|
| 1386 |
2025-06-15 Alexei Podtelezhnikov <[email protected]> |
| 1387 |
|
| 1388 |
[truetype] Revise twilight zone initiation. |
| 1389 |
|
| 1390 |
This assures that twilight zone is reset before each CV program |
| 1391 |
execution, including after the rendering mode switch. Fixes #1344. |
| 1392 |
|
| 1393 |
* src/truetype/ttobjs.c (tt_size_ready_bytecode): Relocate the GS |
| 1394 |
the twilight zone initiation from here... |
| 1395 |
(tt_size_run_prep): ... to this function, sho that it is always |
| 1396 |
done prior to the CV program execution. |
| 1397 |
* src/truetype/ttobjs.c (TT_Run_Context): Set twilight zone here... |
| 1398 |
(TT_Load_Context): ... rather than here, as it used to be. |
| 1399 |
|
| 1400 |
2025-06-13 Alexei Podtelezhnikov <[email protected]> |
| 1401 |
|
| 1402 |
* src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Remove check. |
| 1403 |
|
| 1404 |
The highest (sign) attribute bit is reserved and should be zero. |
| 1405 |
It is harmless to omit this check however. Fixes #1342. |
| 1406 |
|
| 1407 |
2025-06-12 Werner Lemberg <[email protected]> |
| 1408 |
|
| 1409 |
[autofit] Ignore virtual glyph indices from GSUB lookups. |
| 1410 |
|
| 1411 |
Reported as |
| 1412 |
|
| 1413 |
https://issues.chromium.org/issues/420401651 |
| 1414 |
|
| 1415 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Implement it. |
| 1416 |
|
| 1417 |
2025-06-11 Alexei Podtelezhnikov <[email protected]> |
| 1418 |
|
| 1419 |
[truetype] Clean up TT_GlyphZone. |
| 1420 |
|
| 1421 |
* include/freetype/internal/tttypes.h (TT_GlyphZone): Delete fields. |
| 1422 |
* src/truetype/ttobjs.c (tt_glyphzone_new, tt_glyphzone_done, |
| 1423 |
tt_size_init_bytecode): Updated. |
| 1424 |
|
| 1425 |
2025-06-11 Alexei Podtelezhnikov <[email protected]> |
| 1426 |
|
| 1427 |
[truetype] Use FT_ARRAY_ZERO. |
| 1428 |
|
| 1429 |
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Updated. |
| 1430 |
* src/truetype/ttobjs.c (tt_check_trickyness_sfnt_ids, |
| 1431 |
tt_size_ready_bytecode): Updated. |
| 1432 |
|
| 1433 |
2025-06-11 Alexei Podtelezhnikov <[email protected]> |
| 1434 |
|
| 1435 |
[truetype] Rearrange bytecode run. |
| 1436 |
|
| 1437 |
This is a minor change with large code rearrangements. |
| 1438 |
|
| 1439 |
* src/truetype/ttinterp.c (TT_RunIns): Just loop through instructions |
| 1440 |
and move all setup to... |
| 1441 |
(TT_Run_Context): ... here; relocated. |
| 1442 |
(Compute_Round): Replaced by simple assignment, removed. |
| 1443 |
|
| 1444 |
2025-06-11 Alexei Podtelezhnikov <[email protected]> |
| 1445 |
|
| 1446 |
[truetype] Relocate the interpreter pointer. |
| 1447 |
|
| 1448 |
This reduces dereferencing when calling the interpreter. |
| 1449 |
|
| 1450 |
* include/freetype/internal/tttypes.h (TT_Face): Move it from here... |
| 1451 |
* src/truetype/ttinterp.h (TT_ExecContext): ... to here. |
| 1452 |
* src/truetype/ttobjs.c (tt_size_init_bytecode): Move its initialization |
| 1453 |
* src/truetype/ttinterp.c (TT_New_Context): ... to here. |
| 1454 |
(TT_Run_Context): Updated. |
| 1455 |
|
| 1456 |
2025-06-11 Alexei Podtelezhnikov <[email protected]> |
| 1457 |
|
| 1458 |
[truetype] Clean up the loader initiation. |
| 1459 |
|
| 1460 |
* include/freetype/internal/tttypes.h (TT_LoaderRec): Remove unused field. |
| 1461 |
* src/truetype/ttgload.c (tt_loader_init): Refactor. |
| 1462 |
|
| 1463 |
2025-06-11 Alexei Podtelezhnikov <[email protected]> |
| 1464 |
|
| 1465 |
[truetype] Modify bytecode initiation. |
| 1466 |
|
| 1467 |
This reduces the number of function calls and data copying events. |
| 1468 |
|
| 1469 |
* src/truetype/ttinterp.c (TT_Goto_CodeRange): Merge into... |
| 1470 |
(TT_Set_CodeRange): ... this function. |
| 1471 |
(TT_Load_Context): Do not set up any zones, copy GS, or prepare the |
| 1472 |
execution... |
| 1473 |
(TT_Run_Context): ... do this here instead.. |
| 1474 |
* src/truetype/ttinterp.c (TT_Set_CodeRange): Update signature. |
| 1475 |
* src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): Call |
| 1476 |
TT_Run_Context. |
| 1477 |
* src/truetype/ttgload.c (TT_Hint_Glyph, tt_loader_init): Updated. |
| 1478 |
|
| 1479 |
2025-06-11 Alexei Podtelezhnikov <[email protected]> |
| 1480 |
|
| 1481 |
[truetype] Modify the graphics state management. |
| 1482 |
|
| 1483 |
Instead of restoring persistent GS variables, we only save modifications |
| 1484 |
permitted by the CVT program. This reduces the context manipulations. |
| 1485 |
|
| 1486 |
* src/truetype/ttobjs.h (TT_GraphicsState): Reorder fields. |
| 1487 |
* src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): |
| 1488 |
Do not alter the context. |
| 1489 |
|
| 1490 |
* src/truetype/ttgload.c (TT_Hint_Glyph): Do not reset GS. |
| 1491 |
(tt_loader_init): Fix potential issue in 'instruct_control' handling. |
| 1492 |
* src/truetype/ttinterp.c (TT_Run_Context): Fully reset GS. |
| 1493 |
(TT_Load_Conext): Rearrange and remove the 'size' check, already |
| 1494 |
performed in FT_Load_Glyph. |
| 1495 |
(TT_Save_Context): Save only modifiable GS parts. |
| 1496 |
(tt_default_graphics_state): Updated. |
| 1497 |
* src/truetype/ttinterp.h (TT_Run_Context): Update signature. |
| 1498 |
|
| 1499 |
2025-06-10 Werner Lemberg <[email protected]> |
| 1500 |
|
| 1501 |
[gxvar] Really fix setting of named-instance to Regular. |
| 1502 |
|
| 1503 |
This fixes an ommission in commit cf06661c51. |
| 1504 |
|
| 1505 |
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Initialize `error`. |
| 1506 |
|
| 1507 |
2025-06-10 Werner Lemberg <[email protected]> |
| 1508 |
|
| 1509 |
Two more link fixes. |
| 1510 |
|
| 1511 |
2025-06-10 Werner Lemberg <[email protected]> |
| 1512 |
|
| 1513 |
Update links. |
| 1514 |
|
| 1515 |
Found with `linkchecker --check-extern index.html` running locally in the |
| 1516 |
'freetype-web' repository. |
| 1517 |
|
| 1518 |
2025-06-07 Behdad Esfahbod <[email protected]> |
| 1519 |
|
| 1520 |
Fix setting of named-instance to Regular |
| 1521 |
|
| 1522 |
Fixes https://gitlab.freedesktop.org/freetype/freetype/-/issues/1341 |
| 1523 |
|
| 1524 |
And more elaborate avoidance of loading face->blend if all coords |
| 1525 |
are zero. |
| 1526 |
|
| 1527 |
2025-06-04 Alexei Podtelezhnikov <[email protected]> |
| 1528 |
|
| 1529 |
* src/type42/t42objs.c (T42_Size_Init): Fix uninitialized use. |
| 1530 |
|
| 1531 |
Found by Ozkan Sezer. |
| 1532 |
|
| 1533 |
2025-06-04 Ozkan Sezer <[email protected]> |
| 1534 |
|
| 1535 |
[autofit] Fix `-Wunused-but-set-variable` warning in Windows builds. |
| 1536 |
|
| 1537 |
With this commit, the following warning gets removed. |
| 1538 |
|
| 1539 |
``` |
| 1540 |
In file included from src/autofit/autofit.c:21:0: |
| 1541 |
src/autofit/ft-hb.c: In function 'ft_hb_funcs_init': |
| 1542 |
src/autofit/ft-hb.c:75:35: warning: |
| 1543 |
variable 'version_atleast' set but not used [-Wunused-but-set-variable] |
| 1544 |
ft_hb_version_atleast_func_t version_atleast = NULL; |
| 1545 |
^~~~~~~~~~~~~~~ |
| 1546 |
``` |
| 1547 |
|
| 1548 |
* src/autofit/ft-hb.c (ft_hb_funcs_init): Move `NULL` check of |
| 1549 |
`version_atleast` out of ifdefs. |
| 1550 |
|
| 1551 |
2025-06-04 Ozkan Sezer <[email protected]> |
| 1552 |
|
| 1553 |
[build] Revise visibility attributes usage in autotools and CMake. |
| 1554 |
|
| 1555 |
* CMakeLists.txt: Set `C_VISIBILITY_PRESET` to hidden for non-Windows only. |
| 1556 |
Windows handles exports with `DLL_EXPORT` defined, and old MinGW |
| 1557 |
toolchains emit a lot of warnings about visibility attributes not being |
| 1558 |
supported in this configuration. |
| 1559 |
|
| 1560 |
* build/unix/configure.raw: Revise visibility attributes checks by compiling a |
| 1561 |
better test program with `-Werror` in `CFLAGS` so that warnings correctly |
| 1562 |
indicate unsupported configurations. |
| 1563 |
|
| 1564 |
2025-06-04 Ozkan Sezer <[email protected]> |
| 1565 |
|
| 1566 |
* CMakeLists.txt: Add support for `FT_CONFIG_OPTION_USE_HARFBUZZ_DYNAMIC`. |
| 1567 |
|
| 1568 |
This commit introduces a new CMake option `FT_DYNAMIC_HARFBUZZ`. |
| 1569 |
|
| 1570 |
2025-06-03 Ozkan Sezer <[email protected]> |
| 1571 |
|
| 1572 |
* src/autofit/ft-hb.c: Fix definition of `_GNU_SOURCE`. |
| 1573 |
|
| 1574 |
Commit 43ec023e1a730f defined the macro too late. |
| 1575 |
|
| 1576 |
2025-06-03 Werner Lemberg <[email protected]> |
| 1577 |
|
| 1578 |
Replace 'www.freetype.org' with 'freetype.org'. |
| 1579 |
|
| 1580 |
2025-06-03 Ozkan Sezer <[email protected]> |
| 1581 |
|
| 1582 |
* builds/unix/configure.raw: Fix HarfBuzz library detection for MinGW. |
| 1583 |
|
| 1584 |
Set `have_harfbuzz*` variables explicitly to dynamic for MinGW, since |
| 1585 |
Windows uses its own `LoadLibrary` call. |
| 1586 |
|
| 1587 |
This fixes a MinGW configuration error: |
| 1588 |
|
| 1589 |
``` |
| 1590 |
checking for HARFBUZZ... no |
| 1591 |
checking for dlopen in -lc... no |
| 1592 |
checking for dlopen in -ldl... no |
| 1593 |
configure: error: harfbuzz support requested but library not found |
| 1594 |
``` |
| 1595 |
|
| 1596 |
2025-06-03 Ozkan Sezer <[email protected]> |
| 1597 |
|
| 1598 |
* builds/unix/configure.raw: Improve check for `dlopen`. |
| 1599 |
|
| 1600 |
Look for `dlopen` first in 'libc', then in 'libdl'. |
| 1601 |
|
| 1602 |
2025-06-03 Behdad Esfahbod <[email protected]> |
| 1603 |
|
| 1604 |
* src/autofit/ft-hb.c: Fix usage of `RTLD_DEFAULT`. |
| 1605 |
|
| 1606 |
Using `RTLD_DEFAULT` we see whether the process already has HarfBuzz linked |
| 1607 |
in, and reuse it. If this symbol is not defined it is tempting to use |
| 1608 |
`RTLD_GLOBAL` instead, which would make the library available to the whole |
| 1609 |
process. However, without `RTLD_DEFAULT`, we would risk loading a second |
| 1610 |
HarfBuzz library, and if the linker mixes them up, probably giving symbols |
| 1611 |
from the new library to other clients, we might get into trouble. For this |
| 1612 |
reason, we do not pass `RTLD_GLOBAL` to `dlopen`; the default is |
| 1613 |
`RTLD_LOCAL`, and the rest of the process won't see the loaded HarfBuzz and |
| 1614 |
hopefully all be happy. |
| 1615 |
|
| 1616 |
2025-05-28 Werner Lemberg <[email protected]> |
| 1617 |
|
| 1618 |
[sfnt] `FT_Load_Sfnt_Table` can now also load a font's table directory. |
| 1619 |
|
| 1620 |
Closes issue #1263. |
| 1621 |
|
| 1622 |
* src/sfnt/ttload.c (tt_face_load_any): Implement it. |
| 1623 |
|
| 1624 |
2025-05-28 Werner Lemberg <[email protected]> |
| 1625 |
|
| 1626 |
[gzip] Update sources to zlib 1.13.1. |
| 1627 |
|
| 1628 |
Fixes issue #1294. |
| 1629 |
|
| 1630 |
2025-05-27 Vítor Ramos <[email protected]> |
| 1631 |
|
| 1632 |
* src/base/ftobjs.c (FT_Load_Glyph): Loosen auto-hinting constraints. |
| 1633 |
|
| 1634 |
Fixes issue #1320. |
| 1635 |
|
| 1636 |
2025-05-27 Werner Lemberg <[email protected]> |
| 1637 |
|
| 1638 |
Update `CHANGES` file. |
| 1639 |
|
| 1640 |
2025-05-27 Behdad Esfahbod <[email protected]> |
| 1641 |
|
| 1642 |
[gxvar] Optimize out more bounds checking. |
| 1643 |
|
| 1644 |
Big win, ~20% in measured mega-var font, HarfBuzz's `benchmark-font` |
| 1645 |
'glyph_h_advances' benchmark. |
| 1646 |
|
| 1647 |
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Implement it in |
| 1648 |
loops. |
| 1649 |
|
| 1650 |
2025-05-27 Behdad Esfahbod <[email protected]> |
| 1651 |
|
| 1652 |
* src/truetype/ttgload.c (load_truetype_glyph): Use `IS_DEFAULT_INSTANCE`. |
| 1653 |
|
| 1654 |
2025-05-27 Behdad Esfahbod <[email protected]> |
| 1655 |
|
| 1656 |
[gxvar] Set `doblend` to `FALSE` if at default location. |
| 1657 |
|
| 1658 |
* src/truetype/ttgxvar.c (tt_set_mm_blend, TT_Get_Var_Design): Do it. |
| 1659 |
|
| 1660 |
2025-05-27 Behdad Esfahbod <[email protected]> |
| 1661 |
|
| 1662 |
[mm/gxvar] Always detect default instance and use optimized codepath. |
| 1663 |
|
| 1664 |
Even if it was explicitly set by either design or normalized APIs. |
| 1665 |
|
| 1666 |
Also update documentation. |
| 1667 |
|
| 1668 |
* src/truetype/ttgxvar.c (TT_Set_MM_Blend, TT_Set_Var_Design): Use value -2 |
| 1669 |
of `error` to indicate that we have a non-default instance. |
| 1670 |
(TT_Set_Named_Instance): Updated. |
| 1671 |
|
| 1672 |
* src/base/ftmm.c (FT_Set_Var_Design_Coordinates, |
| 1673 |
FT_Set_Var_Blend_Coordinates): Updated. |
| 1674 |
|
| 1675 |
2025-05-27 Alexei Podtelezhnikov <[email protected]> |
| 1676 |
|
| 1677 |
Typo. |
| 1678 |
|
| 1679 |
2025-05-27 Alexei Podtelezhnikov <[email protected]> |
| 1680 |
|
| 1681 |
* src/truetype/ttinterp.c (TT_Load_Context): Clean up. |
| 1682 |
|
| 1683 |
2025-05-26 Werner Lemberg <[email protected]> |
| 1684 |
|
| 1685 |
[autofit] Fix integer overflow. |
| 1686 |
|
| 1687 |
Reported as |
| 1688 |
|
| 1689 |
https://issues.oss-fuzz.com/issues/420401635 |
| 1690 |
|
| 1691 |
* src/autofit/aflatin.c (af_latin_stretch_top_tilde, |
| 1692 |
af_latin_stretch_bottom_tilde): Use `SUB_LONG`. |
| 1693 |
|
| 1694 |
2025-05-26 Werner Lemberg <[email protected]> |
| 1695 |
|
| 1696 |
[gxvar] Speed up handling of deltas in `ItemVariationStore`. (3/3) |
| 1697 |
|
| 1698 |
* src/base/ftcalc.c (FT_MulAddFix): Removed, no longer needed. |
| 1699 |
* include/freetype/internal/ftcalc.h: Updated. |
| 1700 |
|
| 1701 |
2025-05-26 Behdad Esfahbod <[email protected]> |
| 1702 |
|
| 1703 |
[gxvar] Speed up handling of deltas in `ItemVariationStore`. (2/3) |
| 1704 |
|
| 1705 |
Do all math in fixed integer and do a single divide at the end. |
| 1706 |
|
| 1707 |
Also don't use an array to read deltas; just read them as we go, and skip |
| 1708 |
(branch-free) when scalar is 0. |
| 1709 |
|
| 1710 |
30% speedup in measured mega-var font, HarfBuzz's `benchmark-font` |
| 1711 |
'glyph_h_advances' benchmark. |
| 1712 |
|
| 1713 |
2025-05-26 Behdad Esfahbod <[email protected]> |
| 1714 |
|
| 1715 |
[gxvar] Speed up handling of deltas in `ItemVariationStore`. (1/3) |
| 1716 |
|
| 1717 |
* src/truetype/ttgxvar.c (ft_mul_add_delta_scalar, ft_round_and_shift16): |
| 1718 |
New functions, reusing code from `ftcalc.c`. |
| 1719 |
|
| 1720 |
2025-05-26 Behdad Esfahbod <[email protected]> |
| 1721 |
|
| 1722 |
Lift `FT_Int64` type to global (internal) FreeType use. |
| 1723 |
|
| 1724 |
* src/base/ftcalc.c (FT_Int64) [!FT_INT64]: Move declaration to... |
| 1725 |
* include/freetype/config/integer-types.h: ... this file. |
| 1726 |
(FT_UInt64) [!FT_INT64]: New structure. |
| 1727 |
(FT_INT64_ZERO): New macro. |
| 1728 |
|
| 1729 |
2025-05-26 Behdad Esfahbod <[email protected]> |
| 1730 |
|
| 1731 |
[gxvar] Move scalar computation into its own function. |
| 1732 |
|
| 1733 |
* src/truetype/ttgxvar.c (tt_var_get_item_delta): Split off affected code |
| 1734 |
into... |
| 1735 |
(tt_calculate_scalar): ...this new function. |
| 1736 |
|
| 1737 |
2025-05-26 Werner Lemberg <[email protected]> |
| 1738 |
|
| 1739 |
[autofit] Make the accent database work for more glyphs (again). |
| 1740 |
|
| 1741 |
See the added comment for an explanation. |
| 1742 |
|
| 1743 |
This partially undoes commit f68733d4a8. |
| 1744 |
|
| 1745 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Always loop over all |
| 1746 |
elements of the adjustment database. |
| 1747 |
(in_range): Removed, no longer needed. |
| 1748 |
|
| 1749 |
2025-05-26 Alexei Podtelezhnikov <[email protected]> |
| 1750 |
|
| 1751 |
[trueetype] Remove useless assignments. |
| 1752 |
|
| 1753 |
* src/truetype/ttobjs.c (tt_size_run_fpgm): Remove assignment that |
| 1754 |
is ignored and overridden later in 'Compute_Funcs'. |
| 1755 |
* src/truetype/ttinterp.c (TT_RunIns): Ditto. |
| 1756 |
(Ins_MIAP): Formatting. |
| 1757 |
|
| 1758 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1759 |
|
| 1760 |
[autofit] Minor code cleanup. |
| 1761 |
|
| 1762 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Rename `result_set` |
| 1763 |
to `glyph_alternates` and move its clearing to... |
| 1764 |
(af_get_glyph_alternates): ...this function. |
| 1765 |
(af_get_glyph_alternates_helper): s/result/helper_result/. |
| 1766 |
|
| 1767 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1768 |
|
| 1769 |
[autofit] Speed up construction of reverse character map. (4/4) |
| 1770 |
|
| 1771 |
* src/autofit/afadjust.c (af_get_glyph_alternates): Move creation and |
| 1772 |
deletion of the `helper_result` set to... |
| 1773 |
(af_reverse_character_map_new): ...this function. |
| 1774 |
Gain for `arial.ttf` version 7.00: approx. 1%. |
| 1775 |
|
| 1776 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1777 |
|
| 1778 |
[autofit] Speed up construction of reverse character map. (3/4) |
| 1779 |
|
| 1780 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Fold two loops into |
| 1781 |
one. |
| 1782 |
Gain for `arial.ttf` version 7.00: approx. 1%. |
| 1783 |
|
| 1784 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1785 |
|
| 1786 |
[autofit] Speed up construction of reverse character map. (2/4) |
| 1787 |
|
| 1788 |
This commit, together with the previous one, makes the startup of the |
| 1789 |
auto-hinter much faster. |
| 1790 |
|
| 1791 |
Note, though, that the startup time for handling the diacritic database is |
| 1792 |
still rather large. For example, loading `arial.ttf` version 7.00 followed |
| 1793 |
by auto-hinting a first Latin glyph is still approx. three times slower |
| 1794 |
than before the introduction of the database (this is because function |
| 1795 |
`hb_ot_layout_lookup_get_glyph_alternates` is called very often). |
| 1796 |
|
| 1797 |
* src/autofit/afshaper.c (scripts): Rename this array to... |
| 1798 |
(af_hb_scripts): ...this and export it. |
| 1799 |
(af_shaper_get_coverage_hb): Updated. |
| 1800 |
* src/autofit/afshaper.h: Updated. |
| 1801 |
|
| 1802 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Pass the current |
| 1803 |
script to `hb_ot_layout_collect_lookups` to make HarfBuzz check less |
| 1804 |
lookups while searching for glyph alternates. |
| 1805 |
|
| 1806 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1807 |
|
| 1808 |
[autofit] Speed up construction of reverse character map. (1/4) |
| 1809 |
|
| 1810 |
Build reverse cmap for characters of the current script style only. |
| 1811 |
|
| 1812 |
* src/autofit/afadjust.c (in_range): New function. |
| 1813 |
(af_reverse_character_map_new): Pass `AF_StyleMetrics` instead of |
| 1814 |
`AF_FaceGlobals` so that we can access the current script style. |
| 1815 |
Use `in_range` to limit tested code points. |
| 1816 |
* src/autofit/afadjust.h: Updated. |
| 1817 |
* src/autofit/aflatin.c (af_latin_metrics_init): Updated. |
| 1818 |
|
| 1819 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1820 |
|
| 1821 |
[autofit] Avoid variable shadowing. |
| 1822 |
|
| 1823 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Do it. |
| 1824 |
|
| 1825 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1826 |
|
| 1827 |
[autofit] Minor speedup of reverse charmap creation. |
| 1828 |
|
| 1829 |
* src/autofit/afglobal.h (AF_HAS_CMAP_ENTRY): New flag. |
| 1830 |
(AF_STYLE_MASK): Update value. |
| 1831 |
* src/autofit/afglobal.c (af_face_globals_compute_style_coverage): Set |
| 1832 |
`AF_HAS_CMAP_ENTRY`. |
| 1833 |
|
| 1834 |
* src/autofit/afadjust.c (af_reverse_character_map_new): For the creation of |
| 1835 |
the reverse map, change code to handle glyphs with cmap entries before |
| 1836 |
glyphs without cmap entries. Doing so avoids some code redundancy and |
| 1837 |
reduces the number of hash lookups. |
| 1838 |
|
| 1839 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1840 |
|
| 1841 |
[autofit] Whitespace. |
| 1842 |
|
| 1843 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1844 |
|
| 1845 |
[autofit] Use `FT_Offset`. |
| 1846 |
|
| 1847 |
* src/autofit/afadjust.c (af_adjustment_database_lookup, |
| 1848 |
af_reverse_character_map_new): Do it. |
| 1849 |
|
| 1850 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1851 |
|
| 1852 |
[autofit] Simplify return value of `af_adjustment_database_lookup`. |
| 1853 |
|
| 1854 |
* src/autofit/adfadjust.h (af_adjustment_database_lookup): Return integer. |
| 1855 |
(AF_AdjustmentDatabaseEntry): Move structure to... |
| 1856 |
* src/autofit/afadjust.c: ...this file. |
| 1857 |
(af_adjustment_database_lookup, af_reverse_character_map_new): Updated. |
| 1858 |
* src/autofit/aflatin.c |
| 1859 |
(af_glyph_hints_apply_vertical_separation_adjustments): Updated. |
| 1860 |
|
| 1861 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1862 |
|
| 1863 |
[autofit] Remove no longer used functions and structures. |
| 1864 |
|
| 1865 |
This is the clean-up from the previous commit. |
| 1866 |
|
| 1867 |
* src/autofit/afadjust.c (af_reverse_character_map_entry_compare, |
| 1868 |
af_reverse_character_map_lookup, af_reverse_character_map_expand): |
| 1869 |
Removed. |
| 1870 |
* src/autofit/afadjust.h: Updated. |
| 1871 |
* src/autofit/aftypes.h (AF_ReverseMapEntry, AF_ReverseCharacterMap): |
| 1872 |
Removed. |
| 1873 |
|
| 1874 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1875 |
|
| 1876 |
[autofit] Use a hash for handling vertical accent adjustments. |
| 1877 |
|
| 1878 |
This greatly simplifies the code. |
| 1879 |
|
| 1880 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Implement it. |
| 1881 |
(af_reverse_character_map_done): Updated. |
| 1882 |
* src/autofit/afadjust.h: Updated. |
| 1883 |
|
| 1884 |
* src/autofit/aflatin.c |
| 1885 |
(af_glyph_hints_apply_vertical_separation_adjustments): Updated. |
| 1886 |
|
| 1887 |
* src/autofit/aftypes.h: Include `fthash.h`. |
| 1888 |
(AF_StyleMetrics): Change type of `reverse_charmap` to `FT_Hash`. |
| 1889 |
|
| 1890 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1891 |
|
| 1892 |
* src/autofit/aflatin.c (af_latin_hints_apply): Improve code legibility. |
| 1893 |
|
| 1894 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1895 |
|
| 1896 |
[autofit] Use `FT_LONG_MIN` and `FT_LONG_MAX` for `FT_Pos` variables. |
| 1897 |
|
| 1898 |
* src/autofit/aflatin.c (af_latin_metrics_init_blues, |
| 1899 |
af_compute_vertical_extrema, af_find_highest_contour, |
| 1900 |
af_find_second_highest_contour, af_find_lowest_contour, |
| 1901 |
af_find_second_lowest_contour, af_check_contour_horizontal_overlap): |
| 1902 |
Updated. |
| 1903 |
|
| 1904 |
2025-05-25 Werner Lemberg <[email protected]> |
| 1905 |
|
| 1906 |
[autofit] Fix uninitialized variables. |
| 1907 |
|
| 1908 |
* src/autofit/aflatin.c (af_latin_stretch_top_tilde, |
| 1909 |
af_latin_stretch_bottom_tilde): Initialize `min_measurement`. |
| 1910 |
|
| 1911 |
2025-05-23 Behdad Esfahbod <[email protected]> |
| 1912 |
|
| 1913 |
[ttmtx] Fix check for being non-default variation position. |
| 1914 |
|
| 1915 |
If user explicitly sets variations to `NULL` after it being set to something |
| 1916 |
else, `face->blend` will still be non-`NULL`. The intention here however is |
| 1917 |
correctly captured by `FT_IS_VARIATION`. |
| 1918 |
|
| 1919 |
* src/sfnt/ttmtx.c (tt_face_get_metrics): Use `FT_IS_VARIATION`. |
| 1920 |
|
| 1921 |
2025-05-23 Behdad Esfahbod <[email protected]> |
| 1922 |
|
| 1923 |
[gxvar] Optimize loading of 'gvar' table. |
| 1924 |
|
| 1925 |
* src/truetype/ttgxvar.c (tt_var_load_item_variation_store, |
| 1926 |
tt_var_load_delta_set_index_mapping, ft_var_load_gvar): Use frames to |
| 1927 |
reduce bounds checking. |
| 1928 |
(TT_Vary_Apply_Glyph_Deltas): Better macro usage. |
| 1929 |
|
| 1930 |
2025-05-22 Behdad Esfahbod <[email protected]> |
| 1931 |
|
| 1932 |
[mm] Short-circuit setting face to default instance if already is so. |
| 1933 |
|
| 1934 |
I found that in hb-ft I need to sometime reset the face to the default |
| 1935 |
instance. However, calling `FT_Set_Var_Design_Coordinates` with no coords |
| 1936 |
was still slowing down at least the glyph-advance code by processing |
| 1937 |
variations. |
| 1938 |
|
| 1939 |
Perhaps there's a better fix, but this handles the easy cases. |
| 1940 |
|
| 1941 |
* src/base/ftmm.c (FT_Set_Var_Design_Coordinates): Implement it. |
| 1942 |
|
| 1943 |
2025-05-22 Behdad Esfahbod <[email protected]> |
| 1944 |
|
| 1945 |
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Fix allocation. |
| 1946 |
|
| 1947 |
Bug was introduced in commit 582de1a4b6f. |
| 1948 |
|
| 1949 |
2025-05-21 Werner Lemberg <[email protected]> |
| 1950 |
|
| 1951 |
* src/truetype/ttgxvar.c (ft_var_apply_tuple): Remove redundant test. |
| 1952 |
|
| 1953 |
This was erroneously added in commit e6e9110a8. |
| 1954 |
|
| 1955 |
2025-05-21 ColdPaleLight <[email protected]> |
| 1956 |
|
| 1957 |
[sdf] Skip neighbor comparison for pixels near edges. |
| 1958 |
|
| 1959 |
If the distance of the current pixel to the edge is less than or equal |
| 1960 |
to 0.5, skip further neighbor comparisons to avoid unnecessary |
| 1961 |
calculations. When the `USE_SQUARED_DISTANCES` macro is defined, |
| 1962 |
compare to 0.25 instead. |
| 1963 |
|
| 1964 |
* src/sdf/ftbsdf.c (compare_neighbor): Add early return for pixels |
| 1965 |
close to edges to avoid unnecessary neighbor checks. |
| 1966 |
|
| 1967 |
2025-05-21 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 1968 |
|
| 1969 |
[gxvar] Cache shared-tuple scalar values. |
| 1970 |
|
| 1971 |
GoogleSansFlex HB benchmark-font draw results: |
| 1972 |
|
| 1973 |
Before: 2.13ms |
| 1974 |
After: 1.65ms |
| 1975 |
Speedup: 22% |
| 1976 |
|
| 1977 |
* src/truetype/ttgxvar.h (GX_BlendRec): Add `tuplescalars` field. |
| 1978 |
|
| 1979 |
* src/truetype/ttgxvar.c (ft_var_load_gvar): Allocate `tuplescalars` array. |
| 1980 |
(tt_set_mm_blend): Set its values. |
| 1981 |
(TT_Vary_Apply_Glyph_Deltas): Use it. |
| 1982 |
(tt_done_blend): Deallocate it. |
| 1983 |
|
| 1984 |
2025-05-21 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 1985 |
|
| 1986 |
[gxvar] Reduce number of mallocs. |
| 1987 |
|
| 1988 |
8% speed up in drawing GoogleSansFlex variable in HB benchmark-font. |
| 1989 |
|
| 1990 |
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Use an allocation |
| 1991 |
pool instead of individual allocations. |
| 1992 |
|
| 1993 |
2025-05-21 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 1994 |
|
| 1995 |
[gxvar] Another optimization in computing scalar. |
| 1996 |
|
| 1997 |
Another ~6% speedup in GoogleSansFlex var drawing. |
| 1998 |
|
| 1999 |
* src/truetype/ttgxvar.c (ft_var_apply_tuple): Test `ncv` for being zero. |
| 2000 |
|
| 2001 |
2025-05-21 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 2002 |
|
| 2003 |
[gxvar] Remove stale comment. |
| 2004 |
|
| 2005 |
The code *does* check against start/end! |
| 2006 |
|
| 2007 |
2025-05-21 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 2008 |
|
| 2009 |
* src/truetype/ttgxvar.c (ft_var_apply_tuple): Micro-optimize. |
| 2010 |
|
| 2011 |
2025-05-21 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 2012 |
|
| 2013 |
[gxvar] Inline two USHORT reads. |
| 2014 |
|
| 2015 |
Speeds up GoogleSansFlex variable glyph drawing by ~13%. |
| 2016 |
|
| 2017 |
Before: 2.95ms |
| 2018 |
After: 2.57ms |
| 2019 |
|
| 2020 |
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Do it. |
| 2021 |
|
| 2022 |
2025-05-21 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 2023 |
|
| 2024 |
[gxvar] Micro-optimize loop end condition. |
| 2025 |
|
| 2026 |
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Do it. |
| 2027 |
|
| 2028 |
2025-05-21 Behdad Esfahbod <[email protected]> |
| 2029 |
|
| 2030 |
[truetype] Don't process `mvar` metrics if default instance. |
| 2031 |
|
| 2032 |
GoogleSansFlex default-instance HarfBuzz benchmark-font draw: |
| 2033 |
|
| 2034 |
Before: 0.610ms |
| 2035 |
After: 0.435ms |
| 2036 |
Speedup: 28% |
| 2037 |
|
| 2038 |
* src/truetype/ttobjs.c (tt_face_init) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: |
| 2039 |
Check `instance_index`. |
| 2040 |
|
| 2041 |
2025-05-21 Alexei Podtelezhnikov <[email protected]> |
| 2042 |
|
| 2043 |
* src/truetype/ttinterp.c (Ins_MIRP,DELTAP,DELTAC): Minor. |
| 2044 |
|
| 2045 |
2025-05-20 Alexei Podtelezhnikov <[email protected]> |
| 2046 |
|
| 2047 |
[truetype] Update bytecode error handling. |
| 2048 |
|
| 2049 |
* src/truetype/ttinterp.c (Ins_SHP,SHPIX,ALIGNRP): Return appropriate |
| 2050 |
error in case of stack underflow. |
| 2051 |
(Ins_IP): Ditto and remove redundant check. |
| 2052 |
|
| 2053 |
2025-05-19 Werner Lemberg <[email protected]> |
| 2054 |
|
| 2055 |
* src/aflatin.c (af_latin_hint_edges): Refine fix for serif handling. |
| 2056 |
|
| 2057 |
Commit 11432424 (from 2025-May-12) was too aggressive; it is now restricted |
| 2058 |
to edges that are not too far away. |
| 2059 |
|
| 2060 |
2025-05-19 Werner Lemberg <[email protected]> |
| 2061 |
|
| 2062 |
* src/afadjust.c (adjustment_database): Make it complete up to U+FFFF. |
| 2063 |
|
| 2064 |
Also fix two entries. |
| 2065 |
|
| 2066 |
This is for Unicode 17.0. |
| 2067 |
|
| 2068 |
2025-05-19 Werner Lemberg <[email protected]> |
| 2069 |
|
| 2070 |
[autofit] Fix vertical adjustment of (mainly) double diacritics. |
| 2071 |
|
| 2072 |
The series of commits that introduced this adjustment support had some |
| 2073 |
flaws. |
| 2074 |
|
| 2075 |
- If there were two diacritics on top of a base glyph, and the upper |
| 2076 |
diacritic was a tilde, the vertical centering correction was incorrectly |
| 2077 |
applied to the lower, non-tilde glyph instead of the tilde. |
| 2078 |
|
| 2079 |
- The maximum value allowed to shift a glyph was too strict (and also not |
| 2080 |
handling rounding issues), causing some diacritics and combinations of |
| 2081 |
diacritics to be not shifted at all. |
| 2082 |
|
| 2083 |
* src/autofit/aflatin.c |
| 2084 |
(af_glyph_hints_apply_vertical_separation_adjustments): Correctly handle |
| 2085 |
vertical centering correction. |
| 2086 |
|
| 2087 |
2025-05-19 Werner Lemberg <[email protected]> |
| 2088 |
|
| 2089 |
[autofit] Code hygiene. |
| 2090 |
|
| 2091 |
* src/autofit/aflatin.c |
| 2092 |
(af_glyph_hints_apply_vertical_separation_adjustments): Use more flag |
| 2093 |
variables and improve trace messages. |
| 2094 |
|
| 2095 |
2025-05-19 Werner Lemberg <[email protected]> |
| 2096 |
|
| 2097 |
* src/autofit/aflatin.c (af_latin_hint_edges): Fix handling of serifs. |
| 2098 |
|
| 2099 |
This has been discovered while inspecting the auto-hinting results of |
| 2100 |
character 'Ễ' in font `arial.ttf` (version 7.00) at 13ppem. |
| 2101 |
|
| 2102 |
2025-05-19 Werner Lemberg <[email protected]> |
| 2103 |
|
| 2104 |
[autofit] Minor. |
| 2105 |
|
| 2106 |
* src/autofit/aflatin.c (af_latin_hint_edges): Rename `has_serifs` to |
| 2107 |
`has_non_stem_edges` and make it of type `FT_Bool`. |
| 2108 |
|
| 2109 |
2025-05-19 Werner Lemberg <[email protected]> |
| 2110 |
|
| 2111 |
[autofit] New algorithm for preventing hinting of tilde glyphs. |
| 2112 |
|
| 2113 |
The old algorithm removed segments from edges to make the auto-hinter ignore |
| 2114 |
a tilde. However, the implementation had two flaws. |
| 2115 |
|
| 2116 |
- Edge array elements were moved around without reordering them afterwards. |
| 2117 |
- The linking between edges and segments wasn't correctly updated for moved |
| 2118 |
edges, which could cause endless loops. |
| 2119 |
|
| 2120 |
Correcting both problems are non-trivial; additionally, a fix would make |
| 2121 |
the auto-hinter slower. |
| 2122 |
|
| 2123 |
For these reasons, a new, simpler approach is taken: A new flag allows |
| 2124 |
points to be tagged as being ignored, and if such a point is enountered, it |
| 2125 |
doesn't get added to a segment. |
| 2126 |
|
| 2127 |
Fixes issue #1333. |
| 2128 |
|
| 2129 |
* src/autofit/afhints.h (AF_FLAG_IGNORE): New macro. |
| 2130 |
|
| 2131 |
* src/autofit/aflatin.c (af_latin_hints_compute_segments, af_touch_contour): |
| 2132 |
Use it. |
| 2133 |
(af_remove_segments_containing_point, af_remove_top_points_from_edges, |
| 2134 |
af_remove_bottom_points_from_edges): Removed. |
| 2135 |
(af_latin_stretch_top_tilde): Call `af_touch_top_contours` and |
| 2136 |
`af_touch_bottom_contours` unconditionally. |
| 2137 |
(af_latin_hints_apply): Updated. |
| 2138 |
|
| 2139 |
2025-05-16 Alexei Podtelezhnikov <[email protected]> |
| 2140 |
|
| 2141 |
* src/truetype/ttinterp.c (TT_DotFix14): Silence UBSAN. |
| 2142 |
|
| 2143 |
2025-05-16 Alexei Podtelezhnikov <[email protected]> |
| 2144 |
|
| 2145 |
* src/truetype/ttinterp.c (Ins_DELTAP): Flip if-else. |
| 2146 |
|
| 2147 |
2025-05-15 Alexei Podtelezhnikov <[email protected]> |
| 2148 |
|
| 2149 |
[truetype] Optimize DELTAP and DELTAC. |
| 2150 |
|
| 2151 |
* src/truetype/ttinterp.c (Ins_DELTAP,DELTAC): Perform PPEM range- |
| 2152 |
checking and manipulations outside the loop. |
| 2153 |
|
| 2154 |
2025-05-14 Alexei Podtelezhnikov <[email protected]> |
| 2155 |
|
| 2156 |
* src/truetype/ttinterp.c (Compute_Funcs): Replace shifts. |
| 2157 |
|
| 2158 |
2025-05-14 Alexei Podtelezhnikov <[email protected]> |
| 2159 |
|
| 2160 |
[truetype] Tighten code overflow checks. |
| 2161 |
|
| 2162 |
Fixes #1336. |
| 2163 |
|
| 2164 |
* src/truetype/ttinterp.c (Ins_NPUSHB,NPUSHW,PUSHB, PUSHW): |
| 2165 |
Tighten conditions. |
| 2166 |
|
| 2167 |
2025-05-14 Chris Liddell <[email protected]> |
| 2168 |
|
| 2169 |
[type1] Fix memory leak on CharString error. |
| 2170 |
|
| 2171 |
In the event that a CharString retrieved via the incremental interface |
| 2172 |
caused an error, the memory for that CharString was not being freed. |
| 2173 |
|
| 2174 |
* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Free charstring. |
| 2175 |
|
| 2176 |
2025-05-14 Werner Lemberg <[email protected]> |
| 2177 |
|
| 2178 |
Whitespace, formatting, minor spelling fix. |
| 2179 |
|
| 2180 |
2025-05-14 Werner Lemberg <[email protected]> |
| 2181 |
|
| 2182 |
Adminstrativa. |
| 2183 |
|
| 2184 |
2025-05-13 Alexei Podtelezhnikov <[email protected]> |
| 2185 |
|
| 2186 |
[truetype] Finalize bytecode changes. |
| 2187 |
|
| 2188 |
* src/truetype/ttinterp.c: Formatting, minor. |
| 2189 |
(TT_Goto_CodeRange): Initialize 'iniRange' here... |
| 2190 |
(TT_RunIns): ... instead of here. |
| 2191 |
* docs/CHANGES: Updated. |
| 2192 |
|
| 2193 |
2025-05-13 Alexei Podtelezhnikov <[email protected]> |
| 2194 |
|
| 2195 |
[truetype] Streamline backward compatibility. |
| 2196 |
|
| 2197 |
The 'backward_compatibility' is only set in v40: no need to check |
| 2198 |
the interpreter version again and again. In addition, we now track |
| 2199 |
IUP in its lower bits. After both IUPx and IUPy have been called, |
| 2200 |
'backward_compatibility' becomes equal to 0x7. |
| 2201 |
|
| 2202 |
* src/truetype/ttinterp.h (TT_ExecContextRec): Wrap 'iup?_called' |
| 2203 |
into 'backward_compatibility'. |
| 2204 |
* src/truetype/ttinterp.c (Ins_INSTCTRL): Sync 'backward_compatibility'. |
| 2205 |
(Direct_Move, Direct_Move_X/Y, Move_Zp2_Point, |
| 2206 |
Ins_FLIPPT,FLIPRGON,FLIPRGOFF,SHPIX,DELTAP): Updated. |
| 2207 |
(TT_RunIns): Do not mess with IUP flags. |
| 2208 |
* src/truetype/ttgload.c (tt_loader_init): Set 'backward_compatibility'. |
| 2209 |
(TT_Hint_Glyph): Updated. |
| 2210 |
|
| 2211 |
2025-05-10 Alexei Podtelezhnikov <[email protected]> |
| 2212 |
|
| 2213 |
[truetype] Optimize bytecode movements. |
| 2214 |
|
| 2215 |
Replacing FT_MulDiv with FT_MulFix gives large performance gains. |
| 2216 |
|
| 2217 |
* src/truetype/ttinterp.h (TT_ExecContextRec): Store "projected" |
| 2218 |
freedom vector. |
| 2219 |
* src/truetype/ttinterp.c (Compute_Funcs): Compute "projected" |
| 2220 |
freedom vector. |
| 2221 |
(Direct_Move, Direct_Move_Orig, Compute_Point_displacement): Use it. |
| 2222 |
|
| 2223 |
2025-05-10 Alexei Podtelezhnikov <[email protected]> |
| 2224 |
|
| 2225 |
[truetype] Simplify stack access. |
| 2226 |
|
| 2227 |
* src/truetype/ttinterp.c (Ins_MINDEX,CINDEX): Use local stack pointers. |
| 2228 |
(Ins_DELTAP,DELTAC): Ditto; limit the number of pairs before looping. |
| 2229 |
|
| 2230 |
2025-05-10 Alexei Podtelezhnikov <[email protected]> |
| 2231 |
|
| 2232 |
[truetype] Tweak bytecode looping. |
| 2233 |
|
| 2234 |
* src/truetype/ttinterp.c (Ins_FLIPPT,SHP,SHPIX,IP,ALIGNRP): Handle |
| 2235 |
counters and stack locally. |
| 2236 |
(TT_RunIns): Updated. |
| 2237 |
|
| 2238 |
2025-05-10 Alexei Podtelezhnikov <[email protected]> |
| 2239 |
|
| 2240 |
[truetype] Tweak bytecode initiation. |
| 2241 |
|
| 2242 |
* src/truetype/ttinterp.c (TT_Load_Context): Init stack tops. |
| 2243 |
* src/truetype/ttinterp.h (TT_ExecContextRec): Document it and clean. |
| 2244 |
* src/truetype/ttobjs.c (tt_size_run_prep,fpgm): Updated. |
| 2245 |
* src/truetype/ttgload.c (tt_loader_init): Minor. |
| 2246 |
|
| 2247 |
2025-05-10 Alexei Podtelezhnikov <[email protected]> |
| 2248 |
|
| 2249 |
[truetype] Modify stack handling. |
| 2250 |
|
| 2251 |
* src/truetype/ttinterp.c (Ins_GETVARIATION): Increment stack. |
| 2252 |
(Ins_NPUSHB,NPUSHW,PUSHB,PUSHW): Handle the code stack here, ... |
| 2253 |
(TT_RunIns): ... instead of here. Consolidate error handling. |
| 2254 |
(SkipCode): Remove preemptive check. |
| 2255 |
|
| 2256 |
2025-05-10 Alexei Podtelezhnikov <[email protected]> |
| 2257 |
|
| 2258 |
[truetype] Modify bytecode steps. |
| 2259 |
|
| 2260 |
* src/truetype/ttinterp.h (TT_Exec_ContextRec): Remove 'step_ins'. |
| 2261 |
* src/truetype/ttinterp.c (TT_RunIns, Ins_Goto_CodeRange, |
| 2262 |
Ins_JMPR,ENDF,PUSHW,NPUSHW): Set and use zero increment 'length' instead. |
| 2263 |
(Ins_CALL,LOOPCALL,UNKNOWN): Updated. |
| 2264 |
|
| 2265 |
2025-05-10 Werner Lemberg <[email protected]> |
| 2266 |
|
| 2267 |
[autofit] Add safety check for accent adjustments. |
| 2268 |
|
| 2269 |
This commit does two things. |
| 2270 |
|
| 2271 |
- Ignore accents that have too large heights. This situation can happen if |
| 2272 |
an accent outline is unexpectedly not the highest (or lowest) contour. |
| 2273 |
- Add a new adjustment flag `AF_ADJUST_NO_HEIGHT_CHECK` to override the |
| 2274 |
height check. |
| 2275 |
|
| 2276 |
* src/autofit/afadjust.h (AF_ADJUST_NO_HEIGHT_CHECK): New macro. |
| 2277 |
|
| 2278 |
* src/autofit/afadjust.c (adjustment_database): Updated. |
| 2279 |
|
| 2280 |
* src/autofit/aflatin.c (af_latin_hints_apply): Handle new flag. |
| 2281 |
(af_glyph_hints_apply_vertical_separation_adjustments): Check limit. |
| 2282 |
|
| 2283 |
2025-05-10 Werner Lemberg <[email protected]> |
| 2284 |
|
| 2285 |
[autofit] Better handling of characters with attached diacritics. (3/3) |
| 2286 |
|
| 2287 |
Fixes issue #136. |
| 2288 |
|
| 2289 |
* src/autofit/afadjust.c (adjustment_database): Updated. |
| 2290 |
|
| 2291 |
2025-05-10 Werner Lemberg <[email protected]> |
| 2292 |
|
| 2293 |
[autofit] Better handling of characters with attached diacritics. (2/3) |
| 2294 |
|
| 2295 |
* src/autofit/afadjust.h (AF_IGNORE_CAPITAL_TOP, AF_IGNORE_CAPITAL_BOTTOM, |
| 2296 |
AF_IGNORE_SMALL_TOP, AF_IGNORE_SMALL_BOTTOM): New macros. |
| 2297 |
|
| 2298 |
* src/autofit/afadjust.c (af_reverse_character_map_new) |
| 2299 |
[FT_DEBUG_LEVEL_TRACE]: Updated. |
| 2300 |
Also fix debugging strings of other flags. |
| 2301 |
|
| 2302 |
* src/autofit/afhints.h (AF_EDGE_NO_BLUE): New edge flag to make the |
| 2303 |
auto-hinter ignore the edge while assigning blue zones. |
| 2304 |
|
| 2305 |
* src/autofit/aflatin.c (af_latin_hints_compute_blue_edges): Use it. |
| 2306 |
(af_prevent_top_blue_alignment, af_prevent_bottom_blue_alignment, |
| 2307 |
af_latin_get_base_glyph_blues, af_latin_ignore_top, |
| 2308 |
af_latin_ignore_bottom): New functions. |
| 2309 |
(af_latin_hints_apply): Updated. |
| 2310 |
|
| 2311 |
2025-05-10 Werner Lemberg <[email protected]> |
| 2312 |
|
| 2313 |
[autofit] Better handling of characters with attached diacritics. (1/3) |
| 2314 |
|
| 2315 |
Introduce blue zone properties that will be used to make the auto-hinter |
| 2316 |
ignore diacritics attached on the top or the bottom of a base character. |
| 2317 |
|
| 2318 |
* src/autofit/afblue.hin (AF_BLUE_PROPERTY_LATIN_CAPITAL_BOTTOM, |
| 2319 |
AF_BLUE_PROPERTY_LATIN_SMALL_BOTTOM): New properties. |
| 2320 |
* src/autofit/afblue.dat: Use them. |
| 2321 |
|
| 2322 |
* src/autofit/afblue.c, src/autofit/afblue.h: Rengenerated. |
| 2323 |
|
| 2324 |
* src/autofit/aflatin.h (AF_LATIN_IS_CAPITAL_BOTTOM_BLUE, |
| 2325 |
AF_LATIN_IS_SMALL_BOTTOM_BLUE, AF_LATIN_BLUE_BOTTOM, |
| 2326 |
AF_LATIN_BLUE_BOTTOM_SMALL): New macros. |
| 2327 |
|
| 2328 |
* src/autofit/aflatin.c (af_latin_metrics_init_blues)[FT_DEBUG_LEVEL_TRACE]: |
| 2329 |
Updated. |
| 2330 |
|
| 2331 |
2025-05-09 Alexei Podtelezhnikov <[email protected]> |
| 2332 |
|
| 2333 |
* src/raster/ftraster.c (Line_Up): Use 64-bit calculations. |
| 2334 |
|
| 2335 |
Attempt to fix #1332. |
| 2336 |
|
| 2337 |
2025-05-09 Werner Lemberg <[email protected]> |
| 2338 |
|
| 2339 |
[sfnt] Avoid allocation bomb in compressed SVG documents. |
| 2340 |
|
| 2341 |
Reported as |
| 2342 |
|
| 2343 |
https://issues.oss-fuzz.com/issues/416538625 |
| 2344 |
|
| 2345 |
* src/sfnt/ttsvg.c (MAX_SVG_SIZE): New macro. |
| 2346 |
(tt_face_load_svg_doc): Reject too large buffer. |
| 2347 |
|
| 2348 |
2025-05-08 Werner Lemberg <[email protected]> |
| 2349 |
|
| 2350 |
* include/freetype/ttnameid.h (TT_UCR_*): Define with unsigned long. |
| 2351 |
(TT_UCR_PHAGSPA): Fix definition. |
| 2352 |
|
| 2353 |
Fixes issue #1300. |
| 2354 |
|
| 2355 |
2025-05-08 Werner Lemberg <[email protected]> |
| 2356 |
|
| 2357 |
[doc] Mention that there is no rendering support for 'COLR' v1 tables. |
| 2358 |
|
| 2359 |
Handles issue #1319. |
| 2360 |
|
| 2361 |
2025-05-08 Alexei Podtelezhnikov <[email protected]> |
| 2362 |
|
| 2363 |
* src/truetype/ttinterp.c (TT_DotFix14): Silence UBSAN. |
| 2364 |
|
| 2365 |
2025-05-07 Alexei Podtelezhnikov <[email protected]> |
| 2366 |
|
| 2367 |
* src/cff/cffgload.c (cff_slot_load): Fix autohinter scaling. |
| 2368 |
|
| 2369 |
Fixes #1330. |
| 2370 |
|
| 2371 |
2025-05-05 Werner Lemberg <[email protected]> |
| 2372 |
|
| 2373 |
[autofit] Avoid division by zero. |
| 2374 |
|
| 2375 |
Fixes issue #1331. |
| 2376 |
|
| 2377 |
* src/autofit/aflatin.c (af_latin_stretch_bottom_tilde): Don't divide by |
| 2378 |
zero. |
| 2379 |
|
| 2380 |
2025-05-04 Carlo Bramini <[email protected]> |
| 2381 |
|
| 2382 |
Fix Cygwin visibility attributes. |
| 2383 |
|
| 2384 |
Reported as compilation warnings in #1329. |
| 2385 |
|
| 2386 |
* include/freetype/config/public-macros.h: Check __CYGWIN__. |
| 2387 |
* include/freetype/internal/compiler-macros.h: Ditto. |
| 2388 |
|
| 2389 |
2025-05-03 KatekovAnton <[email protected]> |
| 2390 |
|
| 2391 |
* CMakeLists.txt: Fix cmake 4 error by specifying the policy version. |
| 2392 |
|
| 2393 |
2025-04-29 Werner Lemberg <[email protected]> |
| 2394 |
|
| 2395 |
* docs/CHANGES: Updated. |
| 2396 |
|
| 2397 |
2025-04-29 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 2398 |
|
| 2399 |
Provide configuration option to dynamically load the HarfBuzz library. |
| 2400 |
|
| 2401 |
We now request HarfBuzz version 2.6.8 (published in June 2020) or newer to |
| 2402 |
simplify the setup; this version introduced function |
| 2403 |
`hb_ot_layout_lookup_get_glyph_alternates`, which we need for the adjustment |
| 2404 |
database of the auto-hinter. |
| 2405 |
|
| 2406 |
No CMake support yet for dynamic loading. |
| 2407 |
|
| 2408 |
* include/freetype/config/ftoption.h, devel/ftoption.h |
| 2409 |
(FT_CONFIG_OPTION_USE_HARFBUZZ_DYNAMIC): New configuration macro. |
| 2410 |
|
| 2411 |
* builds/unix/configure.raw: Implement `--with-harfbuzz=dynamic`. |
| 2412 |
This gets tested automatically if we can't link with `libharfbuzz`. |
| 2413 |
(ft_option_set, ft_option_unset): Refine. |
| 2414 |
Require at least HarfBuzz version 2.6.8. |
| 2415 |
|
| 2416 |
* meson.build: Do the same as `configure.raw`. |
| 2417 |
* meson_options.txt: Updated. |
| 2418 |
|
| 2419 |
* CMakeLists.txt: Require at least HarfBuzz version 2.6.8. |
| 2420 |
|
| 2421 |
2025-04-29 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 2422 |
|
| 2423 |
[autofit] Enable dynamic loading of HarfBuzz. (2/2) |
| 2424 |
|
| 2425 |
Handle the case where loading HarfBuzz dynamically fails. |
| 2426 |
|
| 2427 |
* src/autofit/ft-hb.c, src/autofit/ft-hb.h (ft_hb_enabled): New function. |
| 2428 |
|
| 2429 |
* src/autofit/afglobal.c (af_face_globals_new, af_face_globals_free): |
| 2430 |
Guard HarfBuzz functions with `ft_hb_enabled`. |
| 2431 |
|
| 2432 |
* src/autofit/aflatin.c (af_latin_metrics_init_widths, |
| 2433 |
af_latin_metrics_init_blues, af_latin_metrics_check_digits): Simplify |
| 2434 |
setup of `shaper_buf`. |
| 2435 |
Guard calls of `af_shaper_buf_create` with `ft_hb_enabled`. |
| 2436 |
|
| 2437 |
* src/autofit/afcjk.c (af_cjk_metrics_init_widths, |
| 2438 |
af_cjk_metrics_init_blues, af_cjk_metrics_check_digits): Dito. |
| 2439 |
|
| 2440 |
* src/autofit/afshaper.c: Guard all HarfBuzz function calls with |
| 2441 |
`ft_hb_enabled`. |
| 2442 |
|
| 2443 |
2025-04-29 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 2444 |
|
| 2445 |
[autofit] Enable dynamic loading of HarfBuzz. (1/2) |
| 2446 |
|
| 2447 |
This commit activates the mini-HarfBuzz header files and provides the |
| 2448 |
necessary infrastructure for dynamically loading HarfBuzz if |
| 2449 |
`FT_CONFIG_OPTION_USE_HARFBUZZ_DYNAMIC` is defined (this macro gets set up |
| 2450 |
in a follow-up commit). |
| 2451 |
|
| 2452 |
* src/autofit/ft-hb.c: New file, providing `ft_hb_funcs_init` and |
| 2453 |
`ft_hb_funcs_done` for loading HarfBuzz dynamically. The name of the |
| 2454 |
library is hold in the macro `FT_LIBHARFBUZZ`, which can be overridden. |
| 2455 |
|
| 2456 |
* src/autofit/ft-hb.h: Don't include `hb.h` but `ft-hb-types.h`. |
| 2457 |
(hb): Modified to handle both standard linking and dynamically |
| 2458 |
loading of HarfBuzz. |
| 2459 |
(HB_EXTERN): New macro to load `ft-hb-decls.h`. |
| 2460 |
|
| 2461 |
* src/autofit/afadjust.c [FT_CONFIG_OPTION_USE_HARFBUZZ]: For the sake of |
| 2462 |
dynamically loading the HarfBuzz library, replace the compile-time macro |
| 2463 |
`HB_VERSION_ATLEAST` with a call to the run-time function |
| 2464 |
`hb_version_atleast` where necessary – a follow-up commit will set the |
| 2465 |
minimum version of HarfBuzz to 2.6.8, which provides all necessary |
| 2466 |
functions needed by FreeType. |
| 2467 |
|
| 2468 |
* src/autofit/afmodule.h: Include `ft-hb.h`. |
| 2469 |
(AF_ModuleRec) [FT_CONFIG_OPTION_USE_HARFBUZZ_DYNAMIC]: Add `hb_funcs` |
| 2470 |
structure to hold pointers to the dynamically loaded HarfBuzz functions. |
| 2471 |
|
| 2472 |
* src/autofit/afmodule.c (af_autofitter_init, af_autofitter_done) |
| 2473 |
[FT_CONFIG_OPTION_USE_HARFBUZZ_DYNAMIC]: Call `ft_hb_funcs_init` and |
| 2474 |
`ft_hb_funcs_done`. |
| 2475 |
|
| 2476 |
* src/autofit/afshaper.h: Updated. |
| 2477 |
* src/autofit/autofit.c: Include `ft-hb.c`. |
| 2478 |
|
| 2479 |
* src/autofit/rules.mk (AUTOF_DRV_SRC, AUTOF_DRV_H): Updated. |
| 2480 |
|
| 2481 |
2025-04-29 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 2482 |
|
| 2483 |
[autofit] Some preparations for loading HarfBuzz dynamically. (4/4) |
| 2484 |
|
| 2485 |
Add 'mini' HarfBuzz declarations to make FreeType independent on HarfBuzz |
| 2486 |
header files. |
| 2487 |
|
| 2488 |
The files get activated in a follow-up commit. |
| 2489 |
|
| 2490 |
* src/autofit/ft-hb-decls.h, src/autofit/ft-hb-types.h: New files, holding |
| 2491 |
verbatim (or slightly massaged) entries from public HarfBuzz header files. |
| 2492 |
|
| 2493 |
* src/autofit/hb-script: New file. |
| 2494 |
A verbatim copy of a public HarfBuzz header file. |
| 2495 |
|
| 2496 |
2025-04-29 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 2497 |
|
| 2498 |
[autofit] Some preparations for loading HarfBuzz dynamically. (3/4) |
| 2499 |
|
| 2500 |
* src/autofit/afshaper.c: Move around code so that the non-HarfBuzz code is |
| 2501 |
present even if `FT_CONFIG_OPTION_USE_HARFBUZZ` is not defined. This is a |
| 2502 |
preliminary step to allow deactivation of HarfBuzz at run-time. |
| 2503 |
|
| 2504 |
2025-04-29 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 2505 |
|
| 2506 |
[autofit] Some preparations for loading HarfBuzz dynamically. (2/4) |
| 2507 |
|
| 2508 |
Pass `AF_FaceGlobals` to many functions, or provide it, tagged with |
| 2509 |
`FT_UNUSED`. We need this later on to access a dynamically linked HarfBuzz |
| 2510 |
library. |
| 2511 |
|
| 2512 |
* src/autofit/ft-hb-ft.h (ft_hb_ft_font_create): Use `globals` argument. |
| 2513 |
Drop unused `destroy` argument. |
| 2514 |
* src/autofit/ft-hb-ft.c (ft_hb_ft_face_create, ft_hb_ft_font_create): Use |
| 2515 |
`globals` argument. |
| 2516 |
Drop unused `destroy` argument. |
| 2517 |
(ft_hb_ft_face_create, ft_hb_ft_reference_table): Cast `user_data` to |
| 2518 |
`AF_FaceGlobals`. |
| 2519 |
|
| 2520 |
* src/autofit/afadjust.c (af_get_glyph_alternates_helper, |
| 2521 |
af_get_glyph_alternates): Add `globals` argument. |
| 2522 |
Update callers. |
| 2523 |
|
| 2524 |
* src/autofit/afshaper.c, src/autofit/afshaper.h (af_shaper_buf_create, |
| 2525 |
af_shaper_buf_destroy): Use `globals` argument. |
| 2526 |
|
| 2527 |
* src/autofit/afglobal.c (af_face_globals_new): Updated. |
| 2528 |
|
| 2529 |
* src/autofit/afcjk.c (af_cjk_metrics_init_widths, |
| 2530 |
af_cjk_metrics_init_blues, af_cjk_metrics_check_digits): Updated. |
| 2531 |
* src/autofit/aflatin.c (af_latin_metrics_init_widths, |
| 2532 |
af_latin_metrics_init_blues, af_latin_metrics_check_digits): Updated. |
| 2533 |
|
| 2534 |
2025-04-29 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 2535 |
|
| 2536 |
[autofit] Some preparations for loading HarfBuzz dynamically. (1/4) |
| 2537 |
|
| 2538 |
* src/autofit/ft-hb.h: New file, defining the `hb` macro. Later on, we |
| 2539 |
provide a different definition of this macro depending on a yet-to-come |
| 2540 |
configuration option to support dynamic loading of HarfBuzz functions. |
| 2541 |
|
| 2542 |
* src/autofit/afadjust.c, src/autofit/afglobal.c, src/autofit/afshaper.c, |
| 2543 |
stc/ft-hb-ft.c: Use it. |
| 2544 |
|
| 2545 |
2025-04-29 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 2546 |
|
| 2547 |
[autofit] Rename 'ft-hb' to 'ft-hb-ft'. |
| 2548 |
|
| 2549 |
Since it's a (shrinked) copy of 'hb-ft'. |
| 2550 |
|
| 2551 |
* src/autofit/afglobal.c (af_face_globals_new), src/autofit/afshaper.h, |
| 2552 |
src/autofit/autofit.c: Updated. |
| 2553 |
|
| 2554 |
* src/autofit/ft-hb.c, src/autofit/ft-hb.h: Renamed to... |
| 2555 |
* src/autofit/ft-hb-ft.c, src/autofit/ft-hb-ft.h: ...this; updated. |
| 2556 |
|
| 2557 |
* src/autofit/rules.mk (AUTOF_DRV_SRC): Updated. |
| 2558 |
|
| 2559 |
2025-04-29 Werner Lemberg <[email protected]> |
| 2560 |
|
| 2561 |
* src/autofit/aflatin.c (af_latin_stretch_top_tilde): Don't divide by zero. |
| 2562 |
|
| 2563 |
Reported as |
| 2564 |
|
| 2565 |
https://issues.oss-fuzz.com/issues/414320186 |
| 2566 |
|
| 2567 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2568 |
|
| 2569 |
[autofit] Extend adjustment database with characters up to U+1FFF. |
| 2570 |
|
| 2571 |
This adds many pre-combined Latin glyphs, Cyrillic, Greek, and some |
| 2572 |
characters from other scripts (or rather, Unicode blocks). |
| 2573 |
|
| 2574 |
Fixes issues #112 and #471. |
| 2575 |
|
| 2576 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2577 |
|
| 2578 |
[autofit] Support diacritics with special vertical minima. |
| 2579 |
|
| 2580 |
This code catches situations like U+1F90 ('ᾐ'), where some fonts have |
| 2581 |
exactly the same vertical minimum for the lower accent as for the base |
| 2582 |
glyph. |
| 2583 |
|
| 2584 |
* src/autofit/aflatin.c (af_find_highest_contour, af_find_lowest_contour): |
| 2585 |
Handle it. |
| 2586 |
|
| 2587 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2588 |
|
| 2589 |
[autofit] More tilde stretch support. (3/3) |
| 2590 |
|
| 2591 |
The auto-hinter now supports up to four tilde glyphs (two above and two |
| 2592 |
below a base character). |
| 2593 |
|
| 2594 |
Note that diacritics above (or below) a tilde are now also ignored by the |
| 2595 |
auto-hinter. |
| 2596 |
|
| 2597 |
* src/autofit/afadjust.h (AF_ADJUST_TILDE_TOP2, AF_ADJUST_TILDE_BOTTOM2): |
| 2598 |
New macros. |
| 2599 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Updated. |
| 2600 |
|
| 2601 |
* src/autofit/aflatin.c (af_remove_top_points_from_edges, |
| 2602 |
af_remove_bottom_points_from_edges): Make functions also handle all |
| 2603 |
contours higher (or lower) of the given one in the argument. |
| 2604 |
(af_touch_top_contours, af_touch_bottom_contours): New functions. |
| 2605 |
(af_latin_stretch_top_tilde, af_latin_stretch_bottom_tilde): Use it to |
| 2606 |
also handle all contours higher (or lower) than the tilde contour. |
| 2607 |
|
| 2608 |
* (af_latin_hints_apply): Handle more tilde glyphs. |
| 2609 |
|
| 2610 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2611 |
|
| 2612 |
[autofit] More tilde stretch support. (2/3) |
| 2613 |
|
| 2614 |
* src/autofit/aflatin.c (af_latin_stretch_top_tilde, |
| 2615 |
af_latin_stretch_bottom_tilde): Return vertical size difference between |
| 2616 |
stretched and original contour. |
| 2617 |
(af_latin_align_top_tilde, af_latin_align_bottom_tilde): Return applied |
| 2618 |
delta. |
| 2619 |
(af_latin_hints_apply): Updated; the return values are not used yet. |
| 2620 |
|
| 2621 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2622 |
|
| 2623 |
[autofit] More tilde stretch support. (1/3) |
| 2624 |
|
| 2625 |
Move some existing code that we soon need elsewhere into separate functions. |
| 2626 |
|
| 2627 |
* src/autofit/aflatin.c (af_move_contours_up, af_move_contours, down): New |
| 2628 |
functions. |
| 2629 |
(af_glyph_hints_apply_vertical_separation_adjustments): Use them. |
| 2630 |
(af_touch_contour): New function. |
| 2631 |
(af_latin_stretch_top_tilde, af_latin_stretch_bottom_tilde): Use it. |
| 2632 |
|
| 2633 |
(af_latin_remove_top_tilde_points_from_edges, |
| 2634 |
af_latin_remove_bottom_tilde_points_from_edges): Renamed to... |
| 2635 |
(af_remove_top_points_from_edges, af_remove_bottom_points_from_edges): |
| 2636 |
...this. |
| 2637 |
Update callers. |
| 2638 |
|
| 2639 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2640 |
|
| 2641 |
[autofit] Support two below/above accents for vertical adjustment. (2/2) |
| 2642 |
|
| 2643 |
* src/autofit/afadjust.h (AF_ADJUST_UP2, AF_ADJUST_DOWN2): New macros. |
| 2644 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Updated. |
| 2645 |
|
| 2646 |
* src/autofit/aflatin.c |
| 2647 |
(af_glyph_hints_apply_vertical_separation_adjustments): Implement it. |
| 2648 |
|
| 2649 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2650 |
|
| 2651 |
[autofit] Support two below/above accents for vertical adjustment. (1/2) |
| 2652 |
|
| 2653 |
Some variable renamings. |
| 2654 |
|
| 2655 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2656 |
|
| 2657 |
[autofit] Routines for finding the second highest/lowest contour. |
| 2658 |
|
| 2659 |
* src/autofit/aflatin.c (af_find_second_highest_contour, |
| 2660 |
af_find_second_lowest_contour): New functions. |
| 2661 |
|
| 2662 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2663 |
|
| 2664 |
[autofit] Use more functions to reduce code. |
| 2665 |
|
| 2666 |
* src/autofit/aflatin.c (af_find_highest_contour, af_find_lowest_contour): |
| 2667 |
Updated. |
| 2668 |
(af_glyph_hints_apply_vertical_separation_adjustments): Use |
| 2669 |
`af_compute_vertical_extrema`, `af_find_highest_contour`, and |
| 2670 |
`af_find_lowest_contour`. |
| 2671 |
(af_latin_hints_apply): Use `af_compute_vertical_extrema`, |
| 2672 |
|
| 2673 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2674 |
|
| 2675 |
* src/autofit/aflatin.c (af_compute_vertical_extrema): New function. |
| 2676 |
|
| 2677 |
To be used in a follow-up commit. |
| 2678 |
|
| 2679 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2680 |
|
| 2681 |
* src/autofit/aflatin.c: Some variable renaming. |
| 2682 |
|
| 2683 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2684 |
|
| 2685 |
[autofit] Avoid recomputation of highest and lowest contour. |
| 2686 |
|
| 2687 |
* src/autofit/aflatin.c (af_latin_hints_apply): Compute highest and lowest |
| 2688 |
contour in this function. |
| 2689 |
(af_latin_remove_top_tilde_points_from_edges, |
| 2690 |
af_latin_remove_bottom_tilde_points_from_edges, |
| 2691 |
af_latin_stretch_top_tilde, af_latin_stretch_bottom_tilde, |
| 2692 |
af_latin_align_top_tilde, af_latin_align_bottom_tilde): Updated. |
| 2693 |
|
| 2694 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2695 |
|
| 2696 |
* src/aflatin.c (af_latin_trace_height): Remove. |
| 2697 |
Update caller. |
| 2698 |
|
| 2699 |
The algorithm works fine. |
| 2700 |
|
| 2701 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2702 |
|
| 2703 |
[autofit] Support vertical stretching of tilde below base glyph. (2/2) |
| 2704 |
|
| 2705 |
* src/autofit/afadjust.h (AF_ADJUST_TILDE_BOTTOM): New macro. |
| 2706 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Updated. |
| 2707 |
|
| 2708 |
* src/autofit/aflatin.c (af_find_lowest_contour, |
| 2709 |
af_latin_remove_bottom_tilde_points_from_edges, |
| 2710 |
af_latin_stretch_bottom_tilde, af_latin_align_bottom_tilde): New functions |
| 2711 |
in analogy to the top tilde versions. |
| 2712 |
(af_glyph_hints_apply_vertical_separation_adjustments): Add support in |
| 2713 |
analogy to the top tilde code. |
| 2714 |
(af_latin_hints_apply): Updated. |
| 2715 |
|
| 2716 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2717 |
|
| 2718 |
[autofit] Support vertical stretching of tilde below base glyph. (1/2) |
| 2719 |
|
| 2720 |
* src/autofit/aflatin.c (af_latin_remove_tilde_points_from_edges, |
| 2721 |
af_latin_stretch_tilde, af_latin_align_tilde): Rename to... |
| 2722 |
(af_latin_remove_top_tilde_points_from_edges, af_latin_stretch_top_tilde, |
| 2723 |
af_latin_align_top_tilde): ...this. |
| 2724 |
Update all callers. |
| 2725 |
(af_latin_hints_apply): Rename `is_tilde` to `is_top_tilde`. |
| 2726 |
|
| 2727 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2728 |
|
| 2729 |
[autofit] Allow vertical adjustment at the top and bottom simultaneously. |
| 2730 |
|
| 2731 |
This will be used to hint characters like U+1FB7 ('ᾷ'). |
| 2732 |
|
| 2733 |
* src/autofit/aflatin.c |
| 2734 |
(af_glyph_hints_apply_vertical_separation_adjustments): Implement it. |
| 2735 |
|
| 2736 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2737 |
|
| 2738 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Update tracing. |
| 2739 |
|
| 2740 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2741 |
|
| 2742 |
[autofit] Indicate tilde handling with a flag macro, too. |
| 2743 |
|
| 2744 |
* src/autofit/afadjust.h (AF_ADJUST_TILDE_TOP): New macro. |
| 2745 |
(AF_AdjustmentDatabaseEntry): Remove field `apply_tilde`. |
| 2746 |
|
| 2747 |
* src/autofit/afadjust.c (adjustment_database, |
| 2748 |
af_reverse_character_map_new), src/autofit/aflatin.c |
| 2749 |
(af_glyph_hints_apply_vertical_separation_adjustments, |
| 2750 |
af_latin_hints_apply): Updated. |
| 2751 |
|
| 2752 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2753 |
|
| 2754 |
[aflatin] Convert adjustment database enum to macros. |
| 2755 |
|
| 2756 |
We are going to add more values, and we want to use combinations of them. |
| 2757 |
|
| 2758 |
* src/autofit/afadjust.h (AF_VerticalSeparationAdjustmentType): Replace |
| 2759 |
with... |
| 2760 |
(AF_ADJUST_UP, AF_ADJUST_DOWN, AF_ADJUST_NONE): ... new macros. |
| 2761 |
(AF_AdjustmentDatabaseEntry): Rename field |
| 2762 |
`vertical_separation_adjustment_type` to `flags`. |
| 2763 |
|
| 2764 |
* src/autofit/afadjust.c (af_reverse_character_map_new), |
| 2765 |
src/autofit/aflatin.c |
| 2766 |
(af_glyph_hints_apply_vertical_separation_adjustments): Updated. |
| 2767 |
|
| 2768 |
2025-04-28 Werner Lemberg <[email protected]> |
| 2769 |
|
| 2770 |
[autofit] Shorten adjustment enum names. |
| 2771 |
|
| 2772 |
* src/autofit/afadjust.h (AF_VERTICAL_ADJUSTMENT_TOP_CONTOUR_UP, |
| 2773 |
AF_VERTICAL_ADJUSTMENT_BOTTOM_CONTOUR_DOWN, AF_VERTICAL_ADJUSTMENT_NONE): |
| 2774 |
Renamed to... |
| 2775 |
(AF_ADJUST_UP, AF_ADJUST_DOWN, AF_ADJUST_NONE): ...this. |
| 2776 |
|
| 2777 |
* src/autofit/afadjust.c (adjustment_database, |
| 2778 |
af_reverse_character_map_expand), src/autofit/aflatin.c |
| 2779 |
(af_glyph_hints_apply_vertical_separation_adjustments): Updated. |
| 2780 |
|
| 2781 |
2025-04-26 Werner Lemberg <[email protected]> |
| 2782 |
|
| 2783 |
* src/autofit/afranges.c: Updated to Unicode 17.0. |
| 2784 |
|
| 2785 |
But no support for new scripts (volunteers welcomed). |
| 2786 |
|
| 2787 |
2025-04-26 Werner Lemberg <[email protected]> |
| 2788 |
|
| 2789 |
* src/autofit/afranges.c: Updated to Unicode 16.0. |
| 2790 |
|
| 2791 |
But no support for new scripts (volunteers welcomed). |
| 2792 |
|
| 2793 |
2025-04-26 Werner Lemberg <[email protected]> |
| 2794 |
|
| 2795 |
* src/autofit/afranges.c: Updated to Unicode 15.1. |
| 2796 |
|
| 2797 |
But no support for new scripts (volunteers welcomed). |
| 2798 |
|
| 2799 |
2025-04-26 Werner Lemberg <[email protected]> |
| 2800 |
|
| 2801 |
* src/autofit/afranges.c: Updated to Unicode 14.0. |
| 2802 |
|
| 2803 |
But no support for new scripts (volunteers welcomed). |
| 2804 |
|
| 2805 |
2025-04-26 Werner Lemberg <[email protected]> |
| 2806 |
|
| 2807 |
* src/autofit/afranges.c: Updated to Unicode 13.0. |
| 2808 |
|
| 2809 |
But no support for new scripts (volunteers welcomed). |
| 2810 |
|
| 2811 |
2025-04-26 Werner Lemberg <[email protected]> |
| 2812 |
|
| 2813 |
* src/autofit/afranges.c: Updated to Unicode 12.0. |
| 2814 |
|
| 2815 |
But no support for new scripts (volunteers welcomed). |
| 2816 |
|
| 2817 |
2025-04-25 Alexei Podtelezhnikov <[email protected]> |
| 2818 |
|
| 2819 |
* include/freetype/internal/ftcalc.h (FT_MulFix_64): Silence UBSAN. |
| 2820 |
|
| 2821 |
2025-04-22 Behdad Esfahbod <[email protected]> |
| 2822 |
|
| 2823 |
* src/autofit/afadjust.c (af_get_glyph_alternates): Fix endless loop. |
| 2824 |
|
| 2825 |
2025-04-20 Werner Lemberg <[email protected]> |
| 2826 |
|
| 2827 |
* src/afadjust.c: Fix test for newer HarfBuzz version (second try). |
| 2828 |
|
| 2829 |
2025-04-20 Werner Lemberg <[email protected]> |
| 2830 |
|
| 2831 |
* src/afadjust.c: Fix test for newer HarfBuzz version. |
| 2832 |
|
| 2833 |
2025-04-20 Werner Lemberg <[email protected]> |
| 2834 |
|
| 2835 |
[autofit] Request at least HarfBuzz 7.2.0 for diacritic support. (3/3) |
| 2836 |
|
| 2837 |
This version (from April 2023) added 'SingleSubst' support to |
| 2838 |
`hb_ot_layout_lookup_get_glyph_alternates`. |
| 2839 |
|
| 2840 |
2025-04-20 Werner Lemberg <[email protected]> |
| 2841 |
|
| 2842 |
[autofit] Speed up creation of the adjustment database's reverse map. (2/3) |
| 2843 |
|
| 2844 |
Remove the old code and activate the new one. |
| 2845 |
|
| 2846 |
2025-04-20 Werner Lemberg <[email protected]> |
| 2847 |
|
| 2848 |
[autofit] Speed up creation of the adjustment database's reverse map. (1/3) |
| 2849 |
|
| 2850 |
As it turns out, the original implementation using |
| 2851 |
`hb_ot_shape_glyphs_closure` is extremely slow if a font has a rich set of |
| 2852 |
OpenType features. For example, this function was called 66954 times while |
| 2853 |
loading font `arial.ttf` version 7.00, increasing FreeType's startup time by |
| 2854 |
a factor of 10, which is unacceptable. |
| 2855 |
|
| 2856 |
The new algorithm uses a completely different, more low-level approach, no |
| 2857 |
longer working with OpenType features but with OpenType lookups. It relies |
| 2858 |
on function `hb_ot_layout_lookup_get_glyph_alternates`, also replacing |
| 2859 |
recursion with a simple loop. In total, this brings the additional startup |
| 2860 |
time back to an acceptable range of a few percent. |
| 2861 |
|
| 2862 |
A side effect of the new approach is that it catches more alternate forms: |
| 2863 |
the old code didn't properly handle script-specific features. |
| 2864 |
|
| 2865 |
To make the change more readable, this commit only adds new code. |
| 2866 |
|
| 2867 |
2025-04-18 Werner Lemberg <[email protected]> |
| 2868 |
|
| 2869 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Check `map` limit. |
| 2870 |
|
| 2871 |
Reported as |
| 2872 |
|
| 2873 |
https://issues.chromium.org/issues/410925355 |
| 2874 |
|
| 2875 |
2025-04-18 Alexei Podtelezhnikov <[email protected]> |
| 2876 |
|
| 2877 |
* include/freetype/internal/ftcalc.h: Fix fringe compilation. |
| 2878 |
|
| 2879 |
2025-04-18 Alexei Podtelezhnikov <[email protected]> |
| 2880 |
|
| 2881 |
* src/base/ftcalc.c (ft_corner_orientation) [!FT_INT32]: Fix up. |
| 2882 |
|
| 2883 |
2025-04-17 Werner Lemberg <[email protected]> |
| 2884 |
|
| 2885 |
[autofit] Don't access uninitialized memory. |
| 2886 |
|
| 2887 |
Reported as |
| 2888 |
|
| 2889 |
https://bugs.ghostscript.com/show_bug.cgi?id=708295 |
| 2890 |
|
| 2891 |
* src/autofit/aflatin.c |
| 2892 |
(af_glyph_hints_apply_vertical_separation_adjustments): Initialize all |
| 2893 |
array elements of `contour_y_minima` and `contour_y_maxima`. |
| 2894 |
|
| 2895 |
2025-04-17 Alexei Podtelezhnikov <[email protected]> |
| 2896 |
|
| 2897 |
* src/truetype/ttinterp.c (TT_MulFix14,TT_DotFix14)[!FT_INT64]: Sync. |
| 2898 |
|
| 2899 |
2025-04-17 Alexei Podtelezhnikov <[email protected]> |
| 2900 |
|
| 2901 |
* src/truetype/ttinterp.c (TT_DotFix14): Silence UBSAN. |
| 2902 |
|
| 2903 |
2025-04-17 Alexei Podtelezhnikov <[email protected]> |
| 2904 |
|
| 2905 |
* src/base/ftcalc.c: Miscellaneous cleanups. |
| 2906 |
|
| 2907 |
2025-04-16 Werner Lemberg <[email protected]> |
| 2908 |
|
| 2909 |
[autofit] Avoid crash. |
| 2910 |
|
| 2911 |
Reported as |
| 2912 |
|
| 2913 |
https://issues.oss-fuzz.com/issues/410811029 |
| 2914 |
|
| 2915 |
* src/autofit/aflatin.c (af_remove_segments_containing_point): Check |
| 2916 |
`edge->last`. |
| 2917 |
|
| 2918 |
2025-04-15 Alexei Podtelezhnikov <[email protected]> |
| 2919 |
|
| 2920 |
[base, truetype] Silence UBSAN (cont'd). |
| 2921 |
|
| 2922 |
* src/truetype/ttinterp.c (TT_MulFix14, TT_DotFix14): Use MUL_INT64. |
| 2923 |
* include/freetype/internal/ftcalc.c (FT_MulFix): Ditto. |
| 2924 |
|
| 2925 |
2025-04-15 Werner Lemberg <[email protected]> |
| 2926 |
|
| 2927 |
[autofit] Avoid unnecessary recomputation of HarfBuzz data. |
| 2928 |
|
| 2929 |
Call the functions once per font instead of once per glyph. |
| 2930 |
|
| 2931 |
* src/autofit/afadjust.c (af_all_glyph_variants): Move code to compute the |
| 2932 |
`feature_tags` and `type_3_lookup_indices` sets to... |
| 2933 |
(af_reverse_character_map_new): ...this function. |
| 2934 |
|
| 2935 |
2025-04-15 Werner Lemberg <[email protected]> |
| 2936 |
|
| 2937 |
[autofit] Fix creation of the adjustment database's reverse map. |
| 2938 |
|
| 2939 |
Due to the way the reverse map array gets constructed with HarfBuzz, there |
| 2940 |
might be multiple, identical glyph index entries with different character |
| 2941 |
values in the array. As an example, an OpenType feature like 'unic' might |
| 2942 |
map lowercase glyph 'ae' to uppercase glyph 'AE', in addition to the already |
| 2943 |
present cmap entry for 'AE'. |
| 2944 |
|
| 2945 |
In most cases, this incorrect mapping is harmless (but still wrong). |
| 2946 |
However, there exist some lowercase/uppercase character pairs where the |
| 2947 |
diacritic for the uppercase character is on the other vertical side of the |
| 2948 |
base character as for the lowercase character. An example is U+0122 (LATIN |
| 2949 |
CAPITAL LETTER G WITH CEDILLA) and U+0123 (LATIN SMALL LETTER G WITH |
| 2950 |
CEDILLA): the former has the cedilla below, the latter above. A wrong |
| 2951 |
mapping would thus shift the base glyph 'G' up by a pixel instead of |
| 2952 |
shifting the cedilla down. |
| 2953 |
|
| 2954 |
We fix this by always giving precedence to cmap entries. |
| 2955 |
|
| 2956 |
* src/autofit/afadjust.c (af_reverse_character_map_entry_compare): Do a |
| 2957 |
secondary sort on the character code. |
| 2958 |
|
| 2959 |
(af_reverse_character_map_lookup): Adjust binary search to return the |
| 2960 |
first occurrence of an entry (i.e., the one with the lowest array index). |
| 2961 |
|
| 2962 |
(af_reverse_character_map_new)[FT_CONFIG_OPTION_USE_HARFBUZZ]: Implement |
| 2963 |
cmap priority. |
| 2964 |
|
| 2965 |
2025-04-15 Werner Lemberg <[email protected]> |
| 2966 |
|
| 2967 |
[autofit] Reduce adjustment database lookups. |
| 2968 |
|
| 2969 |
This is also in preparation for a follow-up commit. |
| 2970 |
|
| 2971 |
* src/autofit/afadjust.h (af_lookup_vertical_separation_type, |
| 2972 |
af_lookup_tilde_correction_type): Replaced with... |
| 2973 |
(af_adjustment_database_lookup, af_reverse_character_map_lookup): |
| 2974 |
... this. |
| 2975 |
|
| 2976 |
* src/autofit/afadjust.c (af_adjustment_database_lookup, |
| 2977 |
af_adjustment_database_lookup): Updated. |
| 2978 |
(af_lookup_vertical_separation_type, af_lookup_tilde_correction_type): |
| 2979 |
Removed. |
| 2980 |
(af_reverse_character_map_new)[FT_DEBUG_LEVEL_TRACE]: Updated. |
| 2981 |
|
| 2982 |
* src/autofit/aflatin.c |
| 2983 |
(af_glyph_hints_apply_vertical_separation_adjustments, |
| 2984 |
af_latin_hints_apply): Updated. |
| 2985 |
|
| 2986 |
2025-04-15 Werner Lemberg <[email protected]> |
| 2987 |
|
| 2988 |
* src/afadjust.c (adjustment_database): Make it complete up to U+017F. |
| 2989 |
|
| 2990 |
2025-04-15 Werner Lemberg <[email protected]> |
| 2991 |
|
| 2992 |
* src/autofit/afadjust.c (af_reverse_character_map_new): Add tracing code. |
| 2993 |
|
| 2994 |
2025-04-15 Werner Lemberg <[email protected]> |
| 2995 |
|
| 2996 |
* src/afadjust.c: Minor fixes. |
| 2997 |
|
| 2998 |
2025-04-15 Werner Lemberg <[email protected]> |
| 2999 |
|
| 3000 |
[autofit] Better vertical separation adjustment support. (2/2) |
| 3001 |
|
| 3002 |
* src/autofit/aflatin.c |
| 3003 |
(af_glyph_hints_apply_vertical_separation_adjustments): Handle diacritics |
| 3004 |
with more than a single contour. |
| 3005 |
|
| 3006 |
2025-04-15 Werner Lemberg <[email protected]> |
| 3007 |
|
| 3008 |
[autofit] Better vertical separation adjustment support. (1/2) |
| 3009 |
|
| 3010 |
Test vertical maxima instead of vertical minima to identify the highest |
| 3011 |
contour (and vice versa to identify the lowest contour). Doing so will |
| 3012 |
allow support of diacritics that consist of more than a single outline. |
| 3013 |
|
| 3014 |
This works because of the topological constraints ensured by the adjustment |
| 3015 |
database. |
| 3016 |
|
| 3017 |
* src/autofit/aflatin.c (af_find_highest_contour, |
| 3018 |
af_glyph_hints_apply_vertical_separation_adjustments): Implement it. |
| 3019 |
|
| 3020 |
2025-04-15 Werner Lemberg <[email protected]> |
| 3021 |
|
| 3022 |
[autofit] Use new y extrema arrays. |
| 3023 |
|
| 3024 |
* src/autofit/aflatin.c |
| 3025 |
(af_glyph_hints_apply_vertical_separation_adjustments): Implement it. |
| 3026 |
|
| 3027 |
2025-04-15 Werner Lemberg <[email protected]> |
| 3028 |
|
| 3029 |
[autofit] Provide infrastructure for storing y extrema of contours. |
| 3030 |
|
| 3031 |
We need this for better positioning support of diacritics. |
| 3032 |
|
| 3033 |
* src/autofit/afhints.h (AF_GlyphHintsRec): New fields `contour_y_minima` |
| 3034 |
and `contour_y_maxima`, together with its embedded variants. |
| 3035 |
|
| 3036 |
* src/autofit/afhints.c (af_glyph_hints_done, af_glyph_hints_reload): Handle |
| 3037 |
new arrays. |
| 3038 |
|
| 3039 |
2025-04-15 Werner Lemberg <[email protected]> |
| 3040 |
|
| 3041 |
[autofit] Avoid crash. |
| 3042 |
|
| 3043 |
Reported as |
| 3044 |
|
| 3045 |
https://issues.oss-fuzz.com/issues/410609442 |
| 3046 |
|
| 3047 |
* src/autofit/aflatin.c (af_remove_segments_containing_point): Check `edge`. |
| 3048 |
|
| 3049 |
2025-04-14 Werner Lemberg <[email protected]> |
| 3050 |
|
| 3051 |
[autofit] Fix just introduced heap buffer overflow |
| 3052 |
|
| 3053 |
Reported as |
| 3054 |
|
| 3055 |
https://issues.oss-fuzz.com/issues/410393975 |
| 3056 |
|
| 3057 |
* src/autofit/afadjust.c [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Synchronize with |
| 3058 |
HarfBuzz code. |
| 3059 |
|
| 3060 |
2025-04-14 Werner Lemberg <[email protected]> |
| 3061 |
|
| 3062 |
* docs/CHANGES: Mention Craig's GSoC 2023 project. |
| 3063 |
|
| 3064 |
2025-04-14 Craig White <[email protected]> |
| 3065 |
|
| 3066 |
[autofit] Add GSUB table handling to reverse character map generation. |
| 3067 |
|
| 3068 |
If HarfBuzz is enabled, the reverse character map generation now considers |
| 3069 |
GSUB entries when looking for glyphs that correspond to a code point. |
| 3070 |
|
| 3071 |
* src/autofit/afadjust.c (af_all_glyph_variants_helper, |
| 3072 |
af_all_glyph_variants) [FT_CONFIG_OPTION_USE_HARFBUZZ]: New functions. |
| 3073 |
|
| 3074 |
(af_reverse_character_map_new) [FT_CONFIG_OPTION_USE_HARFBUZZ]: Call new |
| 3075 |
code. |
| 3076 |
|
| 3077 |
2025-04-14 Craig White <[email protected]> |
| 3078 |
|
| 3079 |
[autofit] Add tilde-unflattening algorithm. |
| 3080 |
|
| 3081 |
* src/autofit/aflatin.c (af_find_highest_contour, |
| 3082 |
af_remove_segments_containing_point, |
| 3083 |
af_latin_remove_tilde_points_from_edges, af_latin_stretch_tilde, |
| 3084 |
af_latin_align_tilde): New functions. |
| 3085 |
(af_latin_hints_apply): Call tilde-unflatting code if necessary. |
| 3086 |
|
| 3087 |
2025-04-14 Craig White <[email protected]> |
| 3088 |
|
| 3089 |
[autofit] Implement vertical separation adjustment. |
| 3090 |
|
| 3091 |
* src/autofit/aflatin.c: Include `afadjust.h`. |
| 3092 |
(af_latin_metrics_init): Call `af_reverse_character_map_new`. |
| 3093 |
(af_latin_metrics_done): New function. |
| 3094 |
|
| 3095 |
(af_move_contour_vertically, af_check_contour_horizontal_overlap, |
| 3096 |
af_glyph_hints_apply_vertical_separation_adjustments): New functions. |
| 3097 |
|
| 3098 |
(af_latin_hints_apply): Call |
| 3099 |
`af_glyph_hints_apply_vertical_separation_adjustments`. |
| 3100 |
|
| 3101 |
(af_latin_writing_system_class): Updated. |
| 3102 |
|
| 3103 |
* src/autofit/aftypes.h (AF_StyleMetricsRec): Add `reverse_charmap` field. |
| 3104 |
|
| 3105 |
2025-04-14 Craig White <[email protected]> |
| 3106 |
|
| 3107 |
[autofit] Add code for reverse charmaps and adjustment database lookup. |
| 3108 |
|
| 3109 |
* src/autofit/aftypes.h (AF_ReverseMapEntry, AF_ReverseCharacterMap): New |
| 3110 |
structures. |
| 3111 |
|
| 3112 |
* src/autofit/afadjust.c (af_adjustment_database_lookup, |
| 3113 |
af_reverse_character_map_entry_compare, af_reverse_character_map_lookup, |
| 3114 |
af_lookup_vertical_separation_type, af_lookup_tilde_correction_type, |
| 3115 |
af_reverse_character_map_expand, af_reverse_character_map_new, |
| 3116 |
af_reverse_character_map_done): New functions. |
| 3117 |
|
| 3118 |
* src/autofit/afadjust.c: Updated. |
| 3119 |
|
| 3120 |
2025-04-14 Craig White <[email protected]> |
| 3121 |
|
| 3122 |
[autofit] Add adjustment database. |
| 3123 |
|
| 3124 |
* src/autofit/afadjust.c, src/autofit/afadjust.h: New files. |
| 3125 |
|
| 3126 |
* include/freetype/internal/fttrace.h: Add 'afadjust' component. |
| 3127 |
|
| 3128 |
* src/autofit/autofit.c: Include `afadjust.c`. |
| 3129 |
|
| 3130 |
* src/autofit/rules.mk (AUTOF_DRV_SRC): Add `afadjust.c`. |
| 3131 |
|
| 3132 |
2025-04-14 Craig White <[email protected]> |
| 3133 |
|
| 3134 |
[base] Make `find_unicode_charmap` a base function. |
| 3135 |
|
| 3136 |
This is needed for forthcoming changes in the auto-hinter. |
| 3137 |
|
| 3138 |
* include/freetype/internal/ftobjs.h, src/base/ftobjs.c: Updated. |
| 3139 |
|
| 3140 |
2025-04-12 Alexei Podtelezhnikov <[email protected]> |
| 3141 |
|
| 3142 |
* src/bdf/bdflib.c (hdigits): Removed. |
| 3143 |
|
| 3144 |
Fixes #1325. |
| 3145 |
|
| 3146 |
2025-04-12 Alexei Podtelezhnikov <[email protected]> |
| 3147 |
|
| 3148 |
* include/freetype/internal/ftcalc.h (FT_MSB) [__CC_ARM]: Added. |
| 3149 |
|
| 3150 |
2025-04-12 Alexei Podtelezhnikov <[email protected]> |
| 3151 |
|
| 3152 |
Typos in macros. |
| 3153 |
|
| 3154 |
* include/freetype/internal/ftcalc.h: s/_M_X86/_M_IX86/. |
| 3155 |
* src/truetype/ttinterp.c: s/_M_X86/_M_IX86/. |
| 3156 |
|
| 3157 |
2025-04-12 Alexei Podtelezhnikov <[email protected]> |
| 3158 |
|
| 3159 |
* docs/CHANGES: Updated. |
| 3160 |
|
| 3161 |
2025-04-12 Alexei Podtelezhnikov <[email protected]> |
| 3162 |
|
| 3163 |
[base, truetype] Silence UBSAN. |
| 3164 |
|
| 3165 |
* src/truetype/ttinterp.c (TT_MulFix14_64): Use unsigned multiplication. |
| 3166 |
* include/freetype/internal/ftcalc.h (FT_MulFix_64): Ditto. |
| 3167 |
|
| 3168 |
2025-04-12 Alexei Podtelezhnikov <[email protected]> |
| 3169 |
|
| 3170 |
[base, truetype] Synchronize MulFix assembly. |
| 3171 |
|
| 3172 |
* include/freetype/internal/ftcalc.h (FT_MulFix_*), |
| 3173 |
src/truetype/ttinterp.c (TT_MulFix14_*): Synchronize routines. |
| 3174 |
|
| 3175 |
2025-04-10 Alexei Podtelezhnikov <[email protected]> |
| 3176 |
|
| 3177 |
[truetype] Modernize bytecode projections. |
| 3178 |
|
| 3179 |
With 64-bit platforms widely available, it is more efficient to use |
| 3180 |
64-bit variables readily. It results in noticeable 10% improvement |
| 3181 |
in glyph loading speed. |
| 3182 |
|
| 3183 |
* src/truetype/ttinterp.c (TT_MulFix14, TT_DotFix14) [FT_INT64]: |
| 3184 |
Prioritize available implementation with arguments adjusted based on |
| 3185 |
the use cases. |
| 3186 |
|
| 3187 |
2025-04-09 Alexei Podtelezhnikov <[email protected]> |
| 3188 |
|
| 3189 |
[base] Update FT_MulFix inlining. |
| 3190 |
|
| 3191 |
Resolves inconsistencies in 64-bit multiplication discussed in !355. |
| 3192 |
Importantly, FT_MulFix arguments and return value is FT_Long, |
| 3193 |
whatever sizeof FT_Long is on 64-bit platforms: 8 bytes on Linux or |
| 3194 |
4 bytes on Windows. |
| 3195 |
|
| 3196 |
* include/freetype/internal/ftcalc.h (FT_MulFix_x86_64): Removed. |
| 3197 |
(FT_MulFix_64): Generalize and prioritize the inline implementation |
| 3198 |
for all 64-bit platforms ifdef FT_INT64. |
| 3199 |
* src/base/ftcalc.c (FT_MulFix)[FT_INT64]: Call 'FT_MulFix_64'. |
| 3200 |
* src/base/ftbase.c: Include 'ftcalc.c' after the FT_MulFix callers |
| 3201 |
to enable its inlining. |
| 3202 |
|
| 3203 |
2025-04-09 Alexei Podtelezhnikov <[email protected]> |
| 3204 |
|
| 3205 |
[base] Update FT_MulFix inlining. |
| 3206 |
Resolves inconsistencies in 64-bit multiplication discussed in !355. Importantly, FT_MulFix arguments and return value is FT_Long, whatever sizeof FT_Long is on 64-bit platforms: 8 bytes on Linux or 4 bytes on Windows. * include/freetype/internal/ftcalc.h (FT_MulFix_x86_64): Removed. (FT_MulFix_64): Generalize and prioritize the inline implementation |
| 3207 |
for all 64-bit platforms ifdef FT_INT64. * src/base/ftcalc.c (FT_MulFix)[FT_INT64]: Call 'FT_MulFix_64'. * src/base/ftbase.c: Include 'ftcalc.c' after the FT_MulFix callers to enable its inlining. |
| 3208 |
|
| 3209 |
2025-04-05 Graham Asher <[email protected]> |
| 3210 |
|
| 3211 |
Missing header wrappers. |
| 3212 |
|
| 3213 |
* include/freetype/config/integer-types.h, src/smooth/ftgrays.h: |
| 3214 |
Add missing FT_BEGIN_HEADER and FT_END_HEADER. |
| 3215 |
* src/smooth/ftgrays.c: Cosmetics. |
| 3216 |
|
| 3217 |
2025-03-26 Alexei Podtelezhnikov <[email protected]> |
| 3218 |
|
| 3219 |
[bdf] Clarify callback flow. |
| 3220 |
|
| 3221 |
* src/bdf/bdflib.c (bdf_line_func_t_): Modify callback prototype. |
| 3222 |
(bdf_parse_*_): Updated. |
| 3223 |
(bdf_load_font, bdf_readstream_): Delay callback initiation. |
| 3224 |
|
| 3225 |
2025-03-26 Alexei Podtelezhnikov <[email protected]> |
| 3226 |
|
| 3227 |
* src/bdf/bdflib.c (bdf_readstream_): Relocate. |
| 3228 |
|
| 3229 |
2025-03-26 Alexei Podtelezhnikov <[email protected]> |
| 3230 |
|
| 3231 |
* src/bdf/bdflib.c (bdf_is_atom_): Do not check tabs. |
| 3232 |
|
| 3233 |
2025-03-26 Alexei Podtelezhnikov <[email protected]> |
| 3234 |
|
| 3235 |
* src/bdf/bdflib.c (_bdf_strncmp): Macro removed, callers updated. |
| 3236 |
|
| 3237 |
2025-02-26 Alexei Podtelezhnikov <[email protected]> |
| 3238 |
|
| 3239 |
.gitlab-ci.yml: Minor. |
| 3240 |
|
| 3241 |
2025-02-26 Tim-Philipp Müller <[email protected]> |
| 3242 |
|
| 3243 |
* .gitlab-ci.yml: Switch to arm64 runners for macOS CI. |
| 3244 |
|
| 3245 |
2025-02-25 Behdad Esfahbod <[email protected]> |
| 3246 |
|
| 3247 |
[sfnt/CPAL] Return early if user requested currently-set palette |
| 3248 |
|
| 3249 |
Before, we were loading a palette (again and again) even if the |
| 3250 |
same was requested. Even if the font only had one palette... |
| 3251 |
|
| 3252 |
For a font like NotoColorEmoji that has over 5000 colors in its |
| 3253 |
palette, this was dominating the COLRv1 loading times for HarfBuzz |
| 3254 |
(and I believe all other clients) because they have to set the |
| 3255 |
palette to get access to the colors. |
| 3256 |
|
| 3257 |
* src/base/ftcolor.c (FT_Palette_Select): Check the current palette. |
| 3258 |
|
| 3259 |
2025-01-29 Alexei Podtelezhnikov <[email protected]> |
| 3260 |
|
| 3261 |
* src/bdf/bdflib.c (bdf_parse_start_): Move setup of properties. |
| 3262 |
|
| 3263 |
2025-01-25 Alexei Podtelezhnikov <[email protected]> |
| 3264 |
|
| 3265 |
[bdf] Treat all comments uniformly. |
| 3266 |
|
| 3267 |
* src/bdf/bdflib.c (bdf_parse_start_): Reject fonts with initial |
| 3268 |
COMMENTs. |
| 3269 |
(bdf_parse_properties_): Skip COMMENTs so that... |
| 3270 |
(bdf_add_property_): Do not make exception for COMMENT. |
| 3271 |
(bdf_parse_glyphs_, bdf_add_comments): Updated. |
| 3272 |
|
| 3273 |
2025-01-25 Alexei Podtelezhnikov <[email protected]> |
| 3274 |
|
| 3275 |
* src/bdf/bdflib.c (BDF_SWIDTH_ADJ_): Remove clashing flag and update. |
| 3276 |
|
| 3277 |
2025-01-23 Alexei Podtelezhnikov <[email protected]> |
| 3278 |
|
| 3279 |
* src/bdf/bdflib.c (bdf_atous_): Remove unnecessary checks. |
| 3280 |
|
| 3281 |
2025-01-23 Alexei Podtelezhnikov <[email protected]> |
| 3282 |
|
| 3283 |
* src/bdf/bdflib.c (bdf_ato{i.ul.s.us}_]): Remove uncecessary checks. |
| 3284 |
|
| 3285 |
2025-01-23 Alexei Podtelezhnikov <[email protected]> |
| 3286 |
|
| 3287 |
[bdf] Postpone font default char handling. |
| 3288 |
|
| 3289 |
* src/bdf/bdflib.c (bdf_parse_start_, bdf_add_property_): Delay handling |
| 3290 |
of the default char until... |
| 3291 |
* src/bdf/bdfdrivr.c (BDF_Face_Init): ... handles all other properties. |
| 3292 |
|
| 3293 |
2025-01-23 Alexei Podtelezhnikov <[email protected]> |
| 3294 |
|
| 3295 |
[bdf] Postpone font spacing handling. |
| 3296 |
|
| 3297 |
* src/bdf/bdf.h (bdf_font_t): Remove `monowidth`. |
| 3298 |
* src/bdf/bdflib.c (bdf_parse_start_, bdf_add_property_): Delay handling |
| 3299 |
of the font spacing until... |
| 3300 |
* src/bdf/bdfdrivr.c (BDF_Face_Init): ... handles all other properties. |
| 3301 |
|
| 3302 |
2025-01-23 Alexei Podtelezhnikov <[email protected]> |
| 3303 |
|
| 3304 |
[bdf] Postpone font ascent and descent handling. |
| 3305 |
|
| 3306 |
* src/bdf/bdflib.c (bdf_parse_start_, bdf_add_property_): Delay handling |
| 3307 |
of the font ascent and descent until... |
| 3308 |
* src/bdf/bdfdrivr.c (BDF_Face_Init): ... handles all other properties. |
| 3309 |
|
| 3310 |
2025-01-22 Alexei Podtelezhnikov <[email protected]> |
| 3311 |
|
| 3312 |
* src/bdf/bdflib.c (bdf_parse_start_): Relax the header order. |
| 3313 |
|
| 3314 |
We now check that the header is complete in no specific order. |
| 3315 |
|
| 3316 |
2025-01-20 Chad Brokaw <[email protected]> |
| 3317 |
|
| 3318 |
* src/truetype/ttgxvar.c (tt_face_vary_cvt): Fix all shared values. |
| 3319 |
|
| 3320 |
Applying cvar deltas to all shared points was incorrectly omitted. |
| 3321 |
Fixes #1314. |
| 3322 |
|
| 3323 |
2025-01-19 Alexei Podtelezhnikov <[email protected]> |
| 3324 |
|
| 3325 |
* src/bdf/bdflib.c (bdf_parse_glyphs_): Fix tracing. |
| 3326 |
|
| 3327 |
2025-01-19 Alexei Podtelezhnikov <[email protected]> |
| 3328 |
|
| 3329 |
[bdf] Tokenize input instead of listing. |
| 3330 |
|
| 3331 |
Instead of cumbersome field list mamangement, we will tokenize input |
| 3332 |
using custom `bdf_strtok_`. |
| 3333 |
|
| 3334 |
* src/bdf/bdflib.c (bdf_list_t_, bdf_list_init_, bdf_list_ensure_, |
| 3335 |
bdf_list_shift_, bdf_list_join_, bdf_list_split_, |
| 3336 |
bdf_set_default_spacing_): Removed. |
| 3337 |
(bdf_strtok_): New function which NUL-terminates the first token at |
| 3338 |
the delimiter position and returns the next token that follows |
| 3339 |
consequtive delimiters. |
| 3340 |
(bdf_parse_*_, bdf_load_font): Updated. |
| 3341 |
|
| 3342 |
* docs/CHANGES: Claim overall 75% performance improvement. |
| 3343 |
|
| 3344 |
2025-01-18 Alexei Podtelezhnikov <[email protected]> |
| 3345 |
|
| 3346 |
* src/bdf/bdflib.c (bdf_parse_start_): Prevent another STARTPROPERTIES. |
| 3347 |
|
| 3348 |
Only one STARTPROPERTIES was permitted in the old flow preventing |
| 3349 |
leaks and overflows. |
| 3350 |
|
| 3351 |
See https://issues.oss-fuzz.com/issues/389968131 |
| 3352 |
https://issues.oss-fuzz.com/issues/390464875 |
| 3353 |
|
| 3354 |
2025-01-17 Alexei Podtelezhnikov <[email protected]> |
| 3355 |
|
| 3356 |
* src/bdf/bdflib.c (bdf_parse_start_): Do not overwrite flags. |
| 3357 |
|
| 3358 |
2025-01-16 Alexei Podtelezhnikov <[email protected]> |
| 3359 |
|
| 3360 |
* src/bdf/bdflib.c (bdf_readstream_): Skip all control characters. |
| 3361 |
|
| 3362 |
This agrees with specifications and makes the code a lot simpler. |
| 3363 |
|
| 3364 |
2025-01-16 Alexei Podtelezhnikov <[email protected]> |
| 3365 |
|
| 3366 |
* src/bdf/bdflib.c (bdf_parse_start_): Reserve space for artificial properties. |
| 3367 |
|
| 3368 |
2025-01-15 Alexei Podtelezhnikov <[email protected]> |
| 3369 |
|
| 3370 |
* src/bdf/bdflib.c (bdf_add_property_): Add extra protection. |
| 3371 |
|
| 3372 |
See https://issues.oss-fuzz.com/issues/389972472 |
| 3373 |
https://issues.oss-fuzz.com/issues/389968131 |
| 3374 |
|
| 3375 |
2025-01-15 Alexei Podtelezhnikov <[email protected]> |
| 3376 |
|
| 3377 |
* src/bdf/bdflib.c: Clean up. |
| 3378 |
|
| 3379 |
2025-01-15 Alexei Podtelezhnikov <[email protected]> |
| 3380 |
|
| 3381 |
[bdf] Use flags instead of options. |
| 3382 |
|
| 3383 |
* src/bdf/bdf.h (bdf_options_t): Removed. |
| 3384 |
(BDF_KEEP_COMMENTS, BDF_KEEP_UNENCODED, BDF_CORRECT_METRICS): Updated |
| 3385 |
to avoid collisions with the other parsing flags. |
| 3386 |
* src/bdf/bdfdrivr.c (BDF_Face_Init): Use default flags explicitly. |
| 3387 |
* src/bdf/bdflib.c (bdf_load_font): Use flags as an argument to |
| 3388 |
initialize the parser. |
| 3389 |
(bdf_set_fedault_spacing_): Default to BDF_PROPORTIONAL explicitly. |
| 3390 |
(bdf_parse_*_): Updated. |
| 3391 |
|
| 3392 |
2025-01-15 Alexei Podtelezhnikov <[email protected]> |
| 3393 |
|
| 3394 |
[bdf] Adjust parsing flow and CHARS handling. |
| 3395 |
|
| 3396 |
* src/bdf/bdflib.c (bdf_readstream_): Remove CHARS exception. |
| 3397 |
(bdf_parse_glyphs_): Move glyphs allocation... |
| 3398 |
(bdf_parse_properties_): and missing ascent and descent handling... |
| 3399 |
(bdf_parse_start_): ...to here under CHARS. |
| 3400 |
|
| 3401 |
2025-01-15 Alexei Podtelezhnikov <[email protected]> |
| 3402 |
|
| 3403 |
* src/bdf/bdflib.c (bdf_readstream_): Tweak variables and loop design. |
| 3404 |
|
| 3405 |
2025-01-13 Alexei Podtelezhnikov <[email protected]> |
| 3406 |
|
| 3407 |
* src/bdf/bdflib.c (bdf_parse_glyphs_): Free unused glyph_name. |
| 3408 |
|
| 3409 |
See https://issues.oss-fuzz.com/issues/389330334. |
| 3410 |
|
| 3411 |
2025-01-13 Alexei Podtelezhnikov <[email protected]> |
| 3412 |
|
| 3413 |
* src/bdf/bdflib.c (bdf_parse_glyphs_): Store glyph as soon as possible. |
| 3414 |
|
| 3415 |
2025-01-12 Alexei Podtelezhnikov <[email protected]> |
| 3416 |
|
| 3417 |
* src/bdf/bdflib.c (bdf_parse_glyphs_): Avoid possible leak. |
| 3418 |
|
| 3419 |
2025-01-12 Alexei Podtelezhnikov <[email protected]> |
| 3420 |
|
| 3421 |
[bdf] Speed up bitmap parsing. |
| 3422 |
|
| 3423 |
A dedicated parser of bitmap data with minimal error checking and |
| 3424 |
no string comparisons helps to improve performance. |
| 3425 |
|
| 3426 |
* src/bdf/bdflib.c (bdf_parse_bitmap_): New dedicated bitmap parser. |
| 3427 |
(bdf_parse_glyphs_): Pass to `bdf_parse_bitmap_` on BITMAP. |
| 3428 |
|
| 3429 |
2025-01-12 Alexei Podtelezhnikov <[email protected]> |
| 3430 |
|
| 3431 |
* src/bdf/bdflib.c (a2i): Formatting. |
| 3432 |
|
| 3433 |
2025-01-11 Alexei Podtelezhnikov <[email protected]> |
| 3434 |
|
| 3435 |
* src/bdf/bdflib.c (bdf_parse_*_): Minor improvements. |
| 3436 |
|
| 3437 |
2025-01-11 Alexei Podtelezhnikov <[email protected]> |
| 3438 |
|
| 3439 |
* src/bdf/bdf.h (bdf_font_t): Correct `internal` type. |
| 3440 |
* src/bdf/bdflib.c (*): Update users. |
| 3441 |
|
| 3442 |
2025-01-10 Alexei Podtelezhnikov <[email protected]> |
| 3443 |
|
| 3444 |
* builds/windows/ftsystem.c: Fix ancient condition. |
| 3445 |
|
| 3446 |
2025-01-10 Alexei Podtelezhnikov <[email protected]> |
| 3447 |
|
| 3448 |
* src/bdf/bdflib.c (bdf_parse_start_): Fix tracing labels. |
| 3449 |
|
| 3450 |
2025-01-09 Alexei Podtelezhnikov <[email protected]> |
| 3451 |
|
| 3452 |
* MSBuild.rsp: Force console color for mintty. |
| 3453 |
|
| 3454 |
2025-01-09 Heiko Lewin <[email protected]> |
| 3455 |
|
| 3456 |
* CMakeLists.txt: Use modern IMPORTED targets. |
| 3457 |
|
| 3458 |
This resolves build problems with newer libPNG versions by switching |
| 3459 |
to using IMPORTED CMake targets for common libraries where provided. |
| 3460 |
To do this the required CMake version is raised to version 3.12. |
| 3461 |
Doing this seems justified as using IMPORTED targets is a cleaner |
| 3462 |
and more powerful solution that can leverage advanced and CMake-specific |
| 3463 |
features that may be utilized by the referred dependencies' CMake modules. |
| 3464 |
|
| 3465 |
Resolves #1311. |
| 3466 |
|
| 3467 |
2025-01-08 Alexei Podtelezhnikov <[email protected]> |
| 3468 |
|
| 3469 |
[cff] Remove size/slot checks. |
| 3470 |
|
| 3471 |
After the previous commit, cff_glyph_load is no longer called |
| 3472 |
without first checking for valid size and glyph objects in |
| 3473 |
FT_Glyph_Load and these checks can be removed downstream. |
| 3474 |
|
| 3475 |
* src/cff/cffdrivr.c (cff_glyph_load): Remove `size` and `glyph` checks. |
| 3476 |
* src/cff/cffgload.c (cff_slot_load): Ditto. |
| 3477 |
|
| 3478 |
2025-01-08 Alexei Podtelezhnikov <[email protected]> |
| 3479 |
|
| 3480 |
* src/cff/cffdrivr.c (cff_get_advances): Do only fast advances. |
| 3481 |
|
| 3482 |
Otherwise, let TT_Get_Advances fall back on cff_load_glyph to do |
| 3483 |
slow advances. This avoids unchecked access to cff_load_glyph and |
| 3484 |
this is how tt_get_advances is implemented. |
| 3485 |
|
| 3486 |
2025-01-04 Alexei Podtelezhnikov <[email protected]> |
| 3487 |
|
| 3488 |
* src/truetype/ttgload.c (TT_Load_Glyph): Consolidate flag setting. |
| 3489 |
|
| 3490 |
2025-01-04 Alexei Podtelezhnikov <[email protected]> |
| 3491 |
|
| 3492 |
Delay FT_GLYPH_FORMAT_OUTLINE assignmets. |
| 3493 |
|
| 3494 |
This assignmets used to be done prematurely before errors were checked |
| 3495 |
and outlines were actually loaded. Delaying the assignment provides |
| 3496 |
certain protection against careless usage of malformed input that |
| 3497 |
should now remain FT_GLYPH_FORMAT_NONE. |
| 3498 |
|
| 3499 |
* src/cff/cffgload.c (cff_slot_load): Ditto. |
| 3500 |
* src/cid/cidgload.c (cid_slot_load_glyph): Ditto. |
| 3501 |
* src/pfr/pfrobjs.c (pfr_slot_load): Ditto. |
| 3502 |
* src/truetype/ttgload.c (TT_Load_Glyph): Ditto. |
| 3503 |
* src/type1/t1gload.c (T1_Load_Glyph): Ditto. |
| 3504 |
|
| 3505 |
2025-01-03 Alexei Podtelezhnikov <[email protected]> |
| 3506 |
|
| 3507 |
* builds/compiler/gcc-dev.mk: Silence some warnings. |
| 3508 |
|
| 3509 |
2025-01-02 Alexei Podtelezhnikov <[email protected]> |
| 3510 |
|
| 3511 |
Remove superfluous outline zeroing. |
| 3512 |
|
| 3513 |
This is already done by `ft_glyphslot_clear`. |
| 3514 |
|
| 3515 |
* src/cff/cffgload.c (cff_slot_load): Do not zero outline fields. |
| 3516 |
* src/cid/cidgload.c (cid_slot_load_glyph: Ditto. |
| 3517 |
* src/pfr/pfrobjs.c (pfr_slot_load): Ditto. |
| 3518 |
* src/truetype/ttgload.c (load_sbit_image): Ditto. |
| 3519 |
* src/type1/t1gload.c (T1_Load_Glyph): Ditto. |
| 3520 |
|
| 3521 |
2025-01-02 Alexei Podtelezhnikov <[email protected]> |
| 3522 |
|
| 3523 |
* src/truetype/ttobjs.c: Abbreviate tracing. |
| 3524 |
|
| 3525 |
2025-01-02 Alexei Podtelezhnikov <[email protected]> |
| 3526 |
|
| 3527 |
* src/sfnt/ttsbit.c (tt_face_load_sbix_image): Refactor `flip`. |
| 3528 |
|
| 3529 |
2025-01-01 Alexei Podtelezhnikov <[email protected]> |
| 3530 |
|
| 3531 |
[truetype] Consolidate bitmap strike handling. |
| 3532 |
|
| 3533 |
* src/truetype/ttgload.c (TT_Load_Glyph): Relocate omitted whitespace |
| 3534 |
strike handling from here... |
| 3535 |
(load_sbit_image): ... to here. |
| 3536 |
|
| 3537 |
2024-12-31 Alexei Podtelezhnikov <[email protected]> |
| 3538 |
|
| 3539 |
[truetype] Ingnore FT_LOAD_NO_BITMAP in bitmap-only fonts. |
| 3540 |
|
| 3541 |
For consistency with other bitmap-only fonts, we should ignore this |
| 3542 |
flag of the font is not scalable. |
| 3543 |
|
| 3544 |
* src/truetype/ttgload.c (TT_Load_Glyph): Check if face is scalable |
| 3545 |
when checking for FT_LOAD_NO_BITMAP. |
| 3546 |
|
| 3547 |
* docs/CHANGES: Start new chapter wtith this change. |
| 3548 |
|
| 3549 |
2024-12-16 Ben Wagner <[email protected]> |
| 3550 |
|
| 3551 |
[ftstroke] Fix invalid pointer assignement to `arc` |
| 3552 |
|
| 3553 |
In `FT_Stroker_ConicTo` and `FT_Stroker_CubicTo` there is a `bez_stack`. |
| 3554 |
`arc` is initialized with `arc = bez_stack` and is never set to point |
| 3555 |
into any different object. The main loop looks like `while ( arc >= |
| 3556 |
bez_stack )` which is depending on a later `arc -= 2` (or `arc -= 3`) to |
| 3557 |
make `arc` point to before `bez_stack`. However, using pointer |
| 3558 |
subtraction to make `arc` point outside the array is undefined behavior, |
| 3559 |
and attempting to use the value in the loop predicate is "very" |
| 3560 |
undefined behavior. (C99 "Additive operators" 6.5.6.8.) |
| 3561 |
|
| 3562 |
This particular undefined behavior was discovered as either hangs or |
| 3563 |
MemorySantizer issues after "[InstCombine] Infer nuw for gep inbounds |
| 3564 |
from base of object" [0]. With this change, clang can infer that `arc` |
| 3565 |
must always point into the `bez_stack` object and therefore cannot be at |
| 3566 |
a "negative index" so the predicate is always true. |
| 3567 |
|
| 3568 |
[0] https://github.com/llvm/llvm-project/commit/e21ab4d16b555c28ded307571d138f594f33e325 |
| 3569 |
|
| 3570 |
* src/base/ftstroke.c (FT_Stroker_ConicTo, FT_Stroker_CubicTo): test |
| 3571 |
loop exit condition (there are no more arcs to process) before |
| 3572 |
decrementing `arc` |
| 3573 |
|
| 3574 |
Fixes: #1307 |
| 3575 |
|
| 3576 |
2024-12-04 Ben Wagner <[email protected]> |
| 3577 |
|
| 3578 |
[cff] Fix leak of cmap data |
| 3579 |
|
| 3580 |
When `sfnt->load_face` succeeds it has already loaded any (optional) |
| 3581 |
cmap data. As a result, a subsequent call to `sfnt->load_cmap` will |
| 3582 |
overwrite the cmap data pointer with a new copy of the data but not free |
| 3583 |
the old, leading to a leak. |
| 3584 |
|
| 3585 |
This is a fix for "* src/cff/cffobjs.c (cff_face_init): Better handling |
| 3586 |
of Type0 fonts.". This still allows the cmap to be missing but avoids |
| 3587 |
the leak by only calling `sfnt->load_cmap` when there is no `head` |
| 3588 |
table (the font data is not being loaded as OpenType/CFF). |
| 3589 |
|
| 3590 |
* src/cff/cffobjs.c (cff_face_init): Fix leak |
| 3591 |
|
| 3592 |
Fixes: #1306 |
| 3593 |
|
| 3594 |
2024-11-06 Honnesh Ramachandra <[email protected]> |
| 3595 |
|
| 3596 |
* src/cff/cffobjs.c (cff_face_init): Better handling of Type0 fonts. |
| 3597 |
|
| 3598 |
This issue relates to the PDF specification and its usage of CFF-based |
| 3599 |
embedded Type0 fonts. For Type0 fonts containing CID-keyed descendant |
| 3600 |
CFF-based fonts, the glyph index is the CID present in the content stream. |
| 3601 |
As a result, there is no requirement for a 'cmap' table to be present in the |
| 3602 |
font since the glyph indices are derived directly from the CIDs. FreeType |
| 3603 |
throws an error when it doesn’t find a 'cmap' table for such an Open Type |
| 3604 |
font containing CFF outlines. This commit relaxes this requirement for a |
| 3605 |
'cmap' table for such fonts. |
| 3606 |
|
| 3607 |
2024-10-18 suzuki toshiya <[email protected]> |
| 3608 |
|
| 3609 |
Download the latest gnu-config files in `make dist`. |
| 3610 |
|
| 3611 |
* builds/toplevel.mk: In `make dist`, checkout gnu-config |
| 3612 |
git repository at savannah, copy the latest versions of |
| 3613 |
`config.guess` and `config.sub` to builds/unix/. Also |
| 3614 |
the latest version of `gitlog-to-changelog` is used to |
| 3615 |
generate `ChangeLog`. |
| 3616 |
|
| 3617 |
2024-10-16 Behdad Esfahbod <[email protected]> |
| 3618 |
|
| 3619 |
Move generic destroy to later in the face and size destruction. |
| 3620 |
|
| 3621 |
* src/base/ftobjs.c (destroy_size, destroy_face): This is such that the |
| 3622 |
generic destroy can be used to call `FT_Done_Library`. For that to work, |
| 3623 |
it needs to call it *after* having removed the face from the respective |
| 3624 |
module. |
| 3625 |
|
| 3626 |
2024-10-14 Alexei Podtelezhnikov <[email protected]> |
| 3627 |
|
| 3628 |
* src/truetype/ttgload.c (load_truetype_glyph): Rearrange. |
| 3629 |
|
| 3630 |
2024-10-14 suzuki toshiya <[email protected]> |
| 3631 |
|
| 3632 |
* autogen.sh: Fix for Solaris 10. |
| 3633 |
|
| 3634 |
o Replace `test -e` by `test -d` (directory) and `-h` |
| 3635 |
(symlink), because pre-POSIX /bin/sh of Solaris 10 |
| 3636 |
does not support `test -e`. |
| 3637 |
o Replace the combination of `head` and `sed ...` by |
| 3638 |
single sed command `sed -n 1...p`. GNU libtoolize |
| 3639 |
with Solaris 10 /bin/sh complains "Broken Pipe" for |
| 3640 |
the closure of stdout by `head`. Let `sed` receive |
| 3641 |
all stdout and discard. |
| 3642 |
|
| 3643 |
2024-10-13 Alexei Podtelezhnikov <[email protected]> |
| 3644 |
|
| 3645 |
* src/smooth/ftgrays.c (gray_convert_glyph): Clear stack pointers. |
| 3646 |
|
| 3647 |
Fixes a dangling pointer warning, see #1299. |
| 3648 |
|
| 3649 |
2024-10-13 suzuki toshiya <[email protected]> |
| 3650 |
|
| 3651 |
apinames: Fix a buffer overrun for VMS platform. |
| 3652 |
|
| 3653 |
Some output formats may rewrite symbol names during the output, |
| 3654 |
like the concatenation of "64__" suffix on VMS. To estimate |
| 3655 |
sufficient size to store symbol name, pass the output format |
| 3656 |
info to `names_add`. For VMS, `names_add` allocates longer |
| 3657 |
buffer to append "64__". |
| 3658 |
|
| 3659 |
* apinames.c (SUFFIX_VMS_64ADDR): New macro of "64__". |
| 3660 |
(main): Pass the format info to `read_header_file`. |
| 3661 |
(read_header_file): Pass the format info to `names_add`. |
| 3662 |
(names_add): Receive the format info, and reserve the symbol |
| 3663 |
name buffer 4 byte longer in the case of VMS, to append the |
| 3664 |
suffix in `names_dump`. |
| 3665 |
|
| 3666 |
2024-10-13 suzuki toshiya <[email protected]> |
| 3667 |
|
| 3668 |
apinames: Fix out-of-scope reference of a static array. |
| 3669 |
|
| 3670 |
* apinames.c (names_dump): For WATCOM_LBC format, the |
| 3671 |
DLL name with no suffix is constructed on a static |
| 3672 |
array temp[], but the scope is closed before use it. |
| 3673 |
The declaration of temp[] is moved to the wider |
| 3674 |
scope for the dumping part to refer it. |
| 3675 |
|
| 3676 |
2024-10-12 Alexei Podtelezhnikov <[email protected]> |
| 3677 |
|
| 3678 |
* vms_make.com: Format rules. |
| 3679 |
|
| 3680 |
Use tabs in rules only à la Makefile. |
| 3681 |
|
| 3682 |
2024-10-12 Marian Klymov <[email protected]> |
| 3683 |
|
| 3684 |
* meson.build: Define DLL_EXPORT for shared library only. |
| 3685 |
|
| 3686 |
Fixes #1298. |
| 3687 |
|
| 3688 |
2024-10-12 Benoit Pierre <[email protected]> |
| 3689 |
|
| 3690 |
* meson.build: Minor improvements. |
| 3691 |
|
| 3692 |
2024-10-12 Benoit Pierre <[email protected]> |
| 3693 |
|
| 3694 |
* meson.build: Fix `bzip2` option handling. |
| 3695 |
|
| 3696 |
2024-10-12 Benoit Pierre <[email protected]> |
| 3697 |
|
| 3698 |
* meson.build: Add support for compiling with error strings. |
| 3699 |
* meson_options.txt: Document it. |
| 3700 |
|
| 3701 |
2024-10-10 suzuki toshiya <[email protected]> |
| 3702 |
|
| 3703 |
Fix help message of apinames. |
| 3704 |
|
| 3705 |
* src/tools/apinames.c: The first header file must be |
| 3706 |
given after the options. All arguments after the |
| 3707 |
first header file are dealt as header files to be |
| 3708 |
parsed, regardless with their leading "-". |
| 3709 |
|
| 3710 |
For example, |
| 3711 |
"apinames include/freetype/freetype.h -dFREETYPE.DLL" |
| 3712 |
warns "unable to open -dFREETYPE.DLL". |
| 3713 |
|
| 3714 |
Thus, the "header1" must be given after the arguments |
| 3715 |
to be parsed as the options. |
| 3716 |
|
| 3717 |
2024-09-21 Jouk Jansen <[email protected]> |
| 3718 |
|
| 3719 |
Minor fixes for OpenVMS. |
| 3720 |
|
| 3721 |
* vms_name.com: Suppress a warning with the latest Clang compiler. |
| 3722 |
|
| 3723 |
* builds/vms/apinames_vms.bash: Use absolute path to avoid dependency on the |
| 3724 |
environment. |
| 3725 |
|
| 3726 |
2024-09-07 Alexei Podtelezhnikov <[email protected]> |
| 3727 |
|
| 3728 |
* src/sfnt/ttsbit.c (tt_face_load_sbix_image): Respect metrics_only. |
| 3729 |
|
| 3730 |
Also fixes recursive flip. |
| 3731 |
|
| 3732 |
2024-09-06 Alexei Podtelezhnikov <[email protected]> |
| 3733 |
|
| 3734 |
* src/sfnt/ttsbit.c (tt_face_load_sbix_image): Tweak loop. |
| 3735 |
|
| 3736 |
2024-09-06 Andrew Murray <[email protected]> |
| 3737 |
|
| 3738 |
[sfnt] Support sbix graphicType 'flip'. |
| 3739 |
|
| 3740 |
* src/sfnt/ttsbit.c (tt_face_load_sbix_image): Currently undocumented by |
| 3741 |
Apple, this flips the bitmap data horizontally. It is used on macOS in |
| 3742 |
Apple Color Emoji; 19.4d6e1; 2024-02-05 (file `Apple Color Emoji.ttc`). |
| 3743 |
|
| 3744 |
Fixes issue #1282. |
| 3745 |
|
| 3746 |
2024-09-05 suzuki toshiya <[email protected]> |
| 3747 |
|
| 3748 |
Add `clang` to host compiler candidates in cross building. |
| 3749 |
|
| 3750 |
* builds/unix/configure.raw: In cross building, |
| 3751 |
`clang` is tried if there is no `gcc`, nor `cc`. |
| 3752 |
|
| 3753 |
2024-09-05 suzuki toshiya <[email protected]> |
| 3754 |
|
| 3755 |
Improve the build rule for `apinames`. |
| 3756 |
|
| 3757 |
* builds/unix/configure.raw: copy `CFLAGS` & |
| 3758 |
`LDFLAGS` values to `CFLAGS_BUILD` & |
| 3759 |
`LDFLAGS_BUILD`, in a self-hosting case. |
| 3760 |
|
| 3761 |
* builds/unix/unix-cc.in: set `CCexe_CFLAGS` & |
| 3762 |
`CCexe_LDFLAGS` by `CFLAGS_BUILD` & |
| 3763 |
`LDFLAGS_BUILD`. |
| 3764 |
|
| 3765 |
In some confused environments, simple building |
| 3766 |
like `cc -o apinames apinames.c` is no longer |
| 3767 |
able to build an executable running on the host. |
| 3768 |
|
| 3769 |
The validity of `CC` is tested with consideration |
| 3770 |
of `CFLAGS` and `LDFLAGS`, thus, duplicating |
| 3771 |
`CFLAGS` & `LDFLAGS` to `CCexe_CFLAGS` & |
| 3772 |
`CCexe_LDFLAGS` (via XXX_BUILD) would be slightly |
| 3773 |
safer in a self-hosting build. |
| 3774 |
|
| 3775 |
Fixes the issue #1296. |
| 3776 |
|
| 3777 |
2024-08-26 Alexei Podtelezhnikov <[email protected]> |
| 3778 |
|
| 3779 |
* src/sfnt/ttcmap.c (tt_cmap*_get_info): Remove casting. |
| 3780 |
|
| 3781 |
2024-08-25 Alexei Podtelezhnikov <[email protected]> |
| 3782 |
|
| 3783 |
* include/freetype/ftimage.h (FT_Bitmap): Describe empty bitmap. |
| 3784 |
|
| 3785 |
2024-08-14 luz paz <[email protected]> |
| 3786 |
|
| 3787 |
Fix various typos. |
| 3788 |
|
| 3789 |
2024-08-13 Alexei Podtelezhnikov <[email protected]> |
| 3790 |
|
| 3791 |
* messon.build: Install `include/freetype/ftlogging.h`. |
| 3792 |
|
| 3793 |
Fixes #1292. |
| 3794 |
|
| 3795 |
2024-08-12 Werner Lemberg <[email protected]> |
| 3796 |
|
| 3797 |
* Version 2.13.3 released. |
| 3798 |
========================== |
| 3799 |
|
| 3800 |
Tag sources with `VER-2-13-3'. |
| 3801 |
|
| 3802 |
* docs/VERSION.TXT: Add entry for version 2.13.3. |
| 3803 |
* docs/CHANGES: Updated. |
| 3804 |
* docs/release, docs/README, builds/macs/README: Updated. |
| 3805 |
|
| 3806 |
* README, src/base/ftver.rc, builds/windows/vc2010/index.html, |
| 3807 |
builds/windows/visualc/index.html, builds/windows/visualce/index.html, |
| 3808 |
builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html, |
| 3809 |
docs/freetype-config.1: s/2.13.2/2.13.3/, s/2132/2133/. |
| 3810 |
|
| 3811 |
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 3. |
| 3812 |
|
| 3813 |
* builds/unix/configure.raw (version_info): Set to 26:2:20. |
| 3814 |
* CMakeLists.txt (VERSION_PATCH): Set to 3. |
| 3815 |
|
| 3816 |
2024-08-12 Werner Lemberg <[email protected]> |
| 3817 |
|
| 3818 |
* meson.build: Install `freetype2.m4`. |
| 3819 |
|
| 3820 |
Fixes #1290. |
| 3821 |
|
| 3822 |
2024-08-12 Werner Lemberg <[email protected]> |
| 3823 |
|
| 3824 |
* src/*/*: Fix C++ compilation; fix clang warnings. |
| 3825 |
|
| 3826 |
2024-08-12 Werner Lemberg <[email protected]> |
| 3827 |
|
| 3828 |
* subprojects/*.wrap: Updated. |
| 3829 |
|
| 3830 |
2024-08-12 Werner Lemberg <[email protected]> |
| 3831 |
|
| 3832 |
Various minor documentation or formatting fixes. |
| 3833 |
|
| 3834 |
2024-08-07 Werner Lemberg <[email protected]> |
| 3835 |
|
| 3836 |
tttables.h (FT_Get_CMap_Format): Minor documentation improvement. |
| 3837 |
|
| 3838 |
2024-08-05 Alexei Podtelezhnikov <[email protected]> |
| 3839 |
|
| 3840 |
* src/truetype/ttgxvar.c (ft_var_readpacked*): Minor. |
| 3841 |
|
| 3842 |
2024-08-05 Alexei Podtelezhnikov <[email protected]> |
| 3843 |
|
| 3844 |
* src/base/ftstream.c (FT_Stream_ReadFields): Switch to `FT_Offset`. |
| 3845 |
|
| 3846 |
2024-08-02 Alexei Podtelezhnikov <[email protected]> |
| 3847 |
|
| 3848 |
* src/winfonts/winfnt.c (fnt_face_get_dll_font): Unwrap arithmetic. |
| 3849 |
|
| 3850 |
2024-08-02 Alexei Podtelezhnikov <[email protected]> |
| 3851 |
|
| 3852 |
* src/base/ftstream.c (FT_Stream_ReadFields): Update condition. |
| 3853 |
|
| 3854 |
2024-08-02 Alexei Podtelezhnikov <[email protected]> |
| 3855 |
|
| 3856 |
[truetype/GX] Use more robust conditions. |
| 3857 |
|
| 3858 |
* src/truetype/ttgxvar.c (ft_var_readpacked{points,deltas}): Rewrite |
| 3859 |
conditions to avoid undefined behavior. |
| 3860 |
|
| 3861 |
2024-07-31 Alexei Podtelezhnikov <[email protected]> |
| 3862 |
|
| 3863 |
[truetype/GX] Read points and deltas more carefully. |
| 3864 |
|
| 3865 |
Hopefully fixes newly introduced buffer overflows: |
| 3866 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=70807 |
| 3867 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=70809 |
| 3868 |
|
| 3869 |
* src/truetype/ttgxvar.c (ft_var_readpacked{points,deltas}): Explicitly |
| 3870 |
check stream frame limits and modify run counting. |
| 3871 |
|
| 3872 |
2024-07-30 Alexei Podtelezhnikov <[email protected]> |
| 3873 |
|
| 3874 |
[truetype/GX] Read stream more aggressively. |
| 3875 |
|
| 3876 |
With ample checks against the table size, we should be able to use |
| 3877 |
macros without the limit checks and functional calls. |
| 3878 |
|
| 3879 |
* src/truetype/ttgxvar.c (ft_var_readpacked{points,deltas}): |
| 3880 |
Use FT_NEXT_* instead of FT_GET_*. |
| 3881 |
|
| 3882 |
2024-07-29 Alexei Podtelezhnikov <[email protected]> |
| 3883 |
|
| 3884 |
* src/sfnt/ttload.c (tt_face_load_name): Shorten dereference. |
| 3885 |
|
| 3886 |
2024-07-29 Alexei Podtelezhnikov <[email protected]> |
| 3887 |
|
| 3888 |
* src/autofit/afmodule.c (af_autofitter_load_glyph): Shorten deref. |
| 3889 |
|
| 3890 |
2024-07-29 Alexei Podtelezhnikov <[email protected]> |
| 3891 |
|
| 3892 |
[bdf,pcf,winfonts,sfnt] Remove barely used marcros. |
| 3893 |
|
| 3894 |
* include/freetype/internal/ftobjs.h (FT_FACE_SIZE, FT_SIZE_FACE): |
| 3895 |
Removed. |
| 3896 |
* src/bdf/bdfdrivr.c (BDF_Glyph_Load): Updated. |
| 3897 |
* src/pcf/pcfdrivr.c (PCF_Glyph_Load): Ditto. |
| 3898 |
* src/winfonts/winfnt.c (FNT_Load_Glyph): Ditto |
| 3899 |
* src/sfnt/ttbdf.c (tt_face_find_bdf_prop): Ditto. |
| 3900 |
|
| 3901 |
2024-07-27 Dan Rosser <[email protected]> |
| 3902 |
|
| 3903 |
* include/freetype/internal/ftcalc.h (FT_MSB)[_M_ARM64EC]: Added. |
| 3904 |
|
| 3905 |
2024-07-19 Werner Lemberg <[email protected]> |
| 3906 |
|
| 3907 |
* src/truetype/ttobjs.c (tt_size_run_prep): Correct scaling of CVT values. |
| 3908 |
|
| 3909 |
This reverts the scaling behaviour introduced in commit 37580053. |
| 3910 |
|
| 3911 |
Fixes issue #1005. |
| 3912 |
|
| 3913 |
2024-06-29 Philip Race <[email protected]> |
| 3914 |
|
| 3915 |
* psobjs.c (ps_table_add): Check length before calling `FT_MEM_CPY`. |
| 3916 |
|
| 3917 |
Fixes issue #1280. |
| 3918 |
|
| 3919 |
2024-06-29 Don Olmstead <[email protected]> |
| 3920 |
|
| 3921 |
CMakeLists.txt: Respect FT_DISABLE_ZLIB value |
| 3922 |
|
| 3923 |
The CMake build uses `find_package` to look for dependencies. Before calling `find_package` it looks to see if the dependency was disabled. If not the associated `_FOUND` variable will be set. This value is then checked to determine if the dependency is added. |
| 3924 |
|
| 3925 |
However `find_package(PNG)` calls `find_package(ZLIB)` within its find module. So in the case of `FT_DISABLE_ZLIB=TRUE` and `FT_DISABLE_PNG=FALSE` the `ZLIB_FOUND` value can be set and even though `FT_DISABLE_ZLIB` is turned on. |
| 3926 |
|
| 3927 |
Unset the value of `ZLIB_FOUND` after the call to `find_package(PNG)` so the value is only set when `FT_DISABLE_ZLIB` is turned off. |
| 3928 |
|
| 3929 |
2024-06-26 Werner Lemberg <[email protected]> |
| 3930 |
|
| 3931 |
Make 'multi' build work again. |
| 3932 |
|
| 3933 |
* src/psaux/psobjs.c: Include `psft.h`. |
| 3934 |
|
| 3935 |
* src/sfnt/rules.mk (SFNT_DRV_SRC): Add `ttgpos.c`. |
| 3936 |
|
| 3937 |
Fixes issue #1284. |
| 3938 |
|
| 3939 |
2024-06-23 Alexei Podtelezhnikov <[email protected]> |
| 3940 |
|
| 3941 |
* src/truetype/ttgload.c (load_truetype_glyph): Unsigned fix. |
| 3942 |
|
| 3943 |
2024-06-21 Alexei Podtelezhnikov <[email protected]> |
| 3944 |
|
| 3945 |
Use unsigned tags `FT_Outline`. |
| 3946 |
|
| 3947 |
This change comes along with 2a7bb4596f56 ans is only meant to reduce |
| 3948 |
pointer casting in the code. |
| 3949 |
|
| 3950 |
* include/freetype/ftimage.h (FT_Outline): Do it. |
| 3951 |
* src/*: Update `FT_Outline` users. |
| 3952 |
|
| 3953 |
2024-06-21 Ben Wagner <[email protected]> |
| 3954 |
|
| 3955 |
[ttgxvar] Avoid "applying zero offset to null pointer" |
| 3956 |
|
| 3957 |
In C it is undefined behavior to do arithmetic on a null pointer, including |
| 3958 |
adding zero. When using NotoSansKhmer[wdth,wght].ttf UBSAN produces a report |
| 3959 |
like |
| 3960 |
|
| 3961 |
ttgxvar.c:1052:31: runtime error: applying zero offset to null pointer |
| 3962 |
|
| 3963 |
when adding zero to `varData->deltaSet` (which is null) to produce `bytes`. |
| 3964 |
Protect against all the potential issues of this kind by returning early if |
| 3965 |
`varData->regionIdxCount == 0`. |
| 3966 |
|
| 3967 |
* src/truetype/ttgxvar.c (tt_var_get_item_delta): early return on no regions |
| 3968 |
|
| 3969 |
2024-06-21 Alexei Podtelezhnikov <[email protected]> |
| 3970 |
|
| 3971 |
Use unsigned point and contour indexing in `FT_Outline`. |
| 3972 |
|
| 3973 |
This doubles the number or allowed points, see |
| 3974 |
https://github.com/harfbuzz/harfbuzz/issues/4752 |
| 3975 |
|
| 3976 |
Although it is hardly practical to use more than 32767 points, |
| 3977 |
other font engines seem to support it. |
| 3978 |
|
| 3979 |
* docs/CHANGES: Announce it. |
| 3980 |
* include/freetype/ftimage.h (FT_Outline): Do it and update limits. |
| 3981 |
* src/*: Update `FT_Outline` users. |
| 3982 |
|
| 3983 |
2024-06-20 Alexei Podtelezhnikov <[email protected]> |
| 3984 |
|
| 3985 |
* src/pfr/pfrgload.c (pfr_glyph_curve_to): Avoid casting. |
| 3986 |
|
| 3987 |
2024-06-19 Alexei Podtelezhnikov <[email protected]> |
| 3988 |
|
| 3989 |
* src/base/ftgloadr.c (FT_GlyphLoader_Prepare): Minor refactoring. |
| 3990 |
|
| 3991 |
2024-06-18 Alexei Podtelezhnikov <[email protected]> |
| 3992 |
|
| 3993 |
[base, autofit, psaux] Remove unnecessary casting. |
| 3994 |
|
| 3995 |
* src/autofit/afhints.c (af_glyph_hints_reload): Remove (short) casting. |
| 3996 |
* src/base/ftgloadr.c (FT_GlyphLoader_Add): Ditto. |
| 3997 |
* src/psaux/psobjs.c ({t1,cff,ps}_builder_{add,close}_contour): Ditto. |
| 3998 |
|
| 3999 |
2024-06-18 Alexei Podtelezhnikov <[email protected]> |
| 4000 |
|
| 4001 |
* include/freetype/ftimage.h: Explain standard types. |
| 4002 |
|
| 4003 |
2024-05-29 Ben Wagner <[email protected]> |
| 4004 |
|
| 4005 |
[ttgxvar] Replace tabs with spaces |
| 4006 |
|
| 4007 |
Also clarify comments around conversion and clamping. |
| 4008 |
|
| 4009 |
* src/truetype/ttgxvar.c (ft_var_to_normalized): doit |
| 4010 |
|
| 4011 |
2024-05-27 Alexei Podtelezhnikov <[email protected]> |
| 4012 |
|
| 4013 |
[truetype/GX] Consolidate memory allocations. |
| 4014 |
|
| 4015 |
* src/truetype/ttgxvar.c (tt_face_vary_cvt, TT_Vary_Apply_Glyph_Deltas): |
| 4016 |
Allocate and split bigger memory blocks, avoid unnecessary zeroing, |
| 4017 |
do not copy shared tuples, revise error exit paths. |
| 4018 |
|
| 4019 |
2024-05-26 Alexei Podtelezhnikov <[email protected]> |
| 4020 |
|
| 4021 |
Whitespace. |
| 4022 |
|
| 4023 |
2024-05-24 Alexei Podtelezhnikov <[email protected]> |
| 4024 |
|
| 4025 |
* src/truetype/ttgxvar.c (ft_var_apply_tuple): Reduce checks. |
| 4026 |
|
| 4027 |
2024-05-24 Alexei Podtelezhnikov <[email protected]> |
| 4028 |
|
| 4029 |
Revert "[truetype] Reduce allocation scope." |
| 4030 |
|
| 4031 |
This reverts commit 9ff4153cbfd60491f11bb56905ce6e20e94d23c7. |
| 4032 |
|
| 4033 |
2024-05-23 Alexei Podtelezhnikov <[email protected]> |
| 4034 |
|
| 4035 |
[truetype] Reduce allocation scope. |
| 4036 |
|
| 4037 |
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Reduce scope |
| 4038 |
of `points_org` and 'points_out`. |
| 4039 |
|
| 4040 |
2024-05-23 Alexei Podtelezhnikov (Алексей Подтележников) <[email protected]> |
| 4041 |
|
| 4042 |
* .gitlab-ci.yml: Disable UWP compilation. |
| 4043 |
|
| 4044 |
2024-05-23 Alexei Podtelezhnikov <[email protected]> |
| 4045 |
|
| 4046 |
* include/freetype/internal/ftmemory.h (FT_MEM_DUP): Fix g++ error. |
| 4047 |
|
| 4048 |
2024-05-21 Alexei Podtelezhnikov <[email protected]> |
| 4049 |
|
| 4050 |
[cff, truetype] Validate variation axes immediately. |
| 4051 |
|
| 4052 |
Instead of validating variation axes in every access, OpenType specs |
| 4053 |
suggest that peak = 0 be used to tag invalid ranges. This implements |
| 4054 |
just that once during loading. |
| 4055 |
|
| 4056 |
* src/cff/cffload.c (cff_blend_build_vector): Move the range checks... |
| 4057 |
(cff_vstore_load): ... here. |
| 4058 |
* src/truetype/ttgxvar.c (tt_var_get_item_delta): Ditto... |
| 4059 |
(tt_var_load_item_variation_store): ... ditto. |
| 4060 |
|
| 4061 |
2024-05-21 Alexei Podtelezhnikov <[email protected]> |
| 4062 |
|
| 4063 |
[cff, truetype] Rearrange variation range checks. |
| 4064 |
|
| 4065 |
This should achieve quicker results for common cases. |
| 4066 |
|
| 4067 |
* src/cff/cffload.c (cff_blend_build_vector): Rearrange conditionals. |
| 4068 |
* src/truetype/ttgxvar.c (tt_var_get_item_delta): Ditto. |
| 4069 |
|
| 4070 |
2024-05-21 Alexei Podtelezhnikov <[email protected]> |
| 4071 |
|
| 4072 |
* src/truetype/ttgxvar.c (tt_var_get_item_delta): Align with specs. |
| 4073 |
|
| 4074 |
2024-05-21 Alexei Podtelezhnikov <[email protected]> |
| 4075 |
|
| 4076 |
* src/truetype/ttgxvar.c (tt_var_get_item_delta): Minor refactoring. |
| 4077 |
|
| 4078 |
2024-05-21 Alexei Podtelezhnikov <[email protected]> |
| 4079 |
|
| 4080 |
[cff] Optimize the blend vector computations. |
| 4081 |
|
| 4082 |
* src/cff/cffload.c (cff_blend_build_vector): Use FT_MulDiv and skip |
| 4083 |
multiplying by 1. |
| 4084 |
|
| 4085 |
2024-05-20 Alexei Podtelezhnikov <[email protected]> |
| 4086 |
|
| 4087 |
[bdf] Use concise macros. |
| 4088 |
|
| 4089 |
* src/bdf/bdflib.c (bdf_create_property): Use FT_STRDUP. |
| 4090 |
(bdf_parse_glyphs_, bdf_parse_start_): Use FT_DUP for brevity. |
| 4091 |
|
| 4092 |
2024-05-20 Alexei Podtelezhnikov <[email protected]> |
| 4093 |
|
| 4094 |
[cache] Use FT_DUP to duplicate data. |
| 4095 |
|
| 4096 |
* src/cache/ftcsbits.c (ftc_sbit_copy_bitmap): Use concise FT_MEM_DUP. |
| 4097 |
|
| 4098 |
2024-05-20 Alexei Podtelezhnikov <[email protected]> |
| 4099 |
|
| 4100 |
[truetype, type1] Use FT_DUP to duplicate data. |
| 4101 |
|
| 4102 |
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Use concise FT_DUP. |
| 4103 |
* src/truetype/ttgxvar.c (TT_Get_MM_Var): Ditto. |
| 4104 |
* src/type1/t1load.c (parse_subrs): Ditto. |
| 4105 |
|
| 4106 |
2024-05-18 Alexei Podtelezhnikov <[email protected]> |
| 4107 |
|
| 4108 |
* builds/windows/ftsystem.c: Use _WINRT_DLL to check for UWP. |
| 4109 |
|
| 4110 |
Fixes compilation using Windows GDK, reported by Erin Melucci. |
| 4111 |
|
| 4112 |
2024-05-13 Alexei Podtelezhnikov <[email protected]> |
| 4113 |
|
| 4114 |
* include/freetype/ftmm.h: Include `freetype.h`. |
| 4115 |
|
| 4116 |
Reported by Ben Wagner, see !326. |
| 4117 |
|
| 4118 |
2024-05-13 Alexei Podtelezhnikov <[email protected]> |
| 4119 |
|
| 4120 |
[type1/MM] Safer handle arrays of different types. |
| 4121 |
|
| 4122 |
* src/type1/t1load.c (parse_blend_design_map): Separately allocate... |
| 4123 |
(T1_Done_Blend): ... and free `design_points` and `blend_points`. |
| 4124 |
|
| 4125 |
2024-05-12 Alexei Podtelezhnikov <[email protected]> |
| 4126 |
|
| 4127 |
* src/type1/t1load.c (parse_blend_design_map): Add risky cast. |
| 4128 |
|
| 4129 |
2024-05-12 Alexei Podtelezhnikov <[email protected]> |
| 4130 |
|
| 4131 |
* docs/CHANGES: Mention the last commit. |
| 4132 |
|
| 4133 |
2024-05-12 Alexei Podtelezhnikov <[email protected]> |
| 4134 |
|
| 4135 |
[type1/MM] Tighten headers. |
| 4136 |
|
| 4137 |
* include/freetype/internal/t1types.h: Host PS_DesignMap and PS_Blend. |
| 4138 |
* include/freetype/ftmm.h: Host and document TT_MAX_MM_XXX. |
| 4139 |
* include/freetype/t1tables.h: Remove them from here. |
| 4140 |
|
| 4141 |
2024-05-11 Alexei Podtelezhnikov <[email protected]> |
| 4142 |
|
| 4143 |
* src/pshinter/pshrec.c (ps_hints_stem): Correct argument. |
| 4144 |
|
| 4145 |
2024-05-08 Ben Wagner <[email protected]> |
| 4146 |
|
| 4147 |
[psaux] Fix location and type order in initializer |
| 4148 |
|
| 4149 |
`T1_FIELD_ZERO` is used to zero initialize a `T1_FieldRec`. |
| 4150 |
`T1_FIELD_ZERO` is currently initilizing `T1_FieldRec::location` with a |
| 4151 |
`T1_FieldType` and `T1_FieldRec::type` with a `T1_FieldLocation`. This |
| 4152 |
was detected with `-Wenum-conversion`. |
| 4153 |
|
| 4154 |
* include/freetype/internal/psaux.h (T1_FIELD_ZERO): correct order of |
| 4155 |
initalizers |
| 4156 |
|
| 4157 |
2024-05-08 Alexei Podtelezhnikov <[email protected]> |
| 4158 |
|
| 4159 |
* include/freetype/internal/psaux.h: Fix g++ warning. |
| 4160 |
|
| 4161 |
Reported by Hin-Tak Leung. |
| 4162 |
|
| 4163 |
2024-05-08 Ben Wagner <[email protected]> |
| 4164 |
|
| 4165 |
[colr] Avoid overflow in range checks |
| 4166 |
|
| 4167 |
In 32 bit builds `FT_ULong` is 32 bits and can silently overflow when a |
| 4168 |
large number is read into one and then it is summed or multiplied with |
| 4169 |
another number. Checks for range overflow must be written so that they |
| 4170 |
themselves do not overflow. Also ensure that the table_size is always the |
| 4171 |
first part of the range check and consistently use `<` or `<=`. |
| 4172 |
|
| 4173 |
* src/sfnt/ttcolr.c (tt_face_load_colr): Avoid overflow. |
| 4174 |
(find_base_glyph_v1_record): Remove old work-around. |
| 4175 |
|
| 4176 |
Bug: https://issues.chromium.org/issues/41495455 |
| 4177 |
Bug: https://issues.chromium.org/issues/40945818 |
| 4178 |
|
| 4179 |
2024-05-06 Werner Lemberg <[email protected]> |
| 4180 |
|
| 4181 |
.mailmap: Fix entry for Ben Wagner. |
| 4182 |
|
| 4183 |
2024-05-06 Alexei Podtelezhnikov <[email protected]> |
| 4184 |
|
| 4185 |
[sdf, bsdf] Use shared FT_SqrtFixed. |
| 4186 |
|
| 4187 |
FT_SqrtFixed (95b0fe2a6dff) is faster and does not overflow. |
| 4188 |
|
| 4189 |
* src/sdf/ftsdfcommin.h (square_root): Replace with a macro. |
| 4190 |
* src/sdf/ftsdfcommin.c (square_root): Remove function. |
| 4191 |
|
| 4192 |
2024-05-04 Alexei Podtelezhnikov <[email protected]> |
| 4193 |
|
| 4194 |
* src/autofit/aflatin.c (af_latin_metrics_scale_dim): Remove FT_ABS. |
| 4195 |
|
| 4196 |
See |
| 4197 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68679 |
| 4198 |
|
| 4199 |
2024-05-03 Alexei Podtelezhnikov <[email protected]> |
| 4200 |
|
| 4201 |
* src/sfnt/sfwoff2.c (woff2_open_font): Fix copy-paste typo. |
| 4202 |
|
| 4203 |
2024-05-03 Alexei Podtelezhnikov <[email protected]> |
| 4204 |
|
| 4205 |
[woff,woff2] Limit the number of tables and use FT_MSB. |
| 4206 |
|
| 4207 |
The upper limit of 4095 is implied by the SFNT header format |
| 4208 |
where the multiplication by 16 would overflow without it. |
| 4209 |
|
| 4210 |
* src/sfnt/sfwoff.c (woff_open_font): Updated. |
| 4211 |
* src/sfnt/sfwoff2.c (woff2_open_font): Ditto. |
| 4212 |
|
| 4213 |
2024-05-02 Ben Wanger <[email protected]> |
| 4214 |
|
| 4215 |
[woff2] Disallow zero table font entries |
| 4216 |
|
| 4217 |
The existing code already disallows zero table woff2 overall, but still |
| 4218 |
allows for individual CollectionFontEntry to create font instances with |
| 4219 |
zero tables. Such fonts are not useful so error early. |
| 4220 |
|
| 4221 |
This also fixes an MSAN discovered issue where if a CollectionFontEntry |
| 4222 |
numTables is zero then the sfnt_header was not fully initialized. |
| 4223 |
|
| 4224 |
* src/sfnt/sfwoff2.c (woff2_open_font): error on zero tables, always |
| 4225 |
initalize sfnt_header |
| 4226 |
|
| 4227 |
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68384 |
| 4228 |
|
| 4229 |
2024-05-02 Alexei Podtelezhnikov <[email protected]> |
| 4230 |
|
| 4231 |
[sfnt] Use faster macros in checksums. |
| 4232 |
|
| 4233 |
* src/truetype/ttobjs.c (tt_synth_sfnt_checksum): Use FT_NEXT_XXX. |
| 4234 |
* src/sfnt/sfwoff2.c (compute_ULong_sum): Use macros. |
| 4235 |
|
| 4236 |
2024-05-01 Alexei Podtelezhnikov <[email protected]> |
| 4237 |
|
| 4238 |
* src/sfnt/sfwoff2.c (compute_ULong_sum): Clean up. |
| 4239 |
|
| 4240 |
2024-04-30 Alexei Podtelezhnikov <[email protected]> |
| 4241 |
|
| 4242 |
* docs/CHANGES: Updated. |
| 4243 |
|
| 4244 |
2024-04-30 Alexei Podtelezhnikov <[email protected]> |
| 4245 |
|
| 4246 |
* src/cache/ftccache.c (FTC_Cache_RemoveFaceID): Remove nodes instantly. |
| 4247 |
|
| 4248 |
2024-04-29 Alexei Podtelezhnikov <[email protected]> |
| 4249 |
|
| 4250 |
[cache] Remove unused `node_reset`. |
| 4251 |
|
| 4252 |
* src/cache/ftcmru.h (FTC_MruListClassRec): Remove `node_reset` field. |
| 4253 |
* src/cache/ftcbasic.c (ftc_basic_{image,sbit}_family_class): Ditto. |
| 4254 |
* src/cache/ftcmanag.c (ftc_face_list_class): Ditto. |
| 4255 |
(ftc_size_node_reset): Remove function. |
| 4256 |
* src/cache/ftcglyph.h: Fix comment. |
| 4257 |
|
| 4258 |
2024-04-29 Alexei Podtelezhnikov <[email protected]> |
| 4259 |
|
| 4260 |
* src/cache/ftcmru.c (FTC_MruList_New): Do not reset nodes. |
| 4261 |
|
| 4262 |
Resetting of the size nodes can crash, if a parent face purge happens |
| 4263 |
simultaneously and destroys the node. It is safer to create a new node. |
| 4264 |
Fixes #1270, reopened with a separate issue. |
| 4265 |
|
| 4266 |
2024-04-28 Alexei Podtelezhnikov <[email protected]> |
| 4267 |
|
| 4268 |
* src/cache/ftcimage.c (ftc_inode_weight): Formatting. |
| 4269 |
|
| 4270 |
2024-04-28 Alexei Podtelezhnikov <[email protected]> |
| 4271 |
|
| 4272 |
Document the SDF spread further. |
| 4273 |
|
| 4274 |
2024-04-23 Alexei Podtelezhnikov <[email protected]> |
| 4275 |
|
| 4276 |
* include/freetype/ftdriver.h: s/truncated/clamped/. |
| 4277 |
|
| 4278 |
2024-04-23 Alexei Podtelezhnikov <[email protected]> |
| 4279 |
|
| 4280 |
Improve SDF documentation. |
| 4281 |
|
| 4282 |
2024-04-21 Alexei Podtelezhnikov <[email protected]> |
| 4283 |
|
| 4284 |
[cache] Minor tweaks. |
| 4285 |
|
| 4286 |
* src/cache/ftcimage.c (ftc_inode_free): Remove unnecessary check. |
| 4287 |
* src/cache/ftcmanag.c (FTC_Manager_Done): Do not zero before freeing. |
| 4288 |
|
| 4289 |
2024-04-21 Alexei Podtelezhnikov <[email protected]> |
| 4290 |
|
| 4291 |
* src/cache/ftcbasic.c: Cosmetic harmonization. |
| 4292 |
|
| 4293 |
2024-04-20 Alexei Podtelezhnikov <[email protected]> |
| 4294 |
|
| 4295 |
[cache] Reduce type mismatches. |
| 4296 |
|
| 4297 |
* src/cache/ftcbasic.c (FTC_BasicAttrRec): Match type of `load_flags` |
| 4298 |
to its main purpose in `FT_Load_Glyph`. |
| 4299 |
(FTC_ImageCache_Lookup{,Scaler},FTC_SBitCache_Lookup{,Scaler}): Updated. |
| 4300 |
|
| 4301 |
2024-04-19 Alexei Podtelezhnikov <[email protected]> |
| 4302 |
|
| 4303 |
* src/cache/{ftcbasic.c,ftccmap.c}: Use FTC_INLINE. |
| 4304 |
|
| 4305 |
2024-04-19 Alexei Podtelezhnikov <[email protected]> |
| 4306 |
|
| 4307 |
[cache] Tweak headers. |
| 4308 |
|
| 4309 |
* src/cache/ftccback.h: Include less and move `ftc_node_destroy`... |
| 4310 |
* src/cache/ftccache.h: ... to here. |
| 4311 |
* src/cache/ftcmanag.c: Include less. |
| 4312 |
|
| 4313 |
2024-04-19 Alexei Podtelezhnikov <[email protected]> |
| 4314 |
|
| 4315 |
* src/cache/ftcglyph.c [!FTC_INLINE]: Fix compilation. |
| 4316 |
|
| 4317 |
2024-04-17 Alexei Podtelezhnikov <[email protected]> |
| 4318 |
|
| 4319 |
[cache] Improve MRU list management. |
| 4320 |
|
| 4321 |
* src/cache/ftcmru.c (FTC_MruList_Remove): Cosmetic. |
| 4322 |
(FTC_MruList_New): Accept only valid changes. |
| 4323 |
* src/cache/ftcmanag.c (ftc_size_node_done): Simplify. |
| 4324 |
|
| 4325 |
2024-04-17 Alexei Podtelezhnikov <[email protected]> |
| 4326 |
|
| 4327 |
[cache] Fix error handling. |
| 4328 |
|
| 4329 |
Manipulate the cache after a face is requested or a size is looked up |
| 4330 |
successfully. Fixes #1270. |
| 4331 |
|
| 4332 |
* src/cache/ftcmanag.c (ftc_size_node_init, ftc_size_node_reset, |
| 4333 |
ftc_face_node_init): Check for errors before accepting a change. |
| 4334 |
* src/cache/ftcmru.c (FTC_MruList_New): Do nothing if reset fails. |
| 4335 |
|
| 4336 |
2024-04-14 Alexei Podtelezhnikov <[email protected]> |
| 4337 |
|
| 4338 |
[smooth] Switch to vertical bisections. |
| 4339 |
|
| 4340 |
With horizontal bisections, the smallest section is a whole single |
| 4341 |
scanline. Almost horizontal lines or other complex scanlines can |
| 4342 |
easily overflow the rendering pool. Switching to vertical bisections |
| 4343 |
splits the scanlines and should rule out the overflows. Fixes #1269. |
| 4344 |
|
| 4345 |
* src/smooth/ftgrays.c (gray_convert_glyph): Bisect vertically. |
| 4346 |
|
| 4347 |
2024-04-14 Alexei Podtelezhnikov <[email protected]> |
| 4348 |
|
| 4349 |
* src/smooth/ftgrays.c (gray_convert_glyph): Refactor for convenience. |
| 4350 |
|
| 4351 |
2024-04-14 Alexei Podtelezhnikov <[email protected]> |
| 4352 |
|
| 4353 |
[smooth] Store persistent clipping box. |
| 4354 |
|
| 4355 |
* src/smooth/ftgrays.c (gray_TWorker, gray_raster_render): Add and set |
| 4356 |
the new structure field. |
| 4357 |
(gray_convert_glyph): Use it. |
| 4358 |
|
| 4359 |
2024-03-08 Ben Wanger <[email protected]> |
| 4360 |
|
| 4361 |
[colr] Ensure enough bytes for PaintColrLayers |
| 4362 |
|
| 4363 |
* src/sfnt/ttcolr.c (read_paint): check that there are five additional |
| 4364 |
bytes to be read when reading PaintColrLayers. |
| 4365 |
|
| 4366 |
Reported as |
| 4367 |
|
| 4368 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66566 |
| 4369 |
|
| 4370 |
2024-03-08 Ben Wagner <[email protected]> |
| 4371 |
|
| 4372 |
Avoid n^2 scanning for binary data. |
| 4373 |
|
| 4374 |
When creating a CID parser the location of the 'StartData' or '/sfnts' |
| 4375 |
tokens needs to be known. However, the token parser requires that the |
| 4376 |
entire document be in memory and flattening the entire stream into memory is |
| 4377 |
to be avoided. |
| 4378 |
|
| 4379 |
To avoid forcing the entire stream into memory, previously this code would |
| 4380 |
scan through the stream looking for 'StartData' or '/sfnts' as strings. |
| 4381 |
However, these strings could have been in a comment or string token, so the |
| 4382 |
stream would be read into memory up to that point and the parser run to |
| 4383 |
check that these strings were actually tokens. This forced a parser restart |
| 4384 |
from the beginning each time; as a result, data with many 'StartData' |
| 4385 |
non-tokens would take n^2 time to check. |
| 4386 |
|
| 4387 |
* src/cid/cidparse.c (cid_parser_new): Change algorithm to make the initial |
| 4388 |
scan look for the last possible 'StartData' or '/sfnts' string in the |
| 4389 |
stream. The stream is read forward instead of backward as a typical normal |
| 4390 |
CID font will have one 'StartData' toward the beginning of the data and it |
| 4391 |
it much faster to read the data from beginning to end instead of end to |
| 4392 |
beginning. For memory-based fonts the limit is set to the end of the stream |
| 4393 |
since the stream is already in memory. Then the parser is run once to look |
| 4394 |
for 'StartData' or '/sfnts' tokens. If they are found the parser is re-set |
| 4395 |
to reflect this new information. |
| 4396 |
|
| 4397 |
Reported as |
| 4398 |
|
| 4399 |
https://issues.chromium.org/issues/40201695 |
| 4400 |
|
| 4401 |
2024-03-06 Alexei Podtelezhnikov <[email protected]> |
| 4402 |
|
| 4403 |
* CMakeLists.txt: Bump required version to 3.5. |
| 4404 |
|
| 4405 |
Fixes #1267. |
| 4406 |
|
| 4407 |
2024-03-04 Jordan Williams <[email protected]> |
| 4408 |
|
| 4409 |
meson: Use the standard dependency mechanism to find bzip2 |
| 4410 |
|
| 4411 |
This follows standard conventions in Meson by using the pkg-config file. |
| 4412 |
This change allows Conan to switch to the Meson build system. |
| 4413 |
|
| 4414 |
2024-02-29 Ben Wanger <[email protected]> |
| 4415 |
|
| 4416 |
[cff, truetype] Always set up default variable instance. |
| 4417 |
|
| 4418 |
For default variable instances `cff_face_init` did not set the blend. This |
| 4419 |
mostly worked as later use of the unset blend produced the default |
| 4420 |
variation. However, if a user called `TT_Get_MM_Var` the blend would be |
| 4421 |
partially set up, but not fully. In particular the number of axes, the axis |
| 4422 |
definitions, and the instance locations would be set up, but not the current |
| 4423 |
instance location (`coords` and `normalizedcoords`). This could lead to the |
| 4424 |
default instances of CFF2 fonts erroring on any use of `blend`. |
| 4425 |
|
| 4426 |
Ensure the default variable instance is fully set up by always calling |
| 4427 |
`FT_Set_Named_Instance` on a variable face. |
| 4428 |
|
| 4429 |
* src/cff/cffobjs.c (cff_face_init): Call `FT_Set_Named_Instance` on |
| 4430 |
default instances. |
| 4431 |
* src/truetype/ttobjs.c (tt_face_init): Ditto. |
| 4432 |
|
| 4433 |
Fixes #1268. |
| 4434 |
|
| 4435 |
2024-02-23 Werner Lemberg <[email protected]> |
| 4436 |
|
| 4437 |
* src/truetype/ttgxvar.c (ft_var_to_normalized): Integer overflow. |
| 4438 |
|
| 4439 |
Reported as |
| 4440 |
|
| 4441 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66543 |
| 4442 |
|
| 4443 |
2024-01-27 Alexei Podtelezhnikov <[email protected]> |
| 4444 |
|
| 4445 |
Update all copyright notices. |
| 4446 |
|
| 4447 |
2024-01-27 Alexei Podtelezhnikov <[email protected]> |
| 4448 |
|
| 4449 |
* src/sfnt/ttgpos.c (tt_gpos_get_glyph_class): Fix warning C4018. |
| 4450 |
|
| 4451 |
2024-01-27 David Saltzman <[email protected]> |
| 4452 |
|
| 4453 |
Add support for kerning from 'GPOS' tables. |
| 4454 |
|
| 4455 |
This commit adds support for kerning from 'GPOS' tables, while maintaining |
| 4456 |
support for basic 'kern' tables. `FT_HAS_KERNING` will be true for a font |
| 4457 |
with either available and `FT_Get_Kerning` will still use the basic 'kern' |
| 4458 |
table data if avilable, otherwise check the GPOS 'kern' feature. |
| 4459 |
|
| 4460 |
This feature is disabled by default; it can be enabled with the |
| 4461 |
`TT_CONFIG_OPTION_GPOS_KERNING` flag. |
| 4462 |
|
| 4463 |
Only basic kerning (pair positioning with just an x advance) is supported |
| 4464 |
from the GPOS layout features; support for that was added to make the |
| 4465 |
existing `FT_Get_Kerning` API more consistently functional. FreeType does |
| 4466 |
not intend to extend itself to further GPOS functionality though; a |
| 4467 |
higher-level library like HarfBuzz can be used instead for that. |
| 4468 |
|
| 4469 |
* include/freetype/config/ftoption.h, include/devel/ftoption.h |
| 4470 |
(TT_CONFIG_OPTION_GPOS_KERNING): New configuration option. |
| 4471 |
|
| 4472 |
* include/freetype/internal/fttrace.h: Add `ttgpos` trace handler. |
| 4473 |
|
| 4474 |
* include/freetype/internal/sfnt.h (SFNT_Interface): Add `load_gpos` and |
| 4475 |
`get_gpos_kerning` fields. |
| 4476 |
(FT_DEFINE_SFNT_INTERFACE): Updated. |
| 4477 |
|
| 4478 |
* include/freetype/internal/tttypes.h: Include `fttypes.h`. |
| 4479 |
(TT_FaceRec) [TT_CONFIG_OPTION_GPOS_KERNING]: Add `gpos_table` and |
| 4480 |
`gpos_kerning_available` fields. |
| 4481 |
|
| 4482 |
* src/sfnt/ttgpos.c, src/sfnt/ttgpos.h: New files. |
| 4483 |
|
| 4484 |
* src/sfnt/sfdriver.c [TT_CONFIG_OPTION_GPOS_KERNING]: Include `ttgpos.h`. |
| 4485 |
(sfnt_interface): Updated. |
| 4486 |
|
| 4487 |
* src/sfnt/sfnt.c: Include `ttgpos.c`. |
| 4488 |
|
| 4489 |
* src/sfnt/sfobjs.c [TT_CONFIG_OPTION_GPOS_KERNING]: Include `ttgpos.h`. |
| 4490 |
(sfnt_load_face) [TT_CONFIG_OPTION_GPOS_KERNING]: Load and free GPOS kerning |
| 4491 |
data; check GPOS kerning availability. |
| 4492 |
|
| 4493 |
* src/truetype/ttdriver.c (tt_get_kerning): Use GPOS kerning if there's no |
| 4494 |
'kern' table. |
| 4495 |
|
| 4496 |
2024-01-14 Alexei Podtelezhnikov <[email protected]> |
| 4497 |
|
| 4498 |
[smooth] Remove SSE2. |
| 4499 |
|
| 4500 |
As a result of 7b308a29dd10, the regular 64-bit execution is now faster |
| 4501 |
than SSE2. The rendering speed of script fonts at 64 ppem or larger is |
| 4502 |
improved by about 3% without SSE2. See !314 for the testing results. |
| 4503 |
|
| 4504 |
* src/smooth/ftgrays.c (gray_render_conic)[FT_INT64]: Remove SSE2 code. |
| 4505 |
|
| 4506 |
2024-01-14 Alexei Podtelezhnikov <[email protected]> |
| 4507 |
|
| 4508 |
* CMakeLists.txt: Accommodate MingGW. |
| 4509 |
|
| 4510 |
See https://github.com/StephanTLavavej/mingw-distro/issues/97. |
| 4511 |
|
| 4512 |
2024-01-08 Ozkan Sezer <[email protected]> |
| 4513 |
|
| 4514 |
* src/sfnt/ttcolr.c (find_base_glyph_v1_record): Fix build in C90 mode. |
| 4515 |
|
| 4516 |
2024-01-07 Alexei Podtelezhnikov <[email protected]> |
| 4517 |
|
| 4518 |
[base] Fix up Mac resource forks and dfonts. |
| 4519 |
|
| 4520 |
* src/base/ftobjs.c (IsMacResource): Assign `face_index`. |
| 4521 |
* src/base/ftmac.c (FT_New_Face_From_Suitcase): Ditto after rework. |
| 4522 |
|
| 4523 |
2024-01-05 Alexei Podtelezhnikov <[email protected]> |
| 4524 |
|
| 4525 |
[sfnt] Restrict POST version 1.0. |
| 4526 |
|
| 4527 |
A font has surfaced with `post` version 1.0 and fewer than 258 glyphs. |
| 4528 |
Its glyphs did not correspond to their names. We now reject such `post` |
| 4529 |
strictly following specifications. |
| 4530 |
|
| 4531 |
* src/sfnt/ttpost.c (tt_face_get_ps_name): Check the number of glyphs |
| 4532 |
for version 1.0. |
| 4533 |
|
| 4534 |
2024-01-03 Alexei Podtelezhnikov <[email protected]> |
| 4535 |
|
| 4536 |
* .gitlab-ci.yml: Use detached CI pipelines. |
| 4537 |
|
| 4538 |
See issue freedesktop/freedesktop#540. |
| 4539 |
|
| 4540 |
2024-01-02 Werner Lemberg <[email protected]> |
| 4541 |
|
| 4542 |
[sfnt] Guard access in 'COLR' v1 glyph binary search. |
| 4543 |
|
| 4544 |
Reported as |
| 4545 |
|
| 4546 |
https://bugs.chromium.org/p/chromium/issues/detail?id=1505216 |
| 4547 |
|
| 4548 |
* src/sfnt/ttcolr.c (find_base_glyph_v1_record): Guard access of the search |
| 4549 |
pointer during binary search. The pointer needs to be checked as we go as |
| 4550 |
the test that compares number of v1 glyphs with table size at the time of |
| 4551 |
loading the table is not sufficient on its own. |
| 4552 |
|
| 4553 |
A scenario is possible in which the `BaseGlyphRecord` list extends into |
| 4554 |
non-`BaseGlyphRecord` parts of the 'COLR' v1 table (but passed the size |
| 4555 |
comparison check). Then, at those locations, invalid glyph ID values are |
| 4556 |
read and may provoke an invalid read due to reassigning min and max values |
| 4557 |
during the binary search. |
| 4558 |
|
| 4559 |
2023-12-18 Alexei Podtelezhnikov <[email protected]> |
| 4560 |
|
| 4561 |
[ci] Add support for MSBuild on Windows. |
| 4562 |
|
| 4563 |
This adds msbuild job for VS2019 (x64). |
| 4564 |
|
| 4565 |
* .gitlab-ci.yml: Added "windows msbuild vs2019 amd64". |
| 4566 |
|
| 4567 |
2023-12-14 Skef Iterum <[email protected]> |
| 4568 |
|
| 4569 |
[CFF] Extract `BlueValues` as `Fixed` rather than `Int`. |
| 4570 |
|
| 4571 |
This is a follow-up to commit 26a7f047, |
| 4572 |
|
| 4573 |
[cff] Make blend operator work with floats in private dicts. |
| 4574 |
|
| 4575 |
which addressed the 'party baseline' bug. However, the reporting user |
| 4576 |
indicated that the default location and some other points in design space |
| 4577 |
rendered OK, but other points in design space still had problems. The most |
| 4578 |
obvious issue being that the x-heights of lower-case letters did not align; |
| 4579 |
see |
| 4580 |
|
| 4581 |
https://github.com/adobe-fonts/source-serif/issues/121#issuecomment-1773794136 |
| 4582 |
|
| 4583 |
After some analysis we determined that this was due to an interaction |
| 4584 |
between `BlueValue` rounding and the zone-based algorithm. In short, for a |
| 4585 |
point to be considered in a zone it must fall within the bounds of the zone. |
| 4586 |
(There is a slop factor in some cases, but only a very small one.) In the |
| 4587 |
Adobe-contributed side of the code, point values are not integer-rounded, |
| 4588 |
instead they're kept as (some form of) fixed. Rounding just the `BlueValues` |
| 4589 |
means that points that need to be considered within a zone will fall outside |
| 4590 |
of it at some points in design space. |
| 4591 |
|
| 4592 |
The majority of this patch changes the storage and parsing of `BlueValues` |
| 4593 |
to keep them as `FT_Fixed`. No significant code changes were needed because |
| 4594 |
the values are converted to `Fixed` anyway when stored in `CF_BlueRec`. No |
| 4595 |
attempt was made to address problems in the older pshinter code beyond |
| 4596 |
converting the values from `FT_Fixed` to `FT_Short` when copying the private |
| 4597 |
dictionary. (However, as the point values are also rounded in that code, |
| 4598 |
the problem is much less likely to occur, although inconsistency between |
| 4599 |
rounding and truncation could cause an analogous problem.) |
| 4600 |
|
| 4601 |
* include/freetype/internal/cfftypes.h (CFF_PrivateRec): Use `FT_Fixed` for |
| 4602 |
`blue_values`, `other_blues`, `family_blues`, and `family_other_blues`. |
| 4603 |
|
| 4604 |
* src/cff/cffload.c (cff_blend_doBlend): Updated. |
| 4605 |
|
| 4606 |
* src/cff/cffobjs.c (CFF_fixedToInt): New macro. |
| 4607 |
(cff_make_private_dict): Use it. |
| 4608 |
|
| 4609 |
* src/cff/cffparse.h (cff_kind_delta_fixed): New enum value. |
| 4610 |
|
| 4611 |
* src/cff/cffparse.c (do_fixed): Updated. |
| 4612 |
(CFF_FIELD_DELTA, CFF_FIELD_DELTA_FIXED, CFF_DELTA_KIND): New set of macros, |
| 4613 |
replacing `CFF_FIELD_DELTA`. |
| 4614 |
(cff_parser_run): Updated to handle fixed-float deltas. |
| 4615 |
|
| 4616 |
* src/cff/cfftoken.h: Updated to use `CFF_FIELD_DELTA_FIXED` for blue |
| 4617 |
values. |
| 4618 |
|
| 4619 |
* src/psaux/psblues.c (cf2_blueToFixed): Removed, no longer needed. |
| 4620 |
(cf2_blues_init): Updated. |
| 4621 |
|
| 4622 |
* src/pxaux/psft.c, src/pxaux/psft.h (cf2_getBlueValues, cf2_getOtherBlues, |
| 4623 |
cf2_getFamilyBlues, cf2_getFamilyOtherBlues): Updated signatures. |
| 4624 |
|
| 4625 |
* src/psaux/psobjs.c (t1_make_subfont): Updated. |
| 4626 |
|
| 4627 |
2023-12-14 Skef Iterum <[email protected]> |
| 4628 |
|
| 4629 |
[psaux] Improve tracing. |
| 4630 |
|
| 4631 |
* src/psaux/psintrp.c (cf2_doBlend, cf2_interpT2CharString [cf2_cmdBLEND]): |
| 4632 |
Show blended values. |
| 4633 |
|
| 4634 |
2023-12-14 Jouk Jansen <[email protected]> |
| 4635 |
|
| 4636 |
* vms_make.com: Switch to `clang`. |
| 4637 |
|
| 4638 |
Also add proper bzip2 support. |
| 4639 |
|
| 4640 |
2023-12-14 Werner Lemberg <[email protected]> |
| 4641 |
|
| 4642 |
* src/truetype/ttgxvar.c (ft_var_to_normalized): Fix undefined left-shift. |
| 4643 |
|
| 4644 |
Reported as |
| 4645 |
|
| 4646 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63723 |
| 4647 |
|
| 4648 |
2023-12-07 Alexei Podtelezhnikov <[email protected]> |
| 4649 |
|
| 4650 |
[msbuild] Streamline the process. |
| 4651 |
|
| 4652 |
MSBuild.exe can now be fired from the root folder without options. |
| 4653 |
|
| 4654 |
* builds/windows/vc2010/freetype.sln: Relocated to... |
| 4655 |
* MSBuild.sln: ... here with minor changes. |
| 4656 |
* MSBuild.rsp: New file with command line options. |
| 4657 |
* docs/INSTALL: Reference `MSBuild.sln`. |
| 4658 |
|
| 4659 |
2023-12-02 Alexei Podtelezhnikov <[email protected]> |
| 4660 |
|
| 4661 |
* src/raster/ftraster.c (Draw_Sweep): Swap stub conditions. |
| 4662 |
|
| 4663 |
2023-12-02 Alexei Podtelezhnikov <[email protected]> |
| 4664 |
|
| 4665 |
* src/raster/ftmisc.h (FT_MulDiv): Remove unused copy. |
| 4666 |
|
| 4667 |
2023-11-28 Alexei Podtelezhnikov <[email protected]> |
| 4668 |
|
| 4669 |
[raster] Speed up Bézier arches with extrema. |
| 4670 |
|
| 4671 |
While it is recommended to have an explicit point at each curve |
| 4672 |
extrema, they might be missing or outline could be rotated. This |
| 4673 |
leads to excessive bisections in raster to find them. This change |
| 4674 |
helps to decrease the number of bisections. The scanline |
| 4675 |
intersections remain monotonous, of course. |
| 4676 |
|
| 4677 |
* src/raster/ftraster.c (Conic_To, Cubic_To): Check that control |
| 4678 |
points cross the scanlines to bisect. |
| 4679 |
|
| 4680 |
2023-11-25 Alexei Podtelezhnikov <[email protected]> |
| 4681 |
|
| 4682 |
* docs/*: Typos. |
| 4683 |
|
| 4684 |
2023-11-24 Alexei Podtelezhnikov <[email protected]> |
| 4685 |
|
| 4686 |
[raster] Eliminate intensive flow checking. |
| 4687 |
|
| 4688 |
* src/raster/ftraster.c (Draw_Sweep): Pass the flow increment. |
| 4689 |
(Increment): Accept the flow increment. |
| 4690 |
|
| 4691 |
2023-11-23 Alexei Podtelezhnikov <[email protected]> |
| 4692 |
|
| 4693 |
* src/raster/ftraster.c: Comments, defines, includes, cleanups. |
| 4694 |
|
| 4695 |
2023-11-21 Alexei Podtelezhnikov <[email protected]> |
| 4696 |
|
| 4697 |
* src/raster/ftraster.c (FT_Outline_Get_CBox ) [STANDALONE_]: Removed. |
| 4698 |
|
| 4699 |
2023-11-21 Alexei Podtelezhnikov <[email protected]> |
| 4700 |
|
| 4701 |
* src/raster/ftraster.c (Draw_Sweep): No-fault return. |
| 4702 |
(Render_Single_Pass): Updated. |
| 4703 |
|
| 4704 |
2023-11-21 Alexei Podtelezhnikov <[email protected]> |
| 4705 |
|
| 4706 |
[raster] Sweep polishing. |
| 4707 |
|
| 4708 |
* src/raster/ftraster.c (*_Sweep_Span): Polish. |
| 4709 |
(*_Sweep_Drop): Restore tracing, polish. |
| 4710 |
(Draw_Sweep): Simplify the dropout processing loop. |
| 4711 |
|
| 4712 |
2023-11-21 Alexei Podtelezhnikov <[email protected]> |
| 4713 |
|
| 4714 |
[raster] Rearrange dropout control. |
| 4715 |
|
| 4716 |
This reduces the code duplication. |
| 4717 |
|
| 4718 |
* src/raster/ftraster.c (Function_Sweep_Span): Change signature. |
| 4719 |
(Vertical_Sweep_Drop, Horizontal_Sweep_Drop): Focus on pixel setting |
| 4720 |
and move duplicated the dropout control logic to... |
| 4721 |
(Draw_Sweep): ... this function and refactor. |
| 4722 |
(Vertical_Sweep_Span, Horizontal_Sweep_Span): Minor. |
| 4723 |
|
| 4724 |
2023-11-21 Alexei Podtelezhnikov <[email protected]> |
| 4725 |
|
| 4726 |
[raster] Use bitwise dropout mode interpretation. |
| 4727 |
|
| 4728 |
* src/raster/ftraster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop, |
| 4729 |
Draw_Sweep, Render_GLyph): Interpret dropout mode using bit masks. |
| 4730 |
|
| 4731 |
2023-11-16 Alexei Podtelezhnikov <[email protected]> |
| 4732 |
|
| 4733 |
* docs/CHANGES: Updated. |
| 4734 |
|
| 4735 |
2023-11-16 Alexei Podtelezhnikov <[email protected]> |
| 4736 |
|
| 4737 |
[raster] Keep only bottom y-turns. |
| 4738 |
|
| 4739 |
This results in noticeable performance improvement. |
| 4740 |
|
| 4741 |
* src/raster/ftraster.c (Insert_Y_Turns): All bottom y-turns are still |
| 4742 |
sorted and stored; only the maximum top y-turn is recorded now. The |
| 4743 |
function is renamed. |
| 4744 |
(End_Profile): Updated accordingly. |
| 4745 |
(Convert_Glyph): Reserve space for the top value. |
| 4746 |
|
| 4747 |
2023-11-15 Alexei Podtelezhnikov <[email protected]> |
| 4748 |
|
| 4749 |
* src/raster/ftraster.c (End_Profile): Reduce branching. |
| 4750 |
(InsNew): Tweak condition. |
| 4751 |
|
| 4752 |
2023-11-15 Alexei Podtelezhnikov <[email protected]> |
| 4753 |
|
| 4754 |
* src/raster/ftraster.c (Draw_Sweep): Use more natural loop. |
| 4755 |
|
| 4756 |
2023-11-15 Alexei Podtelezhnikov <[email protected]> |
| 4757 |
|
| 4758 |
[raster] Dissolve a loop. |
| 4759 |
|
| 4760 |
* src/raster/ftraster.c (End_Profile): Set initial `X` here... |
| 4761 |
(Draw_Sweep): ... instead of here; delay the `start` decrement. |
| 4762 |
|
| 4763 |
2023-11-15 Alexei Podtelezhnikov <[email protected]> |
| 4764 |
|
| 4765 |
* src/raster/ftraster.c: Comments. |
| 4766 |
|
| 4767 |
2023-11-14 Alexei Podtelezhnikov <[email protected]> |
| 4768 |
|
| 4769 |
[raster] Stylistic changes. |
| 4770 |
|
| 4771 |
* src/raster/ftraster.c (Line_To): Code it similar to curves; |
| 4772 |
shortcut the flat lines here... |
| 4773 |
(Line_Up): ... instead of here. |
| 4774 |
|
| 4775 |
2023-11-14 Alexei Podtelezhnikov <[email protected]> |
| 4776 |
|
| 4777 |
[raster] Revise overshoot setting. |
| 4778 |
|
| 4779 |
* src/raster/ftraster.c (New_Profile, End_Profile): Deal with overshoots |
| 4780 |
locally. |
| 4781 |
(Line_To, Conic_To, Cubic_To): Update callers. |
| 4782 |
|
| 4783 |
2023-11-14 Alexei Podtelezhnikov <[email protected]> |
| 4784 |
|
| 4785 |
* src/raster/ftraster.c (Conic_To, Cubic_To): Fix recent regression. |
| 4786 |
|
| 4787 |
2023-11-14 Alexei Podtelezhnikov <[email protected]> |
| 4788 |
|
| 4789 |
* include/freetype/ftimage.h: Fix type and link. |
| 4790 |
|
| 4791 |
2023-11-14 Alexei Podtelezhnikov <[email protected]> |
| 4792 |
|
| 4793 |
* src/raster/ftraster.c (Increment): Minor tweak. |
| 4794 |
|
| 4795 |
2023-11-13 Alexei Podtelezhnikov <[email protected]> |
| 4796 |
|
| 4797 |
[raster] Get rid of the fresh flag. |
| 4798 |
|
| 4799 |
* src/raster/ftraster.c (black_TWorker): Remove the fresh flag. |
| 4800 |
(New_Profile): Set the starting scanline here based on the current |
| 4801 |
coordinate and initialize the joint crossing if necessary. |
| 4802 |
(Line_Up, Bezier_Up): Do not deal with fresh and joint starts at all. |
| 4803 |
(Line_Down, Bezier_Down): Simplify. |
| 4804 |
(Conic_To, Cubic_To): Update the current coordinate after each |
| 4805 |
subsection. |
| 4806 |
|
| 4807 |
2023-11-12 Alexei Podtelezhnikov <[email protected]> |
| 4808 |
|
| 4809 |
[raster] Get rid of the joint flag. |
| 4810 |
|
| 4811 |
* src/raster/ftraster.c (Line_Up, Bezier_Up): Deal with the scanline |
| 4812 |
joints directly based on the initial y-coordinate. |
| 4813 |
(New_Profile, black_TWorker): Remove the boolean flag. |
| 4814 |
|
| 4815 |
2023-11-11 Alexei Podtelezhnikov <[email protected]> |
| 4816 |
|
| 4817 |
* src/raster/ftraster.c (Line_Up, Bezier_Up): Check "between" earlier. |
| 4818 |
|
| 4819 |
2023-11-11 Alexei Podtelezhnikov <[email protected]> |
| 4820 |
|
| 4821 |
* src/raster/ftraster.c (Line_Up): Updated and fixed up. |
| 4822 |
|
| 4823 |
This largely synchronizes the entries into `Line_Up` and `Bezier_Up`. |
| 4824 |
Minor bugs in the remainder calculations and accumulations are fixed. |
| 4825 |
|
| 4826 |
2023-11-10 Alexei Podtelezhnikov <[email protected]> |
| 4827 |
|
| 4828 |
* src/raster/ftraster.c (End_Profile, Convert_Glyph): Clean up. |
| 4829 |
|
| 4830 |
2023-11-10 Alexei Podtelezhnikov <[email protected]> |
| 4831 |
|
| 4832 |
* src/raster/ftraster.c (Bezier_Up): Improve joint and loop. |
| 4833 |
|
| 4834 |
2023-11-07 Alexei Podtelezhnikov <[email protected]> |
| 4835 |
|
| 4836 |
[raster] Harmonize target bitmap navigation. |
| 4837 |
|
| 4838 |
* src/raster/ftraster.c (black_TWorker): Store signed maximum indexes |
| 4839 |
in both directions instead of unsigned dimensions of the original bitmap. |
| 4840 |
(*_Sweep_*, Render_Glyph, ft_black_render): Updated all users. |
| 4841 |
|
| 4842 |
2023-11-06 Alexei Podtelezhnikov <[email protected]> |
| 4843 |
|
| 4844 |
* src/raster/ftraster.c (Bezier_Up): Improve flow. |
| 4845 |
|
| 4846 |
2023-11-06 Alexei Podtelezhnikov <[email protected]> |
| 4847 |
|
| 4848 |
[raster] Reshuffle code for readability. |
| 4849 |
|
| 4850 |
* src/raster/ftraster.c (Render_Glyph): Setup the rendering pool here. |
| 4851 |
(ft_black_render): Setup the target bitmap helpers here. |
| 4852 |
|
| 4853 |
2023-11-04 Alexei Podtelezhnikov <[email protected]> |
| 4854 |
|
| 4855 |
[raster] Improve profile accounting during sweeping. |
| 4856 |
|
| 4857 |
* src/raster/ftraster.c (TProfile): Get rid of `countL`. |
| 4858 |
(Draw_Sweep): Use `start` for countdown to activation. |
| 4859 |
(Horizontal_Sweep_Drop, Vertical_Sweep_Drop): Rely on `height` and |
| 4860 |
`offset` to verify profile ends for the stub detection. |
| 4861 |
|
| 4862 |
2023-11-04 Alexei Podtelezhnikov <[email protected]> |
| 4863 |
|
| 4864 |
[raster] Consolidate profile increment to the next line. |
| 4865 |
|
| 4866 |
* src/raster/ftraster.c (s/Sort/Increment): Rename this function to |
| 4867 |
reflect its true purpose, delete exhausted profiles here... |
| 4868 |
(Draw_Sweep): ... instead of here. |
| 4869 |
|
| 4870 |
2023-11-04 Alexei Podtelezhnikov <[email protected]> |
| 4871 |
|
| 4872 |
[raster] Instantly remove profiles from linked lists. |
| 4873 |
|
| 4874 |
* src/raster/ftraster.c (DelOld): Remove loopy function. |
| 4875 |
(Draw_Sweep): Implement instant profile removal. |
| 4876 |
|
| 4877 |
2023-11-03 Alexei Podtelezhnikov (Алексей Подтележников) <[email protected]> |
| 4878 |
|
| 4879 |
[raster] Modify the split condition. |
| 4880 |
|
| 4881 |
While curving close to a pixel center, vertical and horizontal pass |
| 4882 |
might split the curve differently and cause a rare dropout. This |
| 4883 |
makes the split condition invariant of the sweep direction and more |
| 4884 |
robust. |
| 4885 |
|
| 4886 |
* src/raster/ftraster.c (Bezier_Up): Modify the split condition. |
| 4887 |
|
| 4888 |
2023-11-03 Alexei Podtelezhnikov (Алексей Подтележников) <[email protected]> |
| 4889 |
|
| 4890 |
[raster] Remove the jitter exception. |
| 4891 |
|
| 4892 |
The jitter exception used to be applied when two neighboring pixels |
| 4893 |
were barely inside the outline. One the left one was turned on then, |
| 4894 |
which contradicts the OpenType specifications. Intended to remove |
| 4895 |
glitches, it caused disappearing lines and was softened by adding an |
| 4896 |
exception to the exception (#54589). |
| 4897 |
|
| 4898 |
* src/raster/ftraster.c (Vertical_Sweep_Span): Drop the jitter exception. |
| 4899 |
|
| 4900 |
2023-10-31 Alexei Podtelezhnikov <[email protected]> |
| 4901 |
|
| 4902 |
[raster] Simplify dropout detection. |
| 4903 |
|
| 4904 |
* src/raster/ftrater.c (Draw_Sweep): Use a single dropout condition. |
| 4905 |
|
| 4906 |
2023-10-31 Alexei Podtelezhnikov <[email protected]> |
| 4907 |
|
| 4908 |
[raster] Simplify sweeping entry and exit. |
| 4909 |
|
| 4910 |
* src/raster/ftraster.c (Draw_Sweep): Use y-turns to set the range, |
| 4911 |
correctly set the initial position, directly loop through y_turns, |
| 4912 |
and remove a 5-gray remnant at exit. |
| 4913 |
|
| 4914 |
2023-10-26 Alexei Podtelezhnikov <[email protected]> |
| 4915 |
|
| 4916 |
[raster] Switch to routine Int instead of Short. |
| 4917 |
|
| 4918 |
This is mostly cosmetic and removes a few casts, plus Short is |
| 4919 |
promoted to Int in calculations anyway. |
| 4920 |
|
| 4921 |
* src/raster/ftraster.c (Vertical_Sweep_Init, Vertical_Sweep_Span, |
| 4922 |
Vertical_Sweep_Drop, Horizontal_Sweep_Init, Horizontal_Sweep_Span, |
| 4923 |
Horizontal_Sweep_Drop, Draw_Sweep): Mostly s/Short/Int/ and remove |
| 4924 |
casting. |
| 4925 |
|
| 4926 |
2023-10-24 Alexei Podtelezhnikov <[email protected]> |
| 4927 |
|
| 4928 |
[raster] Increase the raster pool density. |
| 4929 |
|
| 4930 |
This only helps to delay the pool overflow and bisections to larger |
| 4931 |
sizes and benefits only very intricate glyphs at reasonable sizes. |
| 4932 |
|
| 4933 |
* src/raster/ftraster.c (TProfile): Use Int instead of Long or PLong |
| 4934 |
when it is sufficient. |
| 4935 |
(New_Profile, End_Profuile, Bezier_Up, Sort): Updated accordingly. |
| 4936 |
|
| 4937 |
2023-10-23 Alexei Podtelezhnikov <[email protected]> |
| 4938 |
|
| 4939 |
[raster] Slightly improve the pool design. |
| 4940 |
|
| 4941 |
* src/raster/ftraster.c (TProfile): Include the variable array member |
| 4942 |
and repackage with pointers first. |
| 4943 |
(New_Profile): Advance the top using the variable array pointer. |
| 4944 |
|
| 4945 |
2023-10-22 Alexei Podtelezhnikov <[email protected]> |
| 4946 |
|
| 4947 |
[raster] Clean up sweeping. |
| 4948 |
|
| 4949 |
* src/raster/ftraster.c (Draw_Sweep): Zero initialize the working |
| 4950 |
lists directly and remove unnecessary y-turn checks. |
| 4951 |
(Init_Linked): Removed. |
| 4952 |
|
| 4953 |
2023-10-22 Alexei Podtelezhnikov <[email protected]> |
| 4954 |
|
| 4955 |
* src/raster/ftraster.c (Insert_Y_Turn): Improve flow. |
| 4956 |
|
| 4957 |
2023-10-22 Alexei Podtelezhnikov <[email protected]> |
| 4958 |
|
| 4959 |
* src/pcf/pcfutil.c (BSWAP16): Limit clang support. |
| 4960 |
|
| 4961 |
These ancient builtins have been supported by clang since 2013. We |
| 4962 |
condition it somewhat stricter but still around 2017. This is more |
| 4963 |
portable than `__has_builtin`. Fixes #1260. |
| 4964 |
|
| 4965 |
2023-10-19 Alexei Podtelezhnikov <[email protected]> |
| 4966 |
|
| 4967 |
[raster] Small optimizations. |
| 4968 |
|
| 4969 |
* src/raster/ftraster.c (New_Profile): Set important fields only and |
| 4970 |
delay setting `gProfile` until... |
| 4971 |
(End_Profile): ... it is checked to be valid here. |
| 4972 |
(Convert_Glyph): Updated. |
| 4973 |
|
| 4974 |
2023-10-18 Alexei Podtelezhnikov <[email protected]> |
| 4975 |
|
| 4976 |
* src/raster/ftraster.c (Convert_Glyph): Remove redundant check. |
| 4977 |
|
| 4978 |
2023-10-18 Alexei Podtelezhnikov <[email protected]> |
| 4979 |
|
| 4980 |
[raster] Fix linked profiles in contour loops. |
| 4981 |
|
| 4982 |
This fixes a subtle bug when the last profile in a contour was not |
| 4983 |
properly short-circuited if it was still empty at `End_Profile`. |
| 4984 |
We finalize all linking in `Finalize_Profile_List` now and do nothing |
| 4985 |
else there. The turns are added in `End_Profile`. |
| 4986 |
|
| 4987 |
* src/raster/ftraster.c (Insert_Y_Turn): Moved up unchanged. |
| 4988 |
(End_Profile): Take care of turns but set only preliminary linking. |
| 4989 |
(Finalize_Profile_Table): Take care of linking and null-termination. |
| 4990 |
(Convert_Glyph): Adjusted accordingly. |
| 4991 |
|
| 4992 |
2023-10-15 Alexei Podtelezhnikov <[email protected]> |
| 4993 |
|
| 4994 |
* src/raster/ftraster.c: Improve tracing. |
| 4995 |
|
| 4996 |
2023-10-13 Alexei Podtelezhnikov <[email protected]> |
| 4997 |
|
| 4998 |
[raster] Improve profile accounting. |
| 4999 |
|
| 5000 |
* src/raster/ftraster.c (End_Profile): Do not initiate next profile. |
| 5001 |
(New_Profile): Fully initiate new profile. |
| 5002 |
(Convert_Glyph): Clean up variables, initialize `fProfile` here. |
| 5003 |
|
| 5004 |
2023-10-13 Alexei Podtelezhnikov <[email protected]> |
| 5005 |
|
| 5006 |
* src/raster/ftraster.c (Convert_Glyph): Fix null-dereference. |
| 5007 |
|
| 5008 |
2023-10-13 Alexei Podtelezhnikov <[email protected]> |
| 5009 |
|
| 5010 |
[raster] Fix pool overflow checking. |
| 5011 |
|
| 5012 |
* src/raster/ftraster.c (New_Profile, End_Profile): Check for overflow |
| 5013 |
immediately. |
| 5014 |
(Convert_Glyph, Render_Single_Pass): Fix boundaries. |
| 5015 |
|
| 5016 |
2023-10-13 Alexei Podtelezhnikov <[email protected]> |
| 5017 |
|
| 5018 |
[raster] Miscellaneous clean-ups. |
| 5019 |
|
| 5020 |
* src/raster/ftraster.c (New_Profile): Use NULL. |
| 5021 |
(End_Profile): Optimize variables. |
| 5022 |
(Convert_Glyph): Do not initialize `cProfile` yet. |
| 5023 |
(Render_Single_Pass): Tracing. |
| 5024 |
|
| 5025 |
2023-10-10 Alexei Podtelezhnikov <[email protected]> |
| 5026 |
|
| 5027 |
* src/smooth/ftgrays.c: Move the sweep functions... |
| 5028 |
|
| 5029 |
... out of the setjmp/longjmp scope for readability. |
| 5030 |
|
| 5031 |
2023-10-10 Alexei Podtelezhnikov <[email protected]> |
| 5032 |
|
| 5033 |
* src/raster/ftraster.c: Tracing updates. |
| 5034 |
|
| 5035 |
2023-10-09 Zachary Zollman <[email protected]> |
| 5036 |
|
| 5037 |
fix typo in FT_Outline_Decompose note |
| 5038 |
|
| 5039 |
2023-09-29 Alexei Podtelezhnikov <[email protected]> |
| 5040 |
|
| 5041 |
* src/smooth/ftgrays.c (gray_render_conic) [SSE2]: Improve flow. |
| 5042 |
|
| 5043 |
2023-09-26 Alexei Podtelezhnikov <[email protected]> |
| 5044 |
|
| 5045 |
* src/gxvalid/gxvcommn.h (GXV_USHORT_TO_SHORT): Removed. |
| 5046 |
|
| 5047 |
2023-09-25 Alexei Podtelezhnikov <[email protected]> |
| 5048 |
|
| 5049 |
Comment typos. |
| 5050 |
|
| 5051 |
2023-09-25 Alexei Podtelezhnikov <[email protected]> |
| 5052 |
|
| 5053 |
* src/base/ftcalc.c (FT_MOVE_SIGN): Enclose assignments. |
| 5054 |
|
| 5055 |
2023-09-21 Alexei Podtelezhnikov <[email protected]> |
| 5056 |
|
| 5057 |
* include/freetype/internal/ftcalc.h (FT_MSB): Define for Solaris 11. |
| 5058 |
|
| 5059 |
2023-09-20 Alexei Podtelezhnikov <[email protected]> |
| 5060 |
|
| 5061 |
[psaux] Use `FT_SqrtFixed`. |
| 5062 |
|
| 5063 |
* src/psaux/cffdecode.c <cff_op_sqrt>: Call `FT_SqrtFixed`. |
| 5064 |
* src/psaux/psintrp.c <cf2_escSQRT>: Ditto. |
| 5065 |
|
| 5066 |
2023-09-20 Alexei Podtelezhnikov <[email protected]> |
| 5067 |
|
| 5068 |
[base] Reintroduce `FT_SqrtFixed`. |
| 5069 |
|
| 5070 |
The general square root calculations are not necessary in FreeType. |
| 5071 |
For vector normalization or length, FreeType uses special functions. |
| 5072 |
It is, however, required in the legacy CFF specifications. |
| 5073 |
|
| 5074 |
* src/base/ftcalc.c (FT_SqrtFixed): New function that uses either |
| 5075 |
Babylonian or bit-wise algorithm, whichever is faster for the given |
| 5076 |
situation. |
| 5077 |
* include/freetype/internal/ftcalc.h (FT_SqrtFixed): Declare it. |
| 5078 |
|
| 5079 |
2023-09-18 Alexei Podtelezhnikov <[email protected]> |
| 5080 |
|
| 5081 |
* src/base/ftcalc.c /* FT_SqrtFixed */: Fix defunct overflow. |
| 5082 |
|
| 5083 |
2023-09-14 Alexei Podtelezhnikov <[email protected]> |
| 5084 |
|
| 5085 |
* src/tools/apinames.c (read_header_file): Typos. |
| 5086 |
|
| 5087 |
2023-09-13 Alexei Podtelezhnikov <[email protected]> |
| 5088 |
|
| 5089 |
Update 2 files |
| 5090 |
|
| 5091 |
- /src/base/ftcalc.c |
| 5092 |
- /include/freetype/internal/ftcalc.h |
| 5093 |
|
| 5094 |
2023-09-13 Ben Wagner <[email protected]> |
| 5095 |
|
| 5096 |
[base] Fix typo to correct predicate for call |
| 5097 |
|
| 5098 |
* src/base/ftobj.c (FT_Get_Color_Glyph_Paint): check |
| 5099 |
`get_colr_glyph_paint` before calling `get_colr_glyph_paint` and not |
| 5100 |
`get_colr_layer` |
| 5101 |
|
| 5102 |
2023-09-12 Alexei Podtelezhnikov <[email protected]> |
| 5103 |
|
| 5104 |
* src/psaux/cffdecode.c (cff_op_sqrt): Correct upper limit. |
| 5105 |
|
| 5106 |
2023-09-11 Alexei Podtelezhnikov <[email protected]> |
| 5107 |
|
| 5108 |
* src/psaux/cffdecode.c (cff_op_sqrt): Improve initial guess. |
| 5109 |
|
| 5110 |
2023-09-11 Alexei Podtelezhnikov <[email protected]> |
| 5111 |
|
| 5112 |
src/psaux/psintrp.c (cf2_escSQRT): Improve initial guess. |
| 5113 |
|
| 5114 |
The worst number of iterations decreased from 11 to 5. |
| 5115 |
|
| 5116 |
2023-09-11 Alexei Podtelezhnikov <[email protected]> |
| 5117 |
|
| 5118 |
* src/type1/t1afm.c (t1_get_index): Restore `strlen` call. |
| 5119 |
|
| 5120 |
This reverts commit 8ed6d97446f2f3e5523da62eefbbf32ef7c1290e |
| 5121 |
and fixes |
| 5122 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62246 |
| 5123 |
|
| 5124 |
2023-09-10 Alexei Podtelezhnikov <[email protected]> |
| 5125 |
|
| 5126 |
* src/cff/cffparse.c (CFF_Field_Handler): Some s/0/NULL/. |
| 5127 |
|
| 5128 |
2023-09-10 Alexei Podtelezhnikov <[email protected]> |
| 5129 |
|
| 5130 |
[type1, cid, type42] Post-cleanup. |
| 5131 |
|
| 5132 |
* include/freetype/internal/psaux.h (T1_FIELD_ZERO): Terminating macro. |
| 5133 |
* src/cid/cidload.c (cid_parse_dict): Use while-loop. |
| 5134 |
* src/type1/t1load.c (parse_dict): Ditto. |
| 5135 |
* src/type42/t42parse.c (t42_parse_dict): Ditto. |
| 5136 |
|
| 5137 |
2023-09-09 Alexei Podtelezhnikov <[email protected]> |
| 5138 |
|
| 5139 |
Update forgotten array termini. |
| 5140 |
|
| 5141 |
* src/cid/cidload.c (cid_field_records): Account for added `len`. |
| 5142 |
* src/type1/t1load.c (t1_keywords): Ditto. |
| 5143 |
* src/type42/t42parse.c (t42_keywords): Ditto. |
| 5144 |
|
| 5145 |
2023-09-09 Alexei Podtelezhnikov <[email protected]> |
| 5146 |
|
| 5147 |
[type1, cid, type42] Streamline dictionary parsing. |
| 5148 |
|
| 5149 |
When matching the keywords, we avoid calculating their lengths by |
| 5150 |
checking the stored values. This itself is a sufficient pre-check |
| 5151 |
before diving into `memcmp`. Therefore, we remove explicit check of |
| 5152 |
the first characters. |
| 5153 |
|
| 5154 |
* include/freetype/internal/psaux.h (T1_FieldRec): Store length. |
| 5155 |
* src/cid/cidload.c (cid_parse_dict): Use `memcmp` and stored length. |
| 5156 |
* src/type1/t1load.c (parse_dict): Ditto. |
| 5157 |
* src/type42/t42parse.c (t42_parse_dict): Ditto. |
| 5158 |
|
| 5159 |
2023-09-09 Alexei Podtelezhnikov <[email protected]> |
| 5160 |
|
| 5161 |
* src/type1/t1afm.c (t1_get_index): Avoid `strlen` call. |
| 5162 |
|
| 5163 |
Instead, we check the terminal zero. |
| 5164 |
|
| 5165 |
2023-09-08 Alexei Podtelezhnikov <[email protected]> |
| 5166 |
|
| 5167 |
* src/type1/t1driver.c (t1_ps_get_font_value): Avoid redundant null. |
| 5168 |
|
| 5169 |
2023-09-08 Alexei Podtelezhnikov <[email protected]> |
| 5170 |
|
| 5171 |
[cff, truetype] Improve prefix and suffix removal. |
| 5172 |
|
| 5173 |
* src/cff/cffobjs.c (remove_style): Rewrite using pointers. |
| 5174 |
(remove_subset_prefix): Unwrap loop and use `memmove`. |
| 5175 |
* src/truetype/ttobjs.c (tt_skip_pdffont_random_tag): Unwrap loop |
| 5176 |
and avoid `strlen`. |
| 5177 |
|
| 5178 |
2023-09-07 Alexei Podtelezhnikov <[email protected]> |
| 5179 |
|
| 5180 |
* src/sfnt/ttpost.c (load_format_20): Micro-optimize. |
| 5181 |
|
| 5182 |
2023-09-05 Werner Lemberg <[email protected]> |
| 5183 |
|
| 5184 |
[autofit] Fix synchronization mistake between FreeType and ttfautohint. |
| 5185 |
|
| 5186 |
Found by Behdad. |
| 5187 |
|
| 5188 |
* src/autofit/aflatin.c (af_latin_metrics_init_blues): Fix array size of |
| 5189 |
`blue_sorted`: FreeType doesn't have artificial blue zones. |
| 5190 |
|
| 5191 |
2023-09-04 Werner Lemberg <[email protected]> |
| 5192 |
|
| 5193 |
[autofit] Fix typos. |
| 5194 |
|
| 5195 |
This also reduces the used heap size by a large factor. |
| 5196 |
|
| 5197 |
From Behdad. |
| 5198 |
|
| 5199 |
* src/autofit/afcjk.h (AF_CJKAxisRec): Use `AF_BLUE_STRINGSET_MAX_LEN`. |
| 5200 |
* src/autofit/aflatin.h (AF_LatinAxisRec): Ditto. |
| 5201 |
|
| 5202 |
2023-08-31 Alexei Podtelezhnikov <[email protected]> |
| 5203 |
|
| 5204 |
* src/sfnt/ttpost.c (load_format_20): Rework tracing. |
| 5205 |
|
| 5206 |
2023-08-30 Alexei Podtelezhnikov <[email protected]> |
| 5207 |
|
| 5208 |
[builds] Abbreviate the DLG submodule update. |
| 5209 |
|
| 5210 |
* autogen.sh, builds/toplevel.mk: Revise the command options. |
| 5211 |
|
| 5212 |
2023-08-29 Alexei Podtelezhnikov <[email protected]> |
| 5213 |
|
| 5214 |
Comment added. |
| 5215 |
|
| 5216 |
2023-08-29 Alexei Podtelezhnikov <[email protected]> |
| 5217 |
|
| 5218 |
* src/sfnt/ttpost.c (load_format_20): Permit long names. |
| 5219 |
|
| 5220 |
Fixes #1254. |
| 5221 |
|
| 5222 |
2023-08-27 Werner Lemberg <[email protected]> |
| 5223 |
|
| 5224 |
[gzip] Update sources to zlib 1.13. |
| 5225 |
|
| 5226 |
2023-08-25 Werner Lemberg <[email protected]> |
| 5227 |
|
| 5228 |
docs/release: Minor fixes. |
| 5229 |
|
| 5230 |
2023-08-25 Anurag Thakur <[email protected]> |
| 5231 |
|
| 5232 |
docs/freetype-web.txt: New file. |
| 5233 |
|
| 5234 |
2023-08-25 Werner Lemberg <[email protected]> |
| 5235 |
|
| 5236 |
* Version 2.13.2 released. |
| 5237 |
========================== |
| 5238 |
|
| 5239 |
Tag sources with `VER-2-13-2'. |
| 5240 |
|
| 5241 |
* docs/VERSION.TXT: Add entry for version 2.13.2. |
| 5242 |
* docs/CHANGES: Updated. |
| 5243 |
* docs/release, docs/README, builds/macs/README: Updated. |
| 5244 |
|
| 5245 |
* README, src/base/ftver.rc, builds/windows/vc2010/index.html, |
| 5246 |
builds/windows/visualc/index.html, builds/windows/visualce/index.html, |
| 5247 |
builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html, |
| 5248 |
docs/freetype-config.1: s/2.13.1/2.13.2/, s/2131/2132/. |
| 5249 |
|
| 5250 |
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 2. |
| 5251 |
|
| 5252 |
* builds/unix/configure.raw (version_info): Set to 26:1:20. |
| 5253 |
* CMakeLists.txt (VERSION_PATCH): Set to 2. |
| 5254 |
|
| 5255 |
2023-08-25 Alexei Podtelezhnikov <[email protected]> |
| 5256 |
|
| 5257 |
* src/base/ftcalc.c (FT_MulAddFix): Simplify 32-bit rounding. |
| 5258 |
|
| 5259 |
2023-08-25 Werner Lemberg <[email protected]> |
| 5260 |
|
| 5261 |
Fix clang warnings. |
| 5262 |
|
| 5263 |
* src/cffload.c (cff_blend_doBlend): Fix type of `sum`. |
| 5264 |
* src/truetype/ttgxvar.c (tt_var_load_item_variation_store): Fix type of |
| 5265 |
`word_delta_count`. |
| 5266 |
|
| 5267 |
2023-08-24 Werner Lemberg <[email protected]> |
| 5268 |
|
| 5269 |
* subprojects/*.wrap: Updated. |
| 5270 |
|
| 5271 |
2023-08-24 Hugh McMaster <[email protected]> |
| 5272 |
|
| 5273 |
builds/unix/configure.raw: Use variable to specify minimum Python version. |
| 5274 |
|
| 5275 |
2023-08-24 Alexei Podtelezhnikov <[email protected]> |
| 5276 |
|
| 5277 |
* builds/toplevel.mk: Simplify version extraction. |
| 5278 |
|
| 5279 |
2023-08-22 Alexei Podtelezhnikov <[email protected]> |
| 5280 |
|
| 5281 |
[base] Improve the matrix degeneracy check. |
| 5282 |
|
| 5283 |
Also fixes #1251. |
| 5284 |
|
| 5285 |
* src/base/ftcalc.c (FT_Matrix_Check): To avoid overflow, scale by shifting. |
| 5286 |
* include/freetype/internal/ftcalc.h (FT_Matrix_Check): Update description. |
| 5287 |
|
| 5288 |
2023-08-22 Werner Lemberg <[email protected]> |
| 5289 |
|
| 5290 |
builds/toplevel.mk: Don't use `\#` in functions. |
| 5291 |
|
| 5292 |
The behaviour changed in GNU make 4.3, where `#` (without the backslash) |
| 5293 |
would be necessary. Using a variable instead the code works with both older |
| 5294 |
and newer GNU make versions. |
| 5295 |
|
| 5296 |
Fixes #1252. |
| 5297 |
|
| 5298 |
2023-08-19 Hugh McMaster <[email protected]> |
| 5299 |
|
| 5300 |
builds/freetype.mk: Invoke `mkdocs` as a Python module |
| 5301 |
|
| 5302 |
FreeType's `refdoc` target currently allows users to override the |
| 5303 |
default Python path, which is useful for testing and development. |
| 5304 |
|
| 5305 |
In contrast, `mkdocs` is invoked via the default Python path. |
| 5306 |
|
| 5307 |
Invoking `mkdocs` via Python's module syntax allows for greater |
| 5308 |
flexibility, although there is no change for the default use case. |
| 5309 |
|
| 5310 |
2023-08-17 Ben Wagner <[email protected]> |
| 5311 |
|
| 5312 |
[base] Avoid UB with memcpy |
| 5313 |
|
| 5314 |
`FT_NEW_ARRAY(p, 0)` sets `p` to `NULL`. `FT_Stream_ReadAt` with a |
| 5315 |
memory based stream uses `FT_MEM_COPY` which is `memcpy` which specifies |
| 5316 |
that it is undefined behavior for either the `src` or `dst` to be |
| 5317 |
`NULL`. Instead of forcing all callers work around calling |
| 5318 |
`FT_Stream_Read` when `buffer == NULL && count == 0` do the check in |
| 5319 |
`FT_StreamRead`. This allows any call with `count == 0` to succesfully |
| 5320 |
read zero bytes without UB. |
| 5321 |
|
| 5322 |
* src/base/ftstream.c (FT_Stream_ReadAt): skip `FT_MEM_COPY` when |
| 5323 |
`count == 0`. (FT_Stream_TryRead): ditto |
| 5324 |
|
| 5325 |
Fixes: #1250 |
| 5326 |
|
| 5327 |
2023-08-12 Werner Lemberg <[email protected]> |
| 5328 |
|
| 5329 |
Fix warnings in tracing messages for 32bit compilation. |
| 5330 |
|
| 5331 |
Since we now require C99, use `%td` for `ptrdiff_t` and `%zu` for `size_t`. |
| 5332 |
|
| 5333 |
2023-08-04 Ben Wagner <[email protected]> |
| 5334 |
|
| 5335 |
Avoid overflow in COLR bounds checks. |
| 5336 |
|
| 5337 |
The values read into `base_glyphs_offset_v1` and `layer_offset_v1` may |
| 5338 |
be in the range 0xFFFFFFFD-0xFFFFFFFF. On systems where `unsigned long` |
| 5339 |
is 32 bits adding 4 to such values will wrap and pass bounds checks but |
| 5340 |
accessing values at such offsets will be out of bounds. |
| 5341 |
|
| 5342 |
On the other hand `table_size` has already been tested to be at least |
| 5343 |
`COLRV1_HEADER_SIZE` (34) so it is safe to subtract 4 from it. |
| 5344 |
|
| 5345 |
* src/sfnt/ttcolr.c (tt_face_load_colr): subtract 4 from `table_size` |
| 5346 |
instead of adding 4 to font data offsets in bounds checks |
| 5347 |
|
| 5348 |
Fixes: https://crbug.com/1469348 |
| 5349 |
|
| 5350 |
2023-08-02 Alexei Podtelezhnikov <[email protected]> |
| 5351 |
|
| 5352 |
* src/base/ftobjs.c (open_face_from_buffer): Silence `maybe-uninitialized`. |
| 5353 |
|
| 5354 |
We never call this function without a `driver_name` (#1245). |
| 5355 |
|
| 5356 |
2023-07-29 Alexei Podtelezhnikov <[email protected]> |
| 5357 |
|
| 5358 |
[truetype] Reduce v40 footprint. |
| 5359 |
|
| 5360 |
* src/truetype/ttgload.c (TT_HInt_Glyph, tt_loader_set_pp, |
| 5361 |
tt_loader_init): Refactor code. |
| 5362 |
|
| 5363 |
2023-07-27 Alexei Podtelezhnikov <[email protected]> |
| 5364 |
|
| 5365 |
[truetype] Remove Infinality for good (remaining bits). |
| 5366 |
|
| 5367 |
* src/truetype/ttobjs.h: Remove remaining fields. |
| 5368 |
* src/truetype/ttinterp.c: Do not initialize them. |
| 5369 |
* include/freetype/internal/tttypes.h: Remove descriptions. |
| 5370 |
|
| 5371 |
2023-07-27 Alexei Podtelezhnikov <[email protected]> |
| 5372 |
|
| 5373 |
[truetype] Remove Infinality for good. |
| 5374 |
|
| 5375 |
Remove everything `#ifdef TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY`, |
| 5376 |
which was undefined for a while now. |
| 5377 |
|
| 5378 |
* include/freetype/internal/tttypes.h: Ditto. |
| 5379 |
* src/truetype/truetype.c: Ditto. |
| 5380 |
* src/truetype/ttdriver.c: Ditto. |
| 5381 |
* src/truetype/ttgload.c: Ditto. |
| 5382 |
* src/truetype/ttinterp.c: Ditto. |
| 5383 |
* src/truetype/ttinterp.h: Ditto. |
| 5384 |
* src/truetype/ttobjs.c: Ditto. |
| 5385 |
* src/truetype/ttsubpix.[ch]: Remove files. |
| 5386 |
* src/truetype/rules.mk: Don't mention "ttsubpix.c". |
| 5387 |
|
| 5388 |
2023-07-21 Jouk Jansen <[email protected]> |
| 5389 |
|
| 5390 |
* vms_make.com: Provide separate library compiled with C++. |
| 5391 |
|
| 5392 |
Some types on OpenVMS x86_64 (for example, `long') have different sizes |
| 5393 |
depending on whether compiled with either C or C++. In particular, |
| 5394 |
X-Windows applications crash if linked with the C++ version. |
| 5395 |
|
| 5396 |
This patch makes `vms_make.com` create a second version of the FreeType |
| 5397 |
library compiled with C++ if OpenVMS is running on the x86_64 platform. |
| 5398 |
|
| 5399 |
2023-07-21 Jouk Jansen <[email protected]> |
| 5400 |
|
| 5401 |
* vms_make.com: Fix typos. |
| 5402 |
|
| 5403 |
2023-07-21 Jouk Jansen <[email protected]> |
| 5404 |
|
| 5405 |
* src/smooth/ftgrays.c (FT_SSE2): Fix definition for VMS. |
| 5406 |
|
| 5407 |
2023-07-19 Jouk Jansen <[email protected]> |
| 5408 |
|
| 5409 |
vms_make.com: Make use of additional libraries optional. |
| 5410 |
|
| 5411 |
Check whether `.olb` files are present. |
| 5412 |
|
| 5413 |
Also check for the HarfBuzz library. |
| 5414 |
|
| 5415 |
2023-07-19 Jouk Jansen <[email protected]> |
| 5416 |
|
| 5417 |
vms_make.com: Add `/warn=noinfo` to `CFLAGS`. |
| 5418 |
|
| 5419 |
This reduces enormously the informationals while compiling on x86_64 (i.e., |
| 5420 |
which `.h` file is inluded form where). |
| 5421 |
|
| 5422 |
2023-07-18 Ben Wagner <[email protected]> |
| 5423 |
|
| 5424 |
[woff2] Clean up on large brotli expansion |
| 5425 |
|
| 5426 |
* src/sfnt/sfwoff2.c (woff2_open_font): set error and goto cleanup |
| 5427 |
|
| 5428 |
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=60711 |
| 5429 |
|
| 5430 |
2023-07-16 Werner Lemberg <[email protected]> |
| 5431 |
|
| 5432 |
[woff2] Avoid allocation bomb. |
| 5433 |
|
| 5434 |
This is a fix for commit 85167dbd5, reported as |
| 5435 |
|
| 5436 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=60615 |
| 5437 |
|
| 5438 |
* src/sfnt/sfwoff2.c (MAX_SFNT_SIZE): New macro. |
| 5439 |
(woff2_open_font): Use it to limit the maximum size of an uncompressed WOFF2 |
| 5440 |
font. |
| 5441 |
|
| 5442 |
2023-07-14 Werner Lemberg <[email protected]> |
| 5443 |
|
| 5444 |
[cff] Fix compiler warning. |
| 5445 |
|
| 5446 |
* src/cff/cffparse.c, src/cff/cffparse.h: Make `cff_parse_fixed` a local |
| 5447 |
function. |
| 5448 |
|
| 5449 |
2023-07-14 Ben Wagner <[email protected]> |
| 5450 |
|
| 5451 |
[woff2] Remove sfnt size guess check |
| 5452 |
|
| 5453 |
In WOFF the `totalSfntSize` must be correct, however in WOFF2 this value |
| 5454 |
is now just a hint and a conforming implementation must not reject |
| 5455 |
otherwise valid data if the `totalSfntSize` turns out not to be exact. |
| 5456 |
|
| 5457 |
* src/sfnt/sfwoff2.c (woff2_open_font): remove check that uncompressed |
| 5458 |
woff2 data would fit in the sfnt size guess. |
| 5459 |
|
| 5460 |
Fixes: #1235 |
| 5461 |
|
| 5462 |
2023-07-14 Skef Iterum <[email protected]> |
| 5463 |
|
| 5464 |
[cff] Make blend operator work with floats in private dicts. |
| 5465 |
|
| 5466 |
The CFF2 blend operator takes N default values and corresponding |
| 5467 |
sets of deltas and pushes N values specific to a designspace |
| 5468 |
location. CFF has a floating point numeric type and the FreeType |
| 5469 |
blending code was not converting those into its internal 16.16 |
| 5470 |
Fixed type format. |
| 5471 |
|
| 5472 |
Fixes #1243. |
| 5473 |
|
| 5474 |
* src/cff/cffparse.c (do_fixed): Handle floating point numbers. |
| 5475 |
Also fix scaling overflow check for integer-to-fixed conversion. |
| 5476 |
|
| 5477 |
* src/cff/cffload.c (cff_blend_doBlend): Updated. |
| 5478 |
|
| 5479 |
2023-07-08 Hin-Tak Leung <[email protected]> |
| 5480 |
|
| 5481 |
* src/truetype/ttgload.c (TT_Hint_Glyph): More mostly cosmetic update. |
| 5482 |
|
| 5483 |
This is a follow-up to commit 49c74ac02, which creates a new local variable |
| 5484 |
"exec = loader->exec", and shortening a lot of "loader->exec". This commit |
| 5485 |
does two more such changes missed in that first commit. |
| 5486 |
|
| 5487 |
2023-07-06 Hugh McMaster <[email protected]> |
| 5488 |
|
| 5489 |
[gzip] Don't compile internal zlib development files when using system zlib. |
| 5490 |
|
| 5491 |
`src/gzip/rules.mk` compiles the internal zlib sources even when using the |
| 5492 |
zlib development files provided by a host system. If the internal zlib |
| 5493 |
development files are not present, FreeType fails to build from source. |
| 5494 |
|
| 5495 |
This patch ensures the internal zlib development files are only |
| 5496 |
prerequisites when not using zlib development files on a host system. |
| 5497 |
|
| 5498 |
* src/gzip/rules.mk (GZIP_DRV_SRCS): Define conditionally. |
| 5499 |
|
| 5500 |
2023-06-24 Werner Lemberg <[email protected]> |
| 5501 |
|
| 5502 |
* Version 2.13.1 released. |
| 5503 |
========================== |
| 5504 |
|
| 5505 |
Tag sources with `VER-2-13-1'. |
| 5506 |
|
| 5507 |
* docs/VERSION.TXT: Add entry for version 2.13.1. |
| 5508 |
* docs/CHANGES: Updated. |
| 5509 |
* docs/release, docs/README, builds/macs/README: Updated. |
| 5510 |
|
| 5511 |
* README, src/base/ftver.rc, builds/windows/vc2010/index.html, |
| 5512 |
builds/windows/visualc/index.html, builds/windows/visualce/index.html, |
| 5513 |
builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html, |
| 5514 |
docs/freetype-config.1: s/2.13.0/2.13/1/, s/2130/2131/. |
| 5515 |
|
| 5516 |
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 1. |
| 5517 |
|
| 5518 |
* builds/unix/configure.raw (version_info): Set to 26:0:20. |
| 5519 |
* CMakeLists.txt (VERSION_PATCH): Set to 1. |
| 5520 |
|
| 5521 |
* subprojects/libpng.wrap, subprojects/zlib.wrap, subprojects/dlg: Updated. |
| 5522 |
|
| 5523 |
2023-06-09 suzuki toshiya <[email protected]> |
| 5524 |
|
| 5525 |
Comment fixes. |
| 5526 |
|
| 5527 |
2023-06-09 Werner Lemberg <[email protected]> |
| 5528 |
|
| 5529 |
[sdf] Correct handling of empty glyphs. |
| 5530 |
|
| 5531 |
This is a refinement of commit 7b3ebb9. |
| 5532 |
|
| 5533 |
* src/sdf/ftsdfrend.c (ft_sdf_render): Goto 'Exit' instead of directly |
| 5534 |
returning. |
| 5535 |
(fd_bsdf_render): Ditto, also taking care of setting `FT_GLYPH_OWN_BITMAP` |
| 5536 |
correctly. |
| 5537 |
|
| 5538 |
2023-06-05 Ben Wagner <[email protected]> |
| 5539 |
|
| 5540 |
Mark FT_Renderer_Class::raster_class as pointer to const |
| 5541 |
|
| 5542 |
The `FT_DEFINE_RASTER_FUNCS` macro declares a `const FT_Raster_Funcs`. |
| 5543 |
The address of the definition is taken and assigned to |
| 5544 |
`FT_Renderer_Class::raster_class` which is currently `FT_Raster_Funcs*`. |
| 5545 |
Until recently the `const` was cast away and with the removal of the |
| 5546 |
cast there are now warnings about dropping this `const`. Instead of |
| 5547 |
adding back the casts, make `FT_Renderer_Class::raster_class` a pointer |
| 5548 |
to const, as is done with pointers in other interfaces. |
| 5549 |
|
| 5550 |
* include/freetype/ftrender.h (FT_Renderer_Class_): mark `raster_class` |
| 5551 |
as const. |
| 5552 |
|
| 5553 |
2023-06-03 Ben Wagner <[email protected]> |
| 5554 |
|
| 5555 |
Fix some `FT_Fixed` vs. `FT_Long` confusion. |
| 5556 |
|
| 5557 |
`FT_Fixed` and `FT_Long` are both typedef'ed to be `signed long`. However, |
| 5558 |
`FT_Fixed` implies that the lower 16 bits are being used to express |
| 5559 |
fractional values and so these two types should not be confused. |
| 5560 |
|
| 5561 |
* include/freetype/internal/services/svmm.h (FT_Set_MM_Blend_Func): Use |
| 5562 |
`FT_Fixed` for `coords`. Users are passing `FT_Fixed` and implementations |
| 5563 |
are taking `FT_Fixed`. |
| 5564 |
(FT_Get_MM_Blend_Func): Ditto. |
| 5565 |
|
| 5566 |
* src/autofit/afcjk.c (af_cjk_metrics_check_digits): Use `FT_Long` for |
| 5567 |
`advance` and `old_advance`. `advance`'s address is passed as `FT_Long*` to |
| 5568 |
`af_shaper_get_elem`, which writes the advance in em units (not fixed). The |
| 5569 |
exact value is not important here as it is only compared to check whether it |
| 5570 |
has changed. |
| 5571 |
|
| 5572 |
* src/autofit/aflatin.c (af_latin_metrics_check_digits): Ditto. |
| 5573 |
|
| 5574 |
2023-06-03 Ben Wagner <[email protected]> |
| 5575 |
|
| 5576 |
*/*: Remove many function pointer casts. |
| 5577 |
|
| 5578 |
In C it is undefined behavior to call a function through a function pointer |
| 5579 |
of a different type. This is now detected by the Control Flow Integrity |
| 5580 |
Sanitizer. All known issues have already been fixed. Prevent any |
| 5581 |
accidental re-introduction by removing function pointer casts when defining |
| 5582 |
services. The services will call the service functions through the function |
| 5583 |
pointers on the service. As a result the functions must have the same type |
| 5584 |
so there should be no need to cast. Removing the casts allows compilers to |
| 5585 |
warn about assignment to an incompatible function pointer type. |
| 5586 |
|
| 5587 |
2023-06-03 Werner Lemberg <[email protected]> |
| 5588 |
|
| 5589 |
Minor formatting. |
| 5590 |
|
| 5591 |
2023-05-23 Werner Lemberg <[email protected]> |
| 5592 |
|
| 5593 |
Replace `sprintf` with `snprintf`. |
| 5594 |
|
| 5595 |
Fixes #1233. |
| 5596 |
|
| 5597 |
* include/freetype/config/ftstdlib.h (ft_sprintf): Replace with... |
| 5598 |
(ft_snprintf): This new macro. |
| 5599 |
|
| 5600 |
* src/autofit/afhints.c (af_print_idx): Add argument to pass the buffer |
| 5601 |
size. |
| 5602 |
(af_glyph_hints_dump_points, af_glyph_hints_dump_segments, |
| 5603 |
af_glyph_hints_dump_edges): Updated. |
| 5604 |
|
| 5605 |
* src/bdf/bdflib.c (BUFSIZE): New macro. |
| 5606 |
(bdf_parse_properties_, bdf_parse_start_): Use `ft_snprintf`. |
| 5607 |
|
| 5608 |
* src/tools/ftrandom/ftrandom.c (do_test): Use `snprintf`. |
| 5609 |
|
| 5610 |
2023-05-23 Werner Lemberg <[email protected]> |
| 5611 |
|
| 5612 |
docs/DEBUG: Formatting. |
| 5613 |
|
| 5614 |
2023-05-20 suzuki toshiya <[email protected]> |
| 5615 |
|
| 5616 |
[doc] Type1 GX (sfnt-wrapped Type1) is not supported. |
| 5617 |
|
| 5618 |
* docs/formats.txt: Clarify the reference of Type1 GX, |
| 5619 |
and state that this format is not supported. This |
| 5620 |
is because the content `TYP1' table is not exactly same |
| 5621 |
with the Type1 font format specification; no eexec |
| 5622 |
encryption is used. For detail and concrete examples, |
| 5623 |
see the analysis on: |
| 5624 |
|
| 5625 |
https://gitlab.freedesktop.org/freetype/freetype/-/issues/1231 |
| 5626 |
|
| 5627 |
2023-05-19 Craig White <[email protected]> |
| 5628 |
|
| 5629 |
Add missing end quote of a string in the example code of FT_Trace_Set_Level |
| 5630 |
|
| 5631 |
2023-05-19 Seigo Nonaka <[email protected]> |
| 5632 |
|
| 5633 |
[truetype] Reduce heap allocation of `deltaSet` variation data. |
| 5634 |
|
| 5635 |
`deltaSet` is an array of packed integers that can be 32 bits, 16 bits, or |
| 5636 |
8 bits. Before this change, these values were unpacked to 32-bit integers. |
| 5637 |
However, this can cause big heap allocations, e.g., around 500 KByte for |
| 5638 |
'NotoSansCJK'. To reduce this amount, store the packed integers and unpack |
| 5639 |
them just before passing to the calculation. At calculation time, due to |
| 5640 |
the variable length of region indices, temporary heap allocations are |
| 5641 |
necessary. This heap allocation is not negligible and visible in `ftbench` |
| 5642 |
results. So, use stack-allocated arrays for short array calculations. |
| 5643 |
|
| 5644 |
Fixes #1230. |
| 5645 |
|
| 5646 |
* include/freetype/internal/ftmmtypes.h (GX_ItemVarDataRec): New fields |
| 5647 |
`wordDeltaCount` and `longWords`. |
| 5648 |
|
| 5649 |
* src/truetype/ttgxvar.c (tt_var_load_item_variation_store): Load packed |
| 5650 |
data. |
| 5651 |
(tt_var_get_item_delta): Unpack data before applying. |
| 5652 |
|
| 5653 |
2023-05-17 Jouk Jansen <[email protected]> |
| 5654 |
|
| 5655 |
vms_make.com: Create shared executable for x86 version of OpenVMS. |
| 5656 |
|
| 5657 |
2023-05-15 Werner Lemberg <[email protected]> |
| 5658 |
|
| 5659 |
Add new load flag `FT_LOAD_NO_SVG`. |
| 5660 |
|
| 5661 |
Modern color fonts often contain both an 'SVG' and 'COLR' table. FreeType |
| 5662 |
always preferred 'SVG' over 'COLR' (this was a design decision), however, |
| 5663 |
this might not be the right choice for the user. The new flags makes |
| 5664 |
FreeType ignore the 'SVG' table while loading a glyph. |
| 5665 |
|
| 5666 |
Fixes #1229. |
| 5667 |
|
| 5668 |
* include/freetype/freetype.h (FT_LOAD_NO_SVG): New macro. |
| 5669 |
|
| 5670 |
* src/base/ftobjs.c (FT_Load_Glyph), src/cff/cffgload.c (cff_slot_load), |
| 5671 |
src/truetype/ttgload.c (TT_Load_Glyph): Use it. |
| 5672 |
|
| 5673 |
2023-05-13 Werner Lemberg <[email protected]> |
| 5674 |
|
| 5675 |
.mailmap: Updated. |
| 5676 |
|
| 5677 |
2023-05-13 Alexei Podtelezhnikov <[email protected]> |
| 5678 |
|
| 5679 |
[cache] Merge functions. |
| 5680 |
|
| 5681 |
* src/cache/ftccache.c (FTC_Cache_Init): Merge into... |
| 5682 |
(ftc_cache_done): ... this function, with unnecessary checks removed. |
| 5683 |
|
| 5684 |
2023-05-13 Alexei Podtelezhnikov <[email protected]> |
| 5685 |
|
| 5686 |
[cache] Minor casting and cosmetic updates. |
| 5687 |
|
| 5688 |
* src/cache/ftcglyph.c (ftc_gcache_{init,done}): Remove casting. |
| 5689 |
(FTC_GCache_Lookup): Cosmetic variable renaming. |
| 5690 |
* src/cache/ftcsbits.c (ftc_snode_compare): Formatting. |
| 5691 |
|
| 5692 |
2023-05-12 Werner Lemberg <[email protected]> |
| 5693 |
|
| 5694 |
* include/freetype/ftcache.h: Typo, punctuation. |
| 5695 |
|
| 5696 |
2023-05-12 Alexei Podtelezhnikov <[email protected]> |
| 5697 |
|
| 5698 |
* include/freetype/ftcache.h: Formatted and updated. |
| 5699 |
|
| 5700 |
2023-05-12 suzuki toshiya <[email protected]> |
| 5701 |
|
| 5702 |
* include/freetype/internal/t1types.h: Fix the indentation. |
| 5703 |
|
| 5704 |
2023-05-11 Alexei Podtelezhnikov <[email protected]> |
| 5705 |
|
| 5706 |
[cache] Revise the dynamic hash table accounting. |
| 5707 |
|
| 5708 |
Instead of counting entries relative to the middle of the hash table, |
| 5709 |
this switches to the absolute counter with the full index range mask. |
| 5710 |
As a result, some calculations become a bit simpler. The cache resizing |
| 5711 |
logic stays largely the same. |
| 5712 |
|
| 5713 |
* src/cache/ftccache.h (FTC_NODE_TOP_FOR_HASH): Revised with new counter. |
| 5714 |
* src/cache/ftccache.c (ftc_get_top_node_for_hash): Ditto. |
| 5715 |
(ftc_cache_resize): Simplify reallocations and stop their zeroing. |
| 5716 |
(ftc_cache_init): Stop over-allocating but keep zeroing initially. |
| 5717 |
(FTC_Cache_Clear, FTC_Cache_RemoveFaceID): Updated accordingly. |
| 5718 |
|
| 5719 |
2023-05-11 suzuki toshiya <[email protected]> |
| 5720 |
|
| 5721 |
[t1cid] Set FT_FACE_FLAG_CID_KEYED. |
| 5722 |
|
| 5723 |
* cidobjs.c (cid_face_init): Set FT_FACE_FLAG_CID_KEYED. |
| 5724 |
|
| 5725 |
* cidriver.c (cid_get_is_cid): Comment about the case that |
| 5726 |
is_cid cannot guarantee the glyph collection specification. |
| 5727 |
|
| 5728 |
2023-05-09 Jouk Jansen <[email protected]> |
| 5729 |
|
| 5730 |
* src/smooth/ftgrays.c (FT_SSE2): Don't define for VMS. |
| 5731 |
|
| 5732 |
2023-05-08 Werner Lemberg <[email protected]> |
| 5733 |
|
| 5734 |
* src/cff/cffdrivr.c (cff_glyph_load): Fix guard for `size`. |
| 5735 |
|
| 5736 |
This was forgotten to change in commit 2b54eba36b (in May 2004). |
| 5737 |
|
| 5738 |
Reported as |
| 5739 |
|
| 5740 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=58739 |
| 5741 |
|
| 5742 |
2023-05-08 Werner Lemberg <[email protected]> |
| 5743 |
|
| 5744 |
Minor compiler warning fixes. |
| 5745 |
|
| 5746 |
* src/autofit/afcjk.c (af_cjk_get_standard_widths), src/autofit/aflatin.c |
| 5747 |
(af_latin_get_standard_widths): Use `FT_CALLBACK_DEF`. |
| 5748 |
|
| 5749 |
* src/cff/cffparse.c (cff_parser_run): Initialize and fix allocation of `q`. |
| 5750 |
|
| 5751 |
2023-05-08 Werner Lemberg <[email protected]> |
| 5752 |
|
| 5753 |
* src/psaux/t1cmap.c: Signature fixes. |
| 5754 |
|
| 5755 |
2023-05-08 Werner Lemberg <[email protected]> |
| 5756 |
|
| 5757 |
* src/bzip2/ftbzip2.c: Signature fixes. |
| 5758 |
|
| 5759 |
2023-05-08 Werner Lemberg <[email protected]> |
| 5760 |
|
| 5761 |
[cache] Signature fixes. |
| 5762 |
|
| 5763 |
* src/cache/ftcglyph.c, src/cache/ftcglyph.h (FTC_GNode_Compare): Remove |
| 5764 |
redundant function. It is equivalent to `ftc_gnode_compare` and becomes |
| 5765 |
completely meaningless with fixed signatures. |
| 5766 |
Update all callers. |
| 5767 |
|
| 5768 |
* src/cache/ftcsbits.c, src/cache/ftcsbits.h (FTC_SNode_Compare): Remove |
| 5769 |
redundant function. It is equivalent to `ftc_snode_compare` and becomes |
| 5770 |
completely meaningless with fixed signatures. |
| 5771 |
Update all callers. |
| 5772 |
|
| 5773 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5774 |
|
| 5775 |
[sdf] Signature fixes. |
| 5776 |
|
| 5777 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5778 |
|
| 5779 |
* src/svg/ftsvg.c: Signature fixes. |
| 5780 |
|
| 5781 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5782 |
|
| 5783 |
[raster] Signature fixes. |
| 5784 |
|
| 5785 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5786 |
|
| 5787 |
[smooth] Signature fixes. |
| 5788 |
|
| 5789 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5790 |
|
| 5791 |
[pshinter] Signature fixes. |
| 5792 |
|
| 5793 |
* src/pshinter/pshrec.c (t1_hints_close, t1_hints_apply): New wrapper |
| 5794 |
functions. |
| 5795 |
(t1_hints_funcs_init): Use them. |
| 5796 |
(t2_hints_close, t2_hints_apply): New wrapper functions. |
| 5797 |
(t2_hints_funcs_init): Use them. |
| 5798 |
|
| 5799 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5800 |
|
| 5801 |
[autofit] Signature fixes. |
| 5802 |
|
| 5803 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5804 |
|
| 5805 |
* src/sfnt/ttcmap: Signature fixes. |
| 5806 |
|
| 5807 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5808 |
|
| 5809 |
* src/pcf/pcfdrivr.c: Signature fix. |
| 5810 |
|
| 5811 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5812 |
|
| 5813 |
* src/winfonts/winfnt.c: Signature fixes. |
| 5814 |
|
| 5815 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5816 |
|
| 5817 |
* src/type42/t42parse.c: Signature fixes. |
| 5818 |
|
| 5819 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5820 |
|
| 5821 |
[pfr] Signature fixes. |
| 5822 |
|
| 5823 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5824 |
|
| 5825 |
* src/cid/cidload.c: Signature fixes. |
| 5826 |
|
| 5827 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5828 |
|
| 5829 |
* src/cff/cffcmap.c: Signature fixes. |
| 5830 |
|
| 5831 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5832 |
|
| 5833 |
* src/type1/t1load.c: Signature fixes. |
| 5834 |
|
| 5835 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5836 |
|
| 5837 |
[truetype] Signature fixes. |
| 5838 |
|
| 5839 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5840 |
|
| 5841 |
[base] Signature fixes. |
| 5842 |
|
| 5843 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5844 |
|
| 5845 |
* src/type42/t42drivr.c: Clean up interface. |
| 5846 |
|
| 5847 |
Ensure that all driver functions use the signature of the service or driver. |
| 5848 |
This avoids pointer mismatches, which are technically undefined behaviour. |
| 5849 |
Recent compilers are more picky in catching them as part of Control Flow |
| 5850 |
Integrity tests. |
| 5851 |
|
| 5852 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5853 |
|
| 5854 |
* src/type1/*: Clean up interface. |
| 5855 |
|
| 5856 |
Ensure that all driver functions use the signature of the service or driver. |
| 5857 |
This avoids pointer mismatches, which are technically undefined behaviour. |
| 5858 |
Recent compilers are more picky in catching them as part of Control Flow |
| 5859 |
Integrity tests. |
| 5860 |
|
| 5861 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5862 |
|
| 5863 |
* src/truetype/*: Clean up interface. |
| 5864 |
|
| 5865 |
Ensure that all driver functions use the signature of the service or driver. |
| 5866 |
This avoids pointer mismatches, which are technically undefined behaviour. |
| 5867 |
Recent compilers are more picky in catching them as part of Control Flow |
| 5868 |
Integrity tests. |
| 5869 |
|
| 5870 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5871 |
|
| 5872 |
* src/sfnt/sfdriver.c, src/sfnt/ttbdf.c: Clean up interface. |
| 5873 |
|
| 5874 |
Ensure that all driver functions use the signature of the service or driver. |
| 5875 |
This avoids pointer mismatches, which are technically undefined behaviour. |
| 5876 |
Recent compilers are more picky in catching them as part of Control Flow |
| 5877 |
Integrity tests. |
| 5878 |
|
| 5879 |
* src/sfnt/sfdriver.c (sfnt_load_table): New wrapper function. |
| 5880 |
(sfnt_service_sfnt_table): Use it. |
| 5881 |
|
| 5882 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5883 |
|
| 5884 |
* src/psnames/psmodule.c: Use `FT_CALLBACK_DEF`. |
| 5885 |
|
| 5886 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5887 |
|
| 5888 |
* src/pfr/pfrdrivr.c: face -> pfrface, pfrface -> face. |
| 5889 |
|
| 5890 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5891 |
|
| 5892 |
* src/pcf/pcfdrivr.c: Clean up interface. |
| 5893 |
|
| 5894 |
Ensure that all driver functions use the signature of the service or driver. |
| 5895 |
This avoids pointer mismatches, which are technically undefined behaviour. |
| 5896 |
Recent compilers are more picky in catching them as part of Control Flow |
| 5897 |
Integrity tests. |
| 5898 |
|
| 5899 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5900 |
|
| 5901 |
* src/cid/cidriver.c: Clean up interface. |
| 5902 |
|
| 5903 |
Ensure that all driver functions use the signature of the service or driver. |
| 5904 |
This avoids pointer mismatches, which are technically undefined behaviour. |
| 5905 |
Recent compilers are more picky in catching them as part of Control Flow |
| 5906 |
Integrity tests. |
| 5907 |
|
| 5908 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5909 |
|
| 5910 |
* src/bdf/bdfdrivr.c: Clean up interface. |
| 5911 |
|
| 5912 |
Ensure that all driver functions use the signature of the service or driver. |
| 5913 |
This avoids pointer mismatches, which are technically undefined behaviour. |
| 5914 |
Recent compilers are more picky in catching them as part of Control Flow |
| 5915 |
Integrity tests. |
| 5916 |
|
| 5917 |
2023-05-07 Werner Lemberg <[email protected]> |
| 5918 |
|
| 5919 |
* src/cff/*: Clean up interface. |
| 5920 |
|
| 5921 |
Ensure that all driver functions use the signature of the service or driver. |
| 5922 |
This avoids pointer mismatches, which are technically undefined behaviour. |
| 5923 |
Recent compilers are more picky in catching them as part of Control Flow |
| 5924 |
Integrity tests. |
| 5925 |
|
| 5926 |
2023-05-06 Werner Lemberg <[email protected]> |
| 5927 |
|
| 5928 |
[truetype] Fix style name handling for variation fonts. |
| 5929 |
|
| 5930 |
* include/freetype/internal/tttypes.h (TT_FaceRec): New field |
| 5931 |
`non_var_style_name`. |
| 5932 |
|
| 5933 |
* src/sfnt/sfobjs.c (sfnt_load_face): Initialize `non_var_style_name`. |
| 5934 |
(sfnt_done_face): Free `non_var_style_name`. |
| 5935 |
|
| 5936 |
* src/truetype/ttgxvar.c (TT_Set_Named_Instance): Restore non-VF style name |
| 5937 |
if switching back to non-VF mode. |
| 5938 |
|
| 5939 |
2023-05-06 Werner Lemberg <[email protected]> |
| 5940 |
|
| 5941 |
[truetype] Fix PostScript name handling for variation fonts. |
| 5942 |
|
| 5943 |
A variation font's PostScript name of a named instance is usually different |
| 5944 |
from the PostScript name of an unnamed instance. However, if a change |
| 5945 |
between a named instance and an unnamed instance with exactly the same |
| 5946 |
design axis values happened, it was possible that the PostScript name wasn't |
| 5947 |
correctly updated. |
| 5948 |
|
| 5949 |
This commit reorganizes the code to handle this issue within the top-level |
| 5950 |
API functions, using a new service to trigger recomputation of the |
| 5951 |
PostScript name. |
| 5952 |
|
| 5953 |
* include/freetype/internal/services/svmm.h (FT_Construct_PS_Name_Func): New |
| 5954 |
typedef. |
| 5955 |
(FT_Service_MultiMasters): New field `construct_ps_name`. |
| 5956 |
(FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated. |
| 5957 |
|
| 5958 |
* src/base/ftmm.c (FT_Set_Var_Design_Coordinates, |
| 5959 |
FT_Set_MM_Blend_Coordinates, FT_Set_Var_Blend_Coordinates): Call |
| 5960 |
`mm->construct_ps_name` to handle `postscript_name`. |
| 5961 |
(FT_Set_Named_Instance): Call `mm->construct_ps_name` to handle |
| 5962 |
`postscript_name`. |
| 5963 |
Use shortcut. |
| 5964 |
* src/cff/cffdrivr.c (cff_construct_ps_name): New function. |
| 5965 |
(cff_service_multi_masters): Updated. |
| 5966 |
|
| 5967 |
* src/truetype/ttgxvar.c (tt_set_mm_blend): Don't handle `postscript_name`. |
| 5968 |
(TT_Set_MM_Blend): Simplify. |
| 5969 |
(TT_Set_Named_Instance): Return -1 if axis values haven't changed. |
| 5970 |
Don't set `face_index`. |
| 5971 |
(tt_construct_ps_name): New function. |
| 5972 |
|
| 5973 |
* src/truetype/ttgxvar.h: Updated. |
| 5974 |
|
| 5975 |
* src/truetype/ttdriver.c (tt_service_gx_multi_masters): Updated. |
| 5976 |
|
| 5977 |
* src/type1/t1driver.c (t1_service_multi_masters): Updated. |
| 5978 |
|
| 5979 |
* src/type1/t1load.c (T1_Set_MM_Blend): Simplify. |
| 5980 |
|
| 5981 |
2023-05-06 Werner Lemberg <[email protected]> |
| 5982 |
|
| 5983 |
* include/freetype/internal/services/svmm.h: Minor changes. |
| 5984 |
|
| 5985 |
2023-05-06 Werner Lemberg <[email protected]> |
| 5986 |
|
| 5987 |
[truetype] Fix deactivation of variation font handling. |
| 5988 |
|
| 5989 |
According to the documentation, the functions `FT_Set_Named_Instance`, |
| 5990 |
`FT_Set_MM_Design_Coordinates`, `FT_Set_Var_Design_Coordinates`, and |
| 5991 |
`FT_Set_Var_Blend_Coordinates` can unset the `FT_FACE_FLAG_VARIATION` flag. |
| 5992 |
(The same is true for `FT_Set_MM_WeightVector` but this information was |
| 5993 |
accidentally omitted from the documentation.) |
| 5994 |
|
| 5995 |
However, if a call of these functions didn't change the axis values this |
| 5996 |
could fail because internal shortcuts exited too early. |
| 5997 |
|
| 5998 |
This commit reorganizes the code to handle `FT_FACE_FLAG_VARIATION` in the |
| 5999 |
top-level API functions, also taking care of the issue at hand. |
| 6000 |
|
| 6001 |
* src/base/ftmm.c (FT_Set_MM_Design_Coordinates, FT_Set_MM_WeightVector, |
| 6002 |
FT_Set_Var_Design_Coordinates, FT_Set_MM_Blend_Coordinates, |
| 6003 |
FT_Set_Var_Blend_Coordinates): Handle `FT_FACE_FLAG_VARIATION`. |
| 6004 |
|
| 6005 |
* src/truetype/ttgxvar.c (TT_Set_MM_Blend, TT_Set_Var_Design, |
| 6006 |
TT_Set_Named_Instance) Don't handle `FT_FACE_FLAG_VARIATION`. |
| 6007 |
|
| 6008 |
* src/type1/t1load.c (T1_Set_MM_Blend, T1_Set_MM_WeightVector, |
| 6009 |
T1_Set_MM_Design): Ditto. |
| 6010 |
|
| 6011 |
* src/cff/cffobjs.c (cff_face_init): Use `FT_Set_Named_Instance` instead of |
| 6012 |
low-level functions. |
| 6013 |
|
| 6014 |
* src/truetype/ttobjs.c (tt_face_init): Ditto. |
| 6015 |
|
| 6016 |
2023-05-06 Werner Lemberg <[email protected]> |
| 6017 |
|
| 6018 |
s/set_instance/set_named_instance/ |
| 6019 |
|
| 6020 |
* include/freetype/internal/services/svmm.h (FT_Set_Instance_Func): Renamed |
| 6021 |
to... |
| 6022 |
(FT_Set_Named_Instance_Func): ...this. |
| 6023 |
(FT_Service_MultiMasters): Rename `set_instance` to `set_named_instance`. |
| 6024 |
(FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated. |
| 6025 |
|
| 6026 |
* src/base/ftmm.c (FT_Set_Named_Instance): Updated. |
| 6027 |
|
| 6028 |
* src/cff/cffdrivr.c (cff_set_instance): Renamed to... |
| 6029 |
(cff_set_named_instance): ...this. |
| 6030 |
(cff_service_multi_masters): Updated. |
| 6031 |
* src/cff/cffobjs.c (cff_face_init): Updated. |
| 6032 |
|
| 6033 |
* src/truetype/ttdriver.c (tt_service_gx_multi_masters): Updated. |
| 6034 |
|
| 6035 |
* src/type1/t1driver.c (t1_service_multi_masters): Updated. |
| 6036 |
|
| 6037 |
2023-05-06 Werner Lemberg <[email protected]> |
| 6038 |
|
| 6039 |
New Variation Font function `FT_Get_Default_Named_Instance`. |
| 6040 |
|
| 6041 |
* include/freetype/ftmm.h, src/base/ftmm.c (FT_Get_Default_Named_Instance): |
| 6042 |
New function. |
| 6043 |
|
| 6044 |
* include/freetype/internal/services/svmm.h |
| 6045 |
(FT_Get_Default_Named_Instance_Func): New typedef. |
| 6046 |
(FT_Service_MultiMasters): New field `get_default_named_instance`. |
| 6047 |
(FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated. |
| 6048 |
|
| 6049 |
* include/freetype/internal/tttypes.h (TT_Face): New field |
| 6050 |
`var_default_named_instance`. |
| 6051 |
|
| 6052 |
* src/sfnt/sfobjc.s (sfnt_init_face): Initialize |
| 6053 |
`var_default_named_instance`. |
| 6054 |
|
| 6055 |
* src/cff/cffdrivr.c (cff_get_default_named_instance): New function. |
| 6056 |
(cff_service_multi_masters): Updated. |
| 6057 |
|
| 6058 |
* src/truetype/ttgxvar.c (TT_Get_MM_Var): Initialize |
| 6059 |
`var_default_named_instance`. |
| 6060 |
(TT_Get_Default_Named_Instance): New function. |
| 6061 |
* src/truetype/ttgxvar.h: Updated. |
| 6062 |
* src/truetype/ttdriver.c (tt_service_gx_multi_masters): Updated. |
| 6063 |
|
| 6064 |
* src/type1/t1driver.c (t1_service_multi_masters): Updated. |
| 6065 |
|
| 6066 |
* docs/CHANGES: Updated. |
| 6067 |
|
| 6068 |
2023-05-06 Werner Lemberg <[email protected]> |
| 6069 |
|
| 6070 |
[cid] Improve tracing messages; formatting. |
| 6071 |
|
| 6072 |
2023-05-04 Alexei Podtelezhnikov <[email protected]> |
| 6073 |
|
| 6074 |
* src/cache/ftccache.c (ftc_node_hash_unlink): Minor. |
| 6075 |
|
| 6076 |
2023-05-04 Alexei Podtelezhnikov <[email protected]> |
| 6077 |
|
| 6078 |
* src/cache/ftcmru.c (FTC_MruList_RemoveSelection): Purge backwards. |
| 6079 |
|
| 6080 |
2023-05-04 Alexei Podtelezhnikov <[email protected]> |
| 6081 |
|
| 6082 |
[cache] Revise list cleansing. |
| 6083 |
|
| 6084 |
* src/cache/ftcmru.c (FTC_MruList_RemoveSelection): Use one loop to |
| 6085 |
do it. |
| 6086 |
* src/cache/ftcmanag.c (FTC_Manager_Compress, FTC_Manager_FlushN): |
| 6087 |
Streamline loops. |
| 6088 |
|
| 6089 |
2023-05-03 suzuki toshiya <[email protected]> |
| 6090 |
|
| 6091 |
[t1cid] Improve cid_get_cid_from_glyph_index(). |
| 6092 |
|
| 6093 |
Update cid_get_cid_from_glyph_index() to |
| 6094 |
return an error and CID=0 in the case that |
| 6095 |
the specified glyph index points to an invalid |
| 6096 |
entry. |
| 6097 |
|
| 6098 |
cidgload.h (cid_compute_fd_and_offsets): |
| 6099 |
Declare new helper function to set the |
| 6100 |
fd_select and 2 offsets to access the glyph |
| 6101 |
description data. |
| 6102 |
|
| 6103 |
cidgload.c (cid_compute_fd_and_offsets): |
| 6104 |
Move the part loading fd_select and 2 offsets |
| 6105 |
from cid_load_glyph() to here. If the loaded |
| 6106 |
parameters are broken, return the Invalid_Offset |
| 6107 |
error. This function does not load the glyph |
| 6108 |
data, only fills these parameters. |
| 6109 |
|
| 6110 |
(cid_load_glyph): Use new helper function in above. |
| 6111 |
|
| 6112 |
cidriver.c (cid_get_cid_from_glyph_index): |
| 6113 |
Check whether the requested glyph index points |
| 6114 |
to a valid entry, by calling cid_compute_fd_and_offsets(). |
| 6115 |
If it is valid, fill the cid by the glyph |
| 6116 |
index (=CID). If it is invalid, return an |
| 6117 |
error and fill the cid by 0. |
| 6118 |
|
| 6119 |
2023-04-30 Werner Lemberg <[email protected]> |
| 6120 |
|
| 6121 |
API documentation: Re-organize chapters and sections |
| 6122 |
|
| 6123 |
* Split the very long 'Base Interface' section into smaller sections. |
| 6124 |
* Split the 'Core API' chapter into two chapters. |
| 6125 |
* Remove single enumeration values from `@order` fields since they have no |
| 6126 |
effect. |
| 6127 |
|
| 6128 |
2023-04-29 Alexei Podtelezhnikov <[email protected]> |
| 6129 |
|
| 6130 |
* src/sfnt/pngshim.c (Load_SBit_Png): Remove FALL_THROUGH warning. |
| 6131 |
|
| 6132 |
2023-04-28 Werner Lemberg <[email protected]> |
| 6133 |
|
| 6134 |
* src/sfnt/ttload.c (tt_face_load_font_dir): Add another guard. |
| 6135 |
|
| 6136 |
Reject 'OTTO' fonts with no valid tables. |
| 6137 |
|
| 6138 |
2023-04-28 Werner Lemberg <[email protected]> |
| 6139 |
|
| 6140 |
* src/cff/cffdrivr/c (cff_get_ps_name): Avoid unnecessary crash. |
| 6141 |
|
| 6142 |
The situation can happen if `FT_New_Face` (or one of its siblings) is called |
| 6143 |
with a negative index to get the number of contained faces, followed |
| 6144 |
immediately by a call to `FT_Get_Postscript_Name`. While this is not a valid |
| 6145 |
use of the FreeType library there is no need for a crash. |
| 6146 |
|
| 6147 |
Fixes #1219. |
| 6148 |
|
| 6149 |
2023-04-28 Werner Lemberg <[email protected]> |
| 6150 |
|
| 6151 |
* src/cff/cffdrivr.c (cff_ps_get_font_info): Reject 'CFF2' format. |
| 6152 |
|
| 6153 |
2023-04-28 Werner Lemberg <[email protected]> |
| 6154 |
|
| 6155 |
* src/cid/cidgload.c (cid_load_glyph): Fix compiler warnings. |
| 6156 |
|
| 6157 |
2023-04-28 Werner Lemberg <[email protected]> |
| 6158 |
|
| 6159 |
Minor documentation updates. |
| 6160 |
|
| 6161 |
2023-04-27 Werner Lemberg <[email protected]> |
| 6162 |
|
| 6163 |
* src/ttgxvar.c: Minor changes. |
| 6164 |
|
| 6165 |
(TT_Get_MM_Var): Improve tracing messages. |
| 6166 |
(tt_set_mm_blend): Minor speed-up. |
| 6167 |
|
| 6168 |
2023-04-27 Werner Lemberg <[email protected]> |
| 6169 |
|
| 6170 |
s/this is,/that is,/ |
| 6171 |
|
| 6172 |
2023-04-27 Alexei Podtelezhnikov <[email protected]> |
| 6173 |
|
| 6174 |
[bdf] Clean up the atom property parsing. |
| 6175 |
|
| 6176 |
* src/bdflib.c (bdf_is_atom_): Refactor code with fewer checks. |
| 6177 |
(bdf_list_join_): Return NULL. |
| 6178 |
(bdf_add_comment_): Use const argument. |
| 6179 |
(bdf_get_property): Ditto, ditto, make the function static. |
| 6180 |
* src/bdf.h (bdf_get_property): Remove prototype. |
| 6181 |
|
| 6182 |
2023-04-25 Werner Lemberg <[email protected]> |
| 6183 |
|
| 6184 |
Improve/add source comments and documentation. |
| 6185 |
|
| 6186 |
2023-04-25 Werner Lemberg <[email protected]> |
| 6187 |
|
| 6188 |
[sfnt] Fix handling of PS names for Variation Fonts. |
| 6189 |
|
| 6190 |
* src/sfnt/sfdriver.c (get_win_string, get_apple_string): Continue |
| 6191 |
construction of string if an invalid character is encountered. |
| 6192 |
|
| 6193 |
Fixes #1218. |
| 6194 |
|
| 6195 |
2023-04-24 suzuki toshiya <[email protected]> |
| 6196 |
|
| 6197 |
[t1cid] Change the trace messages of the charstrings retrieval errors. |
| 6198 |
|
| 6199 |
The t1cid driver catches 3 types of errors in |
| 6200 |
the charstrings retrieval; |
| 6201 |
A) The invalid FD number, there are 2 subtypes; |
| 6202 |
A-1) FD number is the maximum number fitting to FDBytes. |
| 6203 |
A-2) FD number is greater than num_dicts. |
| 6204 |
B) Declared length is overrunning. |
| 6205 |
C) Declared length is invalid (its end is before its head). |
| 6206 |
|
| 6207 |
Considering that some widely distributed fonts |
| 6208 |
(e.g., "CJKV" book by O'Reilly) have A-1 errors |
| 6209 |
in the unimplemented glyphs, the trace level for |
| 6210 |
A-1 is calmed to level 1. |
| 6211 |
|
| 6212 |
The errors A-2, B, and C would be irregular; |
| 6213 |
their trace levels are kept at level 0, but |
| 6214 |
the updated trace messages include the CID number. |
| 6215 |
|
| 6216 |
2023-04-24 suzuki toshiya <[email protected]> |
| 6217 |
|
| 6218 |
[truetype] Fix `make multi'. |
| 6219 |
|
| 6220 |
* src/truetype/ttgxvar.c: Include freetype/internal/services/svmetric.h |
| 6221 |
for the FT_Service_MetricsVariations type definition. |
| 6222 |
|
| 6223 |
2023-04-19 Ben Wagner <[email protected]> |
| 6224 |
|
| 6225 |
[services] FT_Size_Reset_Func to return FT_Error |
| 6226 |
|
| 6227 |
The `MetricsVariations` `FT_Size_Reset_Func` is currently defined to |
| 6228 |
return `void`, but the implementations return `FT_Error`. Even though |
| 6229 |
the pointers passed will be the same at runtime, calling a function |
| 6230 |
through a pointer of a different type from the original function pointer |
| 6231 |
type is undefined behavior. This may be caught at runtime by Control |
| 6232 |
Flow Integrity with something like clang's `cfi-icall`. |
| 6233 |
|
| 6234 |
Issue: https://crbug.com/1433651 |
| 6235 |
|
| 6236 |
* include/freetype/internal/services/svmetric.h (FT_Size_Reset_Func): |
| 6237 |
return `FT_Error` instead of `void`. |
| 6238 |
|
| 6239 |
2023-04-17 Ben Wagner <[email protected]> |
| 6240 |
|
| 6241 |
[truetype] tt_size_reset_height to take FT_Size |
| 6242 |
|
| 6243 |
The `MetricsVariations` `FT_Size_Reset_Func` is defined to take an |
| 6244 |
`FT_Size`. Because `tt_size_reset_height` is to be used as such a |
| 6245 |
function, it must also take an `FT_Size` instead of a `TT_Size`. Even |
| 6246 |
though the pointers passed will be the same at runtime, calling a |
| 6247 |
function through a pointer of a different type from the original |
| 6248 |
function pointer type is undefined behavior. This may be caught at |
| 6249 |
runtime by Control Flow Integrity with something like clang's |
| 6250 |
`cfi-icall`. |
| 6251 |
|
| 6252 |
Issue: https://crbug.com/1433651 |
| 6253 |
|
| 6254 |
* src/truetype/ttobjs.h (tt_size_reset_height): take `FT_Size` |
| 6255 |
|
| 6256 |
* src/truetype/ttobjs.c (tt_size_reset_height): take `FT_Size` and |
| 6257 |
update documentation |
| 6258 |
|
| 6259 |
2023-04-13 Werner Lemberg <[email protected]> |
| 6260 |
|
| 6261 |
* src/truetype/ttinterp.c: Remove outdated comments. |
| 6262 |
|
| 6263 |
2023-04-11 Ben Wagner <[email protected]> |
| 6264 |
|
| 6265 |
[sfnt, truetype] Add `size_reset` to `MetricsVariations`. |
| 6266 |
|
| 6267 |
This is a generalization of commit |
| 6268 |
|
| 6269 |
``` |
| 6270 |
commit e6699596af5c5d6f0ae0ea06e19df87dce088df8 |
| 6271 |
Author: Werner Lemberg <[email protected]> |
| 6272 |
Date: Thu Feb 2 11:38:04 2017 +0100 |
| 6273 |
|
| 6274 |
[truetype] Fix MVAR post-action handling. |
| 6275 |
``` |
| 6276 |
|
| 6277 |
It is also possible for plain `CFF ` style fonts to contain an `fvar` and |
| 6278 |
`MVAR` table and use `cff_metrics_adjust`. `tt_size_reset` should only be |
| 6279 |
called with `TT_Size` and never with `CFF_Size`. |
| 6280 |
|
| 6281 |
Allow the "metrics-variations" service to specify the correct function (if |
| 6282 |
any) to reset `FT_Size`s after adjusting metrics. |
| 6283 |
|
| 6284 |
* src/truetype/ttobjs.c (tt_size_reset): Split off some functionality |
| 6285 |
into... |
| 6286 |
(tt_size_reset_height): ... this new function. |
| 6287 |
|
| 6288 |
* src/truetype/ttdriver.c (tt_service_metrics_variations): Add |
| 6289 |
`size_reset`. |
| 6290 |
(tt_size_select, tt_size_request): Updated. |
| 6291 |
|
| 6292 |
* src/truetype/ttobjs.h: Updated. |
| 6293 |
|
| 6294 |
* include/freetype/internal/services/svmetric.h (MetricsVariations): Add |
| 6295 |
`size_reset`. |
| 6296 |
(FT_DEFINE_SERVICE_METRICSVARIATIONSREC): Updated. |
| 6297 |
|
| 6298 |
* include/freetype/internal/tttypes.h (TT_FaceRec_): Rename `var` to |
| 6299 |
`tt_var` and add `face_var`. |
| 6300 |
|
| 6301 |
* src/cff/cffdrivr.c (cff_service_metrics_variations): Add `size_reset`. |
| 6302 |
(cff_hadvance_adjust, cff_metrics_adjust): Updated. |
| 6303 |
|
| 6304 |
* src/cff/cffobjs.c (cff_face_init): Use `face_var`. |
| 6305 |
|
| 6306 |
* src/sfnt/sfobjs.c (sfnt_init_face): Initialize `face_var`. |
| 6307 |
|
| 6308 |
* src/sfnt/ttmtx.c (tt_face_get_metrics): Use `tt_var`. |
| 6309 |
|
| 6310 |
* src/truetype/ttgxvar.c (tt_size_reset_iterator): Renamed to... |
| 6311 |
(ft_size_reset_iterator): ... this new function. |
| 6312 |
Call `size_reset`. |
| 6313 |
(tt_apply_mvar): Pass `size_reset` to `ft_size_reset_iterator`. |
| 6314 |
|
| 6315 |
Fixes #1211 |
| 6316 |
|
| 6317 |
2023-04-10 Alexei Podtelezhnikov <[email protected]> |
| 6318 |
|
| 6319 |
* src/cff/cffcmap.c (cff_cmap_encoding_char_next): Abbreviate. |
| 6320 |
|
| 6321 |
2023-04-10 Alexei Podtelezhnikov <[email protected]> |
| 6322 |
|
| 6323 |
Align `char_next` return types. |
| 6324 |
|
| 6325 |
This is mostly cosmetic because FT_UInt and FT_UInt32 are likely identical. |
| 6326 |
|
| 6327 |
* src/sfnt/ttcmap.c, src/cff/cffcmap.c, src/psaux/t1cmap.c, |
| 6328 |
src/psnames/psmodule.c, include/freetype/internal/service/svpcsmap.h, |
| 6329 |
src/pfr/pfrcmap.c, src/winfonts/winfnt.c (*_char_next): return FT_UInt. |
| 6330 |
|
| 6331 |
2023-04-09 Alexei Podtelezhnikov <[email protected]> |
| 6332 |
|
| 6333 |
[sfnt] Clean up CMAP{4,12,13} handling. |
| 6334 |
|
| 6335 |
This moves the charcode overflow checks upstream and turns some |
| 6336 |
while-loops into the do-while ones to avoid the uninitialized warnings. |
| 6337 |
This should slightly reduce the number of checks and jumps. |
| 6338 |
|
| 6339 |
* src/sfnt/ttcmap.c (tt_cmap{4,12,13}_next, |
| 6340 |
tt_cmap{4.12.13}_char_map_linear): Remove the charcode overflow check. |
| 6341 |
(tt_cmap{4,12,13}_char_map_binary): Ditto and use do-while. |
| 6342 |
(tt_cmap{12,13}_char_next): Add the overflow check. |
| 6343 |
|
| 6344 |
2023-04-03 Alexei Podtelezhnikov <[email protected]> |
| 6345 |
|
| 6346 |
* src/sfnt/ttpost.c (load_format_25): Do not abort frame reading. |
| 6347 |
|
| 6348 |
2023-04-03 Alexei Podtelezhnikov <[email protected]> |
| 6349 |
|
| 6350 |
* src/sfnt/ttpost.c (load_format_*): Streamline frame reading. |
| 6351 |
|
| 6352 |
2023-04-02 Alexei Podtelezhnikov <[email protected]> |
| 6353 |
|
| 6354 |
* src/sfnt/ttpost.c: Formatting and comments. |
| 6355 |
|
| 6356 |
2023-04-02 Alexei Podtelezhnikov <[email protected]> |
| 6357 |
|
| 6358 |
[sfnt] Consolidate POST version 2.0 and 2.5 (pt 2). |
| 6359 |
|
| 6360 |
* src/sfnt/ttpost.c (load_format_20, load_format_25): Update arguments |
| 6361 |
and move shared calls and checks upstream to... |
| 6362 |
(load_post_names): ... this function. |
| 6363 |
(tt_face_free_ps_names, tt_face_get_ps_name): Updated. |
| 6364 |
|
| 6365 |
2023-04-02 Alexei Podtelezhnikov <[email protected]> |
| 6366 |
|
| 6367 |
[sfnt] Consolidate POST version 2.0 and 2.5 (pt 1). |
| 6368 |
|
| 6369 |
The deprecated POST version 2.5 can be handled using the data |
| 6370 |
structures of version 2.0. The goal is to reduce the footprint. |
| 6371 |
|
| 6372 |
* include/freetype/internal/tttypes.h (TT_Post_Names): Absorb and... |
| 6373 |
(TT_Post_20, TT_Post_25): ... remove these structures. |
| 6374 |
src/sfnt/ttpost.c (load_post_names, tt_face_get_ps_name, |
| 6375 |
tt_face_free_ps_names, load_format_20): Updated accordingly. |
| 6376 |
(load_format_25): ditto and convert offsets to glyph indices. |
| 6377 |
|
| 6378 |
2023-04-01 Alexei Podtelezhnikov <[email protected]> |
| 6379 |
|
| 6380 |
[sfnt] Miscellaneous POST clean-ups. |
| 6381 |
|
| 6382 |
* src/sfnt/ttpost.c (load_format_20): Decrease casts. |
| 6383 |
(load_format_25): Check the table length and impose a theoretical |
| 6384 |
glyph number limit usable with 8-bit offset. Decrease casts. |
| 6385 |
(load_post_names): Pass the mapping data length without 2 bytes. |
| 6386 |
|
| 6387 |
2023-03-30 Alexei Podtelezhnikov <[email protected]> |
| 6388 |
|
| 6389 |
* src/sfnt/ttpost.c (load_format_20): Simplify comutations. |
| 6390 |
|
| 6391 |
2023-03-29 Alexei Podtelezhnikov <[email protected]> |
| 6392 |
|
| 6393 |
[sfnt] Streamline POST format 2.0 handing (cont'd). |
| 6394 |
|
| 6395 |
* src/sfnt/ttpost.c (load_format_20): Co-allocate the string data and |
| 6396 |
their pointers, which makes it easier to handle and free them. |
| 6397 |
(tt_face_free_ps_names): Updated. |
| 6398 |
* include/freetype/internal/tttypes.h (TT_Post_20): Update type. |
| 6399 |
|
| 6400 |
2023-03-20 Alexei Podtelezhnikov <[email protected]> |
| 6401 |
|
| 6402 |
[cff] Simplify `t2_strings` management in the old engine. |
| 6403 |
|
| 6404 |
* src/cff/cffparse.c (cff_parser_run): Allocate the charstring buffers |
| 6405 |
and the list nodes together so that they can be freed at once. |
| 6406 |
(finalize_t2_strings): Removed as no longer needed. |
| 6407 |
(cff_parser_done): Updated. |
| 6408 |
|
| 6409 |
2023-03-19 Alexei Podtelezhnikov <[email protected]> |
| 6410 |
|
| 6411 |
[cff] Rework the stream limit checks. |
| 6412 |
|
| 6413 |
The old stream limit checks, before 6986ddac1ece, were good but |
| 6414 |
pointless for the crafted t2_strings. Checking limits there is |
| 6415 |
not necessary as they are created to hold all data. By using two |
| 6416 |
conditions, we can detect the actual crossing of the stream boundary |
| 6417 |
as appropriate for the stream pointer only. The t2_strings parsing |
| 6418 |
will not be triggering these checks. |
| 6419 |
|
| 6420 |
* src/cff/cffparse.c (cff_parser_within_limits): Removed. |
| 6421 |
(cff_parse_real, cff_parse_integer): Redesign the stream limit check. |
| 6422 |
(cff_parse_num, do fixed, cff_parse_fixed_dynamic): Update callers. |
| 6423 |
|
| 6424 |
2023-03-18 Alexei Podtelezhnikov <[email protected]> |
| 6425 |
|
| 6426 |
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Use for-loop. |
| 6427 |
|
| 6428 |
Even though we never call `TT_Load_Simple_Glyph` with zero contours, |
| 6429 |
out of abundance of precaution, let's handle this case properly. |
| 6430 |
|
| 6431 |
2023-03-18 Alexei Podtelezhnikov <[email protected]> |
| 6432 |
|
| 6433 |
[truetype] Clean up zeroing and local variables. |
| 6434 |
|
| 6435 |
* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Avoid zeroing. |
| 6436 |
(load_truetype_glyph): Avoid zeroing and clean local variables. |
| 6437 |
|
| 6438 |
2023-03-16 Werner Lemberg <[email protected]> |
| 6439 |
|
| 6440 |
* include/freetype/ftsystem.h (FT_Stream_IoFunc): Improve documentation. |
| 6441 |
|
| 6442 |
Fixes #1208. |
| 6443 |
|
| 6444 |
2023-03-16 Alexei Podtelezhnikov <[email protected]> |
| 6445 |
|
| 6446 |
* src/base/ftsynth.c (FT_GlyphSlot_AdjustWeight): New API. |
| 6447 |
|
| 6448 |
2023-03-16 Alexei Podtelezhnikov <[email protected]> |
| 6449 |
|
| 6450 |
[truetype] Clean up glyph loading. |
| 6451 |
|
| 6452 |
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Clean space checking. |
| 6453 |
(TT_Hint_Glyph): Don't copy the outline structure. |
| 6454 |
(TT_Process_Simple_Glyph): Cosmetic update. |
| 6455 |
|
| 6456 |
2023-03-15 Alexei Podtelezhnikov <[email protected]> |
| 6457 |
|
| 6458 |
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Clean up. |
| 6459 |
|
| 6460 |
2023-03-13 Werner Lemberg <[email protected]> |
| 6461 |
|
| 6462 |
builds/vms/apinames_vms.bash: Fix `unzip` artifact |
| 6463 |
|
| 6464 |
The problem occured when unpacking a zip file created on OpenVMS on Linux. |
| 6465 |
While OpenVMS knows many different file formats, Unix only knows stream-LF |
| 6466 |
and binary. In principle `zip` on Linux should have translated the file to |
| 6467 |
stream-LF but failed to do so. That caused the file to incorrectly contain |
| 6468 |
only one line with control-characters. |
| 6469 |
|
| 6470 |
2023-03-11 Alexei Podtelezhnikov <[email protected]> |
| 6471 |
|
| 6472 |
[truetype] Fix recent fallout in memory management. |
| 6473 |
|
| 6474 |
* src/truetype/ttgload.c (TT_Process_Composite_Glyph, |
| 6475 |
TT_Load_Simple_Glyph): Clean up old instructions regardless of |
| 6476 |
new ones, postpone setting `control_len` and `control_data` until... |
| 6477 |
(TT_Load_Glyph): ... the exit from this function. |
| 6478 |
|
| 6479 |
2023-03-10 Jouk Jansen <[email protected]> |
| 6480 |
|
| 6481 |
Update VMS installation support. |
| 6482 |
|
| 6483 |
2023-03-10 Alexei Podtelezhnikov <[email protected]> |
| 6484 |
|
| 6485 |
* src/truetype/ttgload.c (TT_Hint_Glyph): Mostly cosmetic update. |
| 6486 |
|
| 6487 |
The number of instructions is now taken from the executed context. |
| 6488 |
Technically, this means that `control_len` and `control_data` |
| 6489 |
values are no longer _used_ internally but only expose them. |
| 6490 |
|
| 6491 |
2023-03-08 Werner Lemberg <[email protected]> |
| 6492 |
|
| 6493 |
apinames.c: Add comment. |
| 6494 |
|
| 6495 |
2023-03-07 Werner Lemberg <[email protected]> |
| 6496 |
|
| 6497 |
[gzip] File `infback.c` is not needed. |
| 6498 |
|
| 6499 |
* src/gzip/infback.c: Remove. |
| 6500 |
* src/gzip/rules.mk (GZIP_DRV_SRCS): Updated. |
| 6501 |
|
| 6502 |
2023-03-07 Werner Lemberg <[email protected]> |
| 6503 |
|
| 6504 |
[apinames] Fix VMS handling of overly long function names. |
| 6505 |
|
| 6506 |
Based on ideas from Jouk Jansen <[email protected]>. |
| 6507 |
|
| 6508 |
* src/tools/vms_shorten_symbol.c: New file, taken from |
| 6509 |
|
| 6510 |
https://sourceforge.net/p/vms-ports/vmsshortsym/ci/default/tree/vms_shorten_symbol.c |
| 6511 |
|
| 6512 |
with some minor edits to allow compilation with C++ and being included in |
| 6513 |
another source code file. |
| 6514 |
|
| 6515 |
* src/tools/apinames.c: Include `vms_shorten_symbol.c`. |
| 6516 |
(PROGRAM_VERSION): Set to '0.5'. |
| 6517 |
(names_dump) [OUTPUT_VMS_OPT]: Call `vms_shorten_symbol` to get unique function |
| 6518 |
identifiers not longer than 31 characters. |
| 6519 |
|
| 6520 |
2023-03-07 Werner Lemberg <[email protected]> |
| 6521 |
|
| 6522 |
* src/tools/apinames.c (panic): Accept variable number of arguments. |
| 6523 |
|
| 6524 |
2023-03-07 Alexei Podtelezhnikov <[email protected]> |
| 6525 |
|
| 6526 |
* src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix leak too. |
| 6527 |
|
| 6528 |
2023-03-07 Alexei Podtelezhnikov <[email protected]> |
| 6529 |
|
| 6530 |
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Triage memory leak. |
| 6531 |
|
| 6532 |
This leak has been introduced in the previous commit and immediately |
| 6533 |
detected: |
| 6534 |
https://chromium-review.googlesource.com/c/chromium/src/+/4313202 |
| 6535 |
|
| 6536 |
2023-03-06 Alexei Podtelezhnikov <[email protected]> |
| 6537 |
|
| 6538 |
[truetype] Simplify memory management. |
| 6539 |
|
| 6540 |
Instead of using `Update_Max`, switch to regular FreeType memory |
| 6541 |
allocation macros, stop pre-allocating the glyph instruction arrays. |
| 6542 |
|
| 6543 |
* src/truetype/ttgload.c (TT_Load_Simple_Glyph, |
| 6544 |
TT_Process_Composite_Glyph): Switch to regular memory allocation. |
| 6545 |
* src/truetype/ttinterp.c (Update_Max): Removed. |
| 6546 |
(TT_Load_Context): Reallocate stack and free old instructions. |
| 6547 |
(Modify_CVT_Check, Ins_WS): Switch to regular memory allocation. |
| 6548 |
* src/truetype/ttinterp.h (Update_Max): Removed. |
| 6549 |
|
| 6550 |
2023-03-06 David PROVENT <[email protected]> |
| 6551 |
|
| 6552 |
Added information about the zlib version update in the changelog |
| 6553 |
|
| 6554 |
2023-03-06 Alexei Podtelezhnikov <[email protected]> |
| 6555 |
|
| 6556 |
Fix a couple of MSVC warnings. |
| 6557 |
|
| 6558 |
* src/base/ftcalc.c (FT_MulAddFix): Add cast. |
| 6559 |
* src/sfnt/ttcolr.c (tt_face_get_colorline_stops, read_paint): Ditto. |
| 6560 |
|
| 6561 |
2023-03-05 Alexei Podtelezhnikov <[email protected]> |
| 6562 |
|
| 6563 |
* builds/windows/vc2010/freetype.vcxproj: Suppress C4267 on _WIN64. |
| 6564 |
|
| 6565 |
This usually comes from `strlen` returning 64-bit `size_t`, which |
| 6566 |
we often assign to 32-bit `FT_ULong` on Windows-64 (LLP64). |
| 6567 |
|
| 6568 |
2023-03-05 Alexei Podtelezhnikov <[email protected]> |
| 6569 |
|
| 6570 |
* src/cff/cffparse.c (cff_parser_run): Thinko. |
| 6571 |
|
| 6572 |
2023-03-05 Alexei Podtelezhnikov <[email protected]> |
| 6573 |
|
| 6574 |
[cff] Clean up CharString number encoding. |
| 6575 |
|
| 6576 |
* src/cff/cffparser.c (cff_parser_run): Work with signed numbers. |
| 6577 |
|
| 6578 |
2023-03-05 Alexei Podtelezhnikov <[email protected]> |
| 6579 |
|
| 6580 |
* src/cff/cffparse.c (cff_parser_run): Fix variable type. |
| 6581 |
|
| 6582 |
2023-03-04 Alexei Podtelezhnikov <[email protected]> |
| 6583 |
|
| 6584 |
[cff] Clean up memory management in the old engine. |
| 6585 |
|
| 6586 |
* src/cff/cffparse.c (finalize_t2_strings): Fix NULL-dereferencing |
| 6587 |
in the out-of-memory situation, use `FT_FREE`. |
| 6588 |
(cff_parser_run): Use FreeType memory allocation macros and avoid |
| 6589 |
uninitialized pointers. |
| 6590 |
|
| 6591 |
2023-03-04 Alexei Podtelezhnikov <[email protected]> |
| 6592 |
|
| 6593 |
* src/cff/cffobjs.c (cff_size_init): Synonymous change. |
| 6594 |
|
| 6595 |
2023-03-04 Alexei Podtelezhnikov <[email protected]> |
| 6596 |
|
| 6597 |
* src/sfnt/sfobjs.c (sfnt_load_face): Shorten de-referencing. |
| 6598 |
|
| 6599 |
2023-03-04 Alexei Podtelezhnikov <[email protected]> |
| 6600 |
|
| 6601 |
[pfr] Shorten de-referencing. |
| 6602 |
|
| 6603 |
* src/pfr/pfrobjs.c (pfr_face_done, pfr_face_init): Use closer `memory`. |
| 6604 |
* src/pfr/pfrgload.c (pfr_glyph_load_compound): Remove `loader`. |
| 6605 |
|
| 6606 |
2023-03-03 Alexei Podtelezhnikov <[email protected]> |
| 6607 |
|
| 6608 |
* src/cff/cffobjs.c (cff_size_get_globals_funcs): Shorten de-referencing. |
| 6609 |
|
| 6610 |
2023-03-03 Alexei Podtelezhnikov <[email protected]> |
| 6611 |
|
| 6612 |
[cff,cid,type1] Shorten de-referencing. |
| 6613 |
|
| 6614 |
* src/cff/cffobjs.c (cff_clot_init): Use immediate library reference. |
| 6615 |
* src/cid/cidobjs.c (cid_slot_init): Ditto. |
| 6616 |
* src/type1/t1objs.c (T1_GlyphSlot_Init): Ditto. |
| 6617 |
|
| 6618 |
2023-03-02 Alexei Podtelezhnikov <[email protected]> |
| 6619 |
|
| 6620 |
* configure: Use `sed` instead of `grep`. |
| 6621 |
|
| 6622 |
This is more portable and consistent with `autogen.sh`. |
| 6623 |
|
| 6624 |
2023-03-02 Ben Wagner <[email protected]> |
| 6625 |
|
| 6626 |
Avoid strtol on non-null-terminated data. |
| 6627 |
|
| 6628 |
Technically, `strtol` can only be used with C strings terminated with |
| 6629 |
`\0`. CID data is not generally null-terminated and often does not |
| 6630 |
contain a `\0` if it is hex-encoded. AddressSanitizer with `ASAN_OPTIONS` |
| 6631 |
containing `strict_string_checks=1` verifies this by using an adversarial |
| 6632 |
`strtol` that always reads to the terminating `\0`. |
| 6633 |
|
| 6634 |
To avoid undefined behavior from `strtol` in `cid_parser_new`, use the |
| 6635 |
parser to parse the tokens instead of attempting to parse them ad-hoc. |
| 6636 |
This will internally use `PS_Conv_Strtol` to parse the integer, which |
| 6637 |
respects the parser's limits and directly implements the PostScript |
| 6638 |
parsing rules for integers. |
| 6639 |
|
| 6640 |
* src/cid/cidparse.c (cid_parser_new): Use the parser to parse the |
| 6641 |
tokens. |
| 6642 |
|
| 6643 |
Fixes: https://bugs.chromium.org/p/chromium/issues/detail?id=1420329 |
| 6644 |
|
| 6645 |
2023-03-02 Alexei Podtelezhnikov <[email protected]> |
| 6646 |
|
| 6647 |
* src/cff/cffload.c (cff_subfont_load): Synonymous update. |
| 6648 |
|
| 6649 |
2023-03-01 ubawurinna <[email protected]> |
| 6650 |
|
| 6651 |
* src/gzip/README.freetype: Update version. |
| 6652 |
|
| 6653 |
2023-03-01 ubawurinna <[email protected]> |
| 6654 |
|
| 6655 |
[gzip] Fix static linking. |
| 6656 |
|
| 6657 |
Without this patch, static linking with MS Visual Studio causes linking |
| 6658 |
errors. |
| 6659 |
|
| 6660 |
* src/gzip/ftgzip.c: Set `ZEXPORT` to nothing and `ZEXTERN` to static for |
| 6661 |
all compilers. |
| 6662 |
|
| 6663 |
2023-03-01 Werner Lemberg <[email protected]> |
| 6664 |
|
| 6665 |
* include/freetype/internal/compiler-macros.h (FALL_THROUGH): Update. |
| 6666 |
|
| 6667 |
This follows |
| 6668 |
|
| 6669 |
https://lists.gnu.org/archive/html/bug-gnulib/2023-02/msg00200.html |
| 6670 |
|
| 6671 |
2023-02-28 Alexei Podtelezhnikov <[email protected]> |
| 6672 |
|
| 6673 |
[truetype] Treat 38 as 40 without Infinality. |
| 6674 |
|
| 6675 |
* include/freetype/ftdriver.h (TT_INTERPRETER_VERSION_38): Reinstate. |
| 6676 |
* src/truetype/ttdriver.c (tt_property_set): Fallback from 38 to 40. |
| 6677 |
|
| 6678 |
2023-02-26 Werner Lemberg <[email protected]> |
| 6679 |
|
| 6680 |
* include/freetype/internal/compiler-macros.h (FALL_THROUGH): Update. |
| 6681 |
|
| 6682 |
This follows |
| 6683 |
|
| 6684 |
https://lists.gnu.org/archive/html/bug-gnulib/2023-02/msg00159.html |
| 6685 |
|
| 6686 |
2023-02-26 Werner Lemberg <[email protected]> |
| 6687 |
|
| 6688 |
* src/*: Replace leading underscores with trailing ones in dummy variables. |
| 6689 |
|
| 6690 |
This is to avoid clang warnings. |
| 6691 |
|
| 6692 |
2023-02-26 Karl Berry <[email protected]> |
| 6693 |
|
| 6694 |
* configure: Don't hardcode `grep -E`. |
| 6695 |
|
| 6696 |
TeXLive still supports Solaris 5.10, where the system's `grep` doesn't |
| 6697 |
accept the `-E` option. We thus introduce an `EGREP` variable that is set |
| 6698 |
to either `grep -E` or `-egrep`. |
| 6699 |
|
| 6700 |
2023-02-26 Alexei Podtelezhnikov <[email protected]> |
| 6701 |
|
| 6702 |
* src/cff/cffload.c (cff_encoding_load): Optimize array zeroing. |
| 6703 |
|
| 6704 |
This is unnecessary for predefined standard and expert encodings. |
| 6705 |
Even for custom encodings the arrays might be already zeroed when |
| 6706 |
CFF_FontRec is created but we keep it just in case. |
| 6707 |
|
| 6708 |
2023-02-25 Alexei Podtelezhnikov <[email protected]> |
| 6709 |
|
| 6710 |
* src/type1/t1load.c (T1_Get_MM_Var): Optimize array zeroing. |
| 6711 |
|
| 6712 |
2023-02-25 Tamir Duberstein <[email protected]> |
| 6713 |
|
| 6714 |
* src/base/ftsystem.c (ft_ansi_stream_io): Avoid undefined behaviour. |
| 6715 |
Also short-circuit on `offset` to avoid checking `count` a second time when |
| 6716 |
`ft_ansi_stream_io` is used for reading. |
| 6717 |
|
| 6718 |
Per ISO/IEC 9899: |
| 6719 |
|
| 6720 |
If an argument to a function has an invalid value (such as a value outside |
| 6721 |
the domain of the function, or a pointer outside the address space of the |
| 6722 |
program, or a null pointer, or apointer to non-modifiable storage when the |
| 6723 |
corresponding parameter is not const-qualified) or a type (after |
| 6724 |
promotion) not expected by a function with variable number of arguments, |
| 6725 |
the behavior is undefined. If a function argument is described as being |
| 6726 |
an array, the pointer actually passed to the function shall have a value |
| 6727 |
such that all address computations and accesses to objects (that would be |
| 6728 |
valid if the pointer did point to the first element of such an array) are |
| 6729 |
in fact valid. |
| 6730 |
|
| 6731 |
Per IEEE Std 1003.1: |
| 6732 |
|
| 6733 |
size_t fread(void *restrict ptr, size_t size, size_t nitems, |
| 6734 |
FILE *restrict stream); |
| 6735 |
|
| 6736 |
The `fread` function shall read into the array pointed to by `ptr` up to |
| 6737 |
`nitems` elements whose size is specified by `size` in bytes, from the |
| 6738 |
stream pointed to by `stream`. |
| 6739 |
|
| 6740 |
Since the first argument to `fread` is described as being an array, its |
| 6741 |
behavior is undefined when that argument is a null pointer. |
| 6742 |
|
| 6743 |
Per the documentation on `ft_ansi_stream_io`: |
| 6744 |
|
| 6745 |
If `count' is zero (this is, the function is used for seeking), a non-zero |
| 6746 |
return value indicates an error. |
| 6747 |
|
| 6748 |
Thus the intent is clear, and the call to `fread` can be skipped, avoiding |
| 6749 |
undefined behaviour. |
| 6750 |
|
| 6751 |
2023-02-21 Alexei Podtelezhnikov <[email protected]> |
| 6752 |
|
| 6753 |
[raster] Clean up contour indexing. |
| 6754 |
|
| 6755 |
* src/raster/ftraster.c (Decompose_Curve, Convert_Glyph): Use consistent |
| 6756 |
index types (Int) and compact iterations. |
| 6757 |
|
| 6758 |
2023-02-21 Alexei Podtelezhnikov <[email protected]> |
| 6759 |
|
| 6760 |
[autofit] Clean up contour indexing. |
| 6761 |
|
| 6762 |
* src/autofit/aflatin.c (af_latin_metrics_init_blues): Refactor. |
| 6763 |
* src/autofit/afcjk.c (af_cjk_metrics_init_blues): Ditto. |
| 6764 |
|
| 6765 |
2023-02-21 Alexei Podtelezhnikov <[email protected]> |
| 6766 |
|
| 6767 |
* src/base/ftoutln.c (FT_Outline_Check): Fix C4701 warning. |
| 6768 |
|
| 6769 |
2023-02-21 Alexei Podtelezhnikov <[email protected]> |
| 6770 |
|
| 6771 |
* src/sdf/ftsdf.c (get_min_distance_cubic): Fix C4701, typos. |
| 6772 |
|
| 6773 |
2023-02-20 Alexei Podtelezhnikov <[email protected]> |
| 6774 |
|
| 6775 |
* src/base/ftstroke.c (FT_Stroker_ParseOutline): Clean up contour indexing. |
| 6776 |
|
| 6777 |
2023-02-20 Alexei Podtelezhnikov <[email protected]> |
| 6778 |
|
| 6779 |
[base] Clean up contour indexing. |
| 6780 |
|
| 6781 |
* src/base/ftoutln.c (FT_Outline_Reverse, FT_Outline_EmboldenXY, |
| 6782 |
FT_Outline_Get_Orientation): Set the first and last indexes together. |
| 6783 |
(FT_Outline_Decompose): Ditto and check them more stringently. |
| 6784 |
* src/smooth/ftgrays.c (FT_Outline_Decompose)[STANDALONE_]: Ditto. |
| 6785 |
|
| 6786 |
2023-02-20 Alexei Podtelezhnikov <[email protected]> |
| 6787 |
|
| 6788 |
* src/base/ftoutln.c (FT_Outline_Check): Update error code, clean up. |
| 6789 |
|
| 6790 |
2023-02-17 Alexei Podtelezhnikov <[email protected]> |
| 6791 |
|
| 6792 |
[truetype] Hide Infinality. |
| 6793 |
|
| 6794 |
Remove Infinality as an option before its complete extraction. |
| 6795 |
|
| 6796 |
* include/freetype/ftoption.h: Remove the Infinality option. |
| 6797 |
* devel/ftoption.h: Ditto. |
| 6798 |
* include/freetype/ftdriver.h (TT_INTERPRETER_VERSION_38): Is 40 now. |
| 6799 |
|
| 6800 |
2023-02-17 Alex Ringlein <[email protected]> |
| 6801 |
|
| 6802 |
* src/base/ftoutln.c (FT_Outline_Reverse): Anchor first contour points. |
| 6803 |
|
| 6804 |
A cubic contour has to always start from an on-point. Therefore, we |
| 6805 |
should not swap the first with the last point, which might be off, and |
| 6806 |
obtain an invalid contour. This does not matter for conic contours. |
| 6807 |
If anything, it also saves one swap there. Fixes #1207. |
| 6808 |
|
| 6809 |
2023-02-16 Werner Lemberg <[email protected]> |
| 6810 |
|
| 6811 |
Documentation improvement for `FT_Bitmap`. |
| 6812 |
|
| 6813 |
Fixes #1205. |
| 6814 |
|
| 6815 |
2023-02-10 Alexei Podtelezhnikov <[email protected]> |
| 6816 |
|
| 6817 |
[type1/MM] Round design coordinates. |
| 6818 |
|
| 6819 |
The design coordinates for MM fonts were not rounded. For example, |
| 6820 |
`FT_Get_Var_Design_Coordinates` returned values with fractional part. |
| 6821 |
|
| 6822 |
* src/type1/t1load.c (mm_axis_unmap): Refactor with rounding. |
| 6823 |
|
| 6824 |
* include/freetype/ftmm.h (FT_Var_Axis, FT_Set_Var_Design_Coordinates, |
| 6825 |
FT_Get_Var_Design_Coordinates): Reword documentation. |
| 6826 |
|
| 6827 |
2023-02-09 Jan Alexander Steffens (heftig) <[email protected]> |
| 6828 |
|
| 6829 |
* builds/meson/parse_modules_cfg.py: Handle `gxvalid` and `otvalid`. |
| 6830 |
|
| 6831 |
These need a name mapping similar to what was done for other modules, |
| 6832 |
or linking will fail. |
| 6833 |
|
| 6834 |
2023-02-09 Werner Lemberg <[email protected]> |
| 6835 |
|
| 6836 |
* build/toplevel.mk (do_dist): Fix typo. |
| 6837 |
|
| 6838 |
2023-02-09 Werner Lemberg <[email protected]> |
| 6839 |
|
| 6840 |
* Version 2.13 released. |
| 6841 |
========================== |
| 6842 |
|
| 6843 |
Tag sources with `VER-2-13-0'. |
| 6844 |
|
| 6845 |
* docs/VERSION.TXT: Add entry for version 2.13. |
| 6846 |
* docs/CHANGES: Updated. |
| 6847 |
|
| 6848 |
* README, src/base/ftver.rc, builds/windows/vc2010/index.html, |
| 6849 |
builds/windows/visualc/index.html, builds/windows/visualce/index.html, |
| 6850 |
builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html, |
| 6851 |
docs/freetype-config.1: s/2.12.1/2.13/, s/2121/2130/. |
| 6852 |
|
| 6853 |
* include/freetype/freetype.h (FREETYPE_MINOR): Set to 13. |
| 6854 |
(FREETYPE_PATCH): Set to 0. |
| 6855 |
|
| 6856 |
* builds/unix/configure.raw (version_info): Set to 25:0:19. |
| 6857 |
* CMakeLists.txt (VERSION_MINOR): Set to 13. |
| 6858 |
(VERSION_PATCH): Set to 0. |
| 6859 |
|
| 6860 |
2023-02-09 Alexei Podtelezhnikov <[email protected]> |
| 6861 |
|
| 6862 |
Comment on `FT_GlyphSlot_Slant'. |
| 6863 |
|
| 6864 |
2023-02-08 Werner Lemberg <[email protected]> |
| 6865 |
|
| 6866 |
[autofit] Fix 'multi' compilation. |
| 6867 |
|
| 6868 |
* src/autofit/ft-hb.c: Decorate with `FT_LOCAL_DEF`. |
| 6869 |
Add ANSI boilerplate code for otherwise empty file. |
| 6870 |
* src/autofit/ft-hb.h: Include `compiler-macros.h` and `freetype.h`. |
| 6871 |
Use `FT_BEGIN_HEADER` and `FT_END_HEADER`. |
| 6872 |
Decorate with `FT_LOCAL`. |
| 6873 |
|
| 6874 |
* src/autofit/rules.mk (AUTOF_DRV_SRC): Add `ft-hb.c`. |
| 6875 |
|
| 6876 |
2023-02-08 Werner Lemberg <[email protected]> |
| 6877 |
|
| 6878 |
Fix `FT_LOCAL` and `FT_LOCAL_DEF` tags. |
| 6879 |
|
| 6880 |
2023-02-08 Werner Lemberg <[email protected]> |
| 6881 |
|
| 6882 |
Fix 'fall-through' warning messages. |
| 6883 |
|
| 6884 |
Modern compilers get more insistent on that... |
| 6885 |
|
| 6886 |
* include/freetype/internal/compiler-macros.h (FALL_THROUGH): Define. |
| 6887 |
* src/*: Use it instead of `/* fall through */` comments. |
| 6888 |
|
| 6889 |
2023-02-08 Werner Lemberg <[email protected]> |
| 6890 |
|
| 6891 |
For debugging, avoid implicit conversion from integer to double. |
| 6892 |
|
| 6893 |
Otherwise we get zillions of clang 15 warnings. |
| 6894 |
|
| 6895 |
* src/autofit/afcjk.c, src/autofit/afhints.c, src/autofit/aflatin.c, |
| 6896 |
src/base/ftobjs.c, src/base/ftoutln.c, src/cff/cffparse.c, |
| 6897 |
src/raster/ftraster.c, src/sfnt/pngshim.c, src/truetype/ttgload.c, |
| 6898 |
src/truetype/ttgxvar.c, src/truetype/ttobjs.c, src/type1/t1gload.c: Use |
| 6899 |
`double` cast in debugging and tracing macros. |
| 6900 |
|
| 6901 |
2023-02-08 Werner Lemberg <[email protected]> |
| 6902 |
|
| 6903 |
Avoid reserved identifiers that are globally defined. |
| 6904 |
|
| 6905 |
This is mandated by the C99 standard, and clang 15 produces zillions of |
| 6906 |
warnings otherwise. |
| 6907 |
|
| 6908 |
* devel/ftoption.h, include/freetype/config/ftoption.h, |
| 6909 |
include/freetype/internal/ftmemory.h, src/autofit/afhints.h, |
| 6910 |
src/autofit/afmodule.c, src/autofit/aftypes.h, src/base/ftadvanc.c, |
| 6911 |
src/base/ftdbgmem.c, src/base/ftstream.c, src/bdf/bdflib.c, |
| 6912 |
src/truetype/ttinterp.c: Replace identifiers of the form `_foo` with `foo_`. |
| 6913 |
|
| 6914 |
2023-02-08 Werner Lemberg <[email protected]> |
| 6915 |
|
| 6916 |
Fix minor clang and clang++ warnings. |
| 6917 |
|
| 6918 |
2023-02-08 Alexei Podtelezhnikov <[email protected]> |
| 6919 |
|
| 6920 |
[truetype, type1] Additional variation tags. |
| 6921 |
|
| 6922 |
Sync with |
| 6923 |
https://learn.microsoft.com/en-us/typography/opentype/spec/dvaraxisreg#registered-axis-tags |
| 6924 |
|
| 6925 |
* src/truetype/ttgxvar.h (TTAG_ital): New tag. |
| 6926 |
* src/truetype/ttgxvar.c (TT_Get_MM_Var): Use it. |
| 6927 |
* src/type1/t1load.c (T1_Get_MM_Var): Handle 'slnt' and 'ital'. |
| 6928 |
|
| 6929 |
2023-02-08 Alexei Podtelezhnikov <[email protected]> |
| 6930 |
|
| 6931 |
* src/base/ftsynth.c (FT_GlyphSlot_Slant): Add vertical slant. |
| 6932 |
* include/freetype/ftsynth.h (FT_GlyphSlot_Slant): Update it. |
| 6933 |
|
| 6934 |
2023-02-08 anuj <[email protected]> |
| 6935 |
|
| 6936 |
[sdf] Use 32-bit integers internally. |
| 6937 |
|
| 6938 |
* src/sdf/ftsdfcommon.h (FT_16D16, FT_26D6): Use 32-bit integers |
| 6939 |
instead of `FT_Fixed` for internal data types. `FT_Fixed` i.e. |
| 6940 |
`signed long` is 64-bit on some architectures. |
| 6941 |
|
| 6942 |
2023-02-07 Werner Lemberg <[email protected]> |
| 6943 |
|
| 6944 |
docs/CHANGES: Updated. |
| 6945 |
|
| 6946 |
2023-02-04 Alexei Podtelezhnikov <[email protected]> |
| 6947 |
|
| 6948 |
Comment on optional ascender and descender. |
| 6949 |
|
| 6950 |
2023-02-04 Alexei Podtelezhnikov <[email protected]> |
| 6951 |
|
| 6952 |
* src/type1/t1afm.c (T1_Read_Metrics): Reaffirm ascender and descender. |
| 6953 |
|
| 6954 |
2023-02-04 Alexei Podtelezhnikov <[email protected]> |
| 6955 |
|
| 6956 |
* src/type1/t1afm.c (T1_Read_Metrics): Validate ascender and descender. |
| 6957 |
|
| 6958 |
The ascender and descender are optional in the AFM specifications. |
| 6959 |
They could be omitted or even set to zero, e.g., in the current release |
| 6960 |
of URW++ base 35 fonts. |
| 6961 |
|
| 6962 |
2023-02-02 Werner Lemberg <[email protected]> |
| 6963 |
|
| 6964 |
* src/cff/cffgload.c (cff_slot_load): Avoid memory leak. |
| 6965 |
|
| 6966 |
Fixes issue #1204. |
| 6967 |
|
| 6968 |
2023-02-01 Werner Lemberg <[email protected]> |
| 6969 |
|
| 6970 |
* src/truetype/ttgxvar.c (tt_var_get_item_delta): Check `face->blend`. |
| 6971 |
|
| 6972 |
Reported as |
| 6973 |
|
| 6974 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=55581 |
| 6975 |
|
| 6976 |
2023-02-01 Werner Lemberg <[email protected]> |
| 6977 |
|
| 6978 |
* docs/CHANGES: Add news for 'freetype-demos'. |
| 6979 |
|
| 6980 |
2023-01-30 Werner Lemberg <[email protected]> |
| 6981 |
|
| 6982 |
* subprojects/harfbuzz.wrap, subprojects/libpng.wrap: Updated. |
| 6983 |
|
| 6984 |
2023-01-28 Werner Lemberg <[email protected]> |
| 6985 |
|
| 6986 |
Minor changes. |
| 6987 |
|
| 6988 |
Comment fixes, typos, removing of unnecessary parentheses. |
| 6989 |
|
| 6990 |
2023-01-28 Werner Lemberg <[email protected]> |
| 6991 |
|
| 6992 |
Whitespace. |
| 6993 |
|
| 6994 |
2023-01-27 Behdad Esfahbod <[email protected]> |
| 6995 |
|
| 6996 |
[ttgxvar] Fix crash in COLRv1. |
| 6997 |
|
| 6998 |
This is a stopgap until issue #1202 is properly fixed. |
| 6999 |
|
| 7000 |
* src/truetype/ttxgvar.c (tt_var_get_item_delta): Check `normalizedcoords`. |
| 7001 |
|
| 7002 |
2023-01-19 Werner Lemberg <[email protected]> |
| 7003 |
|
| 7004 |
The 'COLR' v1 API will no longer be experimental in the next release. |
| 7005 |
|
| 7006 |
2023-01-18 Alexei Podtelezhnikov <[email protected]> |
| 7007 |
|
| 7008 |
* docs/oldlogs/ChangeLog.210: Typos. |
| 7009 |
|
| 7010 |
2023-01-18 Ben Wagner <[email protected]> |
| 7011 |
|
| 7012 |
[base] Fix typo. |
| 7013 |
|
| 7014 |
* src/base/ftobjs.c (open_face_PS_from_sfnt_stream): Request module 't1cid', |
| 7015 |
not 'cid'. |
| 7016 |
|
| 7017 |
2023-01-18 Ben Wagner <[email protected]> |
| 7018 |
|
| 7019 |
[base] Return error if requested driver is not found. |
| 7020 |
|
| 7021 |
In `open_face_from_buffer` it is possible that a driver is requested but |
| 7022 |
FreeType was built without the requested module. Return an error in this |
| 7023 |
case to indicate that the request could not be satisfied, rather than trying |
| 7024 |
all existing driver modules. |
| 7025 |
|
| 7026 |
* src/base/ftobjs.c (open_face_from_buffer): Return `FT_Err_Missing_Module` |
| 7027 |
if a driver is specified but not found. |
| 7028 |
|
| 7029 |
2023-01-18 Dominik Röttsches <[email protected]> |
| 7030 |
|
| 7031 |
[sfnt] Avoid nullptr dereference in reading malformed 'COLR' v1 table. |
| 7032 |
|
| 7033 |
Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=1408044. |
| 7034 |
|
| 7035 |
* src/sfnt/ttcolr.c (tt_face_load_colr): When the 'COLR' v1 table header is |
| 7036 |
too small, don't deallocate delta set index map structures. |
| 7037 |
|
| 7038 |
2023-01-17 Werner Lemberg <[email protected]> |
| 7039 |
|
| 7040 |
* src/tools/update-copyright: Allow execution from other repositories. |
| 7041 |
|
| 7042 |
We use this for `freetype-demos`. |
| 7043 |
|
| 7044 |
2023-01-17 Werner Lemberg <[email protected]> |
| 7045 |
|
| 7046 |
Update all copyright notices. |
| 7047 |
|
| 7048 |
2023-01-17 Werner Lemberg <[email protected]> |
| 7049 |
|
| 7050 |
* src/tools/no-copyright: Updated. |
| 7051 |
|
| 7052 |
2023-01-17 Ben Wagner <[email protected]> |
| 7053 |
|
| 7054 |
[base] 'close' callback may not use `stream->memory`. |
| 7055 |
|
| 7056 |
The documentation for `FT_StreamRec::memory` states that it 'shouldn't be |
| 7057 |
touched by stream implementations'. This is true even for internal |
| 7058 |
implementations of the 'close' callback, since it is not guaranteed that |
| 7059 |
`memory` will even be set when the 'close' callback occurs. |
| 7060 |
|
| 7061 |
* src/base/ftobjs.c (new_memory_stream): stash current `memory` in |
| 7062 |
`stream->descriptor`. |
| 7063 |
(memory_stream_close): Use it. |
| 7064 |
|
| 7065 |
2023-01-17 Ben Wagner <[email protected]> |
| 7066 |
|
| 7067 |
[base] Always close user-provided stream. |
| 7068 |
|
| 7069 |
The `FT_Open_Face` documentation states |
| 7070 |
|
| 7071 |
> If `FT_OPEN_STREAM` is set in `args->flags`, the stream in `args->stream` |
| 7072 |
> is automatically closed before this function returns any error (including |
| 7073 |
> `FT_Err_Invalid_Argument`). |
| 7074 |
|
| 7075 |
However, if the user provides a stream in `args.stream` with |
| 7076 |
`FT_OPEN_STREAM` set and a `close` function, but then for some reason passes |
| 7077 |
NULL for `aface` and a non-negative `face_index`, the error |
| 7078 |
`Invalid_Argument` is returned but the `close` callback will not be called |
| 7079 |
on the user-provided stream. This may cause resource leaks if the caller is |
| 7080 |
depending on the `close` callback to free resources. |
| 7081 |
|
| 7082 |
The difficulty is that a user may fill out a `FT_StreamRec` and pass its |
| 7083 |
address as `args.stream`, but the stream isn't really 'live' until |
| 7084 |
`FT_Stream_New` is called on it (and `memory` is set). In particular, it |
| 7085 |
cannot really be cleaned up properly in `ft_open_face_internal` until the |
| 7086 |
stream pointer has been copied into the `stream` local variable. |
| 7087 |
|
| 7088 |
* src/base/ftobj.c (ft_open_face_internal): Ensure that user-provided |
| 7089 |
`args.stream.close` is called even with early errors. |
| 7090 |
|
| 7091 |
2023-01-17 Ben Wagner <[email protected]> |
| 7092 |
|
| 7093 |
[base] Fix leak of internal stream marked external. |
| 7094 |
|
| 7095 |
`open_face_from_buffer` allocates a new `FT_Stream` to pass to |
| 7096 |
`ft_open_face_internal`. Because this is an `FT_OPEN_STREAM`, |
| 7097 |
`ft_open_face_internal` will mark this as an 'external stream', which the |
| 7098 |
caller must free. However, `open_face_from_buffer` cannot directly free it |
| 7099 |
because the stream must last as long as the face. There is currently an |
| 7100 |
attempt at this by clearing the 'external stream' bit after |
| 7101 |
`open_face_from_buffer` returns successfully. However, this is too late as |
| 7102 |
the original stream may have already been closed and the stream on the face |
| 7103 |
may not be the same stream as originally passed. |
| 7104 |
|
| 7105 |
It is tempting to use `FT_OPEN_MEMORY` and let `ft_open_face_internal` |
| 7106 |
create the stream internally. However, with this method there is no means |
| 7107 |
to pass through a 'close' function to the created stream to free the |
| 7108 |
underlying data, which must be owned by the stream. |
| 7109 |
|
| 7110 |
A possibility is to check on success if the stream of the face is the same |
| 7111 |
as the original stream. If it is then unset the external flag. If not, |
| 7112 |
then free the original stream. Unfortunately, while no current |
| 7113 |
implementation does so, it is possible that the face still has the original |
| 7114 |
stream somewhere other than as the `FT_FaceRec::stream`. The stream needs |
| 7115 |
to remain available for the life of the face or until it is closed, |
| 7116 |
whichever comes earlier. |
| 7117 |
|
| 7118 |
The approach taken here is to let the stream own itself. When the stream is |
| 7119 |
closed it will free itself. |
| 7120 |
|
| 7121 |
* src/base/ftobjs.c (memory_stream_close): Free `stream`. |
| 7122 |
(open_face_from_buffer): Simplify error handling, since |
| 7123 |
`ft_open_face_internal` always closes `args.stream` on any error. |
| 7124 |
|
| 7125 |
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54930 |
| 7126 |
|
| 7127 |
2023-01-16 Werner Lemberg <[email protected]> |
| 7128 |
|
| 7129 |
sr/*.c: Various minor fixes. |
| 7130 |
|
| 7131 |
* src/autofit/ft-hb.c (_hb_ft_reference_table): Call `FT_UNUSED` after |
| 7132 |
variable declarations. |
| 7133 |
|
| 7134 |
* src/gxvalid/gxvjust.c (gxv_just_widthDeltaClusters_validate): Eliminate |
| 7135 |
unused variable. |
| 7136 |
|
| 7137 |
* src/gzip/ftgzip.c: Don't call GCC '-Wstrict-prototypes' pragma for C++ |
| 7138 |
compiler. |
| 7139 |
|
| 7140 |
* src/sfnt/ttcolr.c (ENSURE_READ_BYTES): Remove final semicolon to avoid |
| 7141 |
compiler warning. |
| 7142 |
|
| 7143 |
* src/sfnt/ttsvg.c (tt_face_load_svg_doc): Fix signedness warning. |
| 7144 |
|
| 7145 |
2023-01-16 Dominik Röttsches <[email protected]> |
| 7146 |
|
| 7147 |
[sfnt] Remove temporary runtime flag for variable 'COLR' v1. |
| 7148 |
|
| 7149 |
Fixes #1187. |
| 7150 |
|
| 7151 |
* src/sfnt/ttcolr.c (top level, read_paint, tt_face_load_colr, |
| 7152 |
tt_face_free_colr, get_deltas_for_var_index_base, |
| 7153 |
tt_face_get_color_glyph_clipbox, tt_face_get_colorline_stops): Remove macro |
| 7154 |
definition `VARIABLE_COLRV1_ENABLED` and its usage. |
| 7155 |
|
| 7156 |
* src/truetype/ttdriver.c (tt_property_set): Remove parsing of |
| 7157 |
'TEMPORARY-enable-variable-colrv1' property name. |
| 7158 |
|
| 7159 |
* src/truetype/ttobjs.h (TT_DriverRec): Remove `enable_variable_colrv1` |
| 7160 |
flag. |
| 7161 |
|
| 7162 |
2023-01-07 Werner Lemberg <[email protected]> |
| 7163 |
|
| 7164 |
* src/autofit/ft-hb.c (_hb_ft_reference_table): Minor integration fixes. |
| 7165 |
|
| 7166 |
2023-01-07 Ben Wagner <[email protected]> |
| 7167 |
|
| 7168 |
[truetype] Reset cvt and storage in context load. |
| 7169 |
|
| 7170 |
Currently the cvt and storage are saved and restored in `TT_RunIns`. |
| 7171 |
However, this is too granular as the cvt and storage area should be set to |
| 7172 |
the original cvt and storage area only when setting up the hinting context. |
| 7173 |
This allows for the cvt and storage area to be modified while parsing |
| 7174 |
multiple glyphs, as is the case with composite glyphs. |
| 7175 |
|
| 7176 |
* src/truetype/ttinterp.h (TT_ExecContextRec): Remove `origCvt` and |
| 7177 |
`origStorage`. |
| 7178 |
|
| 7179 |
* src/truetype/ttinterp.c (TT_RunIns): Don't save and restore the cvt and |
| 7180 |
storage area. |
| 7181 |
(Modify_CVT_Check, Ins_WS): Switch from "if in glyph and using original data |
| 7182 |
do copy on write" to "if in glyph and not using glyph specific data do copy |
| 7183 |
on write". |
| 7184 |
|
| 7185 |
2023-01-06 Matthias Clasen <[email protected]> |
| 7186 |
|
| 7187 |
[autofit] Don't depend on 'hb-ft'. |
| 7188 |
|
| 7189 |
The circular dependency is still there, but at least we no longer depend on |
| 7190 |
the HarfBuzz API that is only present if HarfBuzz has been built with |
| 7191 |
FreeType support, making the bootstrapping a bit easier. |
| 7192 |
|
| 7193 |
* src/autofit/ft-hb.c, src/autofit/ft-hb.h: New files, providing |
| 7194 |
`_hb_ft_font_create`, which is more or less a verbatim copy of the |
| 7195 |
corresponding HarfBuzz code from file `hb-ft.cc`. |
| 7196 |
|
| 7197 |
* src/autofit/afglobal.c (af_face_globals_new): Use it. |
| 7198 |
* src/autofit/afshaper.h: Don't include `hb-ft.h` but `ft-hb.h`. |
| 7199 |
* src/autofit/autofit.c: Include `ft-hb.c`. |
| 7200 |
|
| 7201 |
* LICENSE.TXT: Updated. |
| 7202 |
|
| 7203 |
2023-01-06 Ben Wagner <[email protected]> |
| 7204 |
|
| 7205 |
[truetype] Keep variation store consistent. |
| 7206 |
|
| 7207 |
`tt_var_load_item_variation_store` fills out a `GX_ItemVarStore`. While it |
| 7208 |
may return an error, the item store must be left in a consistent state so |
| 7209 |
that any use or destruction of the item store can properly use or free the |
| 7210 |
data in it. Before this change the counts from the font data were read |
| 7211 |
directly into the item store before the actual allocation of the arrays to |
| 7212 |
which they referred. There exist many opportunities between the time the |
| 7213 |
counts are read and the arrays are allocated to return early due to invalid |
| 7214 |
data. When this happened the item store claimed to have entires it actually |
| 7215 |
did not, leading to crashes later when it was used. |
| 7216 |
|
| 7217 |
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54449 |
| 7218 |
|
| 7219 |
* src/truetype/ttgxvar.c (tt_var_load_item_variation_store): Read the counts |
| 7220 |
into local variables and store them in the item store only after the related |
| 7221 |
arrays are actually created on the item store. |
| 7222 |
|
| 7223 |
2023-01-05 Ben Wagner <[email protected]> |
| 7224 |
|
| 7225 |
[base] Report used stream's external status. |
| 7226 |
|
| 7227 |
In `open_face` the initial stream is set on the face, along with the |
| 7228 |
information about if FreeType is the owner of the stream object itself. The |
| 7229 |
loaders may in the course of their work replace this stream with a new |
| 7230 |
stream (as is the case for 'woff' and 'woff2'), which may have a different |
| 7231 |
ownership than the initial stream object (likely the original stream object |
| 7232 |
is owned by the user and is external, while the new stream object is created |
| 7233 |
internally to FreeType and is internal). When the stream is replaced, the |
| 7234 |
face's flags are updated with the new ownership status. |
| 7235 |
|
| 7236 |
However, `open_face` cannot itself free this stream as its caller |
| 7237 |
`ft_open_face_internal` is responsible for this. In addition, in the case |
| 7238 |
of an error `open_face` cannot return an actual face with the new stream and |
| 7239 |
its ownership status to the caller. As a result, it must pass this |
| 7240 |
information back to the caller as a sort of "failed face" so that the caller |
| 7241 |
can clean up. |
| 7242 |
|
| 7243 |
`open_face` was already passing back the new stream but was not passing back |
| 7244 |
the stream ownership information. As a result the stream may not have been |
| 7245 |
free'd when needed. |
| 7246 |
|
| 7247 |
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54700 |
| 7248 |
|
| 7249 |
* src/base/ftobjs.c (open_face): Pass back the ownership information as |
| 7250 |
well. |
| 7251 |
(ft_open_face_internal): Updated. |
| 7252 |
|
| 7253 |
2023-01-05 Noah Cabral <[email protected]> |
| 7254 |
|
| 7255 |
fix spelling err in LICENSE.txt |
| 7256 |
|
| 7257 |
2023-01-05 Dominik Röttsches <[email protected]> |
| 7258 |
|
| 7259 |
[sfnt] Fix color stop bounds check calculation at table end. |
| 7260 |
|
| 7261 |
Fixes https://bugs.chromium.org/p/skia/issues/detail?id=14021 |
| 7262 |
|
| 7263 |
* src/sfnt/ttcolr.c (VAR_IDX_BASE_SIZE): New macro. |
| 7264 |
(tt_face_get_colorline_stops): Fix off-by-one bounds check calculation, take |
| 7265 |
`VarColorStop` into account, and hopefully make it easier to read. |
| 7266 |
|
| 7267 |
2023-01-05 Alexei Podtelezhnikov <[email protected]> |
| 7268 |
|
| 7269 |
* src/base/ftobjs.c (FT_Request_Metrics): Avoid division by zero. |
| 7270 |
|
| 7271 |
The division-by-zero might happen in broken fonts (see #1194). |
| 7272 |
Instead of returning a huge number from FT_DivFix and failing |
| 7273 |
to scale later, we now bail immediately. |
| 7274 |
|
| 7275 |
2022-12-20 Alexei Podtelezhnikov <[email protected]> |
| 7276 |
|
| 7277 |
[psaux] Delay the upem validity assertion. |
| 7278 |
|
| 7279 |
Fixes #1194. |
| 7280 |
|
| 7281 |
* src/psaux/psft.c (cf2_getUnitsPerEm): Remove the upem assert. |
| 7282 |
(cf2_checkTransform): Assert the upem validity after checking the scale. |
| 7283 |
|
| 7284 |
2022-12-14 David Vanderson <[email protected]> |
| 7285 |
Werner Lemberg <[email protected]> |
| 7286 |
|
| 7287 |
[gzip] Make static compilation not leak global symbols. |
| 7288 |
|
| 7289 |
* src/gzip/ftgzip.c (HAVE_HIDDEN): Do not define; it is no longer needed |
| 7290 |
because everything is static. |
| 7291 |
(HAVE_MEMCPY): Define. |
| 7292 |
(zcalloc, zcfree): Remove no longer needed definitions (because `Z_SOLO` is |
| 7293 |
active). |
| 7294 |
|
| 7295 |
* src/gzip/patches/freetype-zlib.diff: Regenerated. |
| 7296 |
|
| 7297 |
Fixes #1146. |
| 7298 |
|
| 7299 |
2022-12-14 Werner Lemberg <[email protected]> |
| 7300 |
|
| 7301 |
* src/gzip/ftzconf.h: Updated to zlib 1.2.13. |
| 7302 |
|
| 7303 |
I forgot to copy that file. |
| 7304 |
|
| 7305 |
2022-12-14 Werner Lemberg <[email protected]> |
| 7306 |
|
| 7307 |
* builds/unix/configure.raw: Don't check for `memcpy` and `memmove`. |
| 7308 |
|
| 7309 |
We expect a C99 compiler, and both functions are part of this standard. |
| 7310 |
|
| 7311 |
2022-12-13 Werner Lemberg <[email protected]> |
| 7312 |
|
| 7313 |
[sdf, sfnt] Handle minor compiler warnings. |
| 7314 |
|
| 7315 |
* src/sdf/ftsdf.c (get_min_distance_conic): Initialize `nearest_point`. |
| 7316 |
|
| 7317 |
* src/sfnt/ttsvg.c (find_doc): Initialize `mid_doc`. |
| 7318 |
|
| 7319 |
Fixes #1195. |
| 7320 |
|
| 7321 |
2022-12-07 Werner Lemberg <[email protected]> |
| 7322 |
|
| 7323 |
* subprojects/zlib.wrap: Micro-update from upstream. |
| 7324 |
|
| 7325 |
2022-12-06 Jiří Malák <[email protected]> |
| 7326 |
|
| 7327 |
* include/freetype/internal/ftcalc.h (FT_MSB): Support Open Watcom 2.0. |
| 7328 |
|
| 7329 |
Closes !232. |
| 7330 |
|
| 7331 |
2022-11-23 Luca Bacci <[email protected]> |
| 7332 |
|
| 7333 |
* src/base/ftdbgmem.c (ft_mem_source_compare): Add FT_COMPARE_DEF. |
| 7334 |
|
| 7335 |
Closes !230. |
| 7336 |
|
| 7337 |
2022-11-21 Alexei Podtelezhnikov <[email protected]> |
| 7338 |
|
| 7339 |
* src/autofit/afloader.c (af_loader_load_glyph): Remove `size` check. |
| 7340 |
|
| 7341 |
This is done by `FT_Load_Glyph`. |
| 7342 |
|
| 7343 |
2022-11-18 Alexei Podtelezhnikov <[email protected]> |
| 7344 |
|
| 7345 |
Comments added. |
| 7346 |
|
| 7347 |
2022-11-16 Johan Matsson <mjunix@ at github> |
| 7348 |
|
| 7349 |
* src/autofit/afloader.c (af_loader_load_glyph): Fix dereference. |
| 7350 |
|
| 7351 |
This must happen after the NULL check. |
| 7352 |
|
| 7353 |
Taken from |
| 7354 |
|
| 7355 |
https://github.com/freetype/freetype/pull/2 |
| 7356 |
|
| 7357 |
2022-11-15 Alexei Podtelezhnikov <[email protected]> |
| 7358 |
|
| 7359 |
* src/pcf/pcfutil.c ({Two,Four}ByteSwap): Use builtins or shifts. |
| 7360 |
|
| 7361 |
We trust glibc which uses shifts or builtins to swap bytes. This |
| 7362 |
must be more efficient. |
| 7363 |
|
| 7364 |
2022-11-14 Werner Lemberg <[email protected]> |
| 7365 |
|
| 7366 |
* src/truetype/ttgxvar.c (tt_hvadvance_adjust): Integer overflow. |
| 7367 |
|
| 7368 |
Reported as |
| 7369 |
|
| 7370 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50462 |
| 7371 |
|
| 7372 |
2022-11-14 Loïc Yhuel <[email protected]> |
| 7373 |
|
| 7374 |
[meson] Use generated ftmodule.h |
| 7375 |
|
| 7376 |
ftmodule.h is generated at the root of the build directory, but FT_CONFIG_MODULES_H |
| 7377 |
(freetype/config/ftmodule.h) is used instead. |
| 7378 |
This makes the build fail when disabling modules in modules.cfg. |
| 7379 |
|
| 7380 |
* meson.build (harfbuzz_dep): Add '-DFT_CONFIG_MODULES_H=<ftmodule.h>'. |
| 7381 |
|
| 7382 |
2022-11-14 Loïc Yhuel <[email protected]> |
| 7383 |
|
| 7384 |
[meson] Fix generated ftmodule.h |
| 7385 |
|
| 7386 |
The sdf module wasn't recognized, so the generated ftmodule.h had "None_renderer_class". |
| 7387 |
|
| 7388 |
* builds/meson/parse_modules_cfg.py: Handle sdf in RASTER_MODULES. |
| 7389 |
|
| 7390 |
2022-11-12 Dominik Röttsches <[email protected]> |
| 7391 |
|
| 7392 |
Add `TT_CONFIG_OPTION_NO_BORING_EXPANSION` configuration macro. |
| 7393 |
|
| 7394 |
This gives users a possibility to deactivate new features not (yet) in the |
| 7395 |
OpenType standard. |
| 7396 |
|
| 7397 |
* include/freetype/config/ftoption.h, devel/ftoption.h |
| 7398 |
(TT_CONFIG_OPTION_NO_BORING_EXPANSION): New macro. |
| 7399 |
|
| 7400 |
* src/truetype/ttgxvar.c (ft_var_load_avar): Use it to disable 'avar' |
| 7401 |
version 2.0 support. |
| 7402 |
|
| 7403 |
2022-11-12 Behdad Esfahbod <[email protected]> |
| 7404 |
|
| 7405 |
[truetype] Improve bounds checks for `ItemVariationStore`. |
| 7406 |
|
| 7407 |
* src/truetype/ttgxvar.c (tt_hvadvance_adjust): Move bounds check ... |
| 7408 |
(tt_var_get_item_delta): ... to this function, because it is safer. For |
| 7409 |
example, the 'avar' table 2.0 codepath was not performing a bounds check at |
| 7410 |
all. |
| 7411 |
|
| 7412 |
2022-11-12 Behdad Esfahbod <[email protected]> |
| 7413 |
|
| 7414 |
[truetype] In `ItemVariationStore`, value 0xFFFF for `dataCount` is valid. |
| 7415 |
|
| 7416 |
It corresponds to outer indices of 0 to 0xFFFE. |
| 7417 |
|
| 7418 |
* src/truetype/ttgxvar.c (tt_var_load_item_variation_store): Remove invalid |
| 7419 |
code. |
| 7420 |
|
| 7421 |
2022-11-11 Alexei Podtelezhnikov <[email protected]> |
| 7422 |
|
| 7423 |
[pcf] Improve CMap efficiency and readability. |
| 7424 |
|
| 7425 |
* src/pcf/pcfdrivr.c (pcf_cmap_char_{index,next}): Check and walk |
| 7426 |
the encoding array indexes. |
| 7427 |
|
| 7428 |
2022-11-10 Sam James <[email protected]> |
| 7429 |
|
| 7430 |
Fix `-Wstrict-prototypes`. |
| 7431 |
|
| 7432 |
* builds/unix/configure.raw: Fix `-Wstrict-prototypes`. |
| 7433 |
Clang 16 warns on these and they will be dropped in C23. |
| 7434 |
|
| 7435 |
* builds/unix/freetype2.m4: Ditto. |
| 7436 |
|
| 7437 |
2022-11-09 Ben Wagner <[email protected]> |
| 7438 |
|
| 7439 |
[truetype] Check avar_segment before access |
| 7440 |
|
| 7441 |
* src/truetype/ttgxvar.c (tt_done_blend): check `avar_segment` before |
| 7442 |
accessing to free its `correspondence`. |
| 7443 |
|
| 7444 |
Reported as: |
| 7445 |
|
| 7446 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53062 |
| 7447 |
|
| 7448 |
2022-11-09 Ben Wagner <[email protected]> |
| 7449 |
|
| 7450 |
[truetype] Restore behavior of ft_var_load_hvvar |
| 7451 |
|
| 7452 |
* src/truetype/ttgcvar.c (ft_var_load_hvvar): restore previous behavior |
| 7453 |
|
| 7454 |
In a previous change [0] the behavior of `ft_var_load_hvvar` was changed |
| 7455 |
to not load the item variation store if it was at offset 0, but not |
| 7456 |
return an error when this happened. This broke any users, like |
| 7457 |
`tt_hvadvance_adjust`, that rely on successful completion of |
| 7458 |
`ft_var_load_hvvar` to imply that returned table's `itemStore` had been |
| 7459 |
initialized. This lead such users to dereference NULL. |
| 7460 |
|
| 7461 |
This change appears to have been unintentional and unrelated to the |
| 7462 |
actual avar2 changes. As a result, fix these NULL dereferences by |
| 7463 |
restoring the code to always attempt to initialize the `itemStore`. |
| 7464 |
|
| 7465 |
[0] ae4eb996 "[truetype] Add support for `avar` table 2.0 format." |
| 7466 |
|
| 7467 |
Reported as |
| 7468 |
|
| 7469 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53061 |
| 7470 |
|
| 7471 |
2022-11-08 Werner Lemberg <[email protected]> |
| 7472 |
|
| 7473 |
docs/CHANGES: Updated. |
| 7474 |
|
| 7475 |
2022-11-08 suzuki toshiya <[email protected]> |
| 7476 |
|
| 7477 |
[build] use AC_CHECK_PROG() macro for libpng-config detection |
| 7478 |
|
| 7479 |
* builds/unix/configure.raw: use AC_CHECK_PROG() instead of `which` to find `libpng-config`. |
| 7480 |
|
| 7481 |
2022-11-08 suzuki toshiya <[email protected]> |
| 7482 |
|
| 7483 |
[build] fix for make multi |
| 7484 |
|
| 7485 |
Fix "make multi" by MR !223 |
| 7486 |
|
| 7487 |
* include/freetype/internal/services/svmm.h: include ftmm.h to define FT_Get_MM_Func. |
| 7488 |
* src/truetype/ttgxvar.h: include ftmmtypes.h to use GX_AVarTable properly. |
| 7489 |
* src/base/ftmac.c: include ftdebug.h to use FT_THROW() properly. |
| 7490 |
|
| 7491 |
2022-11-08 Alexei Podtelezhnikov <[email protected]> |
| 7492 |
|
| 7493 |
* src/pfr/pfrsbit.c (pfr_lookup_bitmap_data): Accelerate the search. |
| 7494 |
|
| 7495 |
This is mostly for consistency because PFR fonts with bitmap strikes |
| 7496 |
do not seem to exist. |
| 7497 |
|
| 7498 |
2022-11-06 Alexei Podtelezhnikov <[email protected]> |
| 7499 |
|
| 7500 |
[bdf, pfr, psnames] Accelarate charmap searches. |
| 7501 |
|
| 7502 |
The binary searches within charmaps can be accelerated because they |
| 7503 |
often contain dense continuous blocks of character codes. Within such |
| 7504 |
blocks, you can predict matches based on misses. This method has been |
| 7505 |
deployed in `bdf` since 0f122fef34; we only refactor it there. We now |
| 7506 |
use it in `pfr` and `psnames`, which speeds up the unicode charmap |
| 7507 |
access by about 50% in PFR and Type 1 fonts. |
| 7508 |
|
| 7509 |
* src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Refactor. |
| 7510 |
* src/pfr/pfrcmap.c (pfr_cmap_char_{index,next}): Predict `mid` based |
| 7511 |
on the mismatch distance. |
| 7512 |
* src/psnames/psmodule.c (ps_unicodes_char_{index,next}): Ditto. |
| 7513 |
|
| 7514 |
2022-11-04 Behdad Esfahbod <[email protected]> |
| 7515 |
|
| 7516 |
[truetype] Add support for `avar` table 2.0 format. |
| 7517 |
|
| 7518 |
See |
| 7519 |
|
| 7520 |
https://github.com/harfbuzz/boring-expansion-spec/blob/main/avar2.md |
| 7521 |
|
| 7522 |
for the specification. |
| 7523 |
|
| 7524 |
Currently, this is implemented only in most recent OS versions on Apple |
| 7525 |
platforms and in the HarfBuzz library, but it is expected to be added to the |
| 7526 |
OpenType standard soon. |
| 7527 |
|
| 7528 |
* src/truetype/ttgxvar.h (GX_AVarTableRec): New structure. |
| 7529 |
(GX_BlendRec): Use it to replace `avar_segment` with `avar_table`. |
| 7530 |
|
| 7531 |
* src/truetype/ttgxvar.c (ft_var_load_avar): Load new table version. |
| 7532 |
(ft_var_to_normalized, tt_done_blend): Extend for new format. |
| 7533 |
(ft_var_load_hvvar, ft_var_to_design): Updated. |
| 7534 |
|
| 7535 |
2022-10-24 Werner Lemberg <[email protected]> |
| 7536 |
|
| 7537 |
Replace '1/64th' (and similar entries) with '1/64' in docs and comments. |
| 7538 |
|
| 7539 |
2022-10-24 Ivan Panchenko <[email protected]> |
| 7540 |
|
| 7541 |
* include/freetype/*: Fix documentation typos. |
| 7542 |
|
| 7543 |
2022-10-21 Alexei Podtelezhnikov <[email protected]> |
| 7544 |
|
| 7545 |
* src/truetype/ttgload.c: Cosmetic changes. |
| 7546 |
|
| 7547 |
2022-10-21 Alexei Podtelezhnikov <[email protected]> |
| 7548 |
|
| 7549 |
[cff, truetype] Simplify SVG metrics scaling. |
| 7550 |
|
| 7551 |
Use pre-calculated scaling factors. Also, the advance widths used |
| 7552 |
to be rounded, which was incorrect. |
| 7553 |
|
| 7554 |
* src/cff/cffgload.c (cff_slot_load): Use `x_scale` and `y_scale`. |
| 7555 |
* src/truetype/ttgload.c (TT_Load_Glyph): Ditto. |
| 7556 |
|
| 7557 |
2022-10-20 Werner Lemberg <[email protected]> |
| 7558 |
|
| 7559 |
* subprojects/zlib.wrap: Update to zlib version 1.2.13. |
| 7560 |
|
| 7561 |
2022-10-18 Dominik Röttsches <[email protected]> |
| 7562 |
|
| 7563 |
[sfnt] Additional bounds checks for `COLR` v1 table handling. |
| 7564 |
|
| 7565 |
* src/sfnt/ttcolr.c (read_paint): Add `colr` argument, necessary for... |
| 7566 |
... another use of `ENSURE_READ_BYTES`. |
| 7567 |
Update callers. |
| 7568 |
(tt_face_get_paint_layers): Ensure that the 4-byte paint table |
| 7569 |
offset can be read. |
| 7570 |
|
| 7571 |
This is a follow-up to !124 and issue |
| 7572 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52404 |
| 7573 |
|
| 7574 |
2022-10-18 Werner Lemberg <[email protected]> |
| 7575 |
|
| 7576 |
[gzip] Update sources to zlib 1.2.13. |
| 7577 |
|
| 7578 |
2022-10-18 Alexei Podtelezhnikov <[email protected]> |
| 7579 |
|
| 7580 |
* src/sfnt/ttsbit.c (tt_face_load_strike_metrics): Simplify calculations. |
| 7581 |
|
| 7582 |
2022-10-18 Werner Lemberg <[email protected]> |
| 7583 |
|
| 7584 |
Minor formatting. |
| 7585 |
|
| 7586 |
2022-10-18 Dominik Röttsches <[email protected]> |
| 7587 |
|
| 7588 |
[sfnt] Guard individual `COLR` v1 paint field reads. |
| 7589 |
|
| 7590 |
* src/sfnt/ttcolr.c (ENSURE_READ_BYTES): New macro. |
| 7591 |
(read_paint): Use it – after the start pointer `p` has been checked for |
| 7592 |
whether it allows reading the format byte, each successive paint table field |
| 7593 |
read need to be bounds-checked before reading further values. |
| 7594 |
|
| 7595 |
Reported as |
| 7596 |
|
| 7597 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52404 |
| 7598 |
|
| 7599 |
2022-10-17 Xiang Xiao <[email protected]> |
| 7600 |
|
| 7601 |
* builds/toplevel.mk: Prefix all paths with `$(TOP_DIR)/`. |
| 7602 |
|
| 7603 |
This is useful for builds that are not started from the root directory. |
| 7604 |
|
| 7605 |
2022-10-17 Liu Kunpeng(柳鲲鹏) <[email protected]> |
| 7606 |
|
| 7607 |
* src/base/ftsynth.c (FT_GlyphSlot_Slant): New API with custom slant. |
| 7608 |
* include/freetype/ftsynth.h (FT_GlyphSlot_Slant): Declare it. |
| 7609 |
|
| 7610 |
2022-10-15 Alexei Podtelezhnikov <[email protected]> |
| 7611 |
|
| 7612 |
Note the lack of floating-point data types. |
| 7613 |
|
| 7614 |
2022-10-10 Werner Lemberg <[email protected]> |
| 7615 |
|
| 7616 |
[cff] Remove `FT_CONFIG_OPTION_NO_GLYPH_NAMES`. |
| 7617 |
|
| 7618 |
This ancient option stayed completely undocumented. Given that the 'cff' |
| 7619 |
driver requires the 'psnames' module, it makes no sense today to have this |
| 7620 |
macro. |
| 7621 |
|
| 7622 |
* src/cff/cffdrivr.c (cff_services), src/cff/cffobjs.c (cff_face_init): |
| 7623 |
Remove corresponding conditional code. |
| 7624 |
|
| 7625 |
2022-10-10 Werner Lemberg <[email protected]> |
| 7626 |
|
| 7627 |
Synchronize `ftoption.h` flavours. |
| 7628 |
|
| 7629 |
2022-10-10 Werner Lemberg <[email protected]> |
| 7630 |
|
| 7631 |
Minor comment changes. |
| 7632 |
|
| 7633 |
2022-10-05 Alexei Podtelezhnikov <[email protected]> |
| 7634 |
|
| 7635 |
Improve FT_Get_Name_Index docs and place it next to FT_Get_Glyph_Name. |
| 7636 |
|
| 7637 |
2022-10-04 Alexei Podtelezhnikov <[email protected]> |
| 7638 |
|
| 7639 |
[autofit] Reset the face charmap directly. |
| 7640 |
|
| 7641 |
There is no need to validate the original charmap in `FT_Set_Charmap`. |
| 7642 |
It can be reset directly. |
| 7643 |
|
| 7644 |
* src/autofit/afglobal.c (af_face_globals_compute_style_coverage): |
| 7645 |
Use direct assignment. |
| 7646 |
* src/autofit/af{latin,cjk,indic}.c (af_latin_metrics_init): Ditto. |
| 7647 |
|
| 7648 |
2022-10-04 Alexei Podtelezhnikov <[email protected]> |
| 7649 |
|
| 7650 |
* src/type1/t1afm.c (T1_Read_PFM): Set charmaps directly. |
| 7651 |
|
| 7652 |
As with the previous commit, we can avoid the validation checks |
| 7653 |
of `FT_Set_Charmap` and set it directly when choosing from the |
| 7654 |
available list. |
| 7655 |
|
| 7656 |
2022-10-03 Alexei Podtelezhnikov <[email protected]> |
| 7657 |
|
| 7658 |
* src/cache/ftccmap.c (FTC_CMapCache_Lookup): Avoid `FT_Set_Charmap`. |
| 7659 |
|
| 7660 |
Set charmap aggressively without all validations of `FT_Set_Charmap` |
| 7661 |
because we take it from the available array and only temporarily. |
| 7662 |
Even CMap Format 14 will gracefully return 0. |
| 7663 |
|
| 7664 |
2022-10-03 Alexei Podtelezhnikov <[email protected]> |
| 7665 |
|
| 7666 |
* src/cache/ftcbasic.c (ftc_basic_family_get_count): Remove redundancy. |
| 7667 |
|
| 7668 |
2022-09-30 Werner Lemberg <[email protected]> |
| 7669 |
|
| 7670 |
* src/psaux/pshints.c (cf2_hintmap_insertHint): Fix midpoint computation. |
| 7671 |
|
| 7672 |
Replace '(start + end) / 2' with 'start + (end - start) / 2' to avoid |
| 7673 |
overflow. |
| 7674 |
|
| 7675 |
Fixes #1180. |
| 7676 |
|
| 7677 |
2022-09-30 Werner Lemberg <[email protected]> |
| 7678 |
|
| 7679 |
* src/psaux/pshints.c (cf2_hintmap_build): Improve debugging output. |
| 7680 |
|
| 7681 |
2022-09-29 mlugg <[email protected]> |
| 7682 |
|
| 7683 |
[truetype] Fix undefined pointer arithmetic. |
| 7684 |
|
| 7685 |
* src/truetype/ttgxvar.c (tt_var_get_item_delta, ft_var_load_mvar): Use |
| 7686 |
`FT_OFFSET`. |
| 7687 |
|
| 7688 |
2022-09-29 Alexei Podtelezhnikov <[email protected]> |
| 7689 |
|
| 7690 |
* src/sfnt/ttsbit.c (tt_face_load_strike_metrics): Use lighter FT_DivFix. |
| 7691 |
|
| 7692 |
2022-09-29 Ali Chraghi <[email protected]> |
| 7693 |
|
| 7694 |
[base] FT_Attach_Stream: Make `parameters` argument constant. |
| 7695 |
|
| 7696 |
2022-09-29 Azamat Hackimov <[email protected]> |
| 7697 |
|
| 7698 |
* src/tools/*.py: Migrate to Python 3. |
| 7699 |
|
| 7700 |
Fixes #1185, closes !205. Formatting changes according to PEP8. |
| 7701 |
|
| 7702 |
2022-09-27 Dominik Röttsches <[email protected]> |
| 7703 |
|
| 7704 |
[sfnt] Guard access in 'COLR' table when requesting child table pointer. |
| 7705 |
|
| 7706 |
* src/sfnt/ttcolr.c (tt_face_get_colorline_stops, read_paint): Tighten |
| 7707 |
pointer bounds checks. |
| 7708 |
(get_child_table_pointer): Check whether incoming pointer `p` lies within |
| 7709 |
the 'COLR' table. |
| 7710 |
|
| 7711 |
Reported as |
| 7712 |
|
| 7713 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=51816 |
| 7714 |
|
| 7715 |
2022-09-27 Ben Wagner <[email protected]> |
| 7716 |
|
| 7717 |
[sfnt] Add SVG document bounds checking. |
| 7718 |
|
| 7719 |
Add a check that the document content is actually contained within the |
| 7720 |
`SVG ` table. Without this check a malformed font may claim arbitrary |
| 7721 |
memory as its document content. |
| 7722 |
|
| 7723 |
* src/sfnt/ttsvg.c (tt_face_load_svg): Take `numEntries` into account when |
| 7724 |
testing 'documentRecord' extents. |
| 7725 |
(find_doc): Rename `stream` to `document_records` for clarity. |
| 7726 |
(tt_face_load_svg_doc): Split `doc` from `doc_list` pointer for clarity. |
| 7727 |
Test that the document content is contained within the table. |
| 7728 |
Ensure minimum length of document before testing for gzip format. |
| 7729 |
|
| 7730 |
Reported as |
| 7731 |
|
| 7732 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=51812 |
| 7733 |
|
| 7734 |
2022-09-23 Alexei Podtelezhnikov <[email protected]> |
| 7735 |
|
| 7736 |
[base] Clean up the bitmap flow control. |
| 7737 |
|
| 7738 |
* src/base/ftbitmap.c (FT_Bitmap_Copy): Flip the copy if its pitch |
| 7739 |
is trully opposite, zero is not a positive value. |
| 7740 |
(FT_Bitmap_Convert): Set negative pitch as needed, accept negative |
| 7741 |
alignment values. |
| 7742 |
|
| 7743 |
2022-09-22 Alexei Podtelezhnikov <[email protected]> |
| 7744 |
|
| 7745 |
[base] Discard and recreate bitmaps for copying and converting. |
| 7746 |
|
| 7747 |
Reusing target bitmaps for copying and converting is permitted. It is, |
| 7748 |
however, pointless to preserve their content before overwriting. Free- |
| 7749 |
malloc might be faster than realloc. |
| 7750 |
|
| 7751 |
* src/base/ftbitmap.c (FT_Bitmap_Copy, FT_Bitmap_Convert): Free |
| 7752 |
an old buffer and create a new one. |
| 7753 |
|
| 7754 |
2022-09-16 Dominik Röttsches <[email protected]> |
| 7755 |
|
| 7756 |
Reject 'COLR' table if version is 1 but header too small. |
| 7757 |
|
| 7758 |
* src/sfnt/ttcolr.c (tt_face_load_colr): If the version is determined to |
| 7759 |
be 1, then the table size has to be at least the size of the v1 header. |
| 7760 |
Also, for peeking the number of base glyphs and entries in the layer list, |
| 7761 |
ensure that the table is sufficiently long. |
| 7762 |
|
| 7763 |
Fixes #1179. Original patch by Sergey Temnikov. |
| 7764 |
|
| 7765 |
2022-09-15 Werner Lemberg <[email protected]> |
| 7766 |
|
| 7767 |
* src/otvalid/otvgsub.c (otv_SingleSubst_validate): Fix format 1 handling. |
| 7768 |
|
| 7769 |
Fixes #1181. |
| 7770 |
|
| 7771 |
2022-09-06 Dominik Röttsches <[email protected]> |
| 7772 |
|
| 7773 |
[truetype] Reject 'fvar' loading when `num_instances` is too small. |
| 7774 |
|
| 7775 |
* src/truetype/ttgxvar.c (TT_Get_MM_Var): Reject retrieving master when |
| 7776 |
'fvar' values locally do not match with sanitized values from initialization |
| 7777 |
at `sfnt_init_face` time. |
| 7778 |
|
| 7779 |
Reported as |
| 7780 |
|
| 7781 |
https://bugs.chromium.org/p/chromium/issues/detail?id=1360295 |
| 7782 |
|
| 7783 |
2022-09-05 Dominik Röttsches <[email protected]> |
| 7784 |
|
| 7785 |
[sfnt] Handle variable `COLR` v1 fonts without delta set index map |
| 7786 |
|
| 7787 |
Fixes #1178. |
| 7788 |
|
| 7789 |
* src/sfnt/ttcolr.c (get_deltas_for_var_index_base): Set outer index to |
| 7790 |
0 and inner index to the delta index when retrieving deltas if the |
| 7791 |
`COLR` table has no delta set index map. |
| 7792 |
|
| 7793 |
2022-09-05 Dominik Röttsches <[email protected]> |
| 7794 |
|
| 7795 |
[sfnt] Pointer sanity checks before reading layer info in 'COLR' v0 |
| 7796 |
|
| 7797 |
* src/sfnt/ttcolr.c (tt_face_get_colr_layer): Check that the pointer to |
| 7798 |
read from is within the 'COLR' table. |
| 7799 |
|
| 7800 |
Reported as |
| 7801 |
|
| 7802 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50633 |
| 7803 |
|
| 7804 |
2022-09-05 Werner Lemberg <[email protected]> |
| 7805 |
|
| 7806 |
[autofit] Minor fix. |
| 7807 |
|
| 7808 |
* src/autofit/afglobal.c (af_face_globals_compute_style_coverage): Avoid |
| 7809 |
compiler warning. |
| 7810 |
|
| 7811 |
2022-09-05 Dominik Röttsches <[email protected]> |
| 7812 |
|
| 7813 |
[sfnt] Don't require 'gvar' table to support variation fonts. |
| 7814 |
|
| 7815 |
Fixes #1172. |
| 7816 |
|
| 7817 |
* src/sfnt/sfobjs.c (sfnt_load_face): Tag font as Multiple Masters font if |
| 7818 |
`fvar` is present; do not require other tables to be present. |
| 7819 |
|
| 7820 |
* src/truetype/ttgxvar.c (tt_set_mm_blend): Allow for a missing 'gvar' table |
| 7821 |
when setting variation coordinates. However, if a 'gvar' table is actually |
| 7822 |
present, do perform a sanity check and fail on malformedness. |
| 7823 |
(TT_Get_MM_Var): Don't assume 'fvar' needs 'gvar' or 'CFF2 tables in all |
| 7824 |
cases, which is an overly tight check. |
| 7825 |
|
| 7826 |
2022-08-27 Alexei Podtelezhnikov <[email protected]> |
| 7827 |
|
| 7828 |
* src/base/ftver.rc: Explicitly use UTF-16. |
| 7829 |
|
| 7830 |
Fixes #1177 to avoid mistranslation and other problems. |
| 7831 |
|
| 7832 |
2022-08-26 Dominik Röttsches <[email protected]> |
| 7833 |
|
| 7834 |
[sfnt] Avoid undefined shifts in `COLR` v1 color line retrieval |
| 7835 |
|
| 7836 |
* src/sfnt/ttcolr.c (tt_face_get_colorline_stops): Disambiguate shift |
| 7837 |
behavior by using multiplication using macros from ftcalc.h. |
| 7838 |
|
| 7839 |
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50573 |
| 7840 |
|
| 7841 |
2022-08-21 Sean Farrell <[email protected]> |
| 7842 |
|
| 7843 |
CMakeLists.txt (FT_ENABLE_ERROR_STRINGS): New configuration option. |
| 7844 |
|
| 7845 |
This option uncomments FreeType configuration macro |
| 7846 |
`FT_CONFIG_OPTION_ERROR_STRINGS` to make function `FT_Error_String` return |
| 7847 |
meaningful error strings. |
| 7848 |
|
| 7849 |
This option is off by default. |
| 7850 |
|
| 7851 |
2022-08-21 Chris Liddell <[email protected]> |
| 7852 |
|
| 7853 |
[base, type1] Better handling of out-of-memory situations. |
| 7854 |
|
| 7855 |
This follows similar code in `cff_slot_done`. |
| 7856 |
|
| 7857 |
* src/base/ftobjs.c (ft_glyphslot_done), src/type1/t1objs.c |
| 7858 |
(T1_GlyphSlot_Done): Check `internal` pointer. |
| 7859 |
|
| 7860 |
The Type1 problems was reported as |
| 7861 |
|
| 7862 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50057. |
| 7863 |
|
| 7864 |
2022-08-06 Tim-Philipp Müller <[email protected]> |
| 7865 |
|
| 7866 |
ci: bump windows image and use newer runner and vs2019 |
| 7867 |
|
| 7868 |
The old 1809 runner will be decommissioned at some point. |
| 7869 |
|
| 7870 |
2022-08-04 @udoudou <> |
| 7871 |
|
| 7872 |
* src/cache/ftcmanag.c (FTC_Manager_New): Initialize `cur_weight`. |
| 7873 |
|
| 7874 |
See !192. |
| 7875 |
|
| 7876 |
2022-08-02 Alexei Podtelezhnikov <[email protected]> |
| 7877 |
|
| 7878 |
* src/sfnt/ttload.c: Trace formatting updates. |
| 7879 |
|
| 7880 |
2022-08-02 Alexei Podtelezhnikov <[email protected]> |
| 7881 |
|
| 7882 |
* src/psaux/psobjs.c (ps_table_release): Remove redundant casting. |
| 7883 |
|
| 7884 |
2022-08-02 Alexei Podtelezhnikov <[email protected]> |
| 7885 |
|
| 7886 |
* src/base/ftobjs.c (Mac_Read_sfnt_Resource): Reduce casting. |
| 7887 |
|
| 7888 |
2022-08-02 Alexei Podtelezhnikov <[email protected]> |
| 7889 |
|
| 7890 |
[cache] Remove some casts, clean up tracing. |
| 7891 |
|
| 7892 |
* src/cache/ftcbasic.c (FTC_ImageCache_Lookup, FTC_SBitCache_Lookup): |
| 7893 |
Clean up tracing types. |
| 7894 |
* src/cache/ftccache.c (ftc_node_destroy): Ditto. |
| 7895 |
* src/cache/ftcmanag.c (FTC_Manager_Check): Ditto. |
| 7896 |
(FTC_Manager_Check, FTC_Node_Unref): Remove a cast. |
| 7897 |
* src/cache/ftccmap.c (FTC_CMapCache_Lookup): Ditto. |
| 7898 |
|
| 7899 |
2022-08-01 Alexei Podtelezhnikov <[email protected]> |
| 7900 |
|
| 7901 |
[autofit] Updated to reduce casting (cont'd). |
| 7902 |
|
| 7903 |
* src/autofit/afmodule.h (AF_ModuleRec): Change `default_script` type. |
| 7904 |
* src/autofit/afglobal.c (af_face_globals_compute_style_coverage): |
| 7905 |
Remove casting. |
| 7906 |
* src/autofit/afmodule.c (af_property_{set,get}): Updated accordingly. |
| 7907 |
|
| 7908 |
2022-08-01 Alexei Podtelezhnikov <[email protected]> |
| 7909 |
|
| 7910 |
[autofit] Updated to reduce casting. |
| 7911 |
|
| 7912 |
* src/autofit/afglobal.h (AF_FaceGlobalsRec): Change `glyph_count` type. |
| 7913 |
* src/autofit/afglobal.c (af_face_globals_compute_style_coverage, |
| 7914 |
af_face_globals_get_metrics, af_face_globals_is_digit, |
| 7915 |
af_face_globals_new): Changed local types and updated accordingly. |
| 7916 |
* src/autofit/aflatin.c (af_latin_metrics_init_blues): Ditto. |
| 7917 |
|
| 7918 |
2022-08-01 Alexei Podtelezhnikov <[email protected]> |
| 7919 |
|
| 7920 |
[psaux] Remove unused structure field. |
| 7921 |
|
| 7922 |
* include/freetype/internal/psaux.h (PS_TableRec): Remove `num_elems`. |
| 7923 |
* src/psaux/psobjs.c (ps_table_new): Remoove its initialization. |
| 7924 |
|
| 7925 |
2022-07-30 Dominik Röttsches <[email protected]> |
| 7926 |
|
| 7927 |
[sfnt] Implement VarClipBox. |
| 7928 |
|
| 7929 |
* src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Depending on the |
| 7930 |
format, read `var_index_base`, then retrieve and apply scaled deltas. |
| 7931 |
|
| 7932 |
2022-07-30 Dominik Röttsches <[email protected]> |
| 7933 |
|
| 7934 |
[sfnt] Fix typo in clip box computation. |
| 7935 |
|
| 7936 |
* src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Use appropriate |
| 7937 |
scale factor for `yMin` and `yMax`. |
| 7938 |
|
| 7939 |
2022-07-30 Alexei Podtelezhnikov <[email protected]> |
| 7940 |
|
| 7941 |
[autofit] Use unsigned accounting for hints. |
| 7942 |
|
| 7943 |
* src/autofit/afhints.h (AF_AxisHintsRec): Use unsigned types. |
| 7944 |
|
| 7945 |
* src/autofit/afhints.c (af_axis_hints_new_{segment,edge}, |
| 7946 |
af_glyph_hints_get_num_segments, af_glyph_hints_get_segment_offset): |
| 7947 |
Updated accordingly. |
| 7948 |
* src/autofit/aflatin.c (af_cjk_hints_compute_edges): Ditto. |
| 7949 |
* src/autofit/afcjk.c (af_cjk_hints_compute_edges): Ditto. |
| 7950 |
|
| 7951 |
2022-07-30 Alexei Podtelezhnikov <[email protected]> |
| 7952 |
|
| 7953 |
* src/autofit/afhints.h: Remove dead code. |
| 7954 |
|
| 7955 |
2022-07-29 Werner Lemberg <[email protected]> |
| 7956 |
|
| 7957 |
* src/base/ftglyph.c (FT_Get_Glyph): Set `*aglyph` to NULL in case of error. |
| 7958 |
|
| 7959 |
2022-07-29 Werner Lemberg <[email protected]> |
| 7960 |
|
| 7961 |
Fix compilation if `TT_CONFIG_OPTION_GX_VAR_SUPPORT` is not set. |
| 7962 |
|
| 7963 |
* src/sfnt/ttcolr.c: Protect relevant code with |
| 7964 |
`TT_CONFIG_OPTION_GX_VAR_SUPPORT`. |
| 7965 |
|
| 7966 |
2022-07-29 Werner Lemberg <[email protected]> |
| 7967 |
|
| 7968 |
Fix clang14 compiler warnings. |
| 7969 |
|
| 7970 |
* include/freetype/internal/ftstream.h (FT_GET_SHORT_LE, FT_GET_USHORT_LE): |
| 7971 |
Fix type. |
| 7972 |
|
| 7973 |
* src/sfnt/ttcolr.c (get_deltas_for_var_index_base): Always return boolean |
| 7974 |
value. |
| 7975 |
(tt_face_get_colorline_stops): Fix type of `var_index_base`. |
| 7976 |
|
| 7977 |
2022-07-26 Alexei Podtelezhnikov <[email protected]> |
| 7978 |
|
| 7979 |
[pfr] Fortify the kerning code. |
| 7980 |
|
| 7981 |
Any array index must be strictly less then the array size. Therefore, |
| 7982 |
we must reject indexes that are equal to the array size. Alternatively, |
| 7983 |
we should move the bounds check before the index decrement but that |
| 7984 |
would be confusing. |
| 7985 |
|
| 7986 |
In addition, it is ok to decrement zero (.notdef) and get UINT_MAX, |
| 7987 |
which is then automatically rejected in the bounds check. |
| 7988 |
|
| 7989 |
* src/pfr/pfrobjs.c (pfr_face_get_kerning): Fix the bounds checking. |
| 7990 |
|
| 7991 |
2022-07-26 Werner Lemberg <[email protected]> |
| 7992 |
|
| 7993 |
[pfr] Add some safety guards. |
| 7994 |
|
| 7995 |
* src/pfr/pfrload.c (pfr_phy_font_load): Check resolutions and number of |
| 7996 |
characters. |
| 7997 |
|
| 7998 |
Fixes #1174. |
| 7999 |
|
| 8000 |
2022-07-26 Werner Lemberg <[email protected]> |
| 8001 |
|
| 8002 |
* src/pfr/*.c: Trivial improvements and formatting. |
| 8003 |
|
| 8004 |
2022-07-24 Werner Lemberg <[email protected]> |
| 8005 |
|
| 8006 |
* configure: s/egrep/grep -E/ |
| 8007 |
|
| 8008 |
`egrep` is deprecated. |
| 8009 |
|
| 8010 |
2022-07-23 Ben Wagner <[email protected]> |
| 8011 |
|
| 8012 |
[base] Build outlines in amortized constant time. |
| 8013 |
|
| 8014 |
When resizing the loader's points and contours, resize them to at least 1.5 |
| 8015 |
times their current size. The code currently only reserves as much space as |
| 8016 |
is currently required, leading to O(n^2) runtime when adding points one at a |
| 8017 |
time. |
| 8018 |
|
| 8019 |
This change does not attempt to ever shrink the loader's point and contour |
| 8020 |
storage since this was not attempted previously either. The 1.5 multiple |
| 8021 |
was chosen as a trade-off between potentially unused space and the runtime. |
| 8022 |
|
| 8023 |
* src/base/ftgloader.c (FT_GlyphLoader_CheckPoints): Implement it. |
| 8024 |
|
| 8025 |
Fixes #1173. |
| 8026 |
|
| 8027 |
2022-07-09 Dominik Röttsches <[email protected]> |
| 8028 |
|
| 8029 |
[sfnt] Support variable 'COLR' v1 `PaintVarSkew*`. |
| 8030 |
|
| 8031 |
* src/sfnt/ttcolr.c (FT_PaintFormat_Internal): New enumeration values |
| 8032 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_SKEW`, |
| 8033 |
`FT_COLR_PAINTFORMAT_INTERNAL_SKEW_CENTER`, and |
| 8034 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_SKEW_CENTER`. |
| 8035 |
(read_paint): Handle new enumeration values. |
| 8036 |
|
| 8037 |
2022-07-09 Dominik Röttsches <[email protected]> |
| 8038 |
|
| 8039 |
[sfnt] Support variable 'COLR' v1 `PaintVarRotate*`. |
| 8040 |
|
| 8041 |
* src/sfnt/ttcolr.c (FT_PaintFormat_Internal): New enumeration values |
| 8042 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_ROTATE` and |
| 8043 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_ROTATE_CENTER`. |
| 8044 |
(read_paint): Handle new enumeration values. |
| 8045 |
|
| 8046 |
2022-07-09 Dominik Röttsches <[email protected]> |
| 8047 |
|
| 8048 |
[sfnt] Support 'COLR' v1 variable `PaintVarScale*`. |
| 8049 |
|
| 8050 |
* src/sfnt/ttcolr.c: (FT_PaintFormatInternal): New enumeration values |
| 8051 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_SCALE`, |
| 8052 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_SCALE_CENTER`, |
| 8053 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_SCALE_UNIFORM`, and |
| 8054 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_SCALE_UNIFORM_CENTER`. |
| 8055 |
(read_paint): Handle new enumeration values. |
| 8056 |
|
| 8057 |
2022-07-09 Dominik Röttsches <[email protected]> |
| 8058 |
|
| 8059 |
[sfnt] Support for 'COLR' v1 variable translate. |
| 8060 |
|
| 8061 |
* src/sfnt/ttcolr.c (FT_PaintFormat_Internal): New enumeration value |
| 8062 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_TRANSLATE`. |
| 8063 |
(read_paint): Handle new enumeration value. |
| 8064 |
|
| 8065 |
2022-07-09 Dominik Röttsches <[email protected]> |
| 8066 |
|
| 8067 |
[sfnt] Support for 'COLR' v1 variable transforms. |
| 8068 |
|
| 8069 |
* src/sfnt/ttcolr.c (FT_PaintFormat_Internal): New enumeration value |
| 8070 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_TRANSFORM`. |
| 8071 |
(read_paint): Handle new enumeration value. |
| 8072 |
|
| 8073 |
2022-07-09 Dominik Röttsches <[email protected]> |
| 8074 |
|
| 8075 |
[sfnt] Deltas for 'COLR' v1 gradient coordinates. |
| 8076 |
|
| 8077 |
* src/sfnt/ttcolr.c (read_paint) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Read and |
| 8078 |
apply deltas to radial, linear, and sweep gradient coordinates such as 'p0', |
| 8079 |
'p1', 'p2', 'center', 'radii', and 'angles'. |
| 8080 |
|
| 8081 |
2022-07-08 Dominik Röttsches <[email protected]> |
| 8082 |
|
| 8083 |
[sfnt] Support variable 'COLR' v1 color lines. |
| 8084 |
|
| 8085 |
* include/freetype/ftcolor.h (FT_ColorStopIterator): Add field |
| 8086 |
`read_variable` to indicate whether a variation index base should be read. |
| 8087 |
|
| 8088 |
* src/sfnt/ttcolr.c: (FT_PaintFormat_Internal): New enumerations |
| 8089 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_LINEAR_GRADIENT` |
| 8090 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_RADIAL_GRADIENT`, and |
| 8091 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_SWEEP_GRADIENT`. |
| 8092 |
(read_color_line): New parameter `read_variable`; update callers. |
| 8093 |
(read_paint): Handle new enumerations. |
| 8094 |
|
| 8095 |
2022-07-07 Dominik Röttsches <[email protected]> |
| 8096 |
|
| 8097 |
[sfnt] Apply variation deltas to `PaintVarSolid`. |
| 8098 |
|
| 8099 |
* src/sfnt/ttcolr.c (FT_PaintFormat_Internal_): New enumeration |
| 8100 |
`FT_COLR_PAINTFORMAT_INTERNAL_VAR_SOLID`. |
| 8101 |
|
| 8102 |
(get_deltas_for_var_index_base) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: New |
| 8103 |
function to retrieve an array of delta values, which will be used for most |
| 8104 |
of 'COLR' v1 variation formats (in follow-up commits). |
| 8105 |
|
| 8106 |
(read_paint): Add `face` parameter; update caller. |
| 8107 |
Handle `FT_COLR_PAINTFORMAT_INTERNAL_VAR_SOLID`. |
| 8108 |
|
| 8109 |
2022-07-07 Dominik Röttsches <[email protected]> |
| 8110 |
|
| 8111 |
[sfnt] Check safety of cast to `TT_Driver` before accessing member. |
| 8112 |
|
| 8113 |
* src/sfnt/ttcolr.c (VARIABLE_COLRV1_ENABLED): Access |
| 8114 |
`enable_variable_colrv1` only if driver class matches. |
| 8115 |
|
| 8116 |
2022-07-06 Stephen Holdaway <[email protected]> |
| 8117 |
|
| 8118 |
doc: Clarify description of `FT_Stream_IoFunc`. |
| 8119 |
|
| 8120 |
The existing documentation comments on `FT_Stream_IoFunc` hinted at the dual |
| 8121 |
seek/read behavior required for custom stream implementations to work, but |
| 8122 |
it didn't explicitly explain it. Without looking at the internals of |
| 8123 |
FreeType, it was easy for someone to assume their implementation should |
| 8124 |
handle both seek and read operations all the time. If this is done, you get |
| 8125 |
a variety of errors, but mostly just `Unknown_File_Format` (error code |
| 8126 |
0x02). |
| 8127 |
|
| 8128 |
2022-07-04 Dominik Röttsches <[email protected]> |
| 8129 |
|
| 8130 |
[sfnt] Load variation store for 'COLR' v1. |
| 8131 |
|
| 8132 |
* src/sfnt/ttcolr.c: Include `ttobjs.h` temporarily. |
| 8133 |
(VARIABLE_COLRV1_ENABLED): New temporary macro to detect whether variable |
| 8134 |
COLRv1 is enabled. |
| 8135 |
(Colr): New fields `var_store` and `delta_set_idx_map`. |
| 8136 |
(tt_face_load_colr, tt_face_free_colr) [VARIABLE_COLRV1_ENABLED]: Load and |
| 8137 |
free variation store data using the functions from the Multiple Masters |
| 8138 |
service. |
| 8139 |
|
| 8140 |
2022-07-03 Chris Liddell <[email protected]> |
| 8141 |
|
| 8142 |
[base] Improve error handling in `FT_GlyphLoader_CheckPoints`. |
| 8143 |
|
| 8144 |
If `FT_GlyphLoader_CreateExtra` returns an error (and a couple of other |
| 8145 |
places), `FT_GlyphLoader_CheckPoints` would propagate the error immediately, |
| 8146 |
rather than cleaning up the partially set up `FT_GlyphLoader`. As a |
| 8147 |
consequence, a subsequent attempt to create a glyph could result in a crash. |
| 8148 |
|
| 8149 |
* src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Ensure all the error |
| 8150 |
conditions exits are consistent, eventually calling `FT_GlyphLoader_Reset`. |
| 8151 |
|
| 8152 |
2022-07-03 Thomas Sondergaard <[email protected]> |
| 8153 |
|
| 8154 |
CMakeLists.txt: Provide both 'freetype' and 'Freetype::Freetype' targets. |
| 8155 |
|
| 8156 |
FreeType can be located by consuming projects that use |
| 8157 |
`find_package(Freetype)` either via the old `MODULE` path (which uses |
| 8158 |
`FindFreetype.cmake` supplied by CMake), or via the new `CONFIG` path (which |
| 8159 |
uses `freetype-config.cmake` as supplied by this project). Up to this point |
| 8160 |
the CMake module has supplied the target `Freetype::Freetype` and the config |
| 8161 |
file provided by this project the target `freetype`. Now we supply both |
| 8162 |
`freetype` and `Freetype::Freetype` so that consuming projects can always |
| 8163 |
use the target `Freetype::Freetype` regardless of what path was taken by |
| 8164 |
`find_package(Freetype)`. |
| 8165 |
|
| 8166 |
Fixes #1165. |
| 8167 |
|
| 8168 |
2022-07-02 Werner Lemberg <[email protected]> |
| 8169 |
|
| 8170 |
include/freetype/ftmm.h: Improve documentation. |
| 8171 |
|
| 8172 |
2022-07-01 Dominik Röttsches <[email protected]> |
| 8173 |
|
| 8174 |
[base] Round values in `FT_MulAdd_Fix`. |
| 8175 |
|
| 8176 |
This avoids regressing Blink layout tests and makes `FT_MulAdd_Fix` delta |
| 8177 |
retrieval implementation consistent with the previous implementation, which |
| 8178 |
used `FT_fixedToInt` and included rounding. |
| 8179 |
|
| 8180 |
* src/base/ftcalc.c (FT_MulAdd_Fix): Implement it. |
| 8181 |
Also fix remaining `temp` initialization compilation issue. |
| 8182 |
|
| 8183 |
Fixes #1169. |
| 8184 |
|
| 8185 |
2022-07-01 Werner Lemberg <[email protected]> |
| 8186 |
|
| 8187 |
Minor formatting. |
| 8188 |
|
| 8189 |
2022-06-30 Dominik Röttsches <[email protected]> |
| 8190 |
|
| 8191 |
Fix initialisation of temp variable in new FT_MulAddFix |
| 8192 |
|
| 8193 |
src/truetype/ttgxvar.c (FT_MulAddFix): Initialise `temp`. |
| 8194 |
|
| 8195 |
2022-06-29 Dominik Röttsches <[email protected]> |
| 8196 |
|
| 8197 |
[truetype] Perform variation store delta computation with 64-bit precision. |
| 8198 |
|
| 8199 |
* include/freetype/internal/ftmmtypes.h (FT_ItemVarDelta): Make type |
| 8200 |
explicitly 32-bit. |
| 8201 |
* include/freetype/internal/services/svmm.h |
| 8202 |
(FT_Var_Get_Item_Delta_Func): Change return type to `FT_ItemVarDelta` |
| 8203 |
* truetype/ttgxvar.h (tt_var_get_item_delta): Change return type to |
| 8204 |
`FT_ItemVarDelta`. |
| 8205 |
* truetype/ttgxvar.c (tt_var_get_item_delta): Store scalars and deltas |
| 8206 |
to intermediate array, perform computation using new method |
| 8207 |
`FT_MulAddFix`. |
| 8208 |
|
| 8209 |
2022-06-29 Dominik Röttsches <[email protected]> |
| 8210 |
|
| 8211 |
New function `FT_MulAddFix` to compute the sum of fixed-point products. |
| 8212 |
|
| 8213 |
This function, based on the code of `FT_MulFix`, uses 64-bit precision |
| 8214 |
internally for intermediate computations. |
| 8215 |
|
| 8216 |
* include/freetype/internal/ftcalc.h, base/ftcalc.c (FT_MulAddFix): |
| 8217 |
Implement it. |
| 8218 |
|
| 8219 |
2022-06-22 Werner Lemberg <[email protected]> |
| 8220 |
|
| 8221 |
CMakeLists.txt: Move inclusion of `FindPkgConfig` down. |
| 8222 |
|
| 8223 |
It must come after `CMAKE_TOOLCHAIN_FILE`. |
| 8224 |
|
| 8225 |
Fixes #1167. |
| 8226 |
|
| 8227 |
2022-06-22 Dominik Röttsches <[email protected]> |
| 8228 |
|
| 8229 |
[sfnt] Upgrade stop_offset to FT_Fixed from FT_F2Dot14 |
| 8230 |
|
| 8231 |
2022-06-21 Alexei Podtelezhnikov <[email protected]> |
| 8232 |
|
| 8233 |
* docs/CHANGES: Announce impending Infinality removal. |
| 8234 |
|
| 8235 |
2022-06-21 Alexei Podtelezhnikov <[email protected]> |
| 8236 |
|
| 8237 |
* ttgload.c (TT_Process_Composite_Glyph): Fix a signedness warning. |
| 8238 |
|
| 8239 |
2022-06-21 Werner Lemberg <[email protected]> |
| 8240 |
|
| 8241 |
s/fixed point/fixed-point/ |
| 8242 |
|
| 8243 |
2022-06-21 Werner Lemberg <[email protected]> |
| 8244 |
|
| 8245 |
.gitlab-ci.yml: Correctly upgrade `meson`. |
| 8246 |
|
| 8247 |
2022-06-21 Dominik Röttsches <[email protected]> |
| 8248 |
|
| 8249 |
Proposal: Feature control for variable COLRv1 |
| 8250 |
|
| 8251 |
* include/freetype/ftdriver.h (variable-color-v1 property): Add documentation |
| 8252 |
for variable-colr-v1 property. |
| 8253 |
* src/truetype/ttdriver.c (tt_property_set): Ingest variable-control property |
| 8254 |
when called, set to enable_variable_colrv1 driver flag. |
| 8255 |
* src/truetype/ttobjs.h (TT_DriverRec): Add enable_variable_colrv1 flag. |
| 8256 |
|
| 8257 |
2022-06-21 Xavier Claessens <[email protected]> |
| 8258 |
|
| 8259 |
[meson] Disable FreeType in HarfBuzz fallback. |
| 8260 |
|
| 8261 |
This avoids cyclic subproject configuration when the 'harfbuzz' feature is |
| 8262 |
enabled, or `--wrap-mode=forcefallback` is used, but HarfBuzz is built as a |
| 8263 |
subproject. HarfBuzz does the same and disables HarfBuzz support when |
| 8264 |
configuring FreeType as a subproject. |
| 8265 |
|
| 8266 |
* meson.build (harfbuzz_dep): Implement it. |
| 8267 |
|
| 8268 |
* subprojects/harfbuzz.wrap: New file. |
| 8269 |
|
| 8270 |
* .gitlab-ci.yml [windows meson]: Use latest version of the meson 0.59 |
| 8271 |
series, which has a necessary bug fix to make CI work. |
| 8272 |
|
| 8273 |
2022-06-19 Alexei Podtelezhnikov <[email protected]> |
| 8274 |
|
| 8275 |
[truetype] Clean up phantom point accounting. |
| 8276 |
|
| 8277 |
This formalizes that the phantom points appended in the outline |
| 8278 |
do not increase its point count, nor are they tagged or included |
| 8279 |
in any additional contours. Only their coordinates are stored. |
| 8280 |
They are counted in the glyph zone, however. |
| 8281 |
|
| 8282 |
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Infer `n_points` |
| 8283 |
from the outline size plus four phantom points. |
| 8284 |
* src/truetype/ttgxvar.h (TT_Vary_Apply_Glyph_Deltas): Remove this |
| 8285 |
argument. |
| 8286 |
* src/truetype/ttgload.c (tt_prepare_zone): Add phantom four. |
| 8287 |
(TT_Process_Simple_Glyph, load_truetype_glyph): Update all callers. |
| 8288 |
|
| 8289 |
2022-06-19 Alexei Podtelezhnikov <[email protected]> |
| 8290 |
|
| 8291 |
[truetype/GX] Clean up phantom point adjustment. |
| 8292 |
|
| 8293 |
This moves phantom point and advance variation adjustment next to |
| 8294 |
calculations. The logic stays the same, HVAR and VVAR take priority. |
| 8295 |
|
| 8296 |
* src/truetype/ttgload.c (load_truetype_glyph): Move it from here... |
| 8297 |
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): ... to here |
| 8298 |
and check for HVAR and VVAR presence outside the main loop. |
| 8299 |
|
| 8300 |
2022-06-18 Ben Wagner <[email protected]> |
| 8301 |
|
| 8302 |
[stream] Fix reading s32 when long is s64 |
| 8303 |
|
| 8304 |
`FT_READ_LONG`, `FT_GET_LONG`, and related macros did not return |
| 8305 |
negative values when `long` is more than 32 bits. `FT_Stream_ReadULong` |
| 8306 |
would read four bytes into the LSB of an `FT_ULong` and return that. |
| 8307 |
Since this can never set the MSb of the `FT_ULong` when `FT_ULong` is |
| 8308 |
more than 32 bits the cast to `FT_Long` never resulted in a negative |
| 8309 |
value. |
| 8310 |
|
| 8311 |
Fix this by modifying `FT_Stream_Read*` to return a type of the same |
| 8312 |
size as the bytes it is reading and changing the `FT_READ_*` and |
| 8313 |
`FT_GET_*` macros to cast to the same type returned by `FT_Stream_Read*` |
| 8314 |
but with the correctly signed type (instead of casting to what is |
| 8315 |
assumed to be the type of `var` which will happen automatically anyway). |
| 8316 |
|
| 8317 |
There exist a few cases like with the `OFF3` variants where there isn't |
| 8318 |
generally a type with the correct size. `FT_PEEK_OFF3` works around this |
| 8319 |
loading the bytes into the three most significant bits and then doing a |
| 8320 |
signed shift down. `FT_NEXT_OFF3` also already worked correctly by |
| 8321 |
casting this signed value to another signed type. `FT_Stream_GetUOffset` |
| 8322 |
works correctly but one must be careful not to attempt to cast the |
| 8323 |
returned value to a signed type. Fortunately there is only |
| 8324 |
`FT_GET_UOFF3` and no `FT_GET_OFF3`. |
| 8325 |
|
| 8326 |
All of these cases are handled correctly when reading values through |
| 8327 |
`FT_Stream_ReadFields` since it generically computes the signed value |
| 8328 |
through an `FT_Int32`. This change is essentially doing the same for |
| 8329 |
these macros. |
| 8330 |
|
| 8331 |
* include/freetype/internal/ftstream.h (FT_NEXT_*, FT_GET_*, FT_READ*): |
| 8332 |
Update macros and return types to use fixed size types for fixed size |
| 8333 |
values. |
| 8334 |
|
| 8335 |
* src/base/ftstream.c (FT_StreamGet*, FT_StreamRead*): Dito. |
| 8336 |
|
| 8337 |
Issue: #1161 |
| 8338 |
|
| 8339 |
2022-06-17 Alexei Podtelezhnikov <[email protected]> |
| 8340 |
|
| 8341 |
[truetype/GX] Fix an old typo. |
| 8342 |
|
| 8343 |
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Vertical |
| 8344 |
advance is measured along y-coordinate. |
| 8345 |
|
| 8346 |
2022-06-16 Alexei Podtelezhnikov <[email protected]> |
| 8347 |
|
| 8348 |
[truetype/GX] Clean up advance adjustment (Brrr). |
| 8349 |
|
| 8350 |
* src/truetype/ttgload.c (load_truetype_glyph): Remove remaining code. |
| 8351 |
|
| 8352 |
2022-06-16 Ben Wagner <[email protected]> |
| 8353 |
|
| 8354 |
[type1] Directly search for eexec in private dict |
| 8355 |
|
| 8356 |
This code originally just searched for `eexec`. This was later modified |
| 8357 |
to check that the `eexec` found is valid (not in a string or comment). |
| 8358 |
This was done by searching for `eexec` as before and then, for each |
| 8359 |
`eexec` found, searching from the beginning using the correct parsing to |
| 8360 |
see if the `eexec` was still found. If the private dictionary is large |
| 8361 |
and contains many copies of `eexec` which are not valid, the initial |
| 8362 |
part of the private dictionary is scanned once for each, potentially |
| 8363 |
leading to n^2 parsing time. |
| 8364 |
|
| 8365 |
Instead of finding an initial `eexec` and then re-parsing to discover if |
| 8366 |
it is valid, drop the initial search for `eexec` and just parse to find |
| 8367 |
a valid `eexec`. This is strictly faster since the validation must |
| 8368 |
happen anyway and avoids restarting from the beginning each time an |
| 8369 |
`eexec` is found in the data. |
| 8370 |
|
| 8371 |
* src/type1/t1parse.c (T1_Get_Private_Dict): avoid n^2 parsing |
| 8372 |
|
| 8373 |
Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1328883 |
| 8374 |
|
| 8375 |
2022-06-16 Alexei Podtelezhnikov <[email protected]> |
| 8376 |
|
| 8377 |
[truetype/GX] Clean up advance adjustment. |
| 8378 |
|
| 8379 |
* src/truetype/ttgload.c (TT_Process_Simple_Glyph, load_truetype_glyph): |
| 8380 |
Move the advance adjustment from here... |
| 8381 |
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): ... to here and |
| 8382 |
simplify arguments. |
| 8383 |
* src/truetype/ttgxvar.h (TT_Vary_Apply_Glyph_Deltas): Update prototype |
| 8384 |
with fewer arguments. |
| 8385 |
|
| 8386 |
2022-06-14 Ben Wagner <[email protected]> |
| 8387 |
|
| 8388 |
[gzip] Handle inflate returning Z_NEED_DICT |
| 8389 |
|
| 8390 |
When `inflate` returns `Z_NEED_DICT` this is currently not reported as |
| 8391 |
an error and callers may assume that the decompression succeeded when it |
| 8392 |
did not. In particular, a compressed table in a woff file may not |
| 8393 |
actually be decompressed and written as expected, leaving the backing |
| 8394 |
memory for the expanded table uninitialized. |
| 8395 |
|
| 8396 |
* src/gzlip/ftgzip.c (FT_Gzip_Uncompress): treat `Z_NEED_DICT` as |
| 8397 |
indicating invalid data since there is no means to provide a dictionary. |
| 8398 |
|
| 8399 |
Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1335712 |
| 8400 |
|
| 8401 |
2022-06-13 Ben Wagner <[email protected]> |
| 8402 |
|
| 8403 |
[woff] Don't allocate table entries until needed |
| 8404 |
|
| 8405 |
* src/sfnt/sfwoff.c (woff_open_font): delay allocating space for the |
| 8406 |
table entries until they are actually written out with the data. |
| 8407 |
|
| 8408 |
2022-06-12 Alexei Podtelezhnikov <[email protected]> |
| 8409 |
|
| 8410 |
* src/sfnt/sfwoff2.c (woff2_open_font): Partial revert. |
| 8411 |
|
| 8412 |
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47981. |
| 8413 |
|
| 8414 |
2022-06-12 Alexei Podtelezhnikov <[email protected]> |
| 8415 |
|
| 8416 |
* src/lzw/ftzopen.c (ft_lzwstate_stack_grow): Cosmetic macro change. |
| 8417 |
|
| 8418 |
2022-06-11 Alexei Podtelezhnikov <[email protected]> |
| 8419 |
|
| 8420 |
[woff, woff2] Avoid buffer zeroing. |
| 8421 |
|
| 8422 |
* src/sfnt/sfwoff.c (woff_open_font): Use Q-macros. |
| 8423 |
* src/sfnt/sfwoff2.c: Ditto. |
| 8424 |
(reconstruct_font): Allocate table_entry on stack. |
| 8425 |
|
| 8426 |
2022-06-10 Alexei Podtelezhnikov <[email protected]> |
| 8427 |
|
| 8428 |
[smooth] Fix GCC LTO crashes on Windows. |
| 8429 |
|
| 8430 |
Fixes #1164 by using a volatile variable around `setjmp`. It is hard to |
| 8431 |
say how this fixes crashes related to certain link-time optimizations. |
| 8432 |
This does not decrease the rendering performance. |
| 8433 |
|
| 8434 |
* src/smooth/ftgrays.c (gray_convert_glyph_inner): Use volatile `error`. |
| 8435 |
|
| 8436 |
2022-06-09 bruvzg <@bruvzg> |
| 8437 |
|
| 8438 |
* src/smooth/ftgrays.c [FT_STATIC_RASTER]: Fix compilation. |
| 8439 |
|
| 8440 |
2022-06-06 Ben Wagner <[email protected]> |
| 8441 |
|
| 8442 |
[svg] Set linear advances when loading SVG glyphs |
| 8443 |
|
| 8444 |
* include/freetype/freetype.h (FT_GlyphSlotRec_): update doc |
| 8445 |
* src/cff/cffgload.c (cff_slot_load): do it |
| 8446 |
* src/truetype/ttgload.c (TT_Load_Glyph): do it |
| 8447 |
|
| 8448 |
Fixes: #1156 |
| 8449 |
|
| 8450 |
2022-06-01 Ben Wagner <[email protected]> |
| 8451 |
|
| 8452 |
[svg] Clear correct flags for doc ownership |
| 8453 |
|
| 8454 |
This issue was discovered with an SVG based font with some documents |
| 8455 |
compressed and other uncompressed. After loading the first compressed |
| 8456 |
document the ownership flag on the glyph slot was set to true but never |
| 8457 |
set to false. As a result after loading a compressed document a glyph |
| 8458 |
from an uncompressed document would load fine, but when this glyph slot |
| 8459 |
was cleared it would try to free its document resulting in a wild free. |
| 8460 |
|
| 8461 |
* src/base/ftobjs.c (ft_glyphslot_clear): clear correct flags |
| 8462 |
|
| 8463 |
Fixes: #1162 |
| 8464 |
|
| 8465 |
2022-06-01 Alexei Podtelezhnikov <[email protected]> |
| 8466 |
|
| 8467 |
[docs] Correct favicon. |
| 8468 |
|
| 8469 |
2022-06-01 Alexei Podtelezhnikov <[email protected]> |
| 8470 |
|
| 8471 |
[docs] Use hinted favicon. |
| 8472 |
|
| 8473 |
2022-05-27 Alexei Podtelezhnikov <[email protected]> |
| 8474 |
|
| 8475 |
[docs] Update favicon. |
| 8476 |
|
| 8477 |
2022-05-25 Behdad Esfahbod (بهداد اسفهبد) <[email protected]> |
| 8478 |
|
| 8479 |
* src/sfnt/ttmtx.c (tt_face_get_metrics): Apply variations unconditionally. |
| 8480 |
|
| 8481 |
This causes a speed-up of approx. 20% for getting advance widths. |
| 8482 |
|
| 8483 |
2022-05-23 Dominik Röttsches <[email protected]> |
| 8484 |
|
| 8485 |
[truetype] Support reading 32bit/16bit VarStore deltas |
| 8486 |
|
| 8487 |
* include/freetype/internal/ftmmtypes.h (FT_ItemVarDelta): Define type |
| 8488 |
to be used for delta arrays, upgrade to FT_long. |
| 8489 |
* src/truetype/ttgxvar.c: Adhere to long_words bit and read either |
| 8490 |
Short/Byte pairs or Long/Short pairs, as defined by spec. For better |
| 8491 |
readability, define macro for repetitive read code. |
| 8492 |
|
| 8493 |
2022-05-20 Dominik Röttsches <[email protected]> |
| 8494 |
|
| 8495 |
[truetype] Handle 0xFFFF special value inside delta retrieval function |
| 8496 |
|
| 8497 |
* truetype/ttgxvar.c (tt_hvadvance_adjust, tt_apply_mvar, |
| 8498 |
tt_var_get_item_delta): Remove special 0xFFFF handling in favor of less |
| 8499 |
redundant handling inside the tt_var_get_item_delta function, as it is |
| 8500 |
equivalent to returning a 0 delta. Avoids code-duplication checking for |
| 8501 |
special value 0xFFFF. |
| 8502 |
|
| 8503 |
2022-05-19 Dominik Röttsches <[email protected]> |
| 8504 |
|
| 8505 |
[truetype, snft] Add service methods for `DeltaSetIdxMap` and `VarStore`. |
| 8506 |
|
| 8507 |
This will be needed for 'COLR' v1 variation support. |
| 8508 |
|
| 8509 |
* src/truetype/ttgxvar.h (GX_ItemVarData, GX_AxisCoords, GX_VarRegion, |
| 8510 |
GX_VarItemStore, GX_DeltaSetIdxMap): Move structures to... |
| 8511 |
* include/freetype/internal/ftmmtypes.h: ... this new file. |
| 8512 |
|
| 8513 |
* include/freetype/internal/service/svmm.h (MultiMasters): Include |
| 8514 |
`ftmmtypes.h`. |
| 8515 |
(FT_Var_Load_Delta_Set_Idx_Map_Func, FT_Var_Load_Item_Var_Store_Func, |
| 8516 |
FT_Var_Get_Item_Delta_Func, FT_Var_Done_Item_Var_Store_Func, |
| 8517 |
FT_Var_Done_Delta_Set_Idx_Map_Func): New function typedefs. |
| 8518 |
(MultiMasters): Add them. |
| 8519 |
(FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated. |
| 8520 |
|
| 8521 |
* src/cff/cffdrivr.c (cff_load_item_variation_store, |
| 8522 |
cff_load_delta_set_index_mapping, cff_get_item_delta, |
| 8523 |
cff_done_item_variation_store, cff_done_delta_set_index_map): New wrapper |
| 8524 |
methods calling into mm service. |
| 8525 |
(cff_service_multi_masters): Updated. |
| 8526 |
|
| 8527 |
* src/truetype/ttgxvar.c (ft_var_load_item_variation_store, |
| 8528 |
ft_var_load_delta_set_index_mapping, ft_var_get_item_delta, |
| 8529 |
ft_var_done_item_variation_store, ft_var_done_delta_set_index_map): Renamed |
| 8530 |
to ... |
| 8531 |
(tt_var_load_item_variation_store, tt_var_load_delta_set_index_mapping, |
| 8532 |
tt_var_get_item_delta, tt_var_done_item_variation_store, |
| 8533 |
tt_var_done_delta_set_index_map): ... this for consistency. |
| 8534 |
Mark them as non-static. |
| 8535 |
* src/truetype/ttgxvar.h: Add corresponding prototypes. |
| 8536 |
|
| 8537 |
* src/truetype/ttdriver.c (tt_service_gx_multi_masters): Updated. |
| 8538 |
|
| 8539 |
* src/type1/t1driver.c (t1_service_multi_masters): Updated. |
| 8540 |
|
| 8541 |
2022-05-19 Dominik Röttsches <[email protected]> |
| 8542 |
|
| 8543 |
[truetype] Move deallocation of `DeltaSetIdxMap` into own function. |
| 8544 |
|
| 8545 |
This is a preparation for handling `DeltaSetIdxMap` and `VarStore` as a |
| 8546 |
FreeType service. |
| 8547 |
|
| 8548 |
* src/truetype/ttgxvar.c (ft_var_done_delta_set_index_map): New function. |
| 8549 |
(tt_done_blend): Use it. |
| 8550 |
|
| 8551 |
2022-05-18 Werner Lemberg <[email protected]> |
| 8552 |
|
| 8553 |
* builds/toplevel.mk (do-dist): Don't remove meson wrap files. |
| 8554 |
|
| 8555 |
Fixes #1157. |
| 8556 |
|
| 8557 |
2022-05-18 Werner Lemberg <[email protected]> |
| 8558 |
|
| 8559 |
* subprojects/zlib.wrap: Update to zlib version 1.2.12. |
| 8560 |
|
| 8561 |
2022-05-18 Werner Lemberg <[email protected]> |
| 8562 |
|
| 8563 |
REAMDE: Mention that gitlab's 'download' button doesn't work. |
| 8564 |
|
| 8565 |
This is because the `git archive` command doesn't preserve submodules. |
| 8566 |
|
| 8567 |
Note that currently there is no support for disabling the 'download' button |
| 8568 |
in gitlab (https://gitlab.com/gitlab-org/gitlab/-/issues/17032). |
| 8569 |
|
| 8570 |
Fixes issue #1158. |
| 8571 |
|
| 8572 |
2022-05-11 Werner Lemberg <[email protected]> |
| 8573 |
|
| 8574 |
[truetype] Handle inner/outer index values 0xFFFF/0xFFFF. |
| 8575 |
|
| 8576 |
This was introduced in OpenType 1.8.4. |
| 8577 |
|
| 8578 |
* src/truetype/ttgxvar.c (ft_var_load_delta_set_index_mapping, |
| 8579 |
tt_hvadvance_adjust, ft_var_load_mvar, tt_apply_mvar): Handle special |
| 8580 |
inner/outer index values. |
| 8581 |
(ft_var_load_item_variation_store): Add test. |
| 8582 |
|
| 8583 |
Fixes #1154. |
| 8584 |
|
| 8585 |
2022-05-01 Werner Lemberg <[email protected]> |
| 8586 |
|
| 8587 |
* Version 2.12.1 released. |
| 8588 |
========================== |
| 8589 |
|
| 8590 |
Tag sources with `VER-2-12-1'. |
| 8591 |
|
| 8592 |
* docs/VERSION.TXT: Add entry for version 2.12.1. |
| 8593 |
* docs/CHANGES, docs/release: Updated. |
| 8594 |
|
| 8595 |
* README, src/base/ftver.rc, builds/windows/vc2010/index.html, |
| 8596 |
builds/windows/visualc/index.html, builds/windows/visualce/index.html, |
| 8597 |
builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html, |
| 8598 |
docs/freetype-config.1: s/2.12.0/2.12.1/, s/2120/2121/. |
| 8599 |
|
| 8600 |
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 1. |
| 8601 |
|
| 8602 |
* builds/unix/configure.raw (version_info): Set to 24:3:18. |
| 8603 |
* CMakeLists.txt (VERSION_PATCH): Set to 1. |
| 8604 |
|
| 8605 |
2022-04-30 Anuj Verma <[email protected]> |
| 8606 |
|
| 8607 |
[sdf] Do not throw errors for invisible glyphs. |
| 8608 |
|
| 8609 |
* src/sdf/ftsdfrend.c (ft_sdf_render, ft_bsdf_render): Return `FT_Err_Ok` if |
| 8610 |
width or height is zero, since some glyphs do not generate visible bitmaps. |
| 8611 |
|
| 8612 |
Fixes #1150. |
| 8613 |
|
| 8614 |
2022-04-30 Werner Lemberg <[email protected]> |
| 8615 |
|
| 8616 |
* src/sfnt/sfobjs.c (sfnt_load_face): Set `FT_FACE_FLAG_COLOR` for SVG fonts. |
| 8617 |
|
| 8618 |
Fixes #1151. |
| 8619 |
|
| 8620 |
2022-04-27 Brendan Shanks <[email protected]> |
| 8621 |
|
| 8622 |
autogen.sh: Fix building when freetype is itself a git submodule. |
| 8623 |
|
| 8624 |
There are situations where .git is not a directory, like when |
| 8625 |
freetype is a submodule in another repository. |
| 8626 |
|
| 8627 |
2022-04-26 Alexei Podtelezhnikov <[email protected]> |
| 8628 |
|
| 8629 |
[builds/windows] Simplify non-desktop UWP check. |
| 8630 |
|
| 8631 |
Fixes mingw compilation described in !159. |
| 8632 |
|
| 8633 |
* builds/windows/ftsystem.c: Do not use WINAPI_FAMILY_PARTITION macro. |
| 8634 |
|
| 8635 |
2022-04-25 Alexei Podtelezhnikov <[email protected]> |
| 8636 |
|
| 8637 |
[truetype] Reset IUP flags in `TT_RunIns`. |
| 8638 |
|
| 8639 |
Fixes #1148 by moving the flag initialization back, partly reverting |
| 8640 |
7809007a and fd03dcc1. Initializing these flags elsewhere skips 'cvt'. |
| 8641 |
|
| 8642 |
* src/truetype/ttinterp.c (TT_RunIns): Initialize the IUP flag here... |
| 8643 |
(TT_Run_Context): ... instead of here. |
| 8644 |
|
| 8645 |
2022-04-24 Xavier Claessens <[email protected]> |
| 8646 |
|
| 8647 |
[meson] Remove `default_library=both` from `default_options`. |
| 8648 |
|
| 8649 |
It is inconsistent with what all other Meson projects do. |
| 8650 |
|
| 8651 |
It also prevents static linking to FreeType when it is a subproject because |
| 8652 |
`default_options` in a subproject takes precedence on values set on the main |
| 8653 |
project. For example, building 'GStreamer' with `-Ddefault_library=static` |
| 8654 |
would still dynamically link on FreeType unless the user also sets |
| 8655 |
`-Dfreetype2:default_library=static`. |
| 8656 |
|
| 8657 |
* meson.build: Updated. |
| 8658 |
|
| 8659 |
* .gitlab-ci.yml: Retain `both` option for testing. |
| 8660 |
|
| 8661 |
2022-04-19 Werner Lemberg <[email protected]> |
| 8662 |
|
| 8663 |
* src/truetype/ttgload.c (TT_Process_Simple_Glyph): Integer overflow. |
| 8664 |
|
| 8665 |
Reported as |
| 8666 |
|
| 8667 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=46792 |
| 8668 |
|
| 8669 |
2022-04-16 Georg Brandl <[email protected]> |
| 8670 |
|
| 8671 |
* src/cff/cffgload.c (cff_slot_load) [FT_CONFIG_OPTION_SVG]: Fix segfault. |
| 8672 |
|
| 8673 |
This can happen if the function is called with `size` being `NULL`. |
| 8674 |
|
| 8675 |
Fixes #1147. |
| 8676 |
|
| 8677 |
2022-04-14 Steve Lhomme <[email protected]> |
| 8678 |
|
| 8679 |
.gitlab-ci.yml: Add a Universal Windows build target |
| 8680 |
|
| 8681 |
It's compiled for Windows 10 and up, ensuring UNICODE is set (default for UWP) |
| 8682 |
and selecting the proper WINAPI_FAMILY (WINAPI_FAMILY_APP). |
| 8683 |
|
| 8684 |
Do not try to run the UWP exe in the Docker as it doesn't work. |
| 8685 |
|
| 8686 |
2022-04-04 Ben Wagner <[email protected]> |
| 8687 |
|
| 8688 |
[sfnt] Correct FT_ColorStopIterator documentation. |
| 8689 |
|
| 8690 |
* include/freetype/ftcolor.h (FT_ColorStopIterator): the user should not |
| 8691 |
set `p` to NULL before calling `FT_Get_Colorline_Stops`. `p` and |
| 8692 |
`num_color_stops` are set by `FT_Get_Paint`. `p` and |
| 8693 |
`current_color_stop` are updated by `FT_Get_Colorline_Stops`. |
| 8694 |
|
| 8695 |
2022-04-01 Werner Lemberg <[email protected]> |
| 8696 |
|
| 8697 |
* builds/unix/configure.raw: Add option `--with-librsvg`. |
| 8698 |
|
| 8699 |
Since 'librsvg' is written in Rust, this option allows distributions to |
| 8700 |
avoid a dependency on the entire Rust toolchain to provide the FreeType demo |
| 8701 |
programs. |
| 8702 |
|
| 8703 |
Suggested by Lars Wendler in !156. |
| 8704 |
|
| 8705 |
2022-04-01 Werner Lemberg <[email protected]> |
| 8706 |
|
| 8707 |
* src/sfnt/sfwoff.c (reconstruct_glyf): Fix gcc 10 warning. |
| 8708 |
|
| 8709 |
2022-04-01 Werner Lemberg <[email protected]> |
| 8710 |
|
| 8711 |
[gzip] Update sources to zlib 1.2.12. |
| 8712 |
|
| 8713 |
2022-04-01 Eric Jing <@CPUcontrol> |
| 8714 |
|
| 8715 |
CMakeLists.txt: Fix `Info.plist` path. |
| 8716 |
|
| 8717 |
When building a framework using CMake with `add_subdirectory`, CMake must be |
| 8718 |
able to find `freetype-Info.plist` when configuring the framework |
| 8719 |
properties. |
| 8720 |
|
| 8721 |
Fixes #1145. |
| 8722 |
|
| 8723 |
2022-04-01 Werner Lemberg <[email protected]> |
| 8724 |
|
| 8725 |
Whitespace. |
| 8726 |
|
| 8727 |
2022-04-01 Ben Wagner <[email protected]> |
| 8728 |
|
| 8729 |
[truetype] Use SUB_LONG for component offset. |
| 8730 |
|
| 8731 |
* src/truetype/ttgload.c (TT_Process_Composite_Component): do it. |
| 8732 |
|
| 8733 |
Bug: https://crbug.com/1309429 |
| 8734 |
|
| 8735 |
2022-03-31 Werner Lemberg <[email protected]> |
| 8736 |
|
| 8737 |
CMakeList.txt: Update code to handle recent changes for `freetype.pc`. |
| 8738 |
|
| 8739 |
Fixes #1144. |
| 8740 |
|
| 8741 |
2022-03-31 Werner Lemberg <[email protected]> |
| 8742 |
|
| 8743 |
CMakeLists.txt: s/PKG_CONFIG/PKGCONFIG/, s/REQUIRED_/REQUIRES_/. |
| 8744 |
|
| 8745 |
2022-03-31 Werner Lemberg <[email protected]> |
| 8746 |
|
| 8747 |
* Version 2.12.0 released. |
| 8748 |
========================== |
| 8749 |
|
| 8750 |
Tag sources with `VER-2-12-0'. |
| 8751 |
|
| 8752 |
* docs/VERSION.TXT: Add entry for version 2.12.0. |
| 8753 |
* docs/CHANGES, docs/release: Updated. |
| 8754 |
|
| 8755 |
* README, src/base/ftver.rc, builds/windows/vc2010/index.html, |
| 8756 |
builds/windows/visualc/index.html, builds/windows/visualce/index.html, |
| 8757 |
builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html, |
| 8758 |
docs/freetype-config.1: s/2.11.1/2.12.0/, s/2111/2120/. |
| 8759 |
|
| 8760 |
* include/freetype/freetype.h (FREETYPE_MINOR): Set to 12. |
| 8761 |
(FREETYPE_PATCH): Set to 0. |
| 8762 |
|
| 8763 |
* builds/unix/configure.raw (version_info): Set to 24:2:18. |
| 8764 |
* CMakeLists.txt (VERSION_MINOR): Set to 12. |
| 8765 |
(VERSION_PATCH): Set to 0. |
| 8766 |
|
| 8767 |
* builds/toplevel.mk (do-dist): Generate `ChangeLog` entries for all commits |
| 8768 |
since version 2.11.0 (when we stopped creating this file manually). |
| 8769 |
|
| 8770 |
2022-03-31 Werner Lemberg <[email protected]> |
| 8771 |
|
| 8772 |
Fix clang++ warnings. |
| 8773 |
|
| 8774 |
* src/base/ftglyph.c (ft_svg_glyph_prepare), src/base/ftobj.c |
| 8775 |
(ft_glyphslot_init), src/cache/ftccmap.c (ftc_cmap_node_new), |
| 8776 |
src/cache/ftcimage.c (FTC_INode_New), src/lzw/ftlzw.c (FT_Stream_OpenLZW), |
| 8777 |
src/psaux/psobjs.c (ps_parser_load_field), src/pshinter/pshglob.c |
| 8778 |
(psh_globals_new), src/sfnt/ttsvg.c (tt_face_load_svg_doc): Initialize |
| 8779 |
variables used for allocation. |
| 8780 |
|
| 8781 |
* src/sdf/ftsdf.c (split_sdf_conic, split_sdf_cubic): Change type of |
| 8782 |
`max_splits` to FT_UInt. |
| 8783 |
(sdf_generate_bounding_box): Add cast. |
| 8784 |
|
| 8785 |
2022-03-30 Werner Lemberg <[email protected]> |
| 8786 |
|
| 8787 |
Whitespace. |
| 8788 |
|
| 8789 |
2022-03-30 Werner Lemberg <[email protected]> |
| 8790 |
|
| 8791 |
[builds] Fix creation of `freetype2.pc` for static-only builds. |
| 8792 |
|
| 8793 |
We have to help `pkg-config` since it can't recognize that there is no |
| 8794 |
shared library installed. |
| 8795 |
|
| 8796 |
Note that meson already does exactly the same. |
| 8797 |
|
| 8798 |
* builds/unix/configure.raw (REQUIRES_PRIVATE, LIBS_PRIVATE): Rename to... |
| 8799 |
(PKGCONFIG_REQUIRES_PRIVATE, PKGCONFIG_LIBS_PRIVATE): This. Adjust them |
| 8800 |
depending on `$enable_shared`. |
| 8801 |
(PKGCONFIG_REQUIRES, PKGCONFIG_LIBS): New variables. |
| 8802 |
|
| 8803 |
* builds/unix/freetype2.in, builds/unix/unix-def.in: Use new and updated |
| 8804 |
variables. |
| 8805 |
|
| 8806 |
2022-03-25 Werner Lemberg <[email protected]> |
| 8807 |
|
| 8808 |
Add `FT_FACE_FLAG_SBIX_OVERLAY` and `FT_HAS_SBIX_OVERLAY`. |
| 8809 |
|
| 8810 |
* include/freetype/freetype.h (FT_FACE_FLAG_SBIX_OVERLAY, |
| 8811 |
FT_HAS_SBIX_OVERLAY): New macro. |
| 8812 |
|
| 8813 |
* src/sfnt/ttsbit.c (tt_face_load_sbit): Handle `FT_FACE_FLAG_SBIX_OVERLAY`. |
| 8814 |
Remove obsolete tracing message. |
| 8815 |
|
| 8816 |
2022-03-25 Werner Lemberg <[email protected]> |
| 8817 |
|
| 8818 |
Add `FT_PARAM_TAG_IGNORE_SBIX`. |
| 8819 |
|
| 8820 |
This is another bit to handle 'sbix' tables as described in the OpenType |
| 8821 |
specification. |
| 8822 |
|
| 8823 |
* include/freetype/ftparams.h (FT_PARAM_TAG_IGNORE_SBIX): New macro. |
| 8824 |
|
| 8825 |
* src/sfnt/sfobjc.c (is_apple_sbix): Rename to... |
| 8826 |
(has_sbix): ... this. |
| 8827 |
Check for more sbit tables. |
| 8828 |
Handle `FT_PARAM_TAG_IGNORE_SBIX` to eventually control `has_sbix`. |
| 8829 |
Only call sbit table loader if an sbit table is present. |
| 8830 |
|
| 8831 |
2022-03-25 Werner Lemberg <[email protected]> |
| 8832 |
|
| 8833 |
[truetype] Fix 'sbix' table handling. |
| 8834 |
|
| 8835 |
* src/sfnt/ttsbit.c (tt_face_load_sbix_image): Correct calculation of |
| 8836 |
'metrics->horiBearingY'. |
| 8837 |
Set vertical metrics. |
| 8838 |
|
| 8839 |
* src/sfnt/sfobjs.c (sfnt_load_face): Adjust setting of `FT_FACE_FLAG_SBIX`. |
| 8840 |
Handle metrics of fonts with 'sbix' table. |
| 8841 |
|
| 8842 |
* src/truetype/ttgload.c (TT_Load_Glyph): For 'sbix' embedded bitmaps, apply |
| 8843 |
bbox offset and bearing values of the corresponding glyph in the 'glyf' |
| 8844 |
table if it exists and has a contour. |
| 8845 |
|
| 8846 |
* src/truetype/ttobjs.c (tt_face_init): Handle font with 'sbix' table. |
| 8847 |
|
| 8848 |
Fixes issue #998. |
| 8849 |
|
| 8850 |
2022-03-25 Werner Lemberg <[email protected]> |
| 8851 |
|
| 8852 |
Add `FT_FACE_FLAG_SBIX` and `FT_HAS_SBIX`. |
| 8853 |
|
| 8854 |
Fonts with 'sbix' tables need special handling by the application. |
| 8855 |
|
| 8856 |
* include/freetype/freetype.h (FT_FACE_FLAG_SBIX, FT_HAS_SBIX): New macros. |
| 8857 |
|
| 8858 |
* src/sfnt/sfobjs.c (sfnt_load_face): Set `FT_FACE_FLAG_SBIX` if 'sbix' |
| 8859 |
table is present. |
| 8860 |
|
| 8861 |
2022-03-25 Werner Lemberg <[email protected]> |
| 8862 |
|
| 8863 |
* include/freetype/freetype.h (FT_LOAD_SBITS_ONLY): Tag macro as public. |
| 8864 |
|
| 8865 |
2022-03-24 Carlo Bramini <[email protected]> |
| 8866 |
|
| 8867 |
[builds/windows] Fix WCE support. |
| 8868 |
|
| 8869 |
* builds/windows/ftsystem.c [_WIN32_WCE]: Include <malloc.h> needed by |
| 8870 |
_alloca. |
| 8871 |
|
| 8872 |
2022-03-24 Steve Lhomme <[email protected]> |
| 8873 |
|
| 8874 |
[build/windows] Improve UWP support. |
| 8875 |
|
| 8876 |
* builds/windows/ftsystem.c [UWP]: Wrap CreateFile2 into CreateFileA. |
| 8877 |
|
| 8878 |
2022-03-21 Werner Lemberg <[email protected]> |
| 8879 |
|
| 8880 |
* src/sfnt/ttkern.c (tt_face_get_kerning): Exit early if no table. |
| 8881 |
|
| 8882 |
Fixes #1141. |
| 8883 |
|
| 8884 |
2022-03-20 Ben Wagner <[email protected]> |
| 8885 |
|
| 8886 |
[woff2] Support overlap flag for simple glyphs. |
| 8887 |
|
| 8888 |
In the woff2 spec it has been proposed to allow the OVERLAP_SIMPLE flag |
| 8889 |
to be retained through the woff2 format [0]. |
| 8890 |
|
| 8891 |
[0] https://www.w3.org/TR/WOFF2/#glyf_table_format |
| 8892 |
|
| 8893 |
* src/sfnt/sfwoff2.h (GLYF_OVERLAP_SIMPLE): add glyf flag. |
| 8894 |
|
| 8895 |
* src/sfnt/sfwoff2.c (reconstruct_glyf): parse optionFlags and |
| 8896 |
overlapSimpleBitmap[]. (store_points): set OVERLAP_SIMPLE on first point's |
| 8897 |
flag if the overlap bit is set. |
| 8898 |
|
| 8899 |
2022-03-19 Werner Lemberg <[email protected]> |
| 8900 |
|
| 8901 |
[cff] Synchronize `cff_slot_load` with `TT_Load_Glyph`. |
| 8902 |
|
| 8903 |
* src/cff/cffgload.c (IS_DEFAULT_INSTANCE): New macro. |
| 8904 |
(cff_slot_load): Use it. |
| 8905 |
|
| 8906 |
2022-03-19 Werner Lemberg <[email protected]> |
| 8907 |
|
| 8908 |
* src/base/ftobjs.c (FT_Request_Size): Guard `face->size`. |
| 8909 |
|
| 8910 |
Fixes #1140. |
| 8911 |
|
| 8912 |
2022-03-19 Werner Lemberg <[email protected]> |
| 8913 |
|
| 8914 |
* src/base/ftobjs.c (ft_open_face_internal): Thinko. |
| 8915 |
|
| 8916 |
2022-03-19 Ben Wagner <[email protected]> |
| 8917 |
|
| 8918 |
[doc] FT_OUTLINE_OVERLAP was introduced in 2.10.3. |
| 8919 |
|
| 8920 |
* include/freetype/ftimage.h (FT_OUTLINE_OVERLAP): Document when added. |
| 8921 |
|
| 8922 |
2022-03-19 Werner Lemberg <[email protected]> |
| 8923 |
|
| 8924 |
* src/base/ftobjs.c (ft_open_face_internal): Properly guard `face_index`. |
| 8925 |
|
| 8926 |
We must ensure that the cast to `FT_Int` doesn't change the sign. |
| 8927 |
|
| 8928 |
Fixes #1139. |
| 8929 |
|
| 8930 |
2022-03-17 Werner Lemberg <[email protected]> |
| 8931 |
|
| 8932 |
[sfnt] Avoid invalid face index. |
| 8933 |
|
| 8934 |
Fixes #1138. |
| 8935 |
|
| 8936 |
* src/sfnt/sfobjs.c (sfnt_init_face), src/sfnt/sfwoff2.c (woff2_open_font): |
| 8937 |
Check `face_index` before decrementing. |
| 8938 |
|
| 8939 |
2022-03-07 Werner Lemberg <[email protected]> |
| 8940 |
|
| 8941 |
Documentation, whitespace. |
| 8942 |
|
| 8943 |
2022-03-05 Anuj Verma <[email protected]> |
| 8944 |
|
| 8945 |
[sdf] Fix corner checks and improve performance. |
| 8946 |
|
| 8947 |
* src/sdf/ftsdf.c (sdf_generate_bounding_box): Always check for a corner if |
| 8948 |
two distances (for different curves) are very close. |
| 8949 |
|
| 8950 |
(sdf_conic_to): Check whether the conic curve can be treated as a line |
| 8951 |
(which happens if the control point coincides with any end point). |
| 8952 |
|
| 8953 |
2022-03-05 Anuj Verma <[email protected]> |
| 8954 |
|
| 8955 |
[sdf] Implement deviation-based splitting for Bezier curves. |
| 8956 |
|
| 8957 |
* src/sdf/ftsdf.c (split_sdf_cubic, split_sdf_shape): Add checks to figure |
| 8958 |
out the deviation of Bezier curves and stop splitting if the curve is flat |
| 8959 |
enough. |
| 8960 |
|
| 8961 |
* src/sdf/ftsdfcommon.h (ONE_PIXEL): New macro. |
| 8962 |
|
| 8963 |
2022-03-05 Anuj Verma <[email protected]> |
| 8964 |
|
| 8965 |
* include/freetype/freetype.h: Improve SDF documentation. |
| 8966 |
|
| 8967 |
2022-03-03 Ben Wagner <[email protected]> |
| 8968 |
|
| 8969 |
[sfnt] Fix bounds check in SVG. |
| 8970 |
|
| 8971 |
The `SVG_DOCUMENT_LIST_MINIMUM_SIZE` macro is non trivial and not |
| 8972 |
protected by parentheses. As a result, the expression |
| 8973 |
`table_size - SVG_DOCUMENT_LIST_MINIMUM_SIZE` expands to |
| 8974 |
`table_size - 2U + SVG_DOCUMENT_RECORD_SIZE` instead of the expected |
| 8975 |
`table_size - (2U + SVG_DOCUMENT_RECORD_SIZE)`. This causes an incorrect |
| 8976 |
bounds check which may lead to reading past the end of the `SVG ` table. |
| 8977 |
|
| 8978 |
* src/sfnt/ttsvg.c (tt_face_load_svg): wrap macro definitions in |
| 8979 |
parentheses. |
| 8980 |
|
| 8981 |
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=45179 |
| 8982 |
|
| 8983 |
2022-02-23 Ben Wagner <[email protected]> |
| 8984 |
|
| 8985 |
[psaux] Full bounds check for OtherSubr 19. |
| 8986 |
|
| 8987 |
It is possible for OtherSubr 19 to be invoked when `decoder->buildchar` is |
| 8988 |
NULL (so that `decoder->len_buildchar` is 0), the `blend` is non-NULL with |
| 8989 |
`blend->num_designs` set to 2, and the user supplied `idx` to be large (for |
| 8990 |
example 0xFFFFFFFE). Since these are all `FT_UInt32` the existing bounds |
| 8991 |
check overflows in a well defined manner, allowing for an invalid call to |
| 8992 |
`memcpy`. |
| 8993 |
|
| 8994 |
In addition, it is possible to call OtherSubr 19 with |
| 8995 |
`decoder->len_buildchar`, `blend->num_designs`, and `idx` all zero (implying |
| 8996 |
that `blend->weight_vector` and `decoder->buildchar` are NULL). This passes |
| 8997 |
the bounds check (it is logically always fine to copy nothing starting at |
| 8998 |
index zero) but may invoke undefined behavior in `ft_memcpy` if it is backed |
| 8999 |
by `memcpy`. Calling `memcpy` with either the `src` or `dst` NULL is |
| 9000 |
undefined behavior (even if `count` is zero). |
| 9001 |
|
| 9002 |
* src/psaux/psintrp.c (cf2_interpT2CharString): Correctly check that |
| 9003 |
`blend->num_designs` can be copied to `decoder->buildchar[idx]`. |
| 9004 |
Also avoid passing NULL to `ft_memcpy`. |
| 9005 |
|
| 9006 |
Bug: https://crbug.com/1299259 |
| 9007 |
|
| 9008 |
2022-02-21 suzuki toshiya <[email protected]> |
| 9009 |
|
| 9010 |
[cmake] Drop the support of CMake 2.x. |
| 9011 |
|
| 9012 |
* CMakeLists.txt: Require CMake 3.0 (released on 2014) or newer. |
| 9013 |
|
| 9014 |
The issue #1059 reports the difficulty to support both of |
| 9015 |
CMake 2.x and newer one by single CMakeLists.txt without |
| 9016 |
the inflation of cmake_policy() workarounds. |
| 9017 |
|
| 9018 |
For better maintainability, the support of CMake 2.x is |
| 9019 |
dropped. |
| 9020 |
|
| 9021 |
2022-02-19 Werner Lemberg <[email protected]> |
| 9022 |
|
| 9023 |
* src/bdf/README: Updated. |
| 9024 |
|
| 9025 |
2022-02-19 Werner Lemberg <[email protected]> |
| 9026 |
|
| 9027 |
* builds/mac/ftmac.c, src/base/ftmac.c: s|FT_MAC_H|<freetype/ftmac.h>|. |
| 9028 |
|
| 9029 |
2022-02-19 Werner Lemberg <[email protected]> |
| 9030 |
|
| 9031 |
src/sfnt/ttkern.c (tt_face_load_kern): Micro-optimize. |
| 9032 |
|
| 9033 |
A kerning table can be handled by binary search if it has equal entries. |
| 9034 |
|
| 9035 |
Fixes #1132. |
| 9036 |
|
| 9037 |
2022-02-17 Steve Lhomme <[email protected]> |
| 9038 |
Alexei Podtelezhnikov <[email protected]> |
| 9039 |
|
| 9040 |
[builds/windows] Add support for legacy UWP builds. |
| 9041 |
|
| 9042 |
* builds/windows/ftsystem.c: Add neccessary macro substitutions to |
| 9043 |
enable strict UWP builds. |
| 9044 |
|
| 9045 |
See !141. |
| 9046 |
|
| 9047 |
2022-02-16 Werner Lemberg <[email protected]> |
| 9048 |
|
| 9049 |
ftmm.h: Minor documentation improvement. |
| 9050 |
|
| 9051 |
2022-02-13 Alexei Podtelezhnikov <[email protected]> |
| 9052 |
|
| 9053 |
[pshinter] Tune PSH_STRONG_THRESHOLD_MAXIMUM value. |
| 9054 |
|
| 9055 |
Before the change, the hinting engine frequently confused horizontal |
| 9056 |
stem and serif hints making some stems too thin and some serifs too |
| 9057 |
thick. The value was tuned using serif fonts from the URW+ base 35 |
| 9058 |
collection. |
| 9059 |
|
| 9060 |
* src/pshinter/pshalgo.c [PSH_STRONG_THRESHOLD_MAXIMUM]: s/30/12/. |
| 9061 |
|
| 9062 |
2022-02-12 Werner Lemberg <[email protected]> |
| 9063 |
|
| 9064 |
t1tables.h: Documentation improvements. |
| 9065 |
|
| 9066 |
2022-02-12 Werner Lemberg <[email protected]> |
| 9067 |
|
| 9068 |
t1tables.h: Whitespace. |
| 9069 |
|
| 9070 |
2022-02-11 Werner Lemberg <[email protected]> |
| 9071 |
|
| 9072 |
[type42] Fix `FT_Get_PS_Font_Private` for this format. |
| 9073 |
|
| 9074 |
Since Type42 fonts don't have a 'Private' dictionary, the return value |
| 9075 |
should be `FT_Err_Invalid_Argument`. |
| 9076 |
|
| 9077 |
* src/type42/t42drivr.c (t42_ps_get_font_private): Removed. |
| 9078 |
(t42_service_ps_info): Updated. |
| 9079 |
|
| 9080 |
2022-02-09 Alexei Podtelezhnikov <[email protected]> |
| 9081 |
|
| 9082 |
[pshinter] Clear reused mask. |
| 9083 |
|
| 9084 |
In PS hinter, memory allocations persist until the module is done. |
| 9085 |
Therefore, we have to clear reused masks. |
| 9086 |
|
| 9087 |
* src/pshinter/pshrec.c (ps_mask_table_alloc): Clear reused mask. |
| 9088 |
|
| 9089 |
2022-02-09 Alexei Podtelezhnikov <[email protected]> |
| 9090 |
|
| 9091 |
[pshinter] Use unsigned indices. |
| 9092 |
|
| 9093 |
This reduces casting and eliminates some checks. |
| 9094 |
|
| 9095 |
* src/pshinter/pshrec.c (ps_mask_test_bit, ps_mask_table_merge, |
| 9096 |
ps_dimension_add_t1stem, ps_hints_t1stem3): Updated. |
| 9097 |
(ps_dimension_add_counter): Updated, unnecessary checks removed. |
| 9098 |
|
| 9099 |
2022-02-08 Alexei Podtelezhnikov <[email protected]> |
| 9100 |
|
| 9101 |
[pshinter] Fix mask merging. |
| 9102 |
|
| 9103 |
We forgot to update the number of bits when merging a larger mask |
| 9104 |
into a smaller one. This fix might have rendering effects. |
| 9105 |
|
| 9106 |
* src/pshinter/pshrec.c (ps_mask_table_merge): Inherit the number |
| 9107 |
of bits from a larger mask. There is no need to zero unused bits, |
| 9108 |
already zeroed during allocation. |
| 9109 |
(ps_mask_clear_bit): Removed. |
| 9110 |
(ps_mask_ensure): Minor. |
| 9111 |
|
| 9112 |
2022-02-08 Alexei Podtelezhnikov <[email protected]> |
| 9113 |
|
| 9114 |
[pshinter] Revise the hint table handling. |
| 9115 |
|
| 9116 |
* src/pshinter/pshrec.c (ps_hint_table_ensure): Remove redundant size |
| 9117 |
check; avoid array zeroing because it is fully initialized when used. |
| 9118 |
(ps_hint_table_alloc): Fix off-by-one comparison and remove another |
| 9119 |
zeroing of the array elements. |
| 9120 |
|
| 9121 |
2022-02-06 Werner Lemberg <[email protected]> |
| 9122 |
|
| 9123 |
Various minor doc fixes. |
| 9124 |
|
| 9125 |
2022-02-06 Alexei Podtelezhnikov <[email protected]> |
| 9126 |
|
| 9127 |
[builds/windows] Add SVG to to project files. |
| 9128 |
|
| 9129 |
* builds/windows/vc2010/freetype.vcxproj: Updated. |
| 9130 |
* builds/windows/vc2010/freetype.vcxproj.filters: Updated. |
| 9131 |
* builds/windows/visualc/freetype.vcproj: Updated. |
| 9132 |
|
| 9133 |
2022-02-03 Alexei Podtelezhnikov <[email protected]> |
| 9134 |
|
| 9135 |
* src/winfonts/winfnt.c (fnt_face_get_dll_font): Trace font resources. |
| 9136 |
|
| 9137 |
2022-02-02 Eric Jing <@CPUcontrol> |
| 9138 |
|
| 9139 |
[cmake] Fix build on MacOS. |
| 9140 |
|
| 9141 |
* CMakeLists.txt (CMAKE_OSX_ARCHITECTURES): Update value to fix the building |
| 9142 |
of a framework on MacOS. |
| 9143 |
|
| 9144 |
* builds/mac/freetype-Info.plist (CFBundleExecutable): Make identifier |
| 9145 |
lowercase only. |
| 9146 |
|
| 9147 |
Fixes #1127. |
| 9148 |
|
| 9149 |
2022-02-02 Alexei Podtelezhnikov <[email protected]> |
| 9150 |
|
| 9151 |
[psaux] Revise `PS_Table` handling. |
| 9152 |
|
| 9153 |
The old impleemntation was not using `FT_REALLOC`, buing too careful |
| 9154 |
with the offset rebasing. It shoudl be safe to rely on the base |
| 9155 |
movements. |
| 9156 |
|
| 9157 |
* src/psaux/psobjs.c (reallocate_t1_table, shift_elements): Combine |
| 9158 |
into... |
| 9159 |
(ps_table_realloc): ... this function based on `FT_REALLOC`. |
| 9160 |
(ps_table_done): Simplified. |
| 9161 |
(ps_table_add): Updated. |
| 9162 |
|
| 9163 |
2022-02-02 Alexei Podtelezhnikov <[email protected]> |
| 9164 |
|
| 9165 |
* src/cache/ftcmru.c (FTC_MruList_New): Explain zeroing. |
| 9166 |
|
| 9167 |
2022-01-31 Alexei Podtelezhnikov <[email protected]> |
| 9168 |
|
| 9169 |
[cache] Partially revert 9870b6c07e2c. |
| 9170 |
|
| 9171 |
Fix crashes reported by Werner. |
| 9172 |
|
| 9173 |
* src/cache/ftcmru.c (FTC_MruList_New): Use `FT_ALLOC` again. |
| 9174 |
|
| 9175 |
2022-01-31 Werner Lemberg <[email protected]> |
| 9176 |
|
| 9177 |
freetype.h: Minor documentation improvement. |
| 9178 |
|
| 9179 |
2022-01-31 Alexei Podtelezhnikov <[email protected]> |
| 9180 |
|
| 9181 |
[cache] Fix fallouts from edd4fedc5427. |
| 9182 |
|
| 9183 |
Reported by Werner. |
| 9184 |
|
| 9185 |
* src/cache/ftcimage.c (FTC_INode_New): Always initialize FT_Glyph. |
| 9186 |
* src/cache/ftcsbits.c (FTC_SNode_New): Always initialize FT_SBit. |
| 9187 |
|
| 9188 |
2022-01-31 Alexei Podtelezhnikov <[email protected]> |
| 9189 |
|
| 9190 |
Clean-up - do not doubt FT_FREE. |
| 9191 |
|
| 9192 |
* src/base/ftobjs.c (memory_stream_close): Do not reassign zero |
| 9193 |
after `FT_FREE`. |
| 9194 |
* src/sfnt/sfwoff.c (sfnt_stream_close): Ditto. |
| 9195 |
* src/sfnt/sfwoff2.c (stream_close): Ditto. |
| 9196 |
* src/psaux/psobjs.c (ps_parser_load_field): Ditto. |
| 9197 |
* src/truetype/ttgxvar.c (ft_var_load_avar, tt_set_mm_blend, |
| 9198 |
tt_set_mm_blend): Ditto. |
| 9199 |
|
| 9200 |
2022-01-30 Werner Lemberg <[email protected]> |
| 9201 |
|
| 9202 |
* CMakeLists.txt: Include 'FindPkgConfig' module. |
| 9203 |
|
| 9204 |
Older cmake versions don't provide `pkg_check_modules` by default. |
| 9205 |
|
| 9206 |
Fixes #1126. |
| 9207 |
|
| 9208 |
2022-01-30 Alexei Podtelezhnikov <[email protected]> |
| 9209 |
|
| 9210 |
* src/psaux/psobjs.c (ps_parser_load_field): Reduce `string` scope. |
| 9211 |
|
| 9212 |
2022-01-29 suzuki toshiya <[email protected]> |
| 9213 |
|
| 9214 |
[cmake] Check the availability of `bzip2.pc'. |
| 9215 |
|
| 9216 |
(CMakeLists.txt): Check the availability of `bzip2.pc'. |
| 9217 |
|
| 9218 |
* If `bzip2.pc' is available, Requires.private should include |
| 9219 |
bzip2, but Libs.private should not include -lbz2. |
| 9220 |
|
| 9221 |
* If `bzip2.pc' is unavailable, Requires.private cannot include |
| 9222 |
bzip2, but Libs.private should include -lbz2. |
| 9223 |
|
| 9224 |
Fix #897. |
| 9225 |
|
| 9226 |
2022-01-28 Werner Lemberg <[email protected]> |
| 9227 |
|
| 9228 |
* unix/configure.raw: We need 'librsvg' version 2.46.0 or newer. |
| 9229 |
|
| 9230 |
Older versions don't have function `rsvg_handle_get_intrinsic_dimensions`. |
| 9231 |
|
| 9232 |
2022-01-28 Alexei Podtelezhnikov <[email protected]> |
| 9233 |
|
| 9234 |
Minor clean-ups. |
| 9235 |
|
| 9236 |
* src/base/ftrfork.c (raccess_make_file_name): Do not set error. |
| 9237 |
* src/sfnt/sfdriver.c (get_win_string, get_apple_string): Ditto. |
| 9238 |
* src/cff/cffobjs.c (cff_strcpy): Do not confuse about error. |
| 9239 |
* src/psaux/psobjs.c (ps_table_done): Ditto. |
| 9240 |
* src/truetype/ttgxvar.c (ft_var_readpacked*, ft_var_load_avar): Ditto. |
| 9241 |
|
| 9242 |
2022-01-27 Ben Wagner <[email protected]> |
| 9243 |
|
| 9244 |
Document `FT_Outline_Decompose` degenerate segments. |
| 9245 |
|
| 9246 |
`FT_Outline_Decompose` does not filter out and can return degenerate |
| 9247 |
segments in an outline. This can be surprising when attemping to |
| 9248 |
stroke such an outline. Clarify the existing documentation on this |
| 9249 |
matter to cover all forms of degeneracy (without specifying exactly |
| 9250 |
how they will be reported), why they might arise, and better explain in |
| 9251 |
what cases they may be an issue. |
| 9252 |
|
| 9253 |
* include/freetype/ftoutlin.h (FT_Outline_Decompose): update |
| 9254 |
documentation. |
| 9255 |
|
| 9256 |
Fixes #952. |
| 9257 |
|
| 9258 |
2022-01-27 Anuj Verma <[email protected]> |
| 9259 |
|
| 9260 |
Fix sdf computation while `USE_SQUARED_DISTANCES`. |
| 9261 |
|
| 9262 |
Function `map_fixed_to_sdf` expects spread to be absolute |
| 9263 |
and not squared. |
| 9264 |
|
| 9265 |
* src/sdf/ftbsdf.c (finalize_sdf): Pass absolute spread |
| 9266 |
while `map_fixed_to_sdf`. |
| 9267 |
|
| 9268 |
* src/sdf/ftsdf.c (sdf_generate_bounding_box): Ditto. |
| 9269 |
|
| 9270 |
2022-01-27 Tapish Ojha <[email protected]> |
| 9271 |
|
| 9272 |
[sfnt] Improve sRGB constants. |
| 9273 |
|
| 9274 |
* src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Use slightly |
| 9275 |
more precise values. |
| 9276 |
|
| 9277 |
Fixes #1018. |
| 9278 |
|
| 9279 |
2022-01-27 Werner Lemberg <[email protected]> |
| 9280 |
|
| 9281 |
docs/release: Updated. |
| 9282 |
|
| 9283 |
2022-01-26 Alexei Podtelezhnikov <[email protected]> |
| 9284 |
|
| 9285 |
* src/pfr/pfrload.c (pfr_phy_font_load): Use FT_QNEW_ARRAY. |
| 9286 |
|
| 9287 |
2022-01-26 Alexei Podtelezhnikov <[email protected]> |
| 9288 |
|
| 9289 |
* src/sdf/ftsdf.c (sdf_*_new): Use standard macro. |
| 9290 |
|
| 9291 |
2022-01-26 Alexei Podtelezhnikov <[email protected]> |
| 9292 |
|
| 9293 |
[pcf] Delay encoding allocation and avoid its zeroing. |
| 9294 |
|
| 9295 |
* src/pcf/pcfread.c (pcf_get_encodings): Refactor and use FT_QNEW_ARRAY. |
| 9296 |
|
| 9297 |
2022-01-25 Werner Lemberg <[email protected]> |
| 9298 |
|
| 9299 |
Aarg, typo. |
| 9300 |
|
| 9301 |
2022-01-25 Werner Lemberg <[email protected]> |
| 9302 |
|
| 9303 |
freetype.h: More updates to `FT_LOAD_COLOR` description. |
| 9304 |
|
| 9305 |
2022-01-25 Werner Lemberg <[email protected]> |
| 9306 |
|
| 9307 |
* builds/unix/configure.raw (FT_DEMO_CFLAGS): Pass `-DHAVE-LIBRSVG`. |
| 9308 |
|
| 9309 |
This helps in decoupling library support from `pkg-config` for other |
| 9310 |
platforms. |
| 9311 |
|
| 9312 |
2022-01-25 Werner Lemberg <[email protected]> |
| 9313 |
|
| 9314 |
Update documentation for `FT_LOAD_COLOR`. |
| 9315 |
|
| 9316 |
2022-01-24 Ben Wagner <[email protected]> |
| 9317 |
|
| 9318 |
[pshinter] Ensure all point flags are initialized. |
| 9319 |
|
| 9320 |
Only off curve point flags were fully initialized. |
| 9321 |
|
| 9322 |
* src/pshinter/pshalgo.c (psh_glyph_init): always initialize flags. |
| 9323 |
|
| 9324 |
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43930 |
| 9325 |
|
| 9326 |
2022-01-24 Werner Lemberg <[email protected]> |
| 9327 |
|
| 9328 |
.mailmap: Typo. |
| 9329 |
|
| 9330 |
2022-01-23 Werner Lemberg <[email protected]> |
| 9331 |
|
| 9332 |
* src/svg/ftsvg.c (ft_svg_property_set): Disallow NULL pointers. |
| 9333 |
|
| 9334 |
2022-01-23 Werner Lemberg <[email protected]> |
| 9335 |
|
| 9336 |
.mailmap: Updated. |
| 9337 |
|
| 9338 |
2022-01-23 Werner Lemberg <[email protected]> |
| 9339 |
|
| 9340 |
More documentation on handling OT-SVG. |
| 9341 |
|
| 9342 |
2022-01-23 Werner Lemberg <[email protected]> |
| 9343 |
|
| 9344 |
* src/svg/ftsvg.c: Rename `svg_hooks` to `svg-hooks` for consistency. |
| 9345 |
|
| 9346 |
2022-01-22 Werner Lemberg <[email protected]> |
| 9347 |
|
| 9348 |
[sfnt] Reject malformed SVG tables. |
| 9349 |
|
| 9350 |
* src/sfnt/ttsvg.c (SVG_TABLE_HEADER_SIZE, SVG_DOCUMENT_RECORD_SIZE, |
| 9351 |
SVG_DOCUMENT_LIST_MINIMUM_SIZE, SVG_MINIMUM_SIZE): New macros. |
| 9352 |
(tt_face_load_svg): Check offsets. |
| 9353 |
Check table and record sizes. |
| 9354 |
|
| 9355 |
Reported as |
| 9356 |
|
| 9357 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43918 |
| 9358 |
|
| 9359 |
2022-01-22 Alexei Podtelezhnikov <[email protected]> |
| 9360 |
|
| 9361 |
* src/psaux/psobjs.c (ps_table_new): Revert to zeroing. |
| 9362 |
|
| 9363 |
2022-01-20 Alexei Podtelezhnikov <[email protected]> |
| 9364 |
|
| 9365 |
[psaux, type1, type42] Avoid annecessary zeroing. |
| 9366 |
|
| 9367 |
* src/psaux/psobjs.c (ps_table_new): Use FT_QNEW_ARRAY. |
| 9368 |
* src/type1/t1load.c (parse_encoding): Ditto. |
| 9369 |
* src/type42/t42parse.c (t42_parse_encoding): Ditto. |
| 9370 |
|
| 9371 |
2022-01-20 Werner Lemberg <[email protected]> |
| 9372 |
|
| 9373 |
[builds/unix] Handle 'librsvg' for demo programs. |
| 9374 |
|
| 9375 |
* builds/unix/configure.raw: Check for 'librsvg'. |
| 9376 |
(LIB_CLOCK_GETTIME): Don't call `AC_SUBST` on this but on... |
| 9377 |
(FT_DEMO_CFLAGS, FT_DEMO_LDFLAGS): ... these two new variables. |
| 9378 |
|
| 9379 |
* builds/unix/unix-cc.in (LIB_CLOCK_GETTIME): Replaced by... |
| 9380 |
(FT_DEMO_CFLAGS, FT_DEMO_LDFLAGS): ... these two new variables. |
| 9381 |
|
| 9382 |
2022-01-20 Moazin Khatti <[email protected]> |
| 9383 |
|
| 9384 |
Add 'svg' module for OT-SVG rendering. |
| 9385 |
|
| 9386 |
* CMakeLists.txt (BASE_SRCS): Add svg module file. |
| 9387 |
* meson.build (ft2_public_headers): Add `otsvg.h`. |
| 9388 |
|
| 9389 |
* modules.cfg (RASTER_MODULES): Add `svg` module. |
| 9390 |
|
| 9391 |
* builds/meson/parse_modules_cfg.py: Add svg module. |
| 9392 |
|
| 9393 |
* include/freetype/config/ftmodule.h: Add `ft_svg_renderer_class`. |
| 9394 |
* include/freetype/fterrdef.h: Add `Invalid_SVG_Document` and |
| 9395 |
`Missing_SVG_Hooks` error codes. |
| 9396 |
* include/freetype/internal/fttrace.h: Add tracing for `otsvg`. |
| 9397 |
* include/freetype/internal/svginterface.h: New file. It adds an interface |
| 9398 |
to enable the presetting hook from the `base` module. |
| 9399 |
* include/freetype/otsvg.h (SVG_Lib_Init_Func, SVG_Lib_Free_Func, |
| 9400 |
SVG_Lib_Render_Func, SVG_Lib_Preset_Slot_Func): New hooks for SVG rendering. |
| 9401 |
(SVG_RendererHooks): New structure to access them. |
| 9402 |
|
| 9403 |
* src/base/ftobjs.c: Include `svginterface.h`. |
| 9404 |
(ft_glyphslot_preset_bitmap): Add code for presetting the slot for SVG |
| 9405 |
glyphs. |
| 9406 |
(ft_add_renderer): Updated. |
| 9407 |
|
| 9408 |
* src/svg/*: New files. |
| 9409 |
|
| 9410 |
2022-01-20 Moazin Khatti <[email protected]> |
| 9411 |
|
| 9412 |
Add `FT_Glyph` support for OT-SVG glyphs. |
| 9413 |
|
| 9414 |
* include/freetype/ftglyph.h (FT_SvgGlyphRec, FT_SvgGlyph): New structure. |
| 9415 |
|
| 9416 |
* src/base/ftglyph.c: Include `otsvg.h`. |
| 9417 |
(ft_svg_glyph_init, ft_svg_glyph_done, ft_svg_glyph_copy, |
| 9418 |
ft_svg_glyph_transform, ft_svg_glyph_prepare): New function. |
| 9419 |
(ft_svg_glyph_class): New class. |
| 9420 |
(FT_New_Glyph, FT_Glyph_To_Bitmap): Updated to handle OT-SVG glyphs. |
| 9421 |
* src/base/ftglyph.h: Updated. |
| 9422 |
|
| 9423 |
2022-01-20 Moazin Khatti <[email protected]> |
| 9424 |
|
| 9425 |
[truetype, cff] Add code to load SVG document. |
| 9426 |
|
| 9427 |
* src/cff/cffgload.c (cff_slot_load): Add code to load SVG doc. |
| 9428 |
* src/truetype/ttgload.c (TT_Load_Glyph): Add code to load SVG doc. |
| 9429 |
|
| 9430 |
2022-01-20 Moazin Khatti <[email protected]> |
| 9431 |
|
| 9432 |
Add code to load OT-SVG glyph documents. |
| 9433 |
|
| 9434 |
* include/freetype/config/ftheader.h (FT_OTSVG_H): New macro. |
| 9435 |
* include/freetype/freetype.h (FT_FACE_FLAG_SVG, FT_HAS_SVG): New macros. |
| 9436 |
(FT_LOAD_SVG_ONLY): New internal macro. |
| 9437 |
* include/freetype/ftimage.h (FT_Glyph_Format): New enumeration value |
| 9438 |
`FT_GLYPH_FORMAT_SVG`. |
| 9439 |
* include/freetype/internal/ftobjs.h (FT_GLYPH_OWN_GZIP_SVG): New macro. |
| 9440 |
* include/freetype/internal/fttrace.h: Add `ttsvg` for `ttsvg.c`. |
| 9441 |
* include/freetype/internal/sfnt.h(load_svg, free_svg, load_svg_doc): New |
| 9442 |
functions. |
| 9443 |
* include/freetype/internal/tttypes.h (TT_FaceRec): Add `svg` for |
| 9444 |
the SVG table. |
| 9445 |
* include/freetype/otsvg.h (FT_SVG_DocumentRec): New structure to hold the |
| 9446 |
SVG document and other necessary information of an OT-SVG glyph in a glyph |
| 9447 |
slot. |
| 9448 |
* include/freetype/tttags.h (TTAG_SVG): New macro. |
| 9449 |
|
| 9450 |
* src/base/ftobjs.c: Include `otsvg.h`. |
| 9451 |
(ft_glyphslot_init): Allocate `FT_SVG_DocumentRec` in `slot->other` |
| 9452 |
if the SVG table exists. |
| 9453 |
(ft_glyphslot_clear): Free it upon clean-up if it is a GZIP compressed |
| 9454 |
glyph. |
| 9455 |
(ft_glyphslot_done): Free the document data if it is a GZIP compressed |
| 9456 |
glyph. |
| 9457 |
(FT_Load_Glyph): Don't auto-hint SVG documents. |
| 9458 |
|
| 9459 |
* src/cache/ftcbasic.c (ftc_basic_family_load_glyph): Add support for |
| 9460 |
FT_GLYPH_FORMAT_SVG. |
| 9461 |
|
| 9462 |
* src/sfnt/rules.mk (SFNT_DRV_SRC): Add `ttsvg.c`. |
| 9463 |
* src/sfnt/sfdriver.c: Include `ttsvg.h`. |
| 9464 |
(sfnt_interface): Add `tt_face_load_svg`, `tt_face_free_svg` and |
| 9465 |
`tt_face_load_svg_doc`. |
| 9466 |
* src/sfnt/sfnt.c: Include `ttsvg.c`. |
| 9467 |
* src/sfnt/sfobjs.c (sfnt_load_face, sfnt_done_face): Add code to load and |
| 9468 |
free data of the the SVG table. |
| 9469 |
* src/sfnt/ttsvg.c: New file, implementing `tt_face_load_svg`, |
| 9470 |
`tt_face_free_svg` and `tt_face_load_svg_doc`. |
| 9471 |
* src/sfnt/ttsvg.h: Declarations of the SVG functions in |
| 9472 |
`ttsvg.c`. |
| 9473 |
|
| 9474 |
2022-01-20 Moazin Khatti <[email protected]> |
| 9475 |
|
| 9476 |
Add flag `FT_CONFIG_OPTION_SVG`. |
| 9477 |
|
| 9478 |
This flag is going to be used to conditionally compile support for OT-SVG |
| 9479 |
glyphs. FreeType will do the parsing and rely on external hooks for |
| 9480 |
rendering of OT-SVG glyphs. |
| 9481 |
|
| 9482 |
* devel/ftoption.h, include/freetype/config/ftoption.h |
| 9483 |
(FT_CONFIG_OPTION_SVG): New flag. |
| 9484 |
|
| 9485 |
2022-01-20 Alexei Podtelezhnikov <[email protected]> |
| 9486 |
|
| 9487 |
[pshinter] Avoid unnecessary zeroing. |
| 9488 |
|
| 9489 |
* src/pshinter/pshalgo.c (psh_hint_table_init,psh_glyph_init, |
| 9490 |
psh_glyph_interpolate_normal_points): Use FT_QNEW_ARRAY. |
| 9491 |
|
| 9492 |
2022-01-20 Alexei Podtelezhnikov <[email protected]> |
| 9493 |
|
| 9494 |
* include/freetype/freetype.h: Clarify `FT_Size` life cycle. |
| 9495 |
|
| 9496 |
2022-01-20 Alexei Podtelezhnikov <[email protected]> |
| 9497 |
|
| 9498 |
[base] Undefined scale means no scale. |
| 9499 |
|
| 9500 |
It might be surprising that FreeType does not have default ppem and |
| 9501 |
the size has to be set explicitly or face undefined behavior with |
| 9502 |
undefined variables and errors. This offers an alternative to |
| 9503 |
missing or zero scale by simply setting FT_LOAD_NO_SCALE. Defined |
| 9504 |
behavior is bettr than undefined one. |
| 9505 |
|
| 9506 |
This is alternative to !132 and discussed in |
| 9507 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43708 |
| 9508 |
|
| 9509 |
* src/base/ftobjs.c (FT_Load_Glyph): Deal with zero scale. |
| 9510 |
* include/freetype/freetype.h: Document it. |
| 9511 |
|
| 9512 |
2022-01-18 Alexei Podtelezhnikov <[email protected]> |
| 9513 |
|
| 9514 |
* src/autofit/afglobal.c (af_face_globals_new): Reduce zeroing. |
| 9515 |
|
| 9516 |
Everything in AF_FaceGlobals is initialized except metrics. Those |
| 9517 |
are zeroed here and initialized on demand later. |
| 9518 |
|
| 9519 |
2022-01-16 Alexei Podtelezhnikov <[email protected]> |
| 9520 |
|
| 9521 |
[bdf,type1] Avoid unnecessary hash zeroing. |
| 9522 |
|
| 9523 |
* src/bdf/bdflib.c (_bdf_parse_start): Use `FT_QALLOC`. |
| 9524 |
* src/type1/t1load.c (parse_subrs): Use `FT_QNEW`. |
| 9525 |
|
| 9526 |
2022-01-16 Ozkan Sezer <[email protected]> |
| 9527 |
|
| 9528 |
Add Watcom C/C++ calling. |
| 9529 |
|
| 9530 |
In the unlikely case the source is built with OpenWatcom's -ec? |
| 9531 |
switches to enforce a calling convention, the qsort() compare |
| 9532 |
function must still be set to __watcall. |
| 9533 |
|
| 9534 |
* include/freetype/internal/compiler-macros.h (FT_COMPARE_DEF): |
| 9535 |
Updated. |
| 9536 |
|
| 9537 |
2022-01-15 Ben Wagner <[email protected]> |
| 9538 |
|
| 9539 |
[pshinter] Avoid accessing uninitialized zone. |
| 9540 |
|
| 9541 |
The `normal_top.count` may be 0, implying no `normal_top.zones` exist. |
| 9542 |
The code must not access these (non-existent) `normal_top.zones`. |
| 9543 |
|
| 9544 |
* src/pshinter/pshalgo.c (ps_hints_apply): Do not assume that |
| 9545 |
`normal_top.zones[0]` is initialized. Test `normal_top.count` |
| 9546 |
before using `normal_top.zones[0]`. Do not rescale if there are no |
| 9547 |
`zones`. |
| 9548 |
|
| 9549 |
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43675 |
| 9550 |
|
| 9551 |
2022-01-15 Alexei Podtelezhnikov <[email protected]> |
| 9552 |
|
| 9553 |
[cache] Avoid unnecessary zeroing. |
| 9554 |
|
| 9555 |
* src/cache/ftccmap.c (ftc_cmap_node_new): Use `FT_QNEW`. |
| 9556 |
* src/cache/ftcimage.c (FTC_INode_New): Ditto. |
| 9557 |
* src/cache/ftcsbits.c (FTC_SNode_New): Ditto. |
| 9558 |
|
| 9559 |
2022-01-15 Ozkan Sezer <[email protected]> |
| 9560 |
|
| 9561 |
Add Watcom C/C++ support. |
| 9562 |
|
| 9563 |
* include/freetype/config/integer-types.h: Make sure `long long` is |
| 9564 |
used then available. |
| 9565 |
* include/freetype/internal/ftcalc.h (FT_MSB): Add Watcom C/C++ pragma. |
| 9566 |
|
| 9567 |
2022-01-15 Alexei Podtelezhnikov <[email protected]> |
| 9568 |
|
| 9569 |
* src/sdf/ftbsdf.c (ED): s/near/prox/. |
| 9570 |
|
| 9571 |
This works around the Watcom C definition of `near` as restricted |
| 9572 |
__near. |
| 9573 |
|
| 9574 |
2022-01-15 Alexei Podtelezhnikov <[email protected]> |
| 9575 |
|
| 9576 |
* include/freetype/internal/compiler-macros.h [FT_COMPARE_DEF]: Tighten. |
| 9577 |
|
| 9578 |
This works around Watcom C library using __watcall. |
| 9579 |
|
| 9580 |
2022-01-14 Alexei Podtelezhnikov <[email protected]> |
| 9581 |
|
| 9582 |
* src/pshinter/pshglob.c (psh_globals_new): Avoid zeroing. |
| 9583 |
|
| 9584 |
This large allocation is followed by careful initialization. Whatever |
| 9585 |
is missed should be initialized manually. |
| 9586 |
|
| 9587 |
2022-01-14 Alexei Podtelezhnikov <[email protected]> |
| 9588 |
|
| 9589 |
* src/base/fthash.c (hash_insert): Avoid unnecessary zeroing. |
| 9590 |
|
| 9591 |
2022-01-14 Alexei Podtelezhnikov <[email protected]> |
| 9592 |
|
| 9593 |
* src/bdf/bdflib.c (_bdf_parse_glyphs): Remove redundant assignment. |
| 9594 |
|
| 9595 |
2022-01-13 Alexei Podtelezhnikov <[email protected]> |
| 9596 |
|
| 9597 |
* src/lzw/ftlzw.c (FT_Stream_OpenLZW): Avoid unnecessary zeroing. |
| 9598 |
|
| 9599 |
2022-01-13 Ben Wagner <[email protected]> |
| 9600 |
|
| 9601 |
[bzip2] Reset bzip stream on any error. |
| 9602 |
|
| 9603 |
According to the bzip documentation it is undefined what will happen if |
| 9604 |
`BZ2_bzDecompress` is called on a `bz_stream` it has previously returned an |
| 9605 |
error against. If `BZ2_bzDecompress` returns anything other than `BZ_OK` |
| 9606 |
the only valid next action is `BZ2_bzDecompressEnd`. |
| 9607 |
|
| 9608 |
Reported as |
| 9609 |
|
| 9610 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43564 |
| 9611 |
|
| 9612 |
* src/bzip2/ftbzip2.c (FT_BZip2FileRec_): Add `reset` to track the need to |
| 9613 |
reset the stream. |
| 9614 |
(ft_bzip2_file_init): Initialize `reset` to 0. |
| 9615 |
(ft_bzip2_file_reset): Set `reset` to 0 after resetting. |
| 9616 |
(ft_bzip2_file_fill_output): Set `reset` to 1 when `BZ2_bzDecompress` |
| 9617 |
returns anything other than `BZ_OK`. |
| 9618 |
|
| 9619 |
2022-01-12 Werner Lemberg <[email protected]> |
| 9620 |
|
| 9621 |
.gitlab-ci.yml: Minor comment cleanups. |
| 9622 |
|
| 9623 |
2022-01-12 Azamat H. Hackimov <[email protected]> |
| 9624 |
|
| 9625 |
.gitlab-ci.yml: Add steps to `before_script` to ensure recent CA. |
| 9626 |
|
| 9627 |
Fetch current list of valid CAs from Windows Update and manually import them |
| 9628 |
to trusted datastore. This action is required to make downloads work from |
| 9629 |
sites that need recent Let's Encrypt ISRG Root X1 certificate. |
| 9630 |
|
| 9631 |
2022-01-11 Ben Wagner <[email protected]> |
| 9632 |
|
| 9633 |
Revert "[bzip2] Avoid use of uninitialized memory." |
| 9634 |
|
| 9635 |
This reverts commit d276bcb7f0c02c20d3585b2e5626702df6d140a6. |
| 9636 |
|
| 9637 |
The original commit did avoid the use of uninitialized memory. However, |
| 9638 |
it appears that the original commit is no longer required. The |
| 9639 |
underlying issue was resolved by a change in freetype2-testing "Build |
| 9640 |
bzip2 correctly." [0]. Prior to [0] bzip2 was built without msan, so |
| 9641 |
bzip2 writes were not tracked or considered initialized. Clearing |
| 9642 |
`buffer` in the original commit allowed msan to see the `buffer` content |
| 9643 |
initialized once in FreeType code, but msan saw no writes into buffer |
| 9644 |
from bzip2. With bzip2 now built with msan, the bzip2 writes are |
| 9645 |
properly instrumented and msan sees the bzip2 writes into the buffer. As |
| 9646 |
a result the original commit can be safely reverted to allow for better |
| 9647 |
detection of other uninitialized data scenarios. |
| 9648 |
|
| 9649 |
* src/bzip2/ftbzip2.c (FT_Stream_OpenBzip2): Revert to using `FT_QNEW`. |
| 9650 |
|
| 9651 |
[0] https://github.com/freetype/freetype2-testing/commit/3c052a837a3c960709227a0d6ddd256e87b88853 |
| 9652 |
|
| 9653 |
2022-01-11 Ben Wagner <[email protected]> |
| 9654 |
|
| 9655 |
[type42] Track how much type42 ttf data is available. |
| 9656 |
|
| 9657 |
Currently `T42_Open_Face` eagerly allocates 12 bytes for the ttf header |
| 9658 |
data which it expects `t42_parse_sfnts` to fill out from /sfnts data. |
| 9659 |
However, there is no guarantee that `t42_parse_sfnts` will actually be |
| 9660 |
called while parsing the type42 data as the /sfnts array may be missing |
| 9661 |
or very short. This is also confusing behavior as it means |
| 9662 |
`T42_Open_Face` is tightly coupled to the implementation of the very |
| 9663 |
distant `t42_parse_sfnts` code which requires at least 12 bytes to |
| 9664 |
already be reserved in `face->ttf_data`. |
| 9665 |
|
| 9666 |
`t42_parse_sfnts` itself eagerly updates `face->ttf_size` to track how |
| 9667 |
much space is reserved for ttf data instead of traking how much data has |
| 9668 |
actually been written into `face->ttf_data`. It will also act strangely |
| 9669 |
in the presense of multiple /sfnts arrays. |
| 9670 |
|
| 9671 |
* src/type42/t42objs.c (T42_Open_Face): ensure `ttf_data` is initialized |
| 9672 |
to NULL. Free `ttf_data` on error. |
| 9673 |
|
| 9674 |
* src/type42/t42parse.c (t42_parse_sfnts): delay setting `ttf_size` and |
| 9675 |
set it to the actual number of bytes read. Ensure `ttf_data` is freed |
| 9676 |
if there are multiple /sfnts arrays or there are any errors. |
| 9677 |
|
| 9678 |
2022-01-11 Dominik Röttsches <[email protected]> |
| 9679 |
|
| 9680 |
[sfnt] Fix limit checks for `COLR` v1 ClipBoxes |
| 9681 |
|
| 9682 |
* src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Fix off-by-one in |
| 9683 |
limit checks. |
| 9684 |
|
| 9685 |
2022-01-11 Werner Lemberg <[email protected]> |
| 9686 |
|
| 9687 |
Update all copyright notices. |
| 9688 |
|
| 9689 |
2022-01-11 Werner Lemberg <[email protected]> |
| 9690 |
|
| 9691 |
* src/sfnt/ttcolr.c (read_paint): Fix undefined left-shift operation. |
| 9692 |
|
| 9693 |
Reported as |
| 9694 |
|
| 9695 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43151 |
| 9696 |
|
| 9697 |
2022-01-11 Werner Lemberg <[email protected]> |
| 9698 |
|
| 9699 |
* src/type42/t42objs.c (T42_Open_Face): Avoid use of uninitialized memory. |
| 9700 |
|
| 9701 |
Reported as |
| 9702 |
|
| 9703 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43508 |
| 9704 |
|
| 9705 |
2022-01-11 Werner Lemberg <[email protected]> |
| 9706 |
|
| 9707 |
.gitlab-ci.yml: Fix typo in previous commit. |
| 9708 |
|
| 9709 |
2022-01-11 Werner Lemberg <[email protected]> |
| 9710 |
|
| 9711 |
.gitlab-ci.yml: Update Windows image. |
| 9712 |
|
| 9713 |
The old image produced errors like |
| 9714 |
|
| 9715 |
``` |
| 9716 |
Downloading zlib patch from |
| 9717 |
https://wrapdb.mesonbuild.com/v2/zlib_1.2.11-5/get_patch |
| 9718 |
A fallback URL could be specified using patch_fallback_url key in the wrap file |
| 9719 |
WrapDB connection failed to |
| 9720 |
https://wrapdb.mesonbuild.com/v2/zlib_1.2.11-5/get_patch |
| 9721 |
with error |
| 9722 |
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify |
| 9723 |
failed: certificate has expired (_ssl.c:1122)> |
| 9724 |
``` |
| 9725 |
|
| 9726 |
2022-01-11 Werner Lemberg <[email protected]> |
| 9727 |
|
| 9728 |
* subprojects/zlib.wrap: Update from upstream. |
| 9729 |
|
| 9730 |
2022-01-10 Werner Lemberg <[email protected]> |
| 9731 |
|
| 9732 |
* src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Add limit checks. |
| 9733 |
|
| 9734 |
Reported as |
| 9735 |
|
| 9736 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40716 |
| 9737 |
|
| 9738 |
2022-01-10 Werner Lemberg <[email protected]> |
| 9739 |
|
| 9740 |
[zlib] Don't typedef `ptrdiff_t`. |
| 9741 |
|
| 9742 |
While using zlib in 'solo' mode (via the `Z_SOLO` macro), we actually |
| 9743 |
include some standard header files, making the typedef fail on systems where |
| 9744 |
the native `ptrdiff_t` type differs. |
| 9745 |
|
| 9746 |
Fixes #1124. |
| 9747 |
|
| 9748 |
* src/zlib/zutil.h: Comment out definition; it doesn't work on Windows. |
| 9749 |
|
| 9750 |
* src/zlib/patches/freetype-zlib.diff: Updated. |
| 9751 |
|
| 9752 |
2022-01-10 Werner Lemberg <[email protected]> |
| 9753 |
|
| 9754 |
[zlib] Some organizational changes. |
| 9755 |
|
| 9756 |
We now first apply zlib's `zlib2ansi` script, then FreeType's patch file. |
| 9757 |
|
| 9758 |
* src/gzip/README.freetype: Updated. |
| 9759 |
|
| 9760 |
* patches/0001-zlib-Fix-zlib-sources-to-compile-for-FreeType.patch: Renamed |
| 9761 |
to... |
| 9762 |
* patches/freetype-zlib.diff: This. |
| 9763 |
Clean up description, then regenerate it as follows: |
| 9764 |
|
| 9765 |
- Copy unmodified files from `zlib` repository. |
| 9766 |
- Run `zlib2ansi` script. |
| 9767 |
- Run `git diff -R > patches/freetype-zlib.diff.new`. |
| 9768 |
- Insert patch description of old diff file, then replace old diff with |
| 9769 |
new diff file. |
| 9770 |
|
| 9771 |
2022-01-09 David Turner <[email protected]> |
| 9772 |
|
| 9773 |
[gzip] Update sources to zlib 1.2.11 |
| 9774 |
|
| 9775 |
This can be tested by building with the Unix development build |
| 9776 |
|
| 9777 |
make setup devel |
| 9778 |
make |
| 9779 |
|
| 9780 |
or by building the freetype-demos programs with |
| 9781 |
|
| 9782 |
meson setup build -Dfreetype2:zlib=internal |
| 9783 |
meson compile -C out |
| 9784 |
|
| 9785 |
and trying to run `ftview` with a `.pcf.gz` font file. |
| 9786 |
|
| 9787 |
* src/gzip/ftgzip.c, src/gzip/rules.mk: Update for new zlib sources. Also |
| 9788 |
remove the temporary fix introduced in commit 6a431038 to work around the |
| 9789 |
fact that the internal sources were too old. |
| 9790 |
|
| 9791 |
* src/gzip/README.freetype: New file describing the origin of the sources |
| 9792 |
and how they were modified. |
| 9793 |
|
| 9794 |
* src/gzip/patches/*: Patch files applied to original sources. |
| 9795 |
|
| 9796 |
* src/gzip/*: Updated zlib sources with the patch file(s) from |
| 9797 |
`src/gzip/patches/` applied, followed by a conversion with zlib's |
| 9798 |
`zlib2ansi` script. |
| 9799 |
|
| 9800 |
2022-01-09 David Turner <[email protected]> |
| 9801 |
|
| 9802 |
[meson] Change Zlib configuration option. |
| 9803 |
|
| 9804 |
* meson_options.txt, meson.build: Change the format of the 'zlib' meson |
| 9805 |
build configuration option to be a combo with the following choices: |
| 9806 |
|
| 9807 |
- none: Do not support gzip-compressed streams at all. |
| 9808 |
|
| 9809 |
- internal: Support gzip-compressed streams using the copy of the gzip |
| 9810 |
sources under `src/gzip/`; this should only be used during development |
| 9811 |
to ensure these work properly. |
| 9812 |
|
| 9813 |
- external: Support gzip-compressed streams using the 'zlib' Meson |
| 9814 |
subproject, linked as a static library. |
| 9815 |
|
| 9816 |
- system: Support gzip-compressed streams using a system-installed version |
| 9817 |
of zlib. |
| 9818 |
|
| 9819 |
- auto: Support gzip-compressed streams using a system-installed version |
| 9820 |
of zlib, if available, or using the 'zlib' subproject otherwise. This |
| 9821 |
is the default. |
| 9822 |
|
| 9823 |
- disabled: Backward-compatible alias for 'none'. |
| 9824 |
|
| 9825 |
- enabled: Backward-compatible alias for 'auto'. |
| 9826 |
|
| 9827 |
2022-01-09 Werner Lemberg <[email protected]> |
| 9828 |
|
| 9829 |
[bzip2] Avoid use of uninitialized memory. |
| 9830 |
|
| 9831 |
* src/bzip2/ftbzip2.c (FT_Stream_OpenBzip2): Don't use `FT_QNEW` but |
| 9832 |
`FT_NEW` for setting up `zip` to avoid uninitialized memory access while |
| 9833 |
handling malformed PCF fonts later on. |
| 9834 |
|
| 9835 |
Fixes |
| 9836 |
|
| 9837 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=42800 |
| 9838 |
|
| 9839 |
2022-01-09 Alexei Podtelezhnikov <[email protected]> |
| 9840 |
|
| 9841 |
[sfnt] Fix off-by-one error. |
| 9842 |
|
| 9843 |
The 0-base index is equal to the number of previosly parsed entries. |
| 9844 |
It is an error to adjust it by one to get the number truncated by |
| 9845 |
a stream error. This is probably inconsequential because valid |
| 9846 |
entries are correctly accounted for. |
| 9847 |
|
| 9848 |
* src/sfnt/ttload.c (check_table_dir): Do not adjust the truncated |
| 9849 |
number of tables. |
| 9850 |
|
| 9851 |
2022-01-08 Werner Lemberg <[email protected]> |
| 9852 |
|
| 9853 |
[sfnt, type42] Correct previous commit. |
| 9854 |
|
| 9855 |
Really fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=42773. |
| 9856 |
|
| 9857 |
* src/sfnt/ttload.c (check_table_dir): Revert change. |
| 9858 |
|
| 9859 |
* src/type42/t42.parse.c (t42_parse_sfnts): Don't use `FT_QREALLOC` but |
| 9860 |
`FT_REALLOC` for setting up `ttf_data` to avoid uninitialized memory access |
| 9861 |
while handling malformed TrueType fonts later on. |
| 9862 |
|
| 9863 |
2022-01-07 Werner Lemberg <[email protected]> |
| 9864 |
|
| 9865 |
* src/sfnt/ttload.c (check_table_dir): Initialize `table`. |
| 9866 |
|
| 9867 |
Reported as |
| 9868 |
|
| 9869 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=42773 |
| 9870 |
|
| 9871 |
2022-01-07 Werner Lemberg <[email protected]> |
| 9872 |
|
| 9873 |
[sfnt] Avoid 'runtime error: applying zero offset to null pointer'. |
| 9874 |
|
| 9875 |
* src/sfnt/ttsbit.c (tt_sbit_decoder_load_byte_aligned): Exit early if |
| 9876 |
`line` is NULL. |
| 9877 |
|
| 9878 |
2022-01-07 Werner Lemberg <[email protected]> |
| 9879 |
|
| 9880 |
[autofit, pshinter] Use `FT_OFFSET`. |
| 9881 |
|
| 9882 |
This avoids |
| 9883 |
|
| 9884 |
``` |
| 9885 |
runtime error: applying zero offset to null pointer |
| 9886 |
``` |
| 9887 |
|
| 9888 |
warnings of clang's undefined behaviour sanitizer. |
| 9889 |
|
| 9890 |
* src/autofit/afcjk.c (af_cjk_hints_link_segments, |
| 9891 |
af_cjk_hints_compute_edges, af_cjk_hints_compute_blue_edges, |
| 9892 |
af_cjk_hint_edges, af_cjk_align_edge_points): Do it. |
| 9893 |
|
| 9894 |
* src/autofit/afhints.c (af_glyph_hints_align_edge_points, |
| 9895 |
af_glyph_hints_align_strong_points): Ditto. |
| 9896 |
|
| 9897 |
* src/autofit/aflatin.c (af_latin_metrics_init_widths, |
| 9898 |
af_latin_hints_link_segments, af_latin_hints_compute_edges, |
| 9899 |
af_latin_hints_compute_blue_edges, af_latin_hint_edges): Ditto. |
| 9900 |
|
| 9901 |
* src/pshinter/pshalgo.c (psh_hint_table_init): Ditto. |
| 9902 |
|
| 9903 |
2022-01-06 Ben Wagner <[email protected]> |
| 9904 |
|
| 9905 |
[truetype] Reset localpoints when varying cvt. |
| 9906 |
|
| 9907 |
When iterating over the cvt tuples and reading in the points it is necessary |
| 9908 |
to set all of `localpoints`, `points`, and `point_count` in all cases. The |
| 9909 |
existing code did not reset `localpoints` to `NULL` when there were no |
| 9910 |
private point numbers. If the previous tuple did have private point numbers |
| 9911 |
and set `localpoints` to `ALL_POINTS` this would not be cleared and the |
| 9912 |
wrong branch would be taken later, leading to possible heap buffer overflow. |
| 9913 |
|
| 9914 |
* src/truetype/ttgxvar.c (tt_face_vary_cvt): Reset `localpoints` to `NULL` |
| 9915 |
when it isn't valid. |
| 9916 |
|
| 9917 |
Fixes: https://crbug.com/1284742 |
| 9918 |
|
| 9919 |
2022-01-02 Werner Lemberg <[email protected]> |
| 9920 |
|
| 9921 |
* builds/unix/configure.raw: Restore `SYSTEM_ZLIB` variable. |
| 9922 |
|
| 9923 |
This was accidentally removed with commit 93ebcbd0 almost eight years ago. |
| 9924 |
|
| 9925 |
2021-12-27 Alexander Borsuk <[email protected]> |
| 9926 |
|
| 9927 |
Fix warnings for CMake Unity builds. |
| 9928 |
|
| 9929 |
* src/cache/ftcbasic.c (FT_COMPONENT): Undefine macro before redefinition. |
| 9930 |
* src/smooth/ftgrays.c (TRUNC, FRACT): Ditto. |
| 9931 |
|
| 9932 |
2021-12-18 Alexander Borsuk <[email protected]> |
| 9933 |
|
| 9934 |
Clang-Tidy warning fixes. |
| 9935 |
|
| 9936 |
* src/base/ftobjs.c (FT_Get_Paint): Operator has equivalent nested operands. |
| 9937 |
* src/bdf/bdflib.c (_bdf_add_property): Value stored to `fp` is never read. |
| 9938 |
* src/sdf/ftbsdf.c (bsdf_init_distance_map): Value stored to `pixel` is |
| 9939 |
never read. |
| 9940 |
* src/sdf/ftsdf.c (split_sdf_shape): Value stored to `error` is never read. |
| 9941 |
|
| 9942 |
2021-12-17 Eli Schwartz <[email protected]> |
| 9943 |
|
| 9944 |
* meson.build: Optimize lookup for `python3` program. |
| 9945 |
|
| 9946 |
The python module's `find_installation` method is intended to provide |
| 9947 |
routines for compiling and installing python modules into the |
| 9948 |
`site-packages` directory. It does a couple of slow things, including run |
| 9949 |
an introspection command to scrape sysconfig info from the detected |
| 9950 |
interpreter, which are not needed for the sole use case of invoking the |
| 9951 |
found installation as an executable. |
| 9952 |
|
| 9953 |
Furthermore, when invoked without the name or path of a python binary, it is |
| 9954 |
hardcoded to always look for `python3` corresponding to the interpreter |
| 9955 |
meson itself uses to run. So using `find_installation` did not even allow |
| 9956 |
detecting `python2` as a fallback. |
| 9957 |
|
| 9958 |
Instead, switch to a simple `find_program` lookup that finishes as soon as |
| 9959 |
the program is found. |
| 9960 |
|
| 9961 |
2021-12-17 Eli Schwartz <[email protected]> |
| 9962 |
|
| 9963 |
* builds/meson/*.py: Fix name of python executable for auxiliary scripts. |
| 9964 |
|
| 9965 |
The previous change to check the return code of `run_command` invocations |
| 9966 |
caused the CI to fail. Although most scripts used `python_exe` as the |
| 9967 |
program command, the script to determine the project version did not. |
| 9968 |
|
| 9969 |
But, all scripts used `python` as the shebang, and this is not available on |
| 9970 |
all systems. Particularly Debian does not provide a `python` command, |
| 9971 |
though `python3` does exist. This meant that formerly the version number |
| 9972 |
was lacking, and now the build simply fails. |
| 9973 |
|
| 9974 |
Instead, rely on `python3` since it is guaranteed to exist when running |
| 9975 |
meson, and `python2` is end of life anyway. |
| 9976 |
|
| 9977 |
2021-12-17 Eli Schwartz <[email protected]> |
| 9978 |
|
| 9979 |
* meson.build: Check the return value of `run_command`. |
| 9980 |
|
| 9981 |
By default, errors are not checked and a command that is somehow broken will |
| 9982 |
just capture incorrect output (likely an empty string). Current development |
| 9983 |
versions of meson now raise a warning for this implicit behavior, and advise |
| 9984 |
explicitly setting the `check:` keyword argumend to determine whether a |
| 9985 |
failing return code should be considered an error. |
| 9986 |
|
| 9987 |
Since none of the commands in this project are expected to fail, mark them |
| 9988 |
as required to succeed. |
| 9989 |
|
| 9990 |
2021-12-13 Alexei Podtelezhnikov <[email protected]> |
| 9991 |
|
| 9992 |
[truetype] Upstream the hdmx binary search. |
| 9993 |
|
| 9994 |
* src/truetype/ttobjs.h (TT_SizeRec): Add `widthp` for the hdmx |
| 9995 |
widths. |
| 9996 |
* src/truetype/ttobjs.c (tt_size_reset): Initialize `widthp` even |
| 9997 |
though it might never be used by the interpreter. |
| 9998 |
* src/truetype/ttgload.c (tt_loader_init): Avoid repeated searches |
| 9999 |
in the hdmx table. |
| 10000 |
|
| 10001 |
2021-12-12 Alexei Podtelezhnikov <[email protected]> |
| 10002 |
|
| 10003 |
[truetype] Reset the IUP-called flags for each subglyph. |
| 10004 |
|
| 10005 |
This fixes fall-out from 7809007a5b88b15, where the composite |
| 10006 |
accents were no longer hinted. |
| 10007 |
|
| 10008 |
* src/truetype/ttgload.c (ttloader_init): Move the IUP-called flag |
| 10009 |
initialization from here... |
| 10010 |
* src/truetype/ttinterp.c (TT_Run_Context): ... to here. |
| 10011 |
|
| 10012 |
2021-12-12 Alexei Podtelezhnikov <[email protected]> |
| 10013 |
|
| 10014 |
[truetype] Binary search through the `hdmx` records. |
| 10015 |
|
| 10016 |
The `hdmx` table is supposed to be sorted by ppem size, which |
| 10017 |
enables binary search. We also drop the check for the sufficient |
| 10018 |
length of the record because it is now enforced when the table |
| 10019 |
is loaded. |
| 10020 |
|
| 10021 |
* include/freetype/internal/tttypes.h (TT_FaceRec): Store the `hdmx` |
| 10022 |
record pointers sorted by ppem instead of ppem's themselves. |
| 10023 |
* src/truetype/ttpload.c (tt_face_load_hdmx): Prudently sort records. |
| 10024 |
(tt_face_get_device_metrics): Implement binary search to retrieve |
| 10025 |
advances. |
| 10026 |
|
| 10027 |
2021-12-12 Alexei Podtelezhnikov <[email protected]> |
| 10028 |
|
| 10029 |
[truetype] Honor FT_LOAD_ADVANCE_ONLY if `hdmx` is usable. |
| 10030 |
|
| 10031 |
This simply shortcuts the glyph loading if FT_LOAD_ADVANCE_ONLY |
| 10032 |
is specified by FT_Get_Advances and the `hdmx` data are located. |
| 10033 |
Particularly, the classic v35 interpreter or "verified" ClearType |
| 10034 |
fonts might see 100x speed up in retrieving the hdmx cache. |
| 10035 |
|
| 10036 |
* src/truetype/ttgload.c (TT_Load_Glyph): Insert the shortcut. |
| 10037 |
|
| 10038 |
2021-12-12 Alexei Podtelezhnikov <[email protected]> |
| 10039 |
|
| 10040 |
[truetype] Initialize the loader with `hdmx` data. |
| 10041 |
|
| 10042 |
The `hdmx` matching can be done before the glyph is loaded. |
| 10043 |
|
| 10044 |
* include/freetype/internal/tttypes.h (TT_LoaderRec): Add a field. |
| 10045 |
* src/truetype/ttgload.c (compute_glyph_metrics): Relocate the `hdmx` |
| 10046 |
code from here... |
| 10047 |
(tt_loader_init): ... to here, before the glyph is loaded. |
| 10048 |
|
| 10049 |
2021-12-12 Alexei Podtelezhnikov <[email protected]> |
| 10050 |
|
| 10051 |
[truetype] Relocate subpixel flag setting. |
| 10052 |
|
| 10053 |
`TT_RunIns` is too busy to deal with subpixel flags. It is better |
| 10054 |
to set them in `tt_loader_init`, which is executed before each |
| 10055 |
glyph program. |
| 10056 |
|
| 10057 |
* src/truetype/ttinterp.c (TT_RunIns): Move the flag setting from |
| 10058 |
here... |
| 10059 |
* src/truetype/ttgload.c (tt_loader_init): ... to here. |
| 10060 |
|
| 10061 |
2021-12-12 Alexei Podtelezhnikov <[email protected]> |
| 10062 |
|
| 10063 |
[truetype] Limit INSTCTRL appication within specs. |
| 10064 |
|
| 10065 |
* src/truetype/ttinterp.c (Ins_INSTCTRL): Limit its global effects |
| 10066 |
to the CVT program and local effects to the glyph program. |
| 10067 |
|
| 10068 |
This also fixes an Infinality buglet. The `ignore_x_mode` should be |
| 10069 |
locally unset by the glyph program. |
| 10070 |
|
| 10071 |
2021-12-09 Ben Wagner <[email protected]> |
| 10072 |
|
| 10073 |
[bdf] Fix use of uninitialized value. |
| 10074 |
|
| 10075 |
In _bdf_readstream if the data contained no newline then the buffer |
| 10076 |
would continue to grow and uninitialized data read until either the |
| 10077 |
uninitialized data contained a newline or the buffer reached its |
| 10078 |
maxiumum size. The assumption was that the line was always too long and |
| 10079 |
the buffer had been filled, however this case can also happen when there |
| 10080 |
is not enough data to fill the buffer. |
| 10081 |
|
| 10082 |
Correct this by properly setting the cursor to the end of the available |
| 10083 |
data, which may be different from the end of the buffer. This may still |
| 10084 |
result in one extra allocation, but only on malformed fonts. |
| 10085 |
|
| 10086 |
* src/bdf/bdflib.c (_bfd_readstream): Correctly update cursor. Remove |
| 10087 |
unread set of `avail`. |
| 10088 |
|
| 10089 |
Bug: https://lists.nongnu.org/archive/html/freetype-devel/2021-12/msg00001.html |
| 10090 |
|
| 10091 |
2021-12-07 Alexei Podtelezhnikov <[email protected]> |
| 10092 |
|
| 10093 |
[truetype] Reduce Infinality footprint again. |
| 10094 |
|
| 10095 |
* src/truetype/ttgload.c (compute_glyph_metrics): Streamline and |
| 10096 |
prioritize the Infinality checks to use `hdmx`. |
| 10097 |
|
| 10098 |
2021-12-07 Cameron Cawley <[email protected]> |
| 10099 |
|
| 10100 |
[builds/windows] Guard some non-ancient API. |
| 10101 |
|
| 10102 |
We can support Windows 98 and NT 4.0 in principle... |
| 10103 |
|
| 10104 |
* builds/windows/ftdebug.c, builds/windows/ftsystem.c: Check for the |
| 10105 |
ancient SDK using _WIN32_WINDOWS, _WIN32_WCE, or _WIN32_WINNT. |
| 10106 |
|
| 10107 |
2021-12-07 Cameron Cawley <[email protected]> |
| 10108 |
|
| 10109 |
* builds/windows/visualc/freetype.vcproj: Add missing file. |
| 10110 |
|
| 10111 |
2021-12-02 Werner Lemberg <[email protected]> |
| 10112 |
|
| 10113 |
* Version 2.11.1 released. |
| 10114 |
========================== |
| 10115 |
|
| 10116 |
Tag sources with `VER-2-11-1'. |
| 10117 |
|
| 10118 |
* docs/VERSION.TXT: Add entry for version 2.11.1. |
| 10119 |
* docs/CHANGES, docs/release: Updated. |
| 10120 |
|
| 10121 |
* README, src/base/ftver.rc, builds/windows/vc2010/index.html, |
| 10122 |
builds/windows/visualc/index.html, builds/windows/visualce/index.html, |
| 10123 |
builds/wince/vc2005-ce/index.html, builds/wince/vc2008-ce/index.html, |
| 10124 |
docs/freetype-config.1: s/2.11.0/2.11.1/, s/2110/2111/. |
| 10125 |
|
| 10126 |
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 1. |
| 10127 |
|
| 10128 |
* builds/unix/configure.raw (version_info): Set to 24:1:18. |
| 10129 |
* CMakeLists.txt (VERSION_PATCH): Set to 1. |
| 10130 |
|
| 10131 |
* builds/toplevel.mk (version_tag, CHANGELOG_SCRIPT): New variables. |
| 10132 |
(do-dist): Generate `ChangeLog` file with all commits since last release. |
| 10133 |
|
| 10134 |
2021-11-30 Alexei Podtelezhnikov <[email protected]> |
| 10135 |
|
| 10136 |
[builds/windows] Improve debugging. |
| 10137 |
|
| 10138 |
* builds/windows/ftdebug.c (FT_Message, FT_Panic): Buffer output |
| 10139 |
and call `OutputDebugStringA` only if `IsDebuggerPresent`. |
| 10140 |
[_WIN32_WCE] (OutputDebugStringA): Implement the missing API. |
| 10141 |
|
| 10142 |
2021-11-29 Seigo Nonaka <[email protected]> |
| 10143 |
|
| 10144 |
* src/base/ftobjs.c (FT_Request_Metrics): Fix build warning on Android. |
| 10145 |
|
| 10146 |
Use casts since `FT_USHORT_MAX` is unsigned short in bionic (libc used in |
| 10147 |
Android). |
| 10148 |
|
| 10149 |
2021-11-28 Alexei Podtelezhnikov <[email protected]> |
| 10150 |
|
| 10151 |
* builds/windows/vc2010/freetype.vcxproj (DlgCopy): Minor tweak. |
| 10152 |
|
| 10153 |
2021-11-26 Alexei Podtelezhnikov <[email protected]> |
| 10154 |
|
| 10155 |
* src/truetype/ttpload.c (tt_face_load_hdmx): Added comments. |
| 10156 |
|
| 10157 |
2021-11-26 Alexei Podtelezhnikov <[email protected]> |
| 10158 |
|
| 10159 |
[truetype] Quietly reject out-of-spec `hdmx` tables. |
| 10160 |
|
| 10161 |
The `hdmx` table is optional and can be safely rejected without |
| 10162 |
an error if it does not follow specifications. The record size |
| 10163 |
must be equal to the number of glyphs + 2 + 32-bit padding. |
| 10164 |
|
| 10165 |
* src/truetype/ttpload.c (tt_face_load_hdmx): Thoroughly check |
| 10166 |
the record size and improve tracing. |
| 10167 |
|
| 10168 |
2021-11-23 Alexei Podtelezhnikov <[email protected]> |
| 10169 |
|
| 10170 |
[truetype] Partly revert 5b626281. |
| 10171 |
|
| 10172 |
Fixes #1118. |
| 10173 |
|
| 10174 |
* src/truetype/ttpload.c (tt_face_load_hdmx): Do not assume that |
| 10175 |
`record_size` is rounded even though the records are padded. |
| 10176 |
|
| 10177 |
2021-11-23 Alexei Podtelezhnikov <[email protected]> |
| 10178 |
|
| 10179 |
* builds/windows/vc2010/freetype.vcxproj (DlgCopy): Use transforms. |
| 10180 |
|
| 10181 |
2021-11-22 Werner Lemberg <[email protected]> |
| 10182 |
|
| 10183 |
Update `CHANGES` files, other minor whitespace and documentation issues. |
| 10184 |
|
| 10185 |
2021-11-21 Werner Lemberg <[email protected]> |
| 10186 |
|
| 10187 |
formats.txt: Add info about WOFF and WOFF2. |
| 10188 |
|
| 10189 |
2021-11-21 Werner Lemberg <[email protected]> |
| 10190 |
|
| 10191 |
meson.build: Initialize `common_ldflags`. |
| 10192 |
|
| 10193 |
2021-11-21 Lukas Oberhuber <@lukaso> |
| 10194 |
|
| 10195 |
* meson.build: Fix compatibility version on MacOS. |
| 10196 |
|
| 10197 |
Fixes #1117. |
| 10198 |
|
| 10199 |
2021-11-21 Werner Lemberg <[email protected]> |
| 10200 |
|
| 10201 |
* src/truetype/ttinterp.c (Ins_MD): Avoid `FT_ABS`. |
| 10202 |
|
| 10203 |
Reported as |
| 10204 |
|
| 10205 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38562 |
| 10206 |
|
| 10207 |
2021-11-20 Alexei Podtelezhnikov <[email protected]> |
| 10208 |
|
| 10209 |
* include/freetype/fttypes.h (FT_MAKE_TAG): Remove the same casting. |
| 10210 |
|
| 10211 |
2021-11-20 Werner Lemberg <[email protected]> |
| 10212 |
|
| 10213 |
[gxvalid] Fix minor compilation warning. |
| 10214 |
|
| 10215 |
* src/gxvalid/gxvmort5.c (gxv_mort_subtable_type5_subtable_setup): Declare |
| 10216 |
as static. |
| 10217 |
|
| 10218 |
2021-11-20 Werner Lemberg <[email protected]> |
| 10219 |
|
| 10220 |
[smooth] Fix stand-alone compilation. |
| 10221 |
|
| 10222 |
* src/smooth/ftgrays.c (FT_Trace_Enable, FT_Trace_Disable)[STANDALONE_]: |
| 10223 |
Define. |
| 10224 |
|
| 10225 |
2021-11-20 Werner Lemberg <[email protected]> |
| 10226 |
|
| 10227 |
Avoid undefined left-shifts. |
| 10228 |
|
| 10229 |
We really have to use double casts to avoid issues with C's and C++'s |
| 10230 |
signedness propagation rules in implicit casts. |
| 10231 |
|
| 10232 |
Reported as |
| 10233 |
|
| 10234 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41178 |
| 10235 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41182 |
| 10236 |
|
| 10237 |
* include/freetype/config/public-macros.h (FT_STATIC_CAST, |
| 10238 |
FT_REINTERPRET_CAST): Modify macro to take two arguments. |
| 10239 |
Update all callers. |
| 10240 |
(FT_STATIC_BYTE_CAST): New macro. |
| 10241 |
|
| 10242 |
* include/freetype/freetype.h (FT_ENC_TAG): Use `FT_STATIC_BYTE_CAST`. |
| 10243 |
* include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto. |
| 10244 |
* include/freetype/fttypes.h (FT_MAKE_TAG): Ditto. |
| 10245 |
Use `FT_Tag` for casting. |
| 10246 |
|
| 10247 |
* src/ftraster/ftmisc.h (FT_MAKE_TAG): Removed, no longer needed. |
| 10248 |
(FT_STATIC_BYTE_CAST): New macro. |
| 10249 |
|
| 10250 |
* src/smooth/ftgrays.c (FT_STATIC_CAST): Replace with... |
| 10251 |
(FT_STATIC_BYTE_CAST): ... this. |
| 10252 |
|
| 10253 |
2021-11-18 Werner Lemberg <[email protected]> |
| 10254 |
|
| 10255 |
Provide C++ versions for public macros with casts. |
| 10256 |
|
| 10257 |
Many FreeType clients use C++. However `g++ -Wold-style-cast` warns for |
| 10258 |
macros with C-style casts even for system header files; this also affects |
| 10259 |
directories included with `-isystem`. While this could be seen as a problem |
| 10260 |
with g++, the problem is more a philosophical one: Over the time, C and C++ |
| 10261 |
diverged more and more, and some features of C are no longer the 'right' |
| 10262 |
solution in C++. |
| 10263 |
|
| 10264 |
* include/freetype/config/public-macros.h (FT_STATIC_CAST, |
| 10265 |
FT_REINTERPRET_CAST): New macros. |
| 10266 |
|
| 10267 |
* include/freetype/freetype.h (FT_ENC_TAG, FT_LOAD_TARGET_, |
| 10268 |
FT_LOAD_TARGET_MODE): Use `FT_STATIC_CAST`. |
| 10269 |
Correctly handle negative 'signed char' input. |
| 10270 |
* include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto. |
| 10271 |
* include/freetype/fttypes.h (FT_MAKE_TAG, FT_BOOL): Ditto. |
| 10272 |
* include/freetype/ftmodapi.h (FT_FACE_DRIVER_NAME): Use |
| 10273 |
`FT_REINTERPRET_CAST`. |
| 10274 |
|
| 10275 |
* src/smooth/ftgrays.c (FT_STATIC_CAST)[STANDALONE_]: New macro. |
| 10276 |
[!STANDALONE]: Include `FT_CONFIG_CONFIG_H`. |
| 10277 |
|
| 10278 |
Fixes #1116. |
| 10279 |
|
| 10280 |
2021-11-16 Werner Lemberg <[email protected]> |
| 10281 |
|
| 10282 |
Fix clang++ warnings. |
| 10283 |
|
| 10284 |
* src/*: Initialize some variables to NULL. |
| 10285 |
|
| 10286 |
2021-11-16 Werner Lemberg <[email protected]> |
| 10287 |
|
| 10288 |
[truetype] Updates for the forthcoming OpenType 1.9 standard (2/2). |
| 10289 |
|
| 10290 |
* src/truetype/ttgxvar.c (ft_var_load_item_variation_store): |
| 10291 |
s/shortDeltaCount/wordDeltaCount/ (as done in the specification, too). |
| 10292 |
Recognize new format and reject it for now. |
| 10293 |
|
| 10294 |
2021-11-16 Werner Lemberg <[email protected]> |
| 10295 |
|
| 10296 |
[truetype] Updates for the forthcoming OpenType 1.9 standard (1/2). |
| 10297 |
|
| 10298 |
This is in preparation for implementing `DeltaSetIndexMap` format 1, which |
| 10299 |
is used by `COLR` v1 tables, and which allows 32bit indices. |
| 10300 |
|
| 10301 |
https://docs.microsoft.com/en-us/typography/opentype/otspec190/delta/otvarcommonformats_delta.html |
| 10302 |
|
| 10303 |
* src/truetype/ttgxvar.h (GX_DeltaSetIdxMapRec): Change type of `mapCount` |
| 10304 |
to `FT_ULong`. |
| 10305 |
|
| 10306 |
* src/truetype/ttgxvar.c (ft_var_load_delta_set_index_mapping): Add argument |
| 10307 |
for passing the table size; update caller. |
| 10308 |
Implement new format. |
| 10309 |
|
| 10310 |
2021-11-14 Werner Lemberg <[email protected]> |
| 10311 |
|
| 10312 |
Fix clang warnings. |
| 10313 |
|
| 10314 |
* src/gxvalid/gxvcmmn.h (GXV_SET_ERR_IF_PARANOID): Use 'do' block. |
| 10315 |
* src/gxvalid/gxvmod.c (GXV_TABLE_LOAD, GXV_TABLE_VALIDATE): Ditto. |
| 10316 |
|
| 10317 |
* src/smooth/ftgrays.c (gray_convert_glyph): Add cast. |
| 10318 |
|
| 10319 |
* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Remove cast. |
| 10320 |
* src/type1/t1load.c (read_binay_data): Use `FT_ULong` for `size` parameter. |
| 10321 |
(parse_subrs, parse_charstrings, parse_dict): Ditto; also add some casts. |
| 10322 |
|
| 10323 |
2021-11-13 Dominik Röttsches <[email protected]> |
| 10324 |
|
| 10325 |
[sfnt] Avoid undefined shifts in `COLR` v1 paint parsing |
| 10326 |
|
| 10327 |
* src/sfnt/ttcolr.c (read_paint, tt_face_get_paint): Tighten shift |
| 10328 |
behavior by using multiplication, mostly using macros from ftcalc.h. |
| 10329 |
|
| 10330 |
Fixes: https://bugs.chromium.org/p/chromium/issues/detail?id=1269168 |
| 10331 |
|
| 10332 |
2021-11-13 Alexei Podtelezhnikov <[email protected]> |
| 10333 |
|
| 10334 |
[builds/windows] Improve `DlgCopy` target. |
| 10335 |
|
| 10336 |
Fixes #1113. |
| 10337 |
|
| 10338 |
* builds/windows/vc2010/freetype.vcxproj: Run `DlgCopy` conditionally |
| 10339 |
and decouple it from `Build`. |
| 10340 |
|
| 10341 |
2021-11-12 Alexei Podtelezhnikov <[email protected]> |
| 10342 |
|
| 10343 |
Explicitly define `FT_MSB` for Clang. |
| 10344 |
|
| 10345 |
* include/freetype/internal/ftcalc.h [__clang__] (FT_MSB): Updated. |
| 10346 |
|
| 10347 |
2021-11-10 Alexei Podtelezhnikov <[email protected]> |
| 10348 |
|
| 10349 |
* src/truetype/ttgxvar.c (ft_var_to_normalized): Edge optimization. |
| 10350 |
|
| 10351 |
2021-11-10 Alexei Podtelezhnikov <[email protected]> |
| 10352 |
|
| 10353 |
Additional `FT_MSB` macro definitions. |
| 10354 |
|
| 10355 |
Better macros for Windoes CE and ARM in general, based on !109 |
| 10356 |
from metarutaiga. |
| 10357 |
|
| 10358 |
* include/freetype/internal/ftcalc.h [_MSC_VER] (FT_MSB): Updated. |
| 10359 |
|
| 10360 |
2021-11-09 Alexei Podtelezhnikov <[email protected]> |
| 10361 |
|
| 10362 |
[build/windows] Remove logging from default debug configurations. |
| 10363 |
|
| 10364 |
DLG is rather costly for performance and should be used judiciously. |
| 10365 |
This removes it from the default configurations but gives an example |
| 10366 |
how to enable it using the `UserDefines` property. |
| 10367 |
|
| 10368 |
* builds/windows/vc2010/freetype.vcxproj: Hide FT_DEBUG_LOGGING. |
| 10369 |
|
| 10370 |
2021-11-08 Werner Lemberg <[email protected]> |
| 10371 |
|
| 10372 |
* src/sfnt/sfobjs.c (sfnt_open_font): Fix typo. |
| 10373 |
|
| 10374 |
2021-11-08 Werner Lemberg <[email protected]> |
| 10375 |
|
| 10376 |
* src/gxvalid.*, src/otvalid.*: Fix `-Wformat` warnings. |
| 10377 |
|
| 10378 |
2021-11-08 Werner Lemberg <[email protected]> |
| 10379 |
|
| 10380 |
[pshinter] Fix C++ compilation. |
| 10381 |
|
| 10382 |
* src/pshinter/pshalgo.c (psh_compute_dir): Fix type of `result`. |
| 10383 |
(psh_hint_table_find_strong_points): Add cast. |
| 10384 |
|
| 10385 |
2021-11-08 Werner Lemberg <[email protected]> |
| 10386 |
|
| 10387 |
[sfnt] Reduce footprint if WOFF and WOFF2 support is not needed. |
| 10388 |
|
| 10389 |
Based on a patch from metarutaiga (MR !106). The gist of this commit is |
| 10390 |
that it doesn't make sense to support WOFF without compression (which would |
| 10391 |
be only possible in WOFF 1.0 anyway). |
| 10392 |
|
| 10393 |
* src/sfnt/sfobjs.c (sfnt_open_font): Guard WOFF code with |
| 10394 |
`FT_CONFIG_OPTION_USE_ZLIB` block. |
| 10395 |
Guard WOFF2 code with `FT_CONFIG_OPTION_USE_BROTLI` block. |
| 10396 |
|
| 10397 |
* src/sfnt/sfwoff.c, src/sfnt/sfwoff.h: Guard files with |
| 10398 |
`FT_CONFIG_OPTION_USE_ZLIB` blocks, not parts of the code. |
| 10399 |
|
| 10400 |
* src/sfnt/sfwoff2.c, src/sfnt/sfwoff2.h, src/sfnt/woff2tags.c, |
| 10401 |
src/sfnt/woff2tags.h: Guard files with `FT_CONFIG_OPTION_USE_BROTLI` blocks, |
| 10402 |
not parts of the code. |
| 10403 |
|
| 10404 |
Fixes #1111. |
| 10405 |
|
| 10406 |
2021-11-08 Werner Lemberg <[email protected]> |
| 10407 |
|
| 10408 |
[truetype] Make trickyness checks depend on TT_USE_BYTECODE_INTERPRETER. |
| 10409 |
|
| 10410 |
Based on a patch from metarutaiga (MR !106). |
| 10411 |
|
| 10412 |
* src/truetype/ttobjs.c (tt_skip_pdffont_random_tag, |
| 10413 |
tt_check_trickyness_family, tt_synth_sfnt_checksum, tt_get_sfnt_checksum, |
| 10414 |
tt_check_trickyness_sfnt_ids, tt_check_trickyness): Put functions into a |
| 10415 |
`TT_USE_BYTECODE_INTERPRETER` block. |
| 10416 |
(tt_face_init): Put trickyness checks into a `TT_USE_BYTECODE_INTERPRETER` |
| 10417 |
block. |
| 10418 |
|
| 10419 |
Fixes #1111. |
| 10420 |
|
| 10421 |
2021-11-08 Alexei Podtelezhnikov <[email protected]> |
| 10422 |
|
| 10423 |
* src/sfnt/ttload.c (tt_face_load_gasp): Fix a type mismatch warning. |
| 10424 |
|
| 10425 |
2021-11-07 Alexei Podtelezhnikov <[email protected]> |
| 10426 |
|
| 10427 |
[dlg] Define DLG_STATIC explicitly. |
| 10428 |
|
| 10429 |
DLG_STATIC is intended to disable Windows DLL linking attributes. |
| 10430 |
It does not hurt to define it explicitly when we wrap DLG code. |
| 10431 |
This fixes tons of LNK4286 and C4273 warnings from MSVC if we |
| 10432 |
forget to define DLG_STATIC as a compiler option. |
| 10433 |
|
| 10434 |
* builds/windows/vc2010/freetype.vcxproj: Remove DLG_STATIC option. |
| 10435 |
* src/dlg/dlgwrap.c [FT_DEBUG_LOGGING]: Define DLG_STATIC. |
| 10436 |
* include/freetype/internal/ftdebug.h [FT_DEBUG_LOGGING]: Ditto. |
| 10437 |
|
| 10438 |
2021-11-07 Alexei Podtelezhnikov <[email protected]> |
| 10439 |
|
| 10440 |
[dlg] Lighten up the inclusions. |
| 10441 |
|
| 10442 |
The DLG wrapper needs to know if FT_DEBUG_LOGGING is defined in |
| 10443 |
`ftoption.h`. It does not need entire FreeType. |
| 10444 |
|
| 10445 |
* src/dlg/dlgwrap.c: Include FT_CONFIG_OPTIONS_H directly. |
| 10446 |
|
| 10447 |
2021-11-07 Alexei Podtelezhnikov <[email protected]> |
| 10448 |
|
| 10449 |
[truetype] Avoid some memory zeroing in variations. |
| 10450 |
|
| 10451 |
* src/truetype/ttgxvar.c (ft_var_readpackeddeltas, ft_var_load_avar, |
| 10452 |
ft_var_load_item_variation_store, ft_var_load_gvar): Use FT_QNEW_ARRAY |
| 10453 |
if memory immediately initialized or discarded otherwise. |
| 10454 |
|
| 10455 |
2021-11-05 Jany Belluz <[email protected]> |
| 10456 |
|
| 10457 |
[truetype] Fix handling of packed deltas in Variation Fonts. |
| 10458 |
|
| 10459 |
* src/truetype/ttgxvar (ft_var_readpackeddeltas): Don't expect the number of |
| 10460 |
bytes used to encode the deltas to be higher than the number of encoded |
| 10461 |
values. The specification allows a very compact encoding; for example, a |
| 10462 |
list of 200 zeros can be encoded with just a couple of bytes. |
| 10463 |
|
| 10464 |
We now count the consumed bytes to make sure to not read more than expected. |
| 10465 |
|
| 10466 |
2021-11-04 Jany Belluz <[email protected]> |
| 10467 |
|
| 10468 |
[truetype] Fix CVAR handling of tuples for all points. |
| 10469 |
|
| 10470 |
* src/truetype/ttgxvar (tt_face_vary_cvt): Function |
| 10471 |
`ft_var_readpackedpoints`, when it returns `ALL_POINTS`, also sets |
| 10472 |
`point_count` to value 0. However, the CVAR code was incorrectly expecting |
| 10473 |
that `point_count` would be set to match the length of the CVT table. |
| 10474 |
|
| 10475 |
2021-11-04 Jany Belluz <[email protected]> |
| 10476 |
|
| 10477 |
* src/truetype/ttgxvar.c: Fix typos in macros that guard CVAR code. |
| 10478 |
|
| 10479 |
2021-11-04 Alexei Podtelezhnikov <[email protected]> |
| 10480 |
|
| 10481 |
* docs/INSTALL: Mention Meson and MSBuild more prominently. |
| 10482 |
|
| 10483 |
2021-11-03 Gabor Kertesz <[email protected]> |
| 10484 |
|
| 10485 |
[libpng] Update Meson wrap for win-arm64 |
| 10486 |
|
| 10487 |
1.6.37-5 released patches for win-arm64 to successfully build |
| 10488 |
libpng with Meson: |
| 10489 |
https://github.com/mesonbuild/wrapdb/pull/205 |
| 10490 |
https://github.com/mesonbuild/wrapdb/pull/216 |
| 10491 |
|
| 10492 |
Updated by the following command: |
| 10493 |
meson wrap update libpng |
| 10494 |
|
| 10495 |
Tested on win-arm64 and x64. |
| 10496 |
|
| 10497 |
2021-11-03 Dominik Röttsches <[email protected]> |
| 10498 |
|
| 10499 |
[sfnt] Clarify `COLR` v1 FT_Paint* format representations |
| 10500 |
|
| 10501 |
* include/freetype/ftcolor.h (FT_PaintLinearGradient, |
| 10502 |
FT_PaintRadialGradient, FT_PaintSweepGradient, FT_PaintTransform, |
| 10503 |
FT_PaintTranslate, FT_PaintScale, FT_PaintRotate, FT_PaintSkew): Clarify |
| 10504 |
16.16 fixed point representation of struct fields. |
| 10505 |
* src/sfnt/ttcolr.c (read_paint): Shift coordinates for |
| 10506 |
FT_PaintLinearGradient, FT_PaintRadialGradient, FT_PaintSweepGradient |
| 10507 |
accordingly. |
| 10508 |
|
| 10509 |
Fixes: https://gitlab.freedesktop.org/freetype/freetype/-/issues/1110 |
| 10510 |
|
| 10511 |
2021-11-03 Alexei Podtelezhnikov <[email protected]> |
| 10512 |
|
| 10513 |
[builds/windows] Let MSBuild handle DLG copy. |
| 10514 |
|
| 10515 |
* builds/windows/vc2010/freetype.vcxproj: Specify DlgCopy target. |
| 10516 |
* builds/windows/vc2010/script.bat: Deleted. |
| 10517 |
|
| 10518 |
2021-10-29 Alexei Podtelezhnikov <[email protected]> |
| 10519 |
|
| 10520 |
* src/truetype/ttgload.c (load_truetype_glyph): Fix MSVC warning C4312. |
| 10521 |
|
| 10522 |
2021-10-29 Alexei Podtelezhnikov <[email protected]> |
| 10523 |
|
| 10524 |
[builds/windows] Separate MSVC linker and librarian. |
| 10525 |
|
| 10526 |
MSVC uses LIB for static and LINK for dynamic libraries. They are |
| 10527 |
related but the former has much smaller set of options. |
| 10528 |
|
| 10529 |
* builds/windows/vc2010/freetype.vcxproj: Updated. |
| 10530 |
|
| 10531 |
2021-10-29 Alexei Podtelezhnikov <[email protected]> |
| 10532 |
|
| 10533 |
[builds/windows] Revise MSVC linking optimizations. |
| 10534 |
|
| 10535 |
* builds/windows/vc2010/freetype.vcxproj: Optimize DLL linking only. |
| 10536 |
* builds/windows/visualc/freetype.dsp: Ditto. |
| 10537 |
* builds/windows/visualc/freetype.vcproj: Ditto. |
| 10538 |
|
| 10539 |
2021-10-28 Alexei Podtelezhnikov <[email protected]> |
| 10540 |
|
| 10541 |
[woff] Optimize table tagging. |
| 10542 |
|
| 10543 |
* include/freetype/internal/wofftypes.h (WOFF_TableRec): Use |
| 10544 |
32-bit tag. |
| 10545 |
* src/sfnt/sfwoff.c (woff_open_font): Use 32-bit tag. |
| 10546 |
|
| 10547 |
2021-10-28 Alexei Podtelezhnikov <[email protected]> |
| 10548 |
|
| 10549 |
[woff2] Optimize table tagging. |
| 10550 |
|
| 10551 |
Fixes #1107. |
| 10552 |
|
| 10553 |
* include/freetype/internal/wofftypes.h (WOFF2_TableRec): Use |
| 10554 |
32-bit tag. |
| 10555 |
* src/sfnt/sfwoff2.c (compare_tags, find_table, woff2_open_font): |
| 10556 |
Use 32-bit tag. |
| 10557 |
* src/sfnt/woff2tags.[ch] (woff2_known_tags): Use static storage and |
| 10558 |
return 32-bit tag. |
| 10559 |
|
| 10560 |
2021-10-26 Werner Lemberg <[email protected]> |
| 10561 |
|
| 10562 |
Formatting. |
| 10563 |
|
| 10564 |
2021-10-26 Ben Wagner <[email protected]> |
| 10565 |
|
| 10566 |
[mm] Tolerate missing Blend dictionary entries |
| 10567 |
|
| 10568 |
In a Multiple Master font, the Blend dictionary must contain valid |
| 10569 |
Private, FontInfo, and FontBBox. The current code will error if any of |
| 10570 |
these are present and invalid, but will not error and will provide |
| 10571 |
uninitialized data if the Blend dictionary exists but does not contain |
| 10572 |
one of these entries. This change reverts to the older behavior of |
| 10573 |
treating any missing entries as containing all zero data and not |
| 10574 |
returning an error. |
| 10575 |
|
| 10576 |
In the future it may be best to keep track of when these are actually |
| 10577 |
initialized and error if they are not. |
| 10578 |
|
| 10579 |
* src/type1/t1load.c (t1_allocate_blend): Zero initiailize. |
| 10580 |
|
| 10581 |
2021-10-26 Alexei Podtelezhnikov <[email protected]> |
| 10582 |
|
| 10583 |
[builds/windows] Add MSVC linker optimazations. |
| 10584 |
|
| 10585 |
We continue to build static libraries with statically linked C run- |
| 10586 |
time and add options to optimize references. |
| 10587 |
|
| 10588 |
* builds/windows/vc2010/freetype.vcxproj: Sort entries, add options. |
| 10589 |
|
| 10590 |
2021-10-23 Alexei Podtelezhnikov <[email protected]> |
| 10591 |
|
| 10592 |
* builds/windows/vc2010/freetype.vcxproj: Use MachineARM64. |
| 10593 |
|
| 10594 |
2021-10-22 Alexei Podtelezhnikov <[email protected]> |
| 10595 |
|
| 10596 |
[builds/windows] Prioritize x64. |
| 10597 |
|
| 10598 |
* builds/windows/vc2010/freetype.sln: Sort entries. |
| 10599 |
|
| 10600 |
2021-10-22 Gabor Kertesz <[email protected]> |
| 10601 |
|
| 10602 |
[builds/windows] Add ARM64 platform. |
| 10603 |
|
| 10604 |
* builds/windows/vc2010/freetype.sln: Updated |
| 10605 |
* builds/windows/vc2010/freetype.vcxproj: Updated. |
| 10606 |
* builds/windows/vc2010/freetype.vcxproj.filters: Minor fix. |
| 10607 |
|
| 10608 |
2021-10-21 Ben Wagner <[email protected]> |
| 10609 |
|
| 10610 |
[mm] Delay setting blend weight and design position. |
| 10611 |
|
| 10612 |
Previously the `blend->weight_vector`, `blend->default_weight_vector`, |
| 10613 |
and `blend->design_pos` were set early to allocated but uninitialized |
| 10614 |
memory under the assumption that the memory would eventually be |
| 10615 |
initialized. However, it is possible that some of the required |
| 10616 |
keywords may not actually be present, leaving the memory uninitialized. |
| 10617 |
This is different from a present but invalid table, which would produce |
| 10618 |
an error. |
| 10619 |
|
| 10620 |
Reported as |
| 10621 |
https://bugs.chromium.org/p/chromium/issues/detail?id=1261762 |
| 10622 |
|
| 10623 |
* src/type1/t1load.c (t1_allocate_blend): Remove early allocation and |
| 10624 |
initialization. |
| 10625 |
(parse_blend_design_positions, parse_weight_vector): Parse into local |
| 10626 |
and assign to blend if valid. |
| 10627 |
(T1_Open_Face): Check that if a blend exists that it has the weight |
| 10628 |
vector and design positions. |
| 10629 |
|
| 10630 |
2021-10-21 Ben Wagner <[email protected]> |
| 10631 |
|
| 10632 |
[cff] Commit vstore data and regions on allocation. |
| 10633 |
|
| 10634 |
The vstore->regionCount and vstore->dataCount were read directly |
| 10635 |
from the data. However, vstore->varRegionList and vstore->varData |
| 10636 |
would still contain uninitialized entries with uninitialized |
| 10637 |
pointers in the event of an error, leading to issues when attempting |
| 10638 |
to clean up. |
| 10639 |
|
| 10640 |
Reportd as |
| 10641 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40104 |
| 10642 |
|
| 10643 |
* src/cff/cffload.c (cff_vstore_load): Read the region and data counts |
| 10644 |
into locals and update the vstore counts immediately after each entry |
| 10645 |
becomes free-able. |
| 10646 |
|
| 10647 |
2021-10-20 Ben Wagner <[email protected]> |
| 10648 |
|
| 10649 |
[sfnt] Delay setting gasp ranges and count until computed. |
| 10650 |
|
| 10651 |
Previously, the gasp.numRanges was set and gasp.gaspRanges was |
| 10652 |
allocated and assigned before a possible early exit if the frame could |
| 10653 |
not be entered. It is also possible that the gaspRanges allocation |
| 10654 |
could fail but the numRanges still be set to non-zero. In such cases |
| 10655 |
an error would be returned, but the face would have a gasp in an |
| 10656 |
inconsistent state which may still be accessed. |
| 10657 |
|
| 10658 |
Reported as |
| 10659 |
https://bugs.chromium.org/p/chromium/issues/detail?id=1261450 |
| 10660 |
|
| 10661 |
* src/sfnt/ttload.c (tt_face_load_gasp): Delay setting gasp.numRanges |
| 10662 |
and gasp.gaspRanges until after the ranges are initialized. |
| 10663 |
|
| 10664 |
2021-10-20 Ben Wagner <[email protected]> |
| 10665 |
|
| 10666 |
[sfnt] Delay setting names and langTags until computed. |
| 10667 |
|
| 10668 |
Previously, the table->names and table->langTags fields were created |
| 10669 |
pointing to uninitialized memory and an early exit could happen if the |
| 10670 |
frame could not be entered. The caller would then be unable to properly |
| 10671 |
dispose of the memory as the string fields had not been initialized. |
| 10672 |
|
| 10673 |
Reported as |
| 10674 |
https://bugs.chromium.org/p/chromium/issues/detail?id=1261343 |
| 10675 |
|
| 10676 |
* src/sfnt/ttload.c (tt_face_load_name): delay setting table->langTags |
| 10677 |
and table->names until after the memory they will point to is fully |
| 10678 |
initialized. |
| 10679 |
|
| 10680 |
2021-10-20 Alexei Podtelezhnikov <[email protected]> |
| 10681 |
|
| 10682 |
* tests/issue-1063/main.c: s/PATH_MAX/FILENAME_MAX/. |
| 10683 |
|
| 10684 |
Closes !97 for Windows by using a standard macro. |
| 10685 |
|
| 10686 |
2021-10-19 Werner Lemberg <[email protected]> |
| 10687 |
|
| 10688 |
[bdf, cid, pfr, winfonts] Improve rejection of other font formats. |
| 10689 |
|
| 10690 |
This is mainly for better diagnostics of malformed fonts. |
| 10691 |
|
| 10692 |
* src/bdf/bdflib.c (_bfd_readstream): Stop font format testing if the first |
| 10693 |
input line is too long or doesn't end with `\r` or `\n`. |
| 10694 |
|
| 10695 |
* src/cid/cidparse.c (cid_parser_new): Don't handle too short input as an |
| 10696 |
error but as an unknown format. |
| 10697 |
|
| 10698 |
* src/pfr/pfrobjs.c (pfr_face_init): Ditto. |
| 10699 |
|
| 10700 |
* src/winfonts/winfnt.c (fnt_font_load, fnt_face_get_dll_font): Ditto. |
| 10701 |
|
| 10702 |
2021-10-19 Alexei Podtelezhnikov <[email protected]> |
| 10703 |
|
| 10704 |
[pcf] Zero out the allocated properties. |
| 10705 |
|
| 10706 |
Fallout reported as |
| 10707 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40033 |
| 10708 |
|
| 10709 |
* src/pcf/pcfread.c (pcf_get_properties): Use FT_NEW_ARRAY and zero |
| 10710 |
out `properties` in case of failure. |
| 10711 |
|
| 10712 |
2021-10-18 Werner Lemberg <[email protected]> |
| 10713 |
|
| 10714 |
configure: Use string comparison for directory inodes. |
| 10715 |
|
| 10716 |
Inode values might be larger than integers supported by the shell. |
| 10717 |
|
| 10718 |
Fixes #1105. |
| 10719 |
|
| 10720 |
2021-10-17 Alexei Podtelezhnikov <[email protected]> |
| 10721 |
|
| 10722 |
* src/sfnt/ttload.c (tt_face_load_name): NULL-initialize langTag. |
| 10723 |
|
| 10724 |
Another attempt to fix fallout reported as |
| 10725 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40024 |
| 10726 |
|
| 10727 |
2021-10-17 Alexei Podtelezhnikov <[email protected]> |
| 10728 |
|
| 10729 |
[bdf] Fix up user properties. |
| 10730 |
|
| 10731 |
Fallout reported as |
| 10732 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40027 |
| 10733 |
|
| 10734 |
* src/bdf/bdflib.c (_bdf_add_property): Cosmetic NULL. |
| 10735 |
(bdf_create_property): Limit allocations to customary signed |
| 10736 |
FT_Long and NULL-initialize unused storage. |
| 10737 |
(bdf_free_font): Do not free unused storage. |
| 10738 |
|
| 10739 |
2021-10-17 Alexei Podtelezhnikov <[email protected]> |
| 10740 |
|
| 10741 |
* src/sfnt/ttload.c (tt_face_load_name): Accounting fix. |
| 10742 |
|
| 10743 |
Fallout reported as |
| 10744 |
https://crbug.com/40024 |
| 10745 |
|
| 10746 |
2021-10-16 Ben Wagner <[email protected]> |
| 10747 |
|
| 10748 |
Fix typos in memory macros. |
| 10749 |
|
| 10750 |
FT_QNEW_ARRAY and FT_QRENEW_ARRAY were using the non-Q |
| 10751 |
FT_MEM_NEW_ARRAY and FT_MEM_RENEW_ARRAY. Change these to use the Q |
| 10752 |
versions. Also fix the one issue discovered in tt_face_load_name |
| 10753 |
where table->names is created with FT_QNEW_ARRAY but the extra |
| 10754 |
string member is not initialized to NULL. |
| 10755 |
|
| 10756 |
* include/freetype/internal/ftmemory.h (FT_Q(RE)NEW_ARRAY): |
| 10757 |
Use FT_MEM_Q(RE)NEW_ARRAY as needed. |
| 10758 |
|
| 10759 |
* src/sfnt/ttload.c (tt_face_load_name): Initialize `entry->string`. |
| 10760 |
|
| 10761 |
2021-10-15 Ben Wagner <[email protected]> |
| 10762 |
|
| 10763 |
[truetype] Reload context after re-executing `prep`. |
| 10764 |
|
| 10765 |
When a different hinting mode from the current is selected, the `prep` table |
| 10766 |
must be re-executed with the new mode. After this happens the context must |
| 10767 |
be re-loaded in preparation for the glyph program to be run. |
| 10768 |
|
| 10769 |
Fixes #1104. |
| 10770 |
|
| 10771 |
* truetype/ttgload.c (tt_loader_init): Add call to `TT_Load_Context`. |
| 10772 |
|
| 10773 |
2021-10-15 Werner Lemberg <[email protected]> |
| 10774 |
|
| 10775 |
[truetype] Minor documentation improvements. |
| 10776 |
|
| 10777 |
2021-10-14 Anurag Thakur <[email protected]> |
| 10778 |
|
| 10779 |
Add clang build to linux CI |
| 10780 |
|
| 10781 |
2021-10-12 Anurag Thakur <[email protected]> |
| 10782 |
|
| 10783 |
CI: Add macOS CI, including a clang build |
| 10784 |
|
| 10785 |
2021-10-12 Alexei Podtelezhnikov <[email protected]> |
| 10786 |
|
| 10787 |
* src/cid/cidload.c (parse_fd_array): Protect against trancation. |
| 10788 |
|
| 10789 |
2021-10-12 Alexei Podtelezhnikov <[email protected]> |
| 10790 |
|
| 10791 |
[type1] Revert to signed size for binary data. |
| 10792 |
|
| 10793 |
Recently introduced and reported as |
| 10794 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39838 |
| 10795 |
|
| 10796 |
* src/type1/t1load.c (read_binary_data): Reject negative size. |
| 10797 |
(parse_subrs, parse_charstrings): Use customary signed size. |
| 10798 |
|
| 10799 |
2021-10-11 Alexei Podtelezhnikov <[email protected]> |
| 10800 |
|
| 10801 |
[psaux] Signedness revisions. |
| 10802 |
|
| 10803 |
Unsigned indexes are easier to check. |
| 10804 |
|
| 10805 |
* src/psaux/cffdecode.c (cff_decoder_parse_charstrings): Updated. |
| 10806 |
* src/psaux/psintrp.c (cf2_interpT2CharString): Ditto. |
| 10807 |
* src/psaux/t1decode.c (t1_decoder_parse_charstrings): Ditto. |
| 10808 |
* src/type1/t1load.c (read_binary_data): Ditto. |
| 10809 |
|
| 10810 |
2021-10-11 Alexei Podtelezhnikov <[email protected]> |
| 10811 |
|
| 10812 |
[cid] Signedness revisions. |
| 10813 |
|
| 10814 |
Unsigned checks are simpler. |
| 10815 |
|
| 10816 |
* include/freetype/t1tables.h (CID_FaceInfoRec): Change to unsignd |
| 10817 |
`num_dicts`. |
| 10818 |
* src/cid/cidparse.h (CID_Parser): Change to unsigned `num_dict`. |
| 10819 |
|
| 10820 |
* src/cid/cidgload.c (cid_load_glyph): Updated. |
| 10821 |
* src/cid/cidload.c (cid_load_keyword, parse_fd_array, |
| 10822 |
parse_expansion_factor, parse_font_name, cid_read_subrs, |
| 10823 |
cid_face_open): Updated. |
| 10824 |
* src/cid/cidobjs.c (cid_face_done): Updated. |
| 10825 |
* src/cid/cidparse.c (cid_parser_new): Updated. |
| 10826 |
|
| 10827 |
2021-10-09 Alexei Podtelezhnikov <[email protected]> |
| 10828 |
|
| 10829 |
* src/cid/cidload.c (cid_face_open): Streamline CIDCount check. |
| 10830 |
|
| 10831 |
2021-10-08 Alexei Podtelezhnikov <[email protected]> |
| 10832 |
|
| 10833 |
* src/cid/cidload.c (cid_face_open): Streamline SubrCount check. |
| 10834 |
|
| 10835 |
2021-10-08 Alexei Podtelezhnikov <[email protected]> |
| 10836 |
|
| 10837 |
* src/cid/cidgload.c (cid_load_glyph): Fortify incremental loading. |
| 10838 |
|
| 10839 |
2021-10-08 Alexei Podtelezhnikov <[email protected]> |
| 10840 |
|
| 10841 |
Signedness revisions. |
| 10842 |
|
| 10843 |
This eliminates explicit casting by switching to unsigned fields. |
| 10844 |
The revisions mostly impact the handling of CID fonts. |
| 10845 |
|
| 10846 |
* include/freetype/fttypes.h (FT_Data): Change to unsigned `length`. |
| 10847 |
* include/freetype/t1tables.h (CID_FaceDictRec): Ditto for `sd_bytes`. |
| 10848 |
(CID_FaceInfoRec): Ditto for `gd_bytes` and `gd_bytes`. |
| 10849 |
* include/freetype/internal/tttypes.h (TT_LoaderRec): Ditto for |
| 10850 |
`byte_len`. |
| 10851 |
|
| 10852 |
* src/cid/cidgload.c (cid_load_glyph): Updated. |
| 10853 |
* src/cid/cidload.h (cid_get_offset): Update argument. |
| 10854 |
* src/cid/cidload.c (cid_get_offset, cid_read_subrs, cid_face_open): |
| 10855 |
Updated. |
| 10856 |
* src/cff/cffgload.c (cff_get_glyph_data, cff_free_glyph_data): |
| 10857 |
Updated. |
| 10858 |
* src/psaux/psft.c (cf2_getT1SeacComponent): Updated. |
| 10859 |
* src/truetype/ttgload.c (TT_Process_Composite_Glyph, |
| 10860 |
load_truetype_glyph): Updated. |
| 10861 |
|
| 10862 |
2021-10-07 Jan Alexander Steffens (heftig) <[email protected]> |
| 10863 |
|
| 10864 |
meson.build (gen_docs): Use `current_source_dir` instead of `source_root`. |
| 10865 |
|
| 10866 |
These two are not equal when FreeType is used as a subproject, such as in |
| 10867 |
`freetype-demos`. In that case, `source_root` points at the root project, |
| 10868 |
causing the docs build to fail. |
| 10869 |
|
| 10870 |
2021-10-05 Alexei Podtelezhnikov <[email protected]> |
| 10871 |
|
| 10872 |
* src/smooth/ftgrays.c (FT_DIV_MOD): Limit the ARM workaround. |
| 10873 |
|
| 10874 |
2021-10-05 Alexei Podtelezhnikov <[email protected]> |
| 10875 |
|
| 10876 |
[builds/unix, builds/vms] Standardize `mmap` failure. |
| 10877 |
|
| 10878 |
* builds/unix/ftsystem.c (FT_Stream_Open): Check for MAP_FAILED. |
| 10879 |
* builds/vms/ftsystem.c (FT_Stream_Open): Ditto. |
| 10880 |
|
| 10881 |
This should cover https://savannah.nongnu.org/patch/?5909 as well. |
| 10882 |
|
| 10883 |
2021-10-05 Hugh McMaster <[email protected]> |
| 10884 |
|
| 10885 |
autogen.sh: Only copy submodules if building from a git branch. |
| 10886 |
|
| 10887 |
`autogen.sh` fails if building from a standard source tarball. Firstly, git |
| 10888 |
expects to be called in a git repository, then `copy_submodule_files` |
| 10889 |
blindly attempts to copy files. |
| 10890 |
|
| 10891 |
Debian, Ubuntu, Linux Mint, and other derivatives all run `autogen.sh` |
| 10892 |
before compiling to regenerate build files. |
| 10893 |
|
| 10894 |
This patch ensures that various git commands are only called and 'dlg' files |
| 10895 |
are only copied if `autogen.sh` is called from a git repository. |
| 10896 |
|
| 10897 |
2021-10-05 Alexei Podtelezhnikov <[email protected]> |
| 10898 |
|
| 10899 |
* include/freetype/internal/ftgloadr.h: Add missing header. |
| 10900 |
|
| 10901 |
Noticed by Jouk Jansen. |
| 10902 |
|
| 10903 |
2021-10-05 Alexei Podtelezhnikov <[email protected]> |
| 10904 |
|
| 10905 |
[pshinter] Additional clean-ups. |
| 10906 |
|
| 10907 |
* src/pshinter/pshalgo.h (psh_hint_table_find_strong_points): Streamline code. |
| 10908 |
* src/pshinter/pshalgo.h (PSH_Glyph): Remove unused fields. |
| 10909 |
|
| 10910 |
2021-10-04 Alexei Podtelezhnikov <[email protected]> |
| 10911 |
|
| 10912 |
[pshinter] More convenient direction definition. |
| 10913 |
|
| 10914 |
It is easier to check directions using flags than integer values. |
| 10915 |
|
| 10916 |
* src/pshinter/pshalgo.h (PSH_Dir): Redefine directions. |
| 10917 |
(PSH_PointRec): Use them as an enum type. |
| 10918 |
|
| 10919 |
* src/pshinter/pshalgo.c (psh_compute_dir): Modify return type. |
| 10920 |
(psh_glyph_init, psh_hint_table_find_strong_points, |
| 10921 |
psh_glyph_find_blue_points): Update users. |
| 10922 |
|
| 10923 |
2021-10-04 Alexei Podtelezhnikov <[email protected]> |
| 10924 |
|
| 10925 |
[pshinter] Remove unnecessary check. |
| 10926 |
|
| 10927 |
* src/pshinter/pshalgo.c (psh_hint_table_find_strong_points): Do not |
| 10928 |
check if direction is defined before checking how. |
| 10929 |
|
| 10930 |
2021-10-02 AnuthaDev <[email protected]> |
| 10931 |
|
| 10932 |
CI: Hardcode meson version to fix build failure on windows |
| 10933 |
|
| 10934 |
2021-10-01 Alexei Podtelezhnikov <[email protected]> |
| 10935 |
|
| 10936 |
Additional `FT_MSB` macro definitions. |
| 10937 |
|
| 10938 |
* include/freetype/internal/ftcalc.h [__DECC,_CRAYC]: Use builtins |
| 10939 |
and intrinsics. |
| 10940 |
|
| 10941 |
2021-10-01 Alexei Podtelezhnikov <[email protected]> |
| 10942 |
|
| 10943 |
* src/autofit/afhints.c (af_glyph_hints_reload): Decrease casting. |
| 10944 |
|
| 10945 |
2021-09-30 Alexei Podtelezhnikov <[email protected]> |
| 10946 |
|
| 10947 |
* src/tools/apinames.c: Facilitate OpenVMS linker options. |
| 10948 |
|
| 10949 |
2021-09-29 Alexei Podtelezhnikov <[email protected]> |
| 10950 |
|
| 10951 |
* src/winfonts/winfnt.c (FNT_Face_Init): Correct reallocation. |
| 10952 |
|
| 10953 |
2021-09-25 Alexei Podtelezhnikov <[email protected]> |
| 10954 |
|
| 10955 |
[builds/unix] Do not use autoconf SIZEOF. |
| 10956 |
|
| 10957 |
* builds/unix/ftconfig.h.in [FT_USE_AUTOCONF_SIZEOF_TYPES]: Removed. |
| 10958 |
* builds/unix/configure.raw: Remove AC_CHECK_SIZEOF and update. |
| 10959 |
|
| 10960 |
After this commit, autoconf builds will fully rely on <limits.h> |
| 10961 |
rather than falling back on it if AC_CHECK_SIZEOF failed for some |
| 10962 |
reason. There is a risk that misconfigured cross-compilation might |
| 10963 |
have wrong headers. Note that Meson and CMake builds always relied on |
| 10964 |
<limits.h> for sizes and availability of integer types. |
| 10965 |
|
| 10966 |
2021-09-25 Alexei Podtelezhnikov <[email protected]> |
| 10967 |
|
| 10968 |
Propagate sign when reading OFF3. |
| 10969 |
|
| 10970 |
Signed 24-bit values are extremely rare. FreeType only reads them in |
| 10971 |
PFR fonts with bitmap strikes conditionally. They have not been seen |
| 10972 |
in the known fonts. That is why this bug could never be discovered. |
| 10973 |
`FT_FRAME_OFF3` propagates sign correctly. |
| 10974 |
|
| 10975 |
* include/freetype/internal/ftstream.h (FT_PEEK_OFF3, FT_PEEK_OFF3_LE): |
| 10976 |
Propagate sign into 32-bit value. |
| 10977 |
(FT_GET_OFF3, FT_READ_OFF3): Needed fixing but removed as unused. |
| 10978 |
|
| 10979 |
2021-09-25 Alexei Podtelezhnikov <[email protected]> |
| 10980 |
|
| 10981 |
[bdf] Simplify comment collection or lack thereof. |
| 10982 |
|
| 10983 |
BDF comments are neither actually collected nor retrieved. There is |
| 10984 |
no need to be fancy with delimiters. |
| 10985 |
|
| 10986 |
* src/bdf/bdflib.c (_add_bdf_comment): Delimit comments with zeros... |
| 10987 |
(bdf_load_font): ...and do not null-terminate comments additionally. |
| 10988 |
(_bdf_parse_glyphs): Check if comments are kept, which they are not. |
| 10989 |
(_bdf_parse_start): Minor clean up. |
| 10990 |
|
| 10991 |
2021-09-24 Alexei Podtelezhnikov <[email protected]> |
| 10992 |
|
| 10993 |
Use NULL for pointers only. |
| 10994 |
|
| 10995 |
* src/bdf/bdflib.c (*): Code changes. |
| 10996 |
* include/freetype/freetype.h: Comments only. |
| 10997 |
* src/cff/cffload.c, src/cff/cffobjs.c: Ditto. |
| 10998 |
* src/winfonts/winfnt.c: Ditto. |
| 10999 |
|
| 11000 |
2021-09-23 Werner Lemberg <[email protected]> |
| 11001 |
|
| 11002 |
Minor documentation fixes and improvements. |
| 11003 |
|
| 11004 |
2021-09-23 Alexei Podtelezhnikov <[email protected]> |
| 11005 |
|
| 11006 |
Reference `fopen` in the docs. |
| 11007 |
|
| 11008 |
2021-09-23 Alexei Podtelezhnikov <[email protected]> |
| 11009 |
|
| 11010 |
[bdf, pcf] Minor optimization. |
| 11011 |
|
| 11012 |
* src/pcf/pcfread.c (pcf_load_font): Do not call `FT_MulDiv` for a |
| 11013 |
small job. |
| 11014 |
* src/bdf/bdfdrivr.c (BDF_Face_Init): Ditto. |
| 11015 |
* src/bdf/bdflib.c (_bdf_parse_glyphs): Fix a comment. |
| 11016 |
|
| 11017 |
2021-09-22 Alexei Podtelezhnikov <[email protected]> |
| 11018 |
|
| 11019 |
[base] Initialize stream memory earlier. |
| 11020 |
|
| 11021 |
With Windows memory management tracking heap, it is important to use |
| 11022 |
it during the stream opening fallback. In Unix, the argument is |
| 11023 |
unused, but it is better to set it correctly. |
| 11024 |
|
| 11025 |
* src/base/ftobjs.c (FT_Stream_New): Set memory before calling |
| 11026 |
`FT_Stream_Open`. |
| 11027 |
* builds/windows/ftsystem.c, builds/unix/ftsystem.c (FT_Stream_Open, |
| 11028 |
ft_close_stream_by_free): Call `ft_alloc` and `ft_free` with proper |
| 11029 |
memory argumment. |
| 11030 |
|
| 11031 |
2021-09-22 Alexei Podtelezhnikov <[email protected]> |
| 11032 |
|
| 11033 |
[builds/windows] Revert back to `CreateFileA` only. |
| 11034 |
|
| 11035 |
Calling `CreateFileW` without making sure that the patname is really |
| 11036 |
`wchar_t` is a bad idea and can lead to unpredictable overreads. For |
| 11037 |
Windows CE, we impelemnt the missing API. |
| 11038 |
|
| 11039 |
Fixes #1098 and !76 again. |
| 11040 |
|
| 11041 |
* builds/windows/ftsystem.c (FT_Stream_Open): Call `CreateFileA`. |
| 11042 |
[_WIN32_WCE] (CreateFileA, FileSizeEx): Implement missing interfaces. |
| 11043 |
|
| 11044 |
2021-09-21 Alexei Podtelezhnikov <[email protected]> |
| 11045 |
|
| 11046 |
* src/bdf/bdflib.c (_bdf_parse_{start,glyphs}): Use appropriate scanner. |
| 11047 |
|
| 11048 |
2021-09-21 Alexei Podtelezhnikov <[email protected]> |
| 11049 |
|
| 11050 |
Minor. |
| 11051 |
|
| 11052 |
2021-09-20 Alexei Podtelezhnikov <[email protected]> |
| 11053 |
|
| 11054 |
* src/cff/cffdrivr.c (cff_ps_get_font_{info,extra}): Use FT_QNEW. |
| 11055 |
|
| 11056 |
2021-09-18 Alexei Podtelezhnikov <[email protected]> |
| 11057 |
|
| 11058 |
[cache] Minor clean-ups. |
| 11059 |
|
| 11060 |
* src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Remove parantheses. |
| 11061 |
* src/cache/ftccache.c (FTC_Cache_Lookup): Ditto. |
| 11062 |
(FTC_Cache_RemoveFaceID): Remove unnecessary variable. |
| 11063 |
|
| 11064 |
2021-09-17 Alexei Podtelezhnikov <[email protected]> |
| 11065 |
|
| 11066 |
[builds/windows] Try both wide and narrow `CreateFile` |
| 11067 |
|
| 11068 |
Windows handles wchar_t* UTF-16 and char* ANSI (presently UTF-8) |
| 11069 |
filenames using alternative -A and -W API. We'll try them both |
| 11070 |
when opening a file. This means that you should not worry about |
| 11071 |
about conversions. |
| 11072 |
|
| 11073 |
Fixes #1098 and !76. |
| 11074 |
|
| 11075 |
* builds/windows/ftsystem.c (FT_Stream_Open): Call alternative |
| 11076 |
`CreateFile` in the case of failure. |
| 11077 |
|
| 11078 |
2021-09-17 Edwin Steiner <[email protected]> |
| 11079 |
|
| 11080 |
[cff] Explicitly set StandardEncoding or ExpertEncoding offsets. |
| 11081 |
|
| 11082 |
Fixes #1097. |
| 11083 |
|
| 11084 |
* src/cff/cffload.c (cff_encoding_load): Set special offset values. |
| 11085 |
|
| 11086 |
2021-09-16 Alexei Podtelezhnikov <[email protected]> |
| 11087 |
|
| 11088 |
[cache] Miscellaneous clean-ups. |
| 11089 |
|
| 11090 |
* src/cache/ftccache.c (ftc_get_top_node_for_hash, FTC_Cache_Clear): |
| 11091 |
Remove barely used variables. |
| 11092 |
(ftc_cache_add): Adjust casting. |
| 11093 |
* src/cache/ftccmap.c (FTC_CMapCache_Lookup): Remove casting. |
| 11094 |
* src/cache/ftcsbits.c (ftc_snode_load): Remove casting. |
| 11095 |
|
| 11096 |
2021-09-16 Alexei Podtelezhnikov <[email protected]> |
| 11097 |
|
| 11098 |
* src/cff/cffload.c (cff_fd_select_get): Remove casting. |
| 11099 |
|
| 11100 |
2021-09-16 Alexei Podtelezhnikov <[email protected]> |
| 11101 |
|
| 11102 |
* src/pcf/pcfread.c (pcf_read_TOC): Remove casting. |
| 11103 |
|
| 11104 |
2021-09-15 Alexei Podtelezhnikov <[email protected]> |
| 11105 |
|
| 11106 |
Minor type adjustments. |
| 11107 |
|
| 11108 |
* src/cff/cffobjs.c (cff_face_init): Reduce casting. |
| 11109 |
* src/truetype/ttobjs.c (tt_size_ready_bytecode): Ditto. |
| 11110 |
* src/type1/t1load.c (T1_Set_MM_Design): Ditto. |
| 11111 |
|
| 11112 |
2021-09-15 Alexei Podtelezhnikov <[email protected]> |
| 11113 |
|
| 11114 |
Replace boolean allocation macros with MEM ones. |
| 11115 |
|
| 11116 |
* src/base/ftbitmap.c (FT_Bitmap_Copy): Use MEM-macro. |
| 11117 |
* src/base/ftobjs.c (ft_glyphslot_alloc_bitmap): Ditto. |
| 11118 |
* src/bzip2/ftbzip2.c (ft_bzip2_alloc): Ditto. |
| 11119 |
* src/cache/ftccache.c (ftc_cache_init): Ditto |
| 11120 |
* src/gzip/ftgzip.c (ft_gzip_alloc): Ditto. |
| 11121 |
* src/psnames/psmodule.c (ps_unicodes_init): Ditto. |
| 11122 |
* src/sfnt/sfobjs.c (sfnt_load_face): Ditto. |
| 11123 |
* src/sfnt/ttload.c (tt_face_load_name): Ditto. |
| 11124 |
|
| 11125 |
2021-09-15 Alexei Podtelezhnikov <[email protected]> |
| 11126 |
|
| 11127 |
[cache] Revert to some zeroing. |
| 11128 |
|
| 11129 |
* src/cache/ftccache.c (ftc_cache_init, ftc_cache_resize): Zero |
| 11130 |
`buckets` again to fix some crashes. |
| 11131 |
|
| 11132 |
2021-09-14 Alexei Podtelezhnikov <[email protected]> |
| 11133 |
|
| 11134 |
* src/pshinter/pshrec.c (ps_mask_table_merge_all): Tweak loops. |
| 11135 |
|
| 11136 |
Fixes fallout from 731d0b685685 reported as |
| 11137 |
|
| 11138 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38685 |
| 11139 |
|
| 11140 |
2021-09-13 Alexei Podtelezhnikov <[email protected]> |
| 11141 |
|
| 11142 |
[cff, pshinter] Clean up unsigned counters. |
| 11143 |
|
| 11144 |
Loops with unsigned decrement can be reliably stopped when the counter |
| 11145 |
wraps around after reaching zero. |
| 11146 |
|
| 11147 |
* src/cff/cffload.c (cff_charset_compute_cids): Use unsigned counter. |
| 11148 |
* src/pshinter/pshalgo.c (psh_hint_table_activate_mask): Ditto. |
| 11149 |
* src/pshinter/pshrec.c (ps_mask_table_merge): Ditto. |
| 11150 |
|
| 11151 |
2021-09-13 Alexei Podtelezhnikov <[email protected]> |
| 11152 |
|
| 11153 |
[bdf, psnames, sfnt] Avoid some memory zeroing. |
| 11154 |
|
| 11155 |
* src/bdf/bdfdrivr.c (BDF_Face_Init): Use Q-macro. |
| 11156 |
* src/sfnt/sfobjs.c (sfnt_load_face): Ditto. |
| 11157 |
* src/psnames/psmodule.c (src/psnames/psmodule.c): Remove zero. |
| 11158 |
|
| 11159 |
2021-09-13 Alexei Podtelezhnikov <[email protected]> |
| 11160 |
|
| 11161 |
* src/base/ftobjs.c (FT_CMap_New): Revert to zeroing. |
| 11162 |
|
| 11163 |
Fixes fallout from c1fa7aa2bc96, reported as |
| 11164 |
|
| 11165 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38641 |
| 11166 |
|
| 11167 |
2021-09-13 Alexei Podtelezhnikov <[email protected]> |
| 11168 |
|
| 11169 |
[truetype] Clean up `exec` initialization. |
| 11170 |
|
| 11171 |
* src/truetype/ttinterp.c (Init_Context): Absorbed into... |
| 11172 |
(TT_New_Context): ... this function. |
| 11173 |
|
| 11174 |
2021-09-13 Alexei Podtelezhnikov <[email protected]> |
| 11175 |
|
| 11176 |
[truetype] Avoid some memory zeroing. |
| 11177 |
|
| 11178 |
* src/truetype/ttgload.c (load_truetype_glyph): Use Q-macro. |
| 11179 |
* src/truetype/ttinterp.c (Update_Max): Ditto. |
| 11180 |
* src/truetype/ttpload.c (src/truetype/ttpload.c): Ditto. |
| 11181 |
|
| 11182 |
2021-09-13 Alexei Podtelezhnikov <[email protected]> |
| 11183 |
|
| 11184 |
[base] Avoid some memory zeroing. |
| 11185 |
|
| 11186 |
* src/base/ftobjs.c (FT_New_Size, FT_CMap_New, FT_CMap_Done, |
| 11187 |
ft_open_face_internal, ft_open_face_internal): Use Q-macros. |
| 11188 |
|
| 11189 |
2021-09-13 Alexei Podtelezhnikov <[email protected]> |
| 11190 |
|
| 11191 |
[cache, psaux] Remove zeros. |
| 11192 |
|
| 11193 |
* src/cache/ftcmru.c (FTC_MruList_New): Remove initialization. |
| 11194 |
* src/psaux/psstack.c (cf2_stack_init): Ditto. |
| 11195 |
|
| 11196 |
2021-09-12 Alexei Podtelezhnikov <[email protected]> |
| 11197 |
|
| 11198 |
[cache] Avoid some memory zeroing. |
| 11199 |
|
| 11200 |
* src/cache/ftcmru.c (FTC_MruList_New): Use Q-macro. |
| 11201 |
* src/cache/ftcmanag.c (FTC_Manager_RegisterCache): Ditto. |
| 11202 |
* src/cache/ftccache.c (ftc_cache_init, ftc_cache_resize): Ditto. |
| 11203 |
|
| 11204 |
2021-09-11 Alexei Podtelezhnikov <[email protected]> |
| 11205 |
|
| 11206 |
* src/cache/ftcmanag.c (FTC_Manager_New): Add missing zero. |
| 11207 |
|
| 11208 |
Fixes fall out from a7b199d081e7. |
| 11209 |
|
| 11210 |
2021-09-10 Alexei Podtelezhnikov <[email protected]> |
| 11211 |
|
| 11212 |
[truetype] Tweak `hdmx` checking. |
| 11213 |
|
| 11214 |
Fixes #1096. |
| 11215 |
|
| 11216 |
* src/truetype/ttpload.c (tt_face_load_hdmx): Account for padding. |
| 11217 |
|
| 11218 |
2021-09-10 Alexei Podtelezhnikov <[email protected]> |
| 11219 |
|
| 11220 |
[truetype] Tweak `loca` clamping. |
| 11221 |
|
| 11222 |
Fixes #1095. |
| 11223 |
|
| 11224 |
* src/truetype/ttpload.c (tt_face_load_loca): Fix up clamping. |
| 11225 |
* include/freetype/internal/tttypes.h (TT_Face): Correct docs. |
| 11226 |
|
| 11227 |
2021-09-08 Alexei Podtelezhnikov <[email protected]> |
| 11228 |
|
| 11229 |
Fortify memory debugging (cont'd). |
| 11230 |
|
| 11231 |
* src/base/ftdbgmem.c (FT_DumpMemory): Check for active debugger. |
| 11232 |
(ft_mem_table_destroy): Move `FT_DumpMemory` call from here... |
| 11233 |
(ft_mem_debug_done): ... to here. |
| 11234 |
|
| 11235 |
2021-09-08 Alexei Podtelezhnikov <[email protected]> |
| 11236 |
|
| 11237 |
Fortify memory debugging. |
| 11238 |
|
| 11239 |
These changes are neccessary to properly recover `memory->user` that |
| 11240 |
holds the Windows heap handle now. |
| 11241 |
|
| 11242 |
* src/base/ftdbgmem.c (ft_mem_debug_init): Handle all table allocations, |
| 11243 |
initializations, and sizing instead of... |
| 11244 |
(ft_mem_table_new): ... this function removed. |
| 11245 |
(ft_mem_debug_done): Better check for the active debugger and free the |
| 11246 |
debugger table here instead of... |
| 11247 |
(ft_mem_table_destroy): ... here. |
| 11248 |
|
| 11249 |
2021-09-08 Werner Lemberg <[email protected]> |
| 11250 |
|
| 11251 |
src/tools/ftrandom/ftrandom.c (_XOPEN_SOURCE): Set to 600. |
| 11252 |
|
| 11253 |
This allows C99 compilation on Solaris. |
| 11254 |
|
| 11255 |
Problem reported by Mojca Miklavec. |
| 11256 |
|
| 11257 |
2021-09-07 Alexei Podtelezhnikov <[email protected]> |
| 11258 |
|
| 11259 |
[builds/windows] Use native memory allocation API. |
| 11260 |
|
| 11261 |
* builds/windows/ftsystem.c (ft_alloc, ft_realloc, ft_free): |
| 11262 |
Wrap HeapAlloc, HeapReAlloc, and HeapFree. |
| 11263 |
(FT_New_Memory): Set the heap handle. |
| 11264 |
|
| 11265 |
2021-09-07 Werner Lemberg <[email protected]> |
| 11266 |
|
| 11267 |
[dlg] Synchronize with upstream. |
| 11268 |
|
| 11269 |
* src/dlg/dlgwrap.c (_XOPEN_SOURCE): Set to 600. |
| 11270 |
|
| 11271 |
Fixes #1093. |
| 11272 |
|
| 11273 |
2021-09-04 Alexei Podtelezhnikov <[email protected]> |
| 11274 |
|
| 11275 |
Cosmetic zeros. |
| 11276 |
|
| 11277 |
2021-09-03 Alexei Podtelezhnikov <[email protected]> |
| 11278 |
|
| 11279 |
* src/bdf/bdflib.c (_bdf_parse_start): Keep parser memory. |
| 11280 |
|
| 11281 |
2021-09-03 Werner Lemberg <[email protected]> |
| 11282 |
|
| 11283 |
autogen.sh: Make it work with old Solaris 10 shell. |
| 11284 |
|
| 11285 |
2021-09-03 Alexei Podtelezhnikov <[email protected]> |
| 11286 |
|
| 11287 |
[smooth, raster, sdf] Clean up initialization calls. |
| 11288 |
|
| 11289 |
* src/raster/ftraster.c (ft_black_init): Removed. |
| 11290 |
(ft_black_new): Clean up. |
| 11291 |
* src/sdf/ftbsdf.c (bsdf_raster_new): Ditto. |
| 11292 |
* src/sdf/ftsdf.c (sdf_raster_new): Ditto. |
| 11293 |
* src/smooth/ftgrays.c (gray_raster_new): Ditto. |
| 11294 |
|
| 11295 |
2021-09-03 Alexei Podtelezhnikov <[email protected]> |
| 11296 |
|
| 11297 |
* src/cache/ftcmanag.c (FTC_Manager_New): Avoid some zeroing. |
| 11298 |
|
| 11299 |
2021-09-03 Alexei Podtelezhnikov <[email protected]> |
| 11300 |
|
| 11301 |
* src/bdf/bdflib.c (bdf_load_font): Remove memory shuffling. |
| 11302 |
|
| 11303 |
2021-09-03 Alexei Podtelezhnikov <[email protected]> |
| 11304 |
|
| 11305 |
Cosmetic zeros. |
| 11306 |
|
| 11307 |
2021-09-02 Alexei Podtelezhnikov <[email protected]> |
| 11308 |
|
| 11309 |
[base] Clean up stream reading. |
| 11310 |
|
| 11311 |
* src/base/ftstream.c (FT_Stream_ReadUShort, FT_Stream_ReadUOffset, |
| 11312 |
FT_Stream_ReadULong and their LE variants): Remove unnecessary |
| 11313 |
initialization and slightly refactor. |
| 11314 |
(FT_Stream_GetByte, FT_Stream_ReadByte): Rename to return unsigned |
| 11315 |
value and align with sister functions. |
| 11316 |
|
| 11317 |
* include/freetype/internal/ftstream.h (FT_Stream_GetByte, |
| 11318 |
FT_Stream_ReadByte): Update prototypes and caller macros. |
| 11319 |
|
| 11320 |
2021-09-02 Alexei Podtelezhnikov <[email protected]> |
| 11321 |
|
| 11322 |
s/0/NULL/ where appropriate. |
| 11323 |
|
| 11324 |
2021-08-30 Alexei Podtelezhnikov <[email protected]> |
| 11325 |
|
| 11326 |
* builds/windows/ftsystem.c (FT_Stream_Open): Fix double-close. |
| 11327 |
|
| 11328 |
2021-08-30 Alexei Podtelezhnikov <[email protected]> |
| 11329 |
|
| 11330 |
[smooth] Reduce shift in multiply-shift optimization. |
| 11331 |
|
| 11332 |
* src/smooth/ftgrays.c (FT_UDIVPREP, FT_UDIV): Reduce shift. |
| 11333 |
|
| 11334 |
Smaller shifts that keep the division operands of FT_UDIVPREP within |
| 11335 |
32 bits result in slightly faster divisions, which is noticeable in |
| 11336 |
the overall performance. The loss of precision is tolerable until the |
| 11337 |
divisors (the components dx and dy) approach 32 - PIXEL_BITS. With |
| 11338 |
PIXEL_BITS = 8, this corresponds to 65,000 pixels or the bitmap size |
| 11339 |
that we refuse to render anyway. |
| 11340 |
|
| 11341 |
Using `ftbench -p -s60 -t5 -bc timesi.ttf`, |
| 11342 |
|
| 11343 |
Before: 8.52 us/op |
| 11344 |
After: 8.32 us/op |
| 11345 |
|
| 11346 |
2021-08-28 Werner Lemberg <[email protected]> |
| 11347 |
|
| 11348 |
[truetype] Fix compilation if !TT_CONFIG_OPTION_BYTECODE_INTERPRETER. |
| 11349 |
|
| 11350 |
* src/truetype/ttgxvar.c (tt_cvt_ready_iterator): Compile function |
| 11351 |
conditionally. |
| 11352 |
(tt_face_vary_cvt) [!TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Add code. |
| 11353 |
|
| 11354 |
Fixes #1091. |
| 11355 |
|
| 11356 |
2021-08-27 Alexei Podtelezhnikov <[email protected]> |
| 11357 |
|
| 11358 |
[builds/windows] Revise SSE2 settings. |
| 11359 |
|
| 11360 |
* builds/windows/vc2010/freetype.vcxproj [x64]: Remove explicit SSE2. |
| 11361 |
* builds/windows/visualc/freetype.vcproj [Win32]: Add explicit SSE2. |
| 11362 |
|
| 11363 |
2021-08-27 Ben Wagner <[email protected]> |
| 11364 |
|
| 11365 |
[smooth] Detect SSE2 with MSVC for x86 |
| 11366 |
|
| 11367 |
MSVC does not set `__SSE2__`. Instead one must check whether `_M_IX86_FP` is |
| 11368 |
defined and greater than or equal to 2. |
| 11369 |
|
| 11370 |
* src/smooth/ftgrays.c (FT_SSE2): New macro. |
| 11371 |
Use it where appropriate. |
| 11372 |
|
| 11373 |
2021-08-26 Alexei Podtelezhnikov <[email protected]> |
| 11374 |
|
| 11375 |
Expand comment (cont'd). |
| 11376 |
|
| 11377 |
2021-08-26 Alexei Podtelezhnikov <[email protected]> |
| 11378 |
|
| 11379 |
Expand comment. |
| 11380 |
|
| 11381 |
2021-08-24 Alexei Podtelezhnikov <[email protected]> |
| 11382 |
|
| 11383 |
* src/smooth/ftgrays.c (gray_render_conic): Refactor redundancy. |
| 11384 |
|
| 11385 |
2021-08-24 suzuki toshiya <[email protected]> |
| 11386 |
|
| 11387 |
[truetype] Fix for the family name shorter than 8 characters. |
| 11388 |
|
| 11389 |
* src/truetype/ttobjs.c (tt_skip_pdffont_random_tag): |
| 11390 |
If the family name to be checked is shorter than 8 characters, |
| 11391 |
do not check its syntax. |
| 11392 |
|
| 11393 |
2021-08-24 suzuki toshiya <[email protected]> |
| 11394 |
|
| 11395 |
[truetype] Simplify `trick_names'. |
| 11396 |
|
| 11397 |
* src/truetype/ttobjs.c (tt_check_trickyness_family): For the case |
| 11398 |
that the beginning part of a long tricky family name is already |
| 11399 |
registered as another tricky family name, no need to double-check |
| 11400 |
the longer one. Such long tricky family names are removed from |
| 11401 |
the `trick_names'. |
| 11402 |
|
| 11403 |
2021-08-24 suzuki toshiya <[email protected]> |
| 11404 |
|
| 11405 |
[truetype] Add 2 tricky font names. |
| 11406 |
|
| 11407 |
Additional fix for the issue #1087. |
| 11408 |
|
| 11409 |
* src/truetype/ttobjs.c (tt_check_trickyness_family): Add 2 tricky |
| 11410 |
font names reported in #1087. |
| 11411 |
|
| 11412 |
2021-08-24 suzuki toshiya <[email protected]> |
| 11413 |
|
| 11414 |
[truetype] New function to skip the randomization tag. |
| 11415 |
|
| 11416 |
* src/truetype/ttobjs.c (tt_skip_pdffont_random_tag): |
| 11417 |
New function to skip the randomization tag in the names of the |
| 11418 |
fonts embedded in a PDF. It is used by tt_check_trickyness_family(), |
| 11419 |
to keep from mistaking "DLC" in the randomization tag as a |
| 11420 |
tricky font name. See discussion in: |
| 11421 |
|
| 11422 |
https://lists.nongnu.org/archive/html/freetype-devel/2021-02/msg00002.html |
| 11423 |
|
| 11424 |
For technical detail about the randomization tag, please find |
| 11425 |
PDF Reference 5.5.3 "Font Subsets". Thanks to Justyna Wawrzynska |
| 11426 |
for pointing out the issue caused by the randomization tag. |
| 11427 |
|
| 11428 |
2021-08-24 suzuki toshiya <[email protected]> |
| 11429 |
|
| 11430 |
[truetype] Add checksums for 2 tricky fonts. |
| 11431 |
|
| 11432 |
Thanks to Ting717 for providing sample PDF. Fixes #1087. |
| 11433 |
|
| 11434 |
* src/truetype/ttobjs.c (tt_check_trickyness_sfnt_ids): Add |
| 11435 |
checksums for 2 tricky fonts `DFHei-Bd-WIN-HK-BF' and |
| 11436 |
`DFMing-Md-WIN-HK-BF'. |
| 11437 |
|
| 11438 |
2021-08-23 Alexei Podtelezhnikov <[email protected]> |
| 11439 |
|
| 11440 |
Whitespace formatting. |
| 11441 |
|
| 11442 |
2021-08-22 Alexei Podtelezhnikov <[email protected]> |
| 11443 |
|
| 11444 |
Decorate const arguments. |
| 11445 |
|
| 11446 |
* src/base/ftglyph.c (FT_Glyph_Transform, FT_Glyph_To_Bitmap): Do it. |
| 11447 |
* include/freetype/ftglyph.h (FT_Glyph_Transform, FT_Glyph_To_Bitmap): |
| 11448 |
Do it. |
| 11449 |
|
| 11450 |
2021-08-21 Alexei Podtelezhnikov <[email protected]> |
| 11451 |
|
| 11452 |
[smooth] Clean up the null cell usage. |
| 11453 |
|
| 11454 |
Put the null cell at the end of the pool and store it explicitly so that |
| 11455 |
we can use it as both the limit and the dumpster. |
| 11456 |
|
| 11457 |
* src/smooth/ftgrays.c (gray_TWorker): Store the last `cell_null` and |
| 11458 |
remove unnecesary fields. |
| 11459 |
(NULL_CELL_PTR, CELL_IS_NULL): Remove in favor of explicit `cell_null`. |
| 11460 |
(gray_dump_cells, gray_set_cell, gray_sweep{,_direct}): Update callers. |
| 11461 |
(gray_convert_glyph_inner): Trace remaining cells (oh well). |
| 11462 |
(gray_convert_glyph): Set up `cell_null` and slightly improve the pool |
| 11463 |
management. |
| 11464 |
|
| 11465 |
2021-08-20 Alexei Podtelezhnikov <[email protected]> |
| 11466 |
|
| 11467 |
[base] Restore quiet no-op rendering of bitmap glyphs. |
| 11468 |
|
| 11469 |
Fixes #1076. |
| 11470 |
|
| 11471 |
* src/base/ftobjs.c (FT_Render_Glyph_Internal): Discard an error when |
| 11472 |
rendering a bitmap glyph. |
| 11473 |
|
| 11474 |
2021-08-20 Alexei Podtelezhnikov <[email protected]> |
| 11475 |
|
| 11476 |
[smooth] Fortify 64-bit algorithm. |
| 11477 |
|
| 11478 |
* src/smooth/ftgrays.c (FT_UDIVPREP, FT_UDIV): s/long/FT_Int64/ and |
| 11479 |
s/unsigned long/FT_UInt64/. |
| 11480 |
(gray_render_line): Adjust a critical variable type. |
| 11481 |
|
| 11482 |
2021-08-20 Carlo Bramini <[email protected]> |
| 11483 |
|
| 11484 |
* builds/windows/ftsystem.c (FT_Stream_Open): Support legacy Windows. |
| 11485 |
|
| 11486 |
2021-08-20 Alexei Podtelezhnikov <[email protected]> |
| 11487 |
|
| 11488 |
Determine `long long` availability based on its size. |
| 11489 |
|
| 11490 |
MSVC, for example, used `long long` even without full C99 support. |
| 11491 |
|
| 11492 |
* include/freetype/config/ftstdlib.h: Check if `long long` limits are |
| 11493 |
defined in <limits.h>. |
| 11494 |
* include/freetype/config/integer-types.h: Check `long long` size and |
| 11495 |
use it to typedef FT_Int64. |
| 11496 |
|
| 11497 |
2021-08-19 Dominik Röttsches <[email protected]> |
| 11498 |
|
| 11499 |
[sfnt] Fix format expectation for `COLR` v1 ClipList |
| 11500 |
|
| 11501 |
* src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Change ClipList |
| 11502 |
format expectation to 1 instead of 0 to make it compliant with the |
| 11503 |
latest spec. |
| 11504 |
|
| 11505 |
2021-08-19 Alexei Podtelezhnikov <[email protected]> |
| 11506 |
|
| 11507 |
Readily use `long long` as a 64-bit type in C99 mode. |
| 11508 |
|
| 11509 |
* include/freetype/config/integer-types.h (FT_INT64): |
| 11510 |
FT_CONFIG_OPTION_FORCE_INT64 is no longer required to use `long long`. |
| 11511 |
|
| 11512 |
2021-08-19 Alexei Podtelezhnikov <[email protected]> |
| 11513 |
|
| 11514 |
Use FT_INT64 instead of FT_LONG64. |
| 11515 |
|
| 11516 |
* include/freetype/config/integer-types.h: Remove synonymous FT_LONG64. |
| 11517 |
* include/freetype/internal/ftcalc.h: s/FT_LONG64/FT_INT64/. |
| 11518 |
* src/base/ftcalc.c: Ditto. |
| 11519 |
* src/base/fttrigon.c: Ditto. |
| 11520 |
* src/smooth/ftgrays.c: Ditto. |
| 11521 |
|
| 11522 |
2021-08-18 Alexei Podtelezhnikov <[email protected]> |
| 11523 |
|
| 11524 |
[builds/windows] Do not set CharacterSet for VC++. |
| 11525 |
|
| 11526 |
* builds/windows/vc2010/freetype.vcxproj: s/Unicode/NotSet/. |
| 11527 |
* builds/windows/visualc/freetype.vcproj: s/"1"/"0"/. |
| 11528 |
|
| 11529 |
2021-08-18 Werner Lemberg <[email protected]> |
| 11530 |
|
| 11531 |
* src/sdf/ftsdf.c (get_control_box): Fix compiler warning. |
| 11532 |
|
| 11533 |
2021-08-18 Werner Lemberg <[email protected]> |
| 11534 |
|
| 11535 |
[base] Fix ppem size overflow. |
| 11536 |
|
| 11537 |
Fixes #1086. |
| 11538 |
|
| 11539 |
* src/base/ftobjs.c (FT_Request_Metrics): Add return value. |
| 11540 |
Check whether ppem values fit into unsigned short values. |
| 11541 |
(FT_Request_Size): Updated. |
| 11542 |
|
| 11543 |
* include/freetype/internal/ftobjs.h: Updated. |
| 11544 |
|
| 11545 |
* src/cff/cffobjs.c (cff_size_request), src/cid/cidobjs.c |
| 11546 |
(cid_size_request), src/truetype/ttdriver.c (tt_size_request), |
| 11547 |
src/type1/t1objs.c (T1_Size_Request): Updated. |
| 11548 |
|
| 11549 |
2021-08-18 Alexei Podtelezhnikov <[email protected]> |
| 11550 |
|
| 11551 |
* builds/windows/ftsystem.c (FT_Stream_Open): Cast to remove warning. |
| 11552 |
|
| 11553 |
2021-08-18 Alexei Podtelezhnikov <[email protected]> |
| 11554 |
|
| 11555 |
* builds/windows/ftsystem.c (FT_Stream_Open): Support UNICODE compilation. |
| 11556 |
|
| 11557 |
2021-08-09 Werner Lemberg <[email protected]> |
| 11558 |
|
| 11559 |
* src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Minor fix. |
| 11560 |
|
| 11561 |
2021-08-09 Dominik Röttsches <[email protected]> |
| 11562 |
|
| 11563 |
[sfnt] Add missing blend mode 'plus' to 'COLR' v1. |
| 11564 |
|
| 11565 |
* include/freetype/ftcolor.h (FT_Composite_Mode): Add missing blend mode |
| 11566 |
'plus' after it was added to the spec. |
| 11567 |
|
| 11568 |
2021-08-08 Werner Lemberg <[email protected]> |
| 11569 |
|
| 11570 |
include/freetype/freetype.h (FT_Encoding): Improve documentation. |
| 11571 |
|
| 11572 |
Based on a suggestion by Antony Lee <[email protected]>. |
| 11573 |
|
| 11574 |
2021-08-07 Werner Lemberg <[email protected]> |
| 11575 |
|
| 11576 |
[smooth] Avoid integer overflow. |
| 11577 |
|
| 11578 |
Reported as |
| 11579 |
|
| 11580 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36243 |
| 11581 |
|
| 11582 |
* src/smooth/ftgrays.c(ADD_LONG, SUB_LONG, MUL_LONG, NEG_LONG) |
| 11583 |
[STANDALONE_]: Removed, unused. |
| 11584 |
(ADD_INT) [STANDALONE_]: New macro. |
| 11585 |
(FT_INTEGRATE): Use ADD_INT. |
| 11586 |
|
| 11587 |
2021-08-07 Dominik Röttsches <[email protected]> |
| 11588 |
|
| 11589 |
[sfnt] Add API for retrieving a 'COLR' v1 'ClipBox' table. |
| 11590 |
|
| 11591 |
The optional 'COLR' v1 glyph-specific clip box helps upstream graphics |
| 11592 |
libraries allocate a sufficiently large bitmap for a glyph without having to |
| 11593 |
traverse the glyph graph for that. See |
| 11594 |
|
| 11595 |
https://github.com/googlefonts/colr-gradients-spec/issues/251 |
| 11596 |
|
| 11597 |
for background on the introduction of this specification change. |
| 11598 |
|
| 11599 |
* include/freetype/ftcolor.h (FT_ClipBox): New structure. |
| 11600 |
(FT_Get_Color_Glyph_ClipBox): New function declaration. |
| 11601 |
|
| 11602 |
* include/freetype/internal/sfnt.h (TT_Get_Color_Glyph_ClipBox_Func): |
| 11603 |
New function type. |
| 11604 |
(SFNT_Interface, FT_DEFINE_SFNT_INTERFACE): Use it. |
| 11605 |
|
| 11606 |
* src/base/ftobjs.c (FT_Get_Color_Glyph_ClipBox): New function to link API |
| 11607 |
with SFNT implementation. |
| 11608 |
|
| 11609 |
* src/sfnt/sfdriver.c (sfnt_interface): Updated. |
| 11610 |
* src/sfnt/ttcolr.c (Colr): New field `clip_list`. |
| 11611 |
(tt_face_load_colr): Parse global clip list offset. |
| 11612 |
(tt_face_get_color_glyph_clipbox): New function to find the clip box for a |
| 11613 |
glyph id from the clip list array. |
| 11614 |
* src/sfnt/ttcolr.h: Updated. |
| 11615 |
|
| 11616 |
2021-08-06 Werner Lemberg <[email protected]> |
| 11617 |
|
| 11618 |
[smooth] Fix left shifts of negative numbers. |
| 11619 |
|
| 11620 |
Reported as |
| 11621 |
|
| 11622 |
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36241 |
| 11623 |
|
| 11624 |
* src/smooth/ftgrays.c (LEFT_SHIFT): New macro. |
| 11625 |
(gray_render_conic) [BEZIER_USE_DDA]: Use it. |
| 11626 |
|
| 11627 |
2021-08-02 Werner Lemberg <[email protected]> |
| 11628 |
|
| 11629 |
* meson.build: Fix zlib support. |
| 11630 |
|
| 11631 |
This commit synchronizes zlib support with both autotools and cmake: If no |
| 11632 |
external zlib is found (or intentionally disabled on the command line), use |
| 11633 |
the internal zlib by undefining `FT_CONFIG_OPTION_SYSTEM_ZLIB` without |
| 11634 |
modifying `FT_CONFIG_OPTION_USE_ZLIB`. |
| 11635 |
|
| 11636 |
Also improve summary output. |
| 11637 |
|
| 11638 |
Problem reported by Moazin. |
| 11639 |
|
| 11640 |
2021-08-02 Anuj Verma <[email protected]> |
| 11641 |
|
| 11642 |
[sdf] Fix out-of-range-access. |
| 11643 |
|
| 11644 |
* src/sdf/ftbsdf.c (first_pass, second_pass): Fix range during forward pass. |
| 11645 |
Otherwise the index goes out of range for the last column. |
| 11646 |
|
| 11647 |
Fixes issue #1077. |
| 11648 |
|
| 11649 |
2021-08-02 Anuj Verma <[email protected]> |
| 11650 |
|
| 11651 |
Fix invalid memory access in `bsdf` rasterizer. |
| 11652 |
|
| 11653 |
Do not generate SDF from bitmap if the `FT_GLYPH_OWN_BITMAP` flag is not |
| 11654 |
set. In some cases the bitmap buffer is freed but still points to a valid |
| 11655 |
address; to handle those cases check the flag before accessing the memory. |
| 11656 |
|
| 11657 |
* src/sdf/ftsdfrend.c (ft_bsdf_render): Handle the above case. |
| 11658 |
Also, return an error message if the bitmap's rows/pitch is invalid, |
| 11659 |
otherwise `slot->buffer` might be assigned to some invalid memory location. |
| 11660 |
(ft_sdf_render): Same as above. |
| 11661 |
Plus, move the outline back to original state after rasterization and not if |
| 11662 |
any error occurs. |
| 11663 |
|
| 11664 |
2021-07-29 Heiko Becker <[email protected]> |
| 11665 |
|
| 11666 |
* meson.build: Honor `--includedir` instead of hard-coding 'include'. |
| 11667 |
|
| 11668 |
2021-07-29 Werner Lemberg <[email protected]> |
| 11669 |
|
| 11670 |
src/sfnt/ttcolr.c: Minor formatting. |
| 11671 |
|
| 11672 |
2021-07-29 Dominik Röttsches <[email protected]> |
| 11673 |
|
| 11674 |
[sfnt] 'COLR' v1 PaintSweepGradient spec update |
| 11675 |
|
| 11676 |
* src/sfnt/ttcolr.c (read_paint): PaintSweepGradient follows other |
| 11677 |
spec changes and now has the angles specified as F2DOT14, reflect |
| 11678 |
that in the implementation. |
| 11679 |
* include/freetype/ftcolor.h (FT_PaintSweepGradient): Update |
| 11680 |
documentation. |
| 11681 |
|
| 11682 |
2021-07-29 Dominik Röttsches <[email protected]> |
| 11683 |
|
| 11684 |
[sfnt] Retrieve affine matrix from offset in 'COLR' v1 parsing. |
| 11685 |
|
| 11686 |
* src/sfnt/ttcolr.c (read_paint): Implement spec change where |
| 11687 |
affine transform matrix is now referenced by offset instead of |
| 11688 |
being placed inline in the PaintTransform table. |
| 11689 |
|
| 11690 |
2021-07-29 Dominik Röttsches <[email protected]> |
| 11691 |
|
| 11692 |
[sfnt] 'COLR' v1 PaintSkew related spec updates |
| 11693 |
|
| 11694 |
* src/sfnt/ttcolr.c (read_paint): Implement spec changes around |
| 11695 |
PaintSkew, PaintSkewAroundCenter. Update parsing to read shorter |
| 11696 |
values as changed in the spec. |
| 11697 |
* include/freetype/ftcolor.h (FT_PaintSkew): Update documentation. |
| 11698 |
|
| 11699 |
2021-07-29 Dominik Röttsches <[email protected]> |
| 11700 |
|
| 11701 |
[sfnt] PaintRotate/PaintRotateAroundCenter spec updates |
| 11702 |
|
| 11703 |
* src/sfnt/ttcolr.c (read_paint): Implement spec change where |
| 11704 |
PaintRotate and PaintRotateAroundCenter were split for a more |
| 11705 |
compact format definition. Update parsing to read shorter values |
| 11706 |
as changed in the spec. |
| 11707 |
* include/freetype/ftcolor.h (FT_PaintRotate): Update documentation. |
| 11708 |
|
| 11709 |
2021-07-29 Dominik Röttsches <[email protected]> |
| 11710 |
|
| 11711 |
[sfnt] 'COLR' v1 PaintTranslate and PaintScale precision |
| 11712 |
|
| 11713 |
* src/sfnt/ttcolr.c (read_paint): Implement spec changes in |
| 11714 |
PaintTranslate and PaintScale and friends. Update parsing to read |
| 11715 |
new shorter values. |
| 11716 |
|
| 11717 |
2021-07-29 AnuthaDev <[email protected]> |
| 11718 |
|
| 11719 |
README.git: Add Code of Conduct. |
| 11720 |
|
| 11721 |
2021-07-25 Werner Lemberg <[email protected]> |
| 11722 |
|
| 11723 |
ChangeLog housekeeping. |
| 11724 |
|
| 11725 |
Archive old `ChangeLog` file. |
| 11726 |
|
| 11727 |
We no longer write ChangeLog entries manually; instead, the file will be |
| 11728 |
created from commit messages (which should be formatted in GNU's ChangeLog |
| 11729 |
style) by a call to |
| 11730 |
|
| 11731 |
gitlog-to-changelog --format='%B%n' |
| 11732 |
|
| 11733 |
or something similar (this script is part of the 'gnulib' repository). |
| 11734 |
|
| 11735 |
2021-07-24 Werner Lemberg <[email protected]> |
| 11736 |
|
| 11737 |
Fix some `cppcheck` warnings. |
| 11738 |
|
| 11739 |
* src/bzip2/ftbzip2.c (ft_bzip2_file_skip_output), src/gzip/ftgzip.c |
| 11740 |
(ft_gzip_file_skip_output): Reduce scope of `delta`. |
| 11741 |
|
| 11742 |
* src/psaux/psintrp.c, src/psaux/psintrp.h (cf2_interpT2CharString): Add |
| 11743 |
`const` to `buf` parameter. |
| 11744 |
|
| 11745 |
* src/raster/ftraster.c (DelOld): Add `const` to `profile` parameter. |
| 11746 |
(Vertical_Sweep_Span): Reduce scope of `target`. |
| 11747 |
(FT_Outline_Get_CBox): Reduce scope of `xMin`, `xMax`, `yMin`, `yMax`. |
| 11748 |
|
| 11749 |
* src/smooth/ftgrays.c (gray_render_conic): Reduce scope of `split`. |
| 11750 |
(gray_sweep, gray_sweep_direct): Reduce scope of `area`. |
| 11751 |
|
| 11752 |
* src/tools/apinames.c (names_dump) <OUTPUT_WATCOM_LBC>: Reduce scope of |
| 11753 |
`temp`. |
| 11754 |
|
| 11755 |
2021-07-24 AnuthaDev <[email protected]> |
| 11756 |
|
| 11757 |
* .gitlab-ci.yml: Fixed cmake build, using correct options. |
| 11758 |
|
| 11759 |
2021-07-24 AnuthaDev <[email protected]> |
| 11760 |
|
| 11761 |
* CMakeLists.txt: Make `cmake` handle disabled dependencies correctly. |
| 11762 |
|
| 11763 |
Include 'CMakeDependentOption'. |
| 11764 |
|
| 11765 |
Replace `FT_WITH_XXX` options with `FT_DISABLE_XXX` and `FT_REQUIRE_XXX` |
| 11766 |
pairs. Update option logic accordingly. |
| 11767 |
|
| 11768 |
Fixes #1066. |
| 11769 |
|
| 11770 |
2021-07-24 Ben Wagner <[email protected]> |
| 11771 |
|
| 11772 |
[autofit] Split `afwrtsys.h`. |
| 11773 |
|
| 11774 |
The header file `afwrtsys.h` has two distinct functions: to include the |
| 11775 |
required writing system headers and also to generate code for each writing |
| 11776 |
system. At each current use site only one or the other is used, with |
| 11777 |
various macro trickery selecting one or the other. Split this header into |
| 11778 |
`afws-decl.h` for the required writing system declarations and `afws-iter.h` |
| 11779 |
for iterating over the writing systems to generate code. |
| 11780 |
|
| 11781 |
The motivation for this change is that the Visual C++ compiler treats the |
| 11782 |
standard include guard idiom like `#pragma once` 'if no non-comment code or |
| 11783 |
preprocessor directive comes before or after the standard form of the |
| 11784 |
idiom'. It appears to check this after macro expansion, so if |
| 11785 |
`WRITING_SYSTEM` expands to empty the bottom of `afwrtsys.h` is empty and |
| 11786 |
looks like the standard include guard idiom which is treated like `#pragma |
| 11787 |
once`, so subsequent inclusion of `afwrtsys.h` is elided. |
| 11788 |
|
| 11789 |
Fixes #1075. |
| 11790 |
|
| 11791 |
* src/autofit/afglobal.c (af_writing_system_classes), src/autofit/aftypes.h |
| 11792 |
(AF_WritingSystem), src/autofit/rules.mk (AUTOF_DRV_H): Updated. |
| 11793 |
|
| 11794 |
* src/autofit/afwrtsys.h: Split into... |
| 11795 |
* src/autofit/afws-decl.h, src/autofit/afws-iter.h: New files. |