Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upServo can't render OpenType ligatures in 'mort' or 'morx' format, only in 'GSUB' #4320
Comments
|
We will eventually implement mort / morx in HarfBuzz natively. In the mean time, if you are building on OS X and build HarfBuzz --with-coretext, then you should get mort / morx working. HarfBuzz will internally call into CoreText for those fonts. |
|
If someone wants to enable this on Mac OS, they can clone the servo/rust-harfbuzz repo and edit the makefile.cargo to add (Cross-platform support is outside of the Servo scope; we'll just wait for it to be implemented in Harfbuzz.) |
|
sgtm |
Compile --with-coretext on apple-darwin (see servo/servo#4320) This enable support for mort and morx ligatures. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-harfbuzz/61) <!-- Reviewable:end -->
Compile --with-coretext on apple-darwin (see servo/servo#4320) This enable support for mort and morx ligatures. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-harfbuzz/61) <!-- Reviewable:end -->
Compile --with-coretext on apple-darwin (see servo/servo#4320) This enable support for mort and morx ligatures. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-harfbuzz/61) <!-- Reviewable:end -->
|
All that's left here is upgrading the version of harfbuzz that Servo uses: |
|
#11591 includes the harfbuzz-sys update. |
…e_json, url Fixes servo#4320.
So there are at least three ways to specify ligatures in TrueType/OpenType fonts:
mort,morx, andGSUB.GSUBis the newest. However, all of my fonts only havemortormorx. So ligatures don't render in most fonts.I guess we have to convert from
mortormorxtoGSUB.