src


Log

Author Commit Date CI Message
Behdad Esfahbod 922a56f4 2025-02-09T04:50:17 [trak] Fix configs build
Behdad Esfahbod 17c11ec5 2025-02-09T04:46:29 [ft/trak] Apply trak in ft-font-funcs as well Part of https://github.com/harfbuzz/harfbuzz/issues/5049
Behdad Esfahbod ffae5b04 2025-02-09T04:39:32 [ot-font/trak] Move trak application to ot-font instead of ot-shape This is what CoreText does. Fixes https://github.com/harfbuzz/harfbuzz/issues/5049
Behdad Esfahbod f840480f 2025-02-09T04:27:20 [trak] Remove leftover
Behdad Esfahbod be287eab 2025-02-09T04:18:31 [trak] Don't shift glyphs That's what CoreText does and fonts are designed for. Who are we to improve on...
Behdad Esfahbod 1150d4bf 2025-02-09T04:16:57 [trak] Remove support for disabling using pseudo-font-feature Fixes https://github.com/harfbuzz/harfbuzz/issues/5052
Behdad Esfahbod fb222953 2025-02-09T03:56:46 [coretext-font] Support non-BMP in variation-selector callback Fixes https://github.com/harfbuzz/harfbuzz/issues/5056
Behdad Esfahbod f6bf9f69 2025-02-09T03:52:13 [coretext-font] Do early-return in get_nominal_glyphs() Related to https://github.com/harfbuzz/harfbuzz/issues/5056
Behdad Esfahbod c5e6c885 2025-02-09T03:49:01 [coretext-font] Support non-BMP chars in get_nominal_glyph(s) Part of https://github.com/harfbuzz/harfbuzz/issues/5056
Behdad Esfahbod a70a30dd 2025-02-09T02:55:48 [trak] Interpolate between tracks Fixes https://github.com/harfbuzz/harfbuzz/issues/5054 According to Ned, this is what CoreText does. Should add tests some time...
Behdad Esfahbod 1bf0a5bc 2025-02-09T02:43:09 [trak] Streamline a bit Also use float math.
Behdad Esfahbod b1677e76 2025-02-09T01:56:03 [trak] Handle "out-of-range" values better If requested size < min-size, use the value for min-size. If requested size > max-size, use the value for max-size. This is the only way that makes sense. Extrapolating as we were doing, is just wrong... This also seems to match what CoreText does. Adjacent to fixing https://github.com/harfbuzz/harfbuzz/issues/5054
Behdad Esfahbod 691cc939 2025-02-06T20:08:16 [trak] Fix build without STAT
Behdad Esfahbod b8327fe6 2025-02-06T20:01:12 Fix compiler errors
Behdad Esfahbod f394206b 2025-02-06T19:48:56 [ot-shape] Only apply trak'ing if STAT table present
Behdad Esfahbod 6e0dd811 2025-02-06T17:26:27 [trak] Default ptem to 12 That's what CoreText does. https://developer.apple.com/documentation/coretext/ctfontcreatewithgraphicsfont(_:_:_:_:) Fixes https://github.com/harfbuzz/harfbuzz/issues/5048
Behdad Esfahbod 6a37a652 2025-02-06T17:40:10 [trak] Choose closest trak track to 0.0 Seems to be what CT does. Needs more testing to adjust better, but for now it's better than before.
Behdad Esfahbod 8efd2d85 2025-02-06T14:38:09 [coretext] Fix CGFont leak
Behdad Esfahbod b5327faf 2025-02-06T14:26:37 Fix leak From recent work.
Behdad Esfahbod 24fe2be9 2025-02-06T11:55:23 [subset] Fix undefined-behavior
Behdad Esfahbod 97db7bb2 2025-02-06T11:01:59 [set-digest] Cosmetic
Behdad Esfahbod f0d6a366 2025-02-06T02:51:50 [face] Use a macro
Behdad Esfahbod 7bdc6c9a 2025-02-06T02:47:13 Whitespace
Behdad Esfahbod 6091abcc 2025-02-06T02:40:24 [buffer] Avoid a copy in collect_codepoints()
Behdad Esfahbod e5e3bc40 2025-02-06T02:36:26 [buffer] Merge two functions into a template
Behdad Esfahbod 403f12f7 2025-02-06T02:33:41 [buffer] A few always-inline's
Behdad Esfahbod 4818ba9e 2025-02-06T01:50:12 [set-digest] Yet another tuning Saves 5% on SF Pro while regressing 2% on Roboto.
Behdad Esfahbod c7378294 2025-02-06T01:42:25 [OT] Remove likely() from coverage check Not that it matters, but because of the set-digest, this path is not very likely() anymore.
Behdad Esfahbod 3577992a 2025-02-06T01:30:59 [gsubgpos] Simplify a destruction
Behdad Esfahbod d0d256bb 2025-02-06T01:26:33 [bit-page] Move a couple methods around
Behdad Esfahbod a4cd11de 2025-02-06T01:10:40 [bit-page] Micro-optimize
Behdad Esfahbod 0a678a92 2025-02-06T01:02:44 Fix leak
Behdad Esfahbod cad264b2 2025-02-06T00:56:16 Indent
Behdad Esfahbod 63c92d5a 2025-02-06T00:52:41 [set-digest] always-inline
Behdad Esfahbod d712a028 2025-02-06T00:43:10 [set-digest] Back to a 3-entry, with different parameters now We used to use 4,0,9 for years. Now 3,0,6. It is slightly faster and shouldn't regress common fonts. The rationale is that OT GSUB/GPOS are split by script, so any particular script is not likely to use more than a few thousands of (consecutive mostly) glyphs. The exception is CJK of course, but those have less GSUB/GPOS work.
Behdad Esfahbod f5fe66cf 2025-02-06T00:36:58 [set-digest] Minor sanity
Behdad Esfahbod 4e75dfae 2025-02-05T23:57:37 Hide unused member
Behdad Esfahbod 99043f20 2025-02-05T20:11:27 [gsubgpos] Tweak cache again
Behdad Esfahbod 69057e6e 2025-02-05T19:50:38 [Ligature] Cache coverage the same way as PairPos1 Another 7% down on Roboto-Regular.
Behdad Esfahbod e535c683 2025-02-05T19:41:03 [Context] Simplify cache costing
Behdad Esfahbod 7a746c32 2025-02-05T19:38:25 [Coverage] Fix cache cost reporting
Behdad Esfahbod 5be62a9f 2025-02-05T19:30:01 [PairPosFormat1] Use a coverage cache as well Speeds up Arial shaping by 3%.
Behdad Esfahbod f22943a2 2025-02-05T18:51:11 [PairPos] Cache coverage as well Another 3% down in Roboto-Regular.
Behdad Esfahbod 726af2e4 2025-02-05T18:10:40 [PairPos] Use a class cache 10% speedup on Roboto-Regular. 5% on SF Pro.
Behdad Esfahbod acd122d0 2025-02-05T17:38:39 [gsubgpos] Prepare for per-lookup allocated caches
Behdad Esfahbod 3f40edbf 2025-02-05T17:25:27 [ClassDef] Add ability to use a cache
Behdad Esfahbod 7392f32e 2025-02-05T19:16:08 [face] Tweak stack again Let's go with one loop iteration. It's cheap.
Behdad Esfahbod 515b6a58 2025-02-05T19:13:19 [face] Minor stack var size change
Behdad Esfahbod 601dd1a7 2025-02-05T19:10:41 [face-builder] Fix an OOM issue Fixes https://oss-fuzz.com/testcase-detail/5721476158521344
Behdad Esfahbod c05002af 2025-02-05T16:46:13 [set] Add may_have() as alias for get()
Behdad Esfahbod ad7f428b 2025-02-05T16:44:04 [set-digest] Comment
Behdad Esfahbod 900db7b1 2025-02-05T16:41:49 [bit-set] Add a couple of alias methods
Behdad Esfahbod 942a30b7 2025-02-05T14:21:49 [aat] Remove now-unused code
Behdad Esfahbod 44281b28 2025-02-05T14:19:01 [aat] Back to simplified heuristic Performs overall better.
Behdad Esfahbod b857b21a 2025-02-05T13:15:15 [morx] Try using buffer-glyph-set adaptive to number of chains
Behdad Esfahbod 491c8c4e 2025-02-05T13:00:09 Revert "[aat] Change threshold from 4 to 16" This reverts commit 624d6edfe4a4b854cf5e66c3fdeb6fc2e1916e14. Some other benchmarks see better results for 4. Let's leave at that.
Behdad Esfahbod 624d6edf 2025-02-05T12:45:57 [aat] Change threshold from 4 to 16 Still worth it it seems.
Behdad Esfahbod a26cf0f4 2025-02-05T12:41:40 [aat] Fix regression in performance of shaping tiny strings
Behdad Esfahbod cec5c571 2025-02-05T12:37:50 [aat] Refactor a method
Behdad Esfahbod cd5dfc6d 2025-02-05T12:32:02 [kerx] Use hb_bit_set_t instead of hb_set_t
Behdad Esfahbod d40c079f 2025-02-05T12:30:56 [morx] Use hb_bit_set_t instead of hb_set_t directly
Behdad Esfahbod 7b927748 2025-02-05T12:25:54 [bit-set] Rename a method
Behdad Esfahbod fc825168 2025-02-05T11:17:18 [aat] Remove idempotent check Not necessary after the recent filtering. Another 10% speedup with LucidaGrande.
Behdad Esfahbod 849b1735 2025-02-05T11:05:29 [aat] Divide the logic of is_actionable() into two The two different uses require different logic. I had combined the two logic into one in 37bfdf79c66ffbe4a5f02dbbc13756865ca11c1e
Behdad Esfahbod b4787838 2025-02-05T10:52:26 [aat] Speed up per-machine initial-glyph-set calculation Use a bit-page instead of a full hb-set.
Behdad Esfahbod 7d14eb5e 2025-02-05T10:46:28 [aat] Minor rename
Behdad Esfahbod 6215d68b 2025-02-05T10:43:24 [aat] Minor tweak to logic DELETED_GLYPH can also initiate action.
Behdad Esfahbod dc4ff701 2025-02-05T10:42:33 [bit-page] Add a couple of operators
Behdad Esfahbod 37bfdf79 2025-02-05T02:08:19 [morx] Only collect glyphs that can initiate action in the machine And match them against the buffer glyph_set. 4% speedup in LucidaGrande.
Behdad Esfahbod d9e99baa 2025-02-05T02:06:59 [aat] Move is_actionable outside of the driver_context
Behdad Esfahbod 5ade5bab 2025-02-05T01:53:09 [aat] Move Flags out of driver_context_t
Behdad Esfahbod 9f38690e 2025-02-05T01:39:28 [aat] Remove another unused parameter One logic change, but should be fine.
Behdad Esfahbod d9058c64 2025-02-05T01:38:06 [aat] Remove an unused parameter
Behdad Esfahbod 1a278073 2025-02-05T00:35:40 [array] Micro-optimize
Behdad Esfahbod c87bfe41 2025-02-05T00:22:27 [morx] Reuse a variable
Behdad Esfahbod e99e6538 2025-02-05T00:08:29 [aat-map] Micro-optimize a malloc
Behdad Esfahbod 3e27038f 2025-02-04T23:39:42 [aat-map] Micro-optimize
Behdad Esfahbod f0ead852 2025-02-04T23:27:03 [aat] Implement set filtering for Noncontextual chains as well
Behdad Esfahbod e5bdba0b 2025-02-04T23:03:23 [aat] Rename a variable
Behdad Esfahbod cb09fe79 2025-02-04T22:54:10 [bit-set] Remove a likely()
Behdad Esfahbod 749dc1ee 2025-02-04T22:53:17 [bit-set] Fix may_intersect() logic
Behdad Esfahbod 22a21e81 2025-02-04T22:21:52 [aat] Fix a crash
Behdad Esfahbod 275fb565 2025-02-04T22:07:48 [morx] Clean up memory
Behdad Esfahbod 255dadc1 2025-02-04T22:02:11 [set] Speed up may_intersect()
Behdad Esfahbod a6173280 2025-02-04T22:00:14 [bit-set] Sprinkle a few .arrayZ around All accesses are valid.
Behdad Esfahbod 7862c7c5 2025-02-04T21:37:27 Rename a method again
Behdad Esfahbod 474bef1c 2025-02-04T19:17:13 [aat] Use exact set for buffer intersection versus subchains
Behdad Esfahbod 95eefa38 2025-02-04T19:16:57 [set] Add a brute-force intersects(other_set)
Behdad Esfahbod 80bbb0b2 2025-02-04T18:42:33 [set-digest] Rename a method
Behdad Esfahbod 7d17ea49 2025-02-04T18:43:33 Merge pull request #5037 from harfbuzz/face-blob [face] Add fallback implementation to hb_face_reference_blob
Khaled Hosny a315d43b 2025-02-04T20:41:01 [doc] Update hb_face_reference_blob() and hb_reference_table_func_t
Behdad Esfahbod 722ab548 2025-02-04T17:59:39 [kerx] Don't compute buffer digest We don't use it in kerx
Behdad Esfahbod 449c7f2a 2025-02-04T17:56:22 [aat] Add some tracing
Behdad Esfahbod 3a1d7ee7 2025-02-04T17:33:42 [aat] Remove the buffer-digest threshold This can help us skip entire subchains, eg. when they are for different scripts. Speeds up LucidaGrande with ASCII text by 20%.
Behdad Esfahbod e1cb3b15 2025-02-04T17:28:29 Revert "[aat] Remove set-digest" This reverts commit 832f199607292a41b4621b87a646c30cddc00124.
Behdad Esfahbod 359d163d 2025-02-04T17:11:46 Revert "[aat] Remove buffer-digest stuff" This reverts commit 7642366593826c0e04ad58df83fa63ec53960486.
Behdad Esfahbod 7d23e642 2025-02-04T17:11:13 Revert "[aat] Remove dead code" This reverts commit bf36f5c3a4ff0003d330e2c2fc410c0cde911cba.
Behdad Esfahbod d1099476 2025-02-04T17:12:23 Revert "[aat] Remove unused macro" This reverts commit 2ddcccd26ea4962a97ba6858952a5a71d032e6c1.
Behdad Esfahbod 2ddcccd2 2025-02-04T17:05:45 [aat] Remove unused macro
Behdad Esfahbod 1ff46235 2025-02-04T16:46:25 [morx] Micro-optimize