-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Font names don't “translate” correctly from Windows to macOS #519
Comments
Would you mind trying the version 4 beta? https://github.com/rsms/inter/releases/tag/v4.0-beta7 |
Version 4.000;git-4fc901f on macOS did not help. At least not when opening a PPTX created with 3.19. Exactly same as above. I could ask my colleague to install the version 4 beta on Windows if you have reason to believe it may be fixed there. |
I have no idea how to fix this. Help from someone who is an expert on this metadata would be very welcome! |
Looks like the user has installed different versions on the different platforms. Note going forward... no-spaces is the "correct" way (according to GF and the recommendations in the OpenType specs). GF is always going to remove the spaces. |
I thought my colleague downloaded and installed on Windows from here (not Google Fonts), but I can try to troubleshoot with him next week. It is true that the GF version does seem to have no spaces (when viewed in Font Book.app). But with older versions of Inter I was suffering from rendering and printing problems, such as those reported in #156. But it sounds like the way forward is clear from @kenmcd's comment? Would love an updated beta! :) |
@bjornbm An aside regarding the names... |
Thanks @kenmcd on the notes regarding embedding. I also saw #525. Currently, we are not actually trying to embed fonts in our PPTX/DOCX files. Instead we both have Inter installed (but suffer from the problem in this issue). When we share docs with others, we generate PDFs with Inter embedded (seems to work fine). What you say about the font names makes sense to me. If you can generate a new beta (@rsms?) I would be more than happy to test them. |
These are v4-beta8 (TTF hinted) with modified names. Inter.4-beta8.with.Modified.Names.zip Keep in mind that these are not official and that you may need to change fonts again in the future when the official v4 is released (or more betas) - and those may not be configured like this. But these should get the job done for now so you can work on your presentation.. |
These fonts indeed resolved the problems we were having. The font names show without spaces now on mac, too, and “matches” properly the fonts of documents created on Windows. 😃 I needed to install the “Normal” family. Installing only the “Display” family did not work (which I guess is expected if it is a separate typographic family). |
I think this is related to or even the same issue as #515 |
I've spent days on this by now and I can't figure out how to solve it. There are two challenges:
@kenmcd how did you create "Inter.4-beta8.with.Modified.Names.zip"? Would be great to learn that so it can be integrated as a step in the makefile when compiling static fonts. [edit] To be clear, according to TransType the style linking is all good when using the one family name "Inter": But when I give the display fonts a family name of "Display" (and RIBBI style names like "Italic" and "Regular" instead of "Display Italic" and "Display"), TransType becomes unhappy and doesn't link styles properly: |
b4d529e includes what I have so far.
Here's an archive of OTFs: (same files you'd get from |
Saw your note above late yesterday just as I was heading out for the day. |
OK. I can see what the issue is, and how to fix it. Note going forward - you may want to consider using UFO sources rather than the Glyphs package. |
Amazing! |
Keep in mind that the build setup does some metadata processing on the UFOs generated from the Glyphs sources. See the
Is this really necessary? It seems a little "computer over human" to remove the spaces. I think I've heard that some older Microsoft software has issues with styles with spaces in their names, is that why you would prefer to strip spaces from the style names? (Also, does italic styles get all or just some spaces stripped? E.g. "SemiBoldItalic" vs "SemiBold Italic")
I'm afraid that's a no. Inter used to be authored in RoboFont as UFO sources and it took quite some effort to port to glyphs. Maybe Glyphs' UFO interop has improved by now, but back then working with UFO sources was definitely a second-class experience. I can recall exactly the issues I had, but I think it was quite slow and some Glyphs features didn't work.
I totally get that and it's a bummer Glyphs only exists for macOS, but I find the experience superior to both RoboFont and FontLab (I've only "trialed" FL, haven't actually worked in it.) The Glyphs team is also really incredible, with fantastic customer support and quick turnaround for bugs etc. |
@kenmcd Ideally we can make the changes needed to the UFOs during the build process, leaving the Glyphs sources as they are. Any metadata from Glyphs is converted to UFO before compilation, so anything can be altered at that stage. Now, some things we might eventually want to "permanently" change in the Glyphs source, but it might be a good place to start by setting/altering metadata at the UFO stage "to get going." This would also remove a lot of "busy work" for you by not having to use Glyphs in a macOS vm. |
Well I am kinda stuck. Error message is: Now since the duplicate glyph I deleted is a mark this new error could be the result of that. Perhaps you can update the source to fix the duplicate properly. Meanwhile, I am going to make the name changes to the Italic, and try exporting that. |
Sorry. Just fixed that. (Do a
Long standing issue with Glyphs built-in export. As mentioned earlier, I suggest trying to make the fixes on the UFO level instead of the Glyphs level. What I recommend you try is this workflow:
Once satisfied, document the changes (you can compare the original UFOs in |
Yes, I notice this today when I updated from GitHub.
Google Fonts requires it - e.g. SemiBold IBM Plex Sans SemiBold Appears that no-space is the most common. Noticed today that Glyphs uses "SemiBold" in the Weight Class dropdown select list. All weight with no spaces and camelcase. So, yes, I would prefer it, and think most users would too. |
I understand and agree regarding the limitations of UFO.
OK. Will try this over the next few days. |
Did a test export on the Italic and it also failed. |
Better. Specifically: Thin and Thin Italic - style group (name ID1) is ExtraLight and ExtraLight Italic - style group is These will cause issues on Windows and in any application which uses/understands the style-linking (even on Mac). |
@kenmcd what tables are you looking at to check this? |
I've set explicit WWS names in e11ab3a according to https://glyphsapp.com/learn/naming#g-wws-names-name-ids-21-and-22 — see it that helped: https://d.rsms.me/tmp/Inter-4.0-063ece5e2f.zip |
Sets WWSFamilyName and WWSSubfamilyName according to https://glyphsapp.com/learn/naming#g-wws-names-name-ids-21-and-22 in hopes of improving style linking on MS Windows. Issue #519
Adding WWS names does not fix the issue.
The These are not correct in Inter Display Light, Light Italic, ExtraLight, and ExtraLight Italic. Cormorant added the default Localized Font Name field to each of the "Exports" - and that seems to work for them creating multiple font families from one The alternate method I mentioned above adds fields for name IDs 1, 2, 16, 17. |
I see. Wouldn't setting the family to e.g. "Inter Display Thin" cause the "family" to be registered as "Inter Display Thin" rather than "Inter Display" in software like macOS? There are the current
I saw your screenshots in your earlier comment and I'm trying to figure out how it impacts "advanced" software that handles more than just RIBBI.
Notice how there's no effect setting "Localized Family Names" to "Inter Display". Setting "Localized Family Names" to "Inter Display Light" is not what we want I think. i.e "Light" is not part of the family; we would get a bunch of separate families with just "Regular" and "Italic" styles each.
I did, but the build is failing. I left a comment: #575 (comment) |
Here's a build with "Localized Family Names" set to "Inter Display" for all static display fonts: https://d.rsms.me/tmp/Inter-4.0-036a0373b2.zip @bjornbm does this seem to work correctly for you? @kenmcd I think the result here is the same as what you're working on in the PR #575, right? i.e. for Inter Display Thin, the
|
Don't even have to look - that is not going to work. For Inter Display Thin
The default Localized Font Name appears to end up in the The Typographic Family and Style ( I think I know how it works (Glyphs), but cannot test the results of my changes (and apparently you cannot either). Adding all four fields should work for sure - and in that case we know exactly where each field's data is coming from. Perhaps tomorrow I should make you a spreadsheet with all the fields as they should be. |
That would be fantastic! It's tricky to set all of this up since the variable font sources from the same stuff and we need to keep that working, too. I don't have a PowerPoint license (nor Word license) but this is what I see in WordPad and Windows 10 settings when I install the build linked to above: Windows 10 settings correctly lists all styles, in the expected order: RIBBI works in WordPad (⌃B and ⌃I links to the expected italic and bold styles) but here I see there are issues with Inter Display, still: (styles of Inter Display are missing in list) |
Okay, I think that did it. Works as expected in Apple TextEdit on macOS and Microsoft WordPad on Windows 10 This is what the
Here's a new build to test: https://d.rsms.me/tmp/Inter-4.0-d88ab4204a.zip (cc @bjornbm) |
The good news: Display Thin and Display ExtraLight are now good! Inter Display ExtraBold Inter Display Black Looks like the Bold and Italic flags are ending up correct - not sure how. Almost there! |
Nice catch! Removing these style links from ExtraBold and Black causes the "correct" UFO fontinfo to be generated by glyphsLib: New build with that removed: https://d.rsms.me/tmp/Inter-4.0-8b4135611f.zip |
The good news:
The bad news:
???? |
Great!
The .ttc is created from these, so they are practically identical
Ha ha ha...
Weird, I see different data:
Any chance you were looking at an older version? I'm looking at the last build (posted earlier) Inter-4.0-8b4135611f.zip BTW, the only production difference between TTF and OTF files is how I invoke fontmake:
|
Hmmmm... not what I am seeing. Lots of weird stuff. I reviewed the fonts again in OTM Lite and TTX (both make no changes).
Note: Another example... Could go on and on, but just more of the same - nameID 1 & 2 are not right. Note: Regarding me seeing five Typographic Families... But, I do still see 18 different |
Ah, I had not removed the (now redundant) "fix display names" post processing script for the OTFs in the makefile. Fixed. Here's complete dump of all name table entries of otf and ttf files: https://gist.github.com/rsms/dfb57385629167b7fe8fbbb6e9cfb65b Here's a build: Inter-4.0-b7ed03d0e2.zip Regarding name ID 16 & 17: fontmake ignores these for fonts where they would be the same as ID 1 & 2, regardless if the UFO fontinfo.plist contains |
OK. Checked Inter-4.0-b7ed03d0e2.(2023-06-11).zip Yeah.Baby.Yeah.mp4Can close this thread. |
Well done! Thanks guys for the hard work! |
@kenmcd, do you have any idea why am I seeing unnamed variation instances on VTT? |
I think I know why (and how to fix it). I am going to start a new thread to discuss other variable font issues. |
Thank you so much for all your help! |
Thanks @kenmcd, kindly ping me when you do. I believe the following thread might also interest you (probably relates to #577): googlefonts/gftools#297. |
Describe the bug
On Windows, fonts weights names are compacted (for example, “ExtraLight”), while on macOS (12.6 Monterey) they are not (for example, “Extra Light”). This causes font misses in MS PowerPoint presentations moved between Window and macOS.
May be related to #206?
To Reproduce
Steps to reproduce the behavior:
(Or vice versa)
Presumably applies to other “compound” weights as well, but I don't have access to windows and cannot easily check.
Expected behavior
Expected the correct font weight to be displayed, but it is not.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
The text was updated successfully, but these errors were encountered: