19047 Commits
Author SHA1 Message Date
Khaled Hosny 30e7af11ee 11.3.0 11.3.0 2025-07-20 21:40:37 +03:00
Khaled Hosny 639adcf229 Fix missing REPLACEME version numbers from 11.2.0 release 2025-07-20 21:08:56 +03:00
Khaled Hosny 93b8f96c12 [ci/linux] Create new release as a draft. 2025-07-20 20:40:02 +03:00
Khaled Hosny 42d1aa8c49 [ci/linux] Simplify new release creation
We don’t put release notes in tag message body, so no point in trying to
extract something from it.
2025-07-20 20:39:37 +03:00
Khaled Hosny e6ae6db14f [ci/linux] Enable write permission
This is needed to create new releases.
2025-07-20 20:29:02 +03:00
Khaled Hosny 54d4a5a80d [ci/linux] Remove unnecessary and verbose step from release upload
No need to list the files or extract anything.
2025-07-20 20:28:42 +03:00
Khaled Hosny b63da39c97 [ci] Don’t run rust workflow on tag pushs
Only the linux workflow needs to run for tags, as it is where we upload
the releases.
2025-07-20 20:07:30 +03:00
Behdad Esfahbod fc86cd9250 [DeltaIndexMap] Add a HB_HOT 2025-07-20 10:39:29 -06:00
Behdad Esfahbod 4a497554ac Merge pull request #5392 from harfbuzz/v-origin-cleanup
[ot-font] advances and v-origin cleanup
2025-07-20 10:08:25 -06:00
Behdad Esfahbod e0a06c94e5 [algs] Mark bsearch as hot
Doesn't make a difference in the generated code though.
2025-07-20 07:19:23 -06:00
Behdad Esfahbod 56f888cea1 [cache] Mark get/set as hot 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 4214bfef55 [cache] Simplify return 2025-07-20 07:19:23 -06:00
Behdad Esfahbod bc51ad67e6 [DeltaIndexMap] Micro-optimize 2025-07-20 07:19:23 -06:00
Behdad Esfahbod a6f20aa49a [VarData] Optimize get_delta if column-count is zero
This is common in certain workloads.
2025-07-20 07:19:23 -06:00
Behdad Esfahbod fd2c0469fe [ot-font] Minor, call methods directly 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 307a19f2c2 [glyf] Minor micro-optimize 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 0ce2b74fb1 [gvar] Don't store deltas not needed
For phantoms-only case. 30% speedup on v-advances func's slowest
codepath (using phantom-points).
2025-07-20 07:19:23 -06:00
Behdad Esfahbod fed65c8bf8 [ot-font] Mark a function hot 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 57083f26cb [ot-font] Use varStore-cache for VORG VVAR in v-origins 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 8a7b9cf25f [hvar] Remove dead code 2025-07-20 07:19:23 -06:00
Behdad Esfahbod f2a3ca7212 [ot-font] Speed up VORG codepath in v-origins 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 6254642434 [font] Speed up non-synthetic v-origins 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 4fd6345acb [ot-font] Clean up cache invalidation
Also, cache is_synthetic on font.
2025-07-20 07:19:23 -06:00
Behdad Esfahbod aee066bcae [ot-font] Fix v-origins caching
Negative numbers don't fit in the cache...
2025-07-20 07:19:23 -06:00
Behdad Esfahbod 8d87e3af9b [font] Typo in glyph_v_origins impl 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 6bf2292d9a [ot-font] Comment 2025-07-20 07:19:23 -06:00
Behdad Esfahbod b3765e7c40 [benchmark-font] Call the plural glyph-v-origins API
Ouch!
2025-07-20 07:19:23 -06:00
Behdad Esfahbod abcefb695a [glyf] Remove dead code 2025-07-20 07:19:23 -06:00
Behdad Esfahbod d95faf9012 [ot-font] Cosmetic 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 7a41150fed [ot-font] Use glyf scratch in v-advances 2025-07-20 07:19:23 -06:00
Behdad Esfahbod ecc5c4880d [ot-font] Release v-origins caches 2025-07-20 07:19:23 -06:00
Behdad Esfahbod cbc928fa79 [benchmark-font] malloc hygiene 2025-07-20 07:19:23 -06:00
Behdad Esfahbod a40f85aff7 [font] Acquire a scratch for v-origins
Still too slow.
2025-07-20 07:19:23 -06:00
Behdad Esfahbod 76357479e3 [glyf] Non-var-optimize a method 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 0dc5f8a28e [ot-font] Finish caching of v-origins
On to benchmarking...
2025-07-20 07:19:23 -06:00
Behdad Esfahbod e697e4d35a [ot-font] More baby steps towards caching v-origins 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 9cd9057aea [ot-font] More baby steps towards caching v-origins 2025-07-20 07:19:23 -06:00
Behdad Esfahbod df6c76dc99 [ot-font] Baby steps re glyph-v-origins batching 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 486eb914b6 [ot-font] Baby steps re batching glyph-v-origins 2025-07-20 07:19:23 -06:00
Behdad Esfahbod ebc61ec474 [ot-font] Slow massaging of glyph-v-origins 2025-07-20 07:19:23 -06:00
Behdad Esfahbod da18bc0551 [docs] Fix build 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 1f6fe46529 [ot-font] Switch to plural glyph-v-origins
Still calls the singular slow version.
2025-07-20 07:19:23 -06:00
Behdad Esfahbod faa4472d44 [ot-shape] Use batch origin-changing callbacks
Backends don't implement it yet.
2025-07-20 07:19:23 -06:00
Behdad Esfahbod 6eeb012e53 [font] Don't set origin values if returning false 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 7d3f8ced68 [font] Minor refactor 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 1835c088db [font] Add get_glyph_[hv]_origins callbacks (plural)
Unused so far, and unimplemented in backends.
2025-07-20 07:19:23 -06:00
Behdad Esfahbod afe6661b42 [docs] All callbacks return in scaled units
"font units" is confusing in the context of scaled fonts.
2025-07-20 07:19:23 -06:00
Behdad Esfahbod ce4a0a3d6d [ot-font] Fix unused-label error... 2025-07-20 07:19:23 -06:00
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