New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cantarell glyphs with mark-to-mark anchor are made zero-width #228
Comments
I got this report as well but have not got to look into it yet. The change we made was to zero mark advances by GDEF rather than Unicode properties. So, if those glyphs have GDEF glyph class 3, then it's definitely a font bug. |
Just checked. Definitely faulty Cantarell. cc @davelab6 |
Okay, I think I found the problem. FontForge tries to determine the glyph class automatically by default, and I copied some mark-to-mark base anchors to glyphs like 'Ü' because FF isn't clever enough to search base glyphs/marks for anchors when using the compose-glyph-function. My intent was that e.g. 'Ǖ' can be composed from 'Ü' and macron with correct diacritics placement. Apparently that makes FF think 'Ü' is a mark. Should mkmk anchors only ever be used on marks? Fira Sans and Source Sans Pro don't seem to put any mkmk anchors on non-marks. But then how would a shaping engine compose 'Ǖ' from 'Ü' and macron? Or from dieresis and macron? |
On 21/2/16 16:07, Nikolaus Waxweiler wrote:
Where Ü is a single (precomposed) glyph, placing macron over it would be Ǖ only involves 'mkmk' if you're composing it from the base glyph U + JK |
Ah, so I'm simply going to replace the |
Also in FontForge you can explicitly set glyph classes, which is what I always do, you never know what surprising results a heuristic can give. |
@madig What was the first version of cantarell that had this bug? |
No idea. But it was introduced after I started working on it ;)
|
This stops building harfbuzz separately and tries just using the system install to make sure that works. This means that we build against an older version depending on what's available on Ubuntu (since our macOS build uses homebrew which tends to be fairly current). Currently, that's version 2.7.4, the same as we're currently building and packaging. Going forward, as we update what's in use here, that should help us make sure that we're working with older versions that can be found in the field, but we'll have to take care to feature-gate newer APIs.
A few users on 1.2.0 reported that Cantarell (https://git.gnome.org/browse/cantarell-fonts/tree/otf) is broken, glyphs that have a mkmk anchor like 'Ü', 'ü' and /aring are made zero-width. I saw #211 and tried to order
mkmk
aftermark
, but that didn't help... what do I have to do?The text was updated successfully, but these errors were encountered: