-
Notifications
You must be signed in to change notification settings - Fork 264
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
Is it fixed width font ? #287
Comments
I tried to use this font in KOreader (an ebook reader) and met the same problem: the font cannot be listed as a monospace font. |
Related: Panose is now set, so the remaining culprit is probably the POST table's is-fixed-pitch flag [1], which is not set [2]. So, why is it not set? I have a patched version of So I guess there is something amiss with the font processing toolchain. That flag can and should be set (automatically). [1]https://learn.microsoft.com/en-us/typography/opentype/spec/post [2]Addendum edit: I believe Glyphs is used to edit this font, and there might be these topics related: https://forum.glyphsapp.com/t/isfixedpitch-setting-not-exported/17863 When I open the font (I just updated to Glyphs 3.3 3337) the Anyhow, it seems with Glyphs this must be set manually? ![]() Static font, and where to add the parameter ![]() Variable font |
After reading #105 I noticed the sources are included and can be checked. Well, the isFixedPitch setting is also not set there, so probably you should just set it and that's it. ![]() So I can say this is not a toolchain error, it has been omitted in the sources already. @idan |
The change of even zero-width glyphs to the monospace widths is specifically intended, see explanation when it has been introduced: https://glyphsapp.com/news/glyphs-3-0-3-released Which is a change to the previous behavior that https://typedrawers.com/discussion/3336/combining-marks-advance-width As far as I can see the zero widths glyphs are all 'Mark' glyphs. Maybe it's ok to have them non-zero width. Whatever 😉 🤷 |
@Finii I believe it's because we have more than one font width within the same file, so even though each landmark is fixed width, the font as a whole would not be recognized that way. I'll also try flagging |
Thanks for the effort to figure out the issue. Do you know if we need to wait for the next release? If it is long, can we have a temporary solution? This font is great, so it is unfortunate to stay: ) |
@Finii interesting! that's really useful to know, since it seems like adding it at the font level will force all widths to be the same across landmarks. @nickleeh 1.3 should be released sometime in the spring. I'm sorry I can't be more specific than that yet! In the meantime, you can edit individual font files in a program like FontForge, but I'm not very familiar with that software so I'm not sure where exactly the |
FoundryTools-CLI has an easy monospace fix which will set this correctly. FoundryTools-CLI GitHub: https://github.com/ftCLI/FoundryTools-CLI |
In Fontforge you can not manually set the flag or unset it. If all glyphs follow the specification (i.e. all glyphs have the same widths, ignoring glyphs with width zero) it will automagically be set, if they dont it will not be set. So to fix the fonts you just open them and re-save (they call it 'generate'). But Fontforge has other problems sometimes and I would not recommend that for casual users (sorry Fontforge). FoundryTools might be a good choice. 👍 So the simplest understandable (not most convenient) solution might be to use fonttools $ ttx -i -o - MonaspaceArgon-Regular.otf | \
sed -E 's/(isFixedPitch value=)"0"/\1"1"/' | \
ttx -o MonospaceArgon-Regular_m.otf - Typical oneliner I would use The linked FoundryTools |
Since this thread was started by what appears to be an end-user, I thought the easiest solution for an end-user to fix the existing fonts would be FoundryTools. Until something can be added to the build process. |
I can't find the Monaspace font in the Fixed Width Collection - it only appears under All Fonts. Is it possible to have it show up in the Fixed Width Collection like
SF Mono
andSource Code Pro
do?BTW, I'm using Xcode.
The text was updated successfully, but these errors were encountered: