Behdad Esfahbod
fdf4c759fa
[hmtx] Simplify get-leading code
...
Can't return false. The false was being used before to mean
"table not present". Handle that instead.
2025-07-20 07:19:23 -06:00
Behdad Esfahbod
b359c83cdd
[ot-font] Rewrite h/v-advance code
...
Faster, better cached...
24% faster across the benchmarks for hmtx-only path.
Comparing before to after
Benchmark Time CPU Time Old Time New CPU Old CPU New
------------------------------------------------------------------------------------------------------------------------------------------------------------
BM_Font/glyph_h_advances/Roboto-Regular.ttf/ot -0.2410 -0.2411 2 1 2 1
BM_Font/glyph_h_advances/RobotoFlex-Variable.ttf/ot -0.2482 -0.2484 1 1 1 1
BM_Font/glyph_h_advances/RobotoFlex-Variable.ttf/var/ot -0.0296 -0.0296 48 47 48 47
BM_Font/glyph_h_advances/SourceSansPro-Regular.otf/ot -0.2412 -0.2416 2 2 2 2
BM_Font/glyph_h_advances/SourceSansPro-Regular.otf/var/ot -0.2381 -0.2384 2 2 2 2
BM_Font/glyph_h_advances/AdobeVFPrototype.otf/ot -0.2347 -0.2349 0 0 0 0
BM_Font/glyph_h_advances/AdobeVFPrototype.otf/var/ot -0.0343 -0.0346 2 2 2 2
BM_Font/glyph_h_advances/SourceSerifVariable-Roman.ttf/ot -0.2623 -0.2621 2 1 2 1
BM_Font/glyph_h_advances/SourceSerifVariable-Roman.ttf/var/ot -0.0388 -0.0401 24 23 24 23
BM_Font/glyph_h_advances/Comfortaa-Regular-new.ttf/ot -0.2396 -0.2394 1 1 1 1
BM_Font/glyph_h_advances/NotoNastaliqUrdu-Regular.ttf/ot -0.2344 -0.2346 2 1 2 1
BM_Font/glyph_h_advances/NotoSerifMyanmar-Regular.otf/ot -0.2366 -0.2367 1 1 1 1
OVERALL_GEOMEAN -0.1945 -0.1948 0 0 0 0
2025-07-20 07:19:23 -06:00
Behdad Esfahbod
d47a319b82
[rust] Roll deps forward
...
Adjust tests. See:
https://github.com/harfbuzz/harfbuzz/issues/5388
2025-07-15 12:08:00 -06:00
Behdad Esfahbod
3d154bc6b2
[buffer-message] Fix potential buffer overflow...
...
...when buffer messaging is enabled and with malicious font.
Fixes https://github.com/harfbuzz/harfbuzz/security/advisories/GHSA-p965-5rr7-9mhq
2025-07-14 13:54:49 -06:00
Qunxin Liu
5dbb814164
[subset] AnchorFormat3: better check for when should downgrade to format1
2025-07-14 10:54:43 -06:00
Caolán McNamara
1a804b0f42
const up modifier_combining_marks
...
and supported_face_loaders, etc.
move these symbols out of the .data section
2025-07-13 13:55:35 -06:00
Behdad Esfahbod
a81e73a775
Merge pull request #5385 from harfbuzz/fontations-names
...
[fontations] Cache glyph_from_names hashmap on the face
2025-07-11 23:56:53 -06:00
Behdad Esfahbod
57f02dd237
[fontations] Cache glyph_from_names hashmap on the face
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/5384
2025-07-11 23:40:51 -06:00
Behdad Esfahbod
e81efe3a63
[glyf] Add TODO
2025-07-11 01:40:23 -06:00
Behdad Esfahbod
6ed598e1c0
Merge pull request #5382 from harfbuzz/lig_split
...
[repacker] Implement table splitting for LigatureSubst
2025-07-10 13:03:44 -06:00
Qunxin Liu
95dc11092f
[subset] bug fix
...
Don't downgrade to format1 when subsetting
2025-07-10 12:25:10 -06:00
Garret Rieger
2dfaf2a22e
[repacker] fix imports.
2025-07-10 16:11:15 +00:00
Garret Rieger
e50d16f6f8
[repacker] During liga splitting re-use orphaned liga sets.
2025-07-10 00:58:49 +00:00
Garret Rieger
cad418860a
[repacker] fix bug where nodes with incoming virtual links could get orphaned.
...
When attempting to fix overflows nodes that have incoming edges from more than one parent can be duplicated. However, if all of these incoming links are virtual except for one duplicating it will effectively orphan it (one of the copies will be pointed to only by virtual links). Since parent book keeping is expensive we don't want to separately track virtual/real parents so instead just don't duplicate nodes that have at least one incoming virtual link.
2025-07-09 17:09:05 +00:00
Garret Rieger
f5279200f3
[repacker] Add test which hits the move liga set pathway in clone_range().
2025-07-08 22:50:48 +00:00
Garret Rieger
18c67b7789
[repacker] store liga counts before processing.
...
Otherwise processing changes the counts when we need them later on.
2025-07-08 22:40:18 +00:00
Garret Rieger
4fa5788cfd
[repacker] fix bug with original count in liga splitting.
2025-07-08 21:29:48 +00:00
Garret Rieger
96fedd88fe
[repacker] Fix handling of virtual links in liga table splitting.
2025-07-08 20:36:13 +00:00
Garret Rieger
5b47710f56
[repacker] Start implementing test for liga splitting.
2025-07-07 20:15:30 +00:00
Garret Rieger
38ab13c67e
[repacker] add support for splitting GSUB Ligature lookups.
2025-07-04 23:37:24 +00:00
Khaled Hosny
af1b9acc27
[glib] Drop fallback code for versions we don’t support
...
We require Glib 2.30.0, so drop checks for older versions.
2025-07-02 20:14:51 +03:00
Behdad Esfahbod
48bc5a17cd
[face-builder] Remove a redundant check
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/5371
2025-06-24 23:02:00 -06:00
Benjamin Otte
567a0307fa
dwrite: Implement hb_face_reference_blob()
2025-06-16 08:00:32 -06:00
Behdad Esfahbod
e970f7028c
[harfruzz] Round towards negative infinity
2025-06-13 18:21:27 -06:00
Behdad Esfahbod
5060ccf4aa
[rust] Ignore one more compiler symbol
2025-06-11 16:01:54 -06:00
Behdad Esfahbod
2617e89df1
[rust] Finish renaming HarfRuzz to HarfRust
2025-06-11 15:52:47 -06:00
Behdad Esfahbod
fc6231726e
[gen-ucd] Make clippy happy
2025-06-10 16:44:24 -06:00
Behdad Esfahbod
c936b22937
[rust] Update to HarfRuzz->HarfRust rename
2025-06-10 08:22:47 -06:00
Behdad Esfahbod
dcf50ca6fe
[rust] Roll forward
2025-06-10 03:10:06 -06:00
Behdad Esfahbod
47089fe7a3
Big misc changes
...
- Make geometry types into templates taking float or double.
- Changes to paint() transform elimination.
- Add font->has_nonzero_coords and use it across.
- Extensions to avar processing for otherwise invalid mappings.
2025-06-08 13:43:27 +03:00
Khaled Hosny
332995643f
Revert "See if fixes fedora-valgrind bot"
...
This reverts commit e2569e6a29a8559dc0887733d76c1754b4be287f.
2025-06-08 13:43:27 +03:00
Behdad Esfahbod
a9b1045163
See if fixes fedora-valgrind bot
2025-06-08 13:43:27 +03:00
Behdad Esfahbod
c124252df5
[algs] Add support for little-endian int types
...
As well as 64bit-int, and float types.
Add Align type.
2025-06-08 13:43:27 +03:00
Behdad Esfahbod
48d224e786
[algs] Make hb_sincos() generic to both float and double
2025-06-08 13:43:27 +03:00
Behdad Esfahbod
e860b8d180
[harfruzz] Set point_size
2025-06-07 11:26:00 -06:00
Behdad Esfahbod
e5becebf2c
[harfRuzz] Roll forward
2025-06-06 21:02:07 -06:00
Behdad Esfahbod
d5dd5ac819
[harfruzz] Clear mask before setting
2025-06-06 18:29:40 -06:00
Behdad Esfahbod
4ab5130e4a
[harfruzz] More glyph flags
2025-06-06 18:16:31 -06:00
Behdad Esfahbod
74e99dbe63
[harfruzz] Apply review feedback
2025-06-06 18:15:20 -06:00
Behdad Esfahbod
80b73a1109
[harfruzz] Track main again
2025-06-06 18:13:05 -06:00
Behdad Esfahbod
e670b729f7
[harfruzz] Enable new cluster level GRAPHEMES
2025-06-06 18:12:27 -06:00
Behdad Esfahbod
f92809fcdc
[harfruzz] Update to new API
...
From https://github.com/harfbuzz/harfruzz/pull/57
2025-06-06 17:43:32 -06:00
Behdad Esfahbod
4d7d54e380
[coretext] Bump a required version
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/5354
2025-06-06 09:32:49 -06:00
Behdad Esfahbod
a9c2c63518
[sanitize] Fix pointer math
...
Should fix https://github.com/harfbuzz/harfbuzz/issues/5347
2025-06-04 11:58:20 -06:00
Behdad Esfahbod
6fb10ded54
[ft] Reject loading of font directory
2025-05-29 12:29:34 -06:00
Behdad Esfahbod
4adeb6a01e
[paint] Move float stability test to the paint layer from the test
2025-05-29 12:28:31 -06:00
Behdad Esfahbod
5cebdd670c
[ft] Handle another memory failure
2025-05-28 16:22:23 -06:00
Behdad Esfahbod
4b573b52d8
[ft] Fix a crash if setting font funcs had failed
...
https://github.com/harfbuzz/harfbuzz/security/advisories/GHSA-8x8c-6xcc-pqmj
2025-05-28 15:28:09 -06:00
Behdad Esfahbod
83cf7d109f
[rust] cargo update
2025-05-27 07:43:55 -06:00
Behdad Esfahbod
9f5d803871
[font] Refuse immutable fonts in set_funcs_using()
...
Return early.
2025-05-26 16:07:51 -06:00