Commit Graph
39 Commits
Author SHA1 Message Date
Behdad Esfahbod 5fddacc158 [harfrust] Set buffer pre/post-context (#5492)
* [harfrust] Set buffer pre/post-context

Fixes the failing item-context tests. Yay.

* Bump MSRV
2025-08-21 12:54:49 -06:00
Behdad Esfahbod bbc2e0d0b5 [harfrust] Scale using int64 instead of float (#5461)
Like hb-font.hh does.
2025-08-14 16:12:59 -06:00
Behdad Esfahbod 354c6a17b8 [harfrust] Remove one function call (#5460)
lol. That's how desperate we are now.
2025-08-14 16:01:44 -06:00
Behdad Esfahbod 75044854a8 [harfrust] Update to latest API 2025-08-14 11:24:19 -06:00
Behdad Esfahbod 53cd214e83 [harfrust] Use buffer.ensure() (#5459) 2025-08-14 10:24:21 -06:00
Behdad Esfahbod 8ebdb9f75c [harfrust] Cache Shaper object (#5454) 2025-08-13 17:39:30 -06:00
Behdad Esfahbod 1e8a554eaa Hr buffer cache (#5452)
* [harfrust] Rename a variable

* [harfrust] Cache HR buffer on HB buffer
2025-08-11 19:27:32 -06:00
Behdad Esfahbod e970f7028c [harfruzz] Round towards negative infinity 2025-06-13 18:21:27 -06:00
Behdad Esfahbod 2617e89df1 [rust] Finish renaming HarfRuzz to HarfRust 2025-06-11 15:52:47 -06:00
Behdad Esfahbod c936b22937 [rust] Update to HarfRuzz->HarfRust rename 2025-06-10 08:22:47 -06:00
Behdad Esfahbod e860b8d180 [harfruzz] Set point_size 2025-06-07 11:26:00 -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 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 e4a6fe1e5f [harfruzz] Handle empty face blob
Happens...
2025-05-07 23:27:45 -06:00
Behdad Esfahbod d7550eb9b9 [harfruzz] Handle null language 2025-05-07 22:39:44 -06:00
Behdad Esfahbod c18c18a75d [harfruzz] Switch back to git version
Remove font-types dependency.
2025-05-07 21:57:16 -06:00
Behdad Esfahbod 43218e45f7 [harfruzz] Conditionally set hr_buffer.set_not_found_variation_selector_glyph
harfRuzz doesn't take -1 to mean "whatever".
2025-05-07 19:02:04 -06:00
Behdad Esfahbod 22ef57bddc [harfruzz] Isolate font-types dependency 2025-05-07 18:53:57 -06:00
Behdad Esfahbod 2e9b431501 [harfruzz] Clear buffer before populating results 2025-05-07 17:06:04 -06:00
Behdad Esfahbod bb31aac07b [harfruzz] Set unsafe-to-break flag 2025-05-07 16:59:03 -06:00
Behdad Esfahbod 92f367ced3 [rust] Apply review feedback 2025-05-07 11:10:40 -06:00
Behdad Esfahbod 75588f5b2f [rust] Apply ChatGPT feedback 2025-05-07 11:07:07 -06:00
Behdad Esfahbod 302b6c8954 [harfruzz] Handle font creation failure 2025-05-06 16:30:47 -06:00
Behdad Esfahbod 3268662bde [harfruzz] Towards shape-plan caching 2025-05-06 12:43:08 -06:00
Behdad Esfahbod 5c7992bea6 [harfruzz] Implement user features 2025-05-06 12:13:11 -06:00
Behdad Esfahbod d185d1c861 [harfruzz] Set variations 2025-05-06 12:09:00 -06:00
Behdad Esfahbod 154e528e57 [harfruzz] Separate font-data
In prep to adding variation coordinates.
2025-05-06 11:39:00 -06:00
Behdad Esfahbod 1a67f0a476 [harfbuzz] Minor use 2025-05-06 11:14:18 -06:00
Behdad Esfahbod 40ec1981ac [harfruzz] Set buffer properties 2025-05-06 11:12:47 -06:00
Behdad Esfahbod e71bcaa873 [harfrbuzz] s/harfRuzz/HarfRuzz/g 2025-05-06 10:54:16 -06:00
Behdad Esfahbod 8fa6c9a39e [harfruzz] Fix lifecycle management
In the ugliest way. I'll wait for someone familiar with Rust to
suggest proper way to do it.

We don't cache the shape-plan, so this is much slower than the
HarfBuzz native shaper.
2025-05-06 10:38:47 -06:00
Behdad Esfahbod 790506ef51 [harfruzz] Handle buffer allocation failure 2025-05-06 10:38:47 -06:00
Behdad Esfahbod a78d2f27ab [harfruzz] Cache Face 2025-05-06 10:38:47 -06:00
Behdad Esfahbod b50b5a0db1 [harfruzz] Scale, and set segment properties 2025-05-06 10:38:47 -06:00
Behdad Esfahbod 4e98288a72 [harfruzz] Remove stale comment 2025-05-06 10:38:47 -06:00
Behdad Esfahbod c25fddbafb [harfruzz] Add basic harfRuzz shaper 2025-05-06 10:38:47 -06:00