refactor: replace opentype with harfbuzz#560
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Secrets | View in Orca |
|
Wow, I also have been thinking of bringing harfbuzz to satori and I want to share my opinions about it.
|
I'm really glad to get your feedback, but I have some confusion and want to make sure I understand correctly:
I really appreciate your valuable insights, but think this part needs some discussion. Perhaps we can get @shuding 's opinions as well. xD |
|
Super excited to see this proof of work, this will fix a lot of tricky issues in Satori! Thanks for the great work as always @LuciNyan!
I think that's fine for now just ensure we're copying the LICENSE files as well. We do that for fonts and other things in the past (and in Next.js, too). Regarding inlining the WASM file, I think it's a compromise if we don't want to break the current API of Re: make this repo a monorepo, definitely! I have the plan to move Re: maintaining a separate Harfbuzz build. This will solve the asm.js thing but I have two concerns. One is that I don't know about how much effort it will be if we expand the scope, maybe that's not difficult (e.g. setting up Harfbuzz builds, publishing it, keeping up with the upstream). Another concern is that maybe we should slowly move away from asm.js and always have users to load WASM files for performance reasons. Re: a separate playground for Harfbuzz. Maybe we can have a couple of examples in our existing playground showing different scripts and shapes? And redesign the playground a bit, like making it a full working app with file storage in local cache, WYSIWYG, exporting Next.js/Node code for your design, etc. like an in-browser PS. That would be amazing and help more people I believe! Thanks again! |
|
hahaha, harfbuzz is a big killer, which has more feature which harfbuzzjs does not support. As far as I know, harfbuzzjs only does basic work and does not support esm and slow feedback for outer contribution like my PR month's ago(😼) and not friendly API design(?). Yeah, we can land harfbuzz at first and then think about the best practice. Anyway, cheer for your great work! @LuciNyan
|
|
an in-browser PS? Amazing! Let's rollup. 👻
|
Wow, this is something I didn't know and thanks for the context! Then I'm totally OK if maintaining a custom build makes our lives easier! |
COOOOOOOLLLL!!! |
|
What are the main problems that harfbuzzjs was introduced to solve here? |
|
@LuciNyan Yeah, this is the way. |
|
Any updates? This PR is amazing and it resolves the only dealbreaker with satori. I would much prefer satori over puppeteer lol |
|
Updates for those who need RTL support: #74 (comment) |

WIP
Description