Skip to content

Notepad doesn't show NON-italic versions of non-wide variable width fonts #305

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

Open
eugenesvk opened this issue Mar 31, 2025 · 5 comments
Open

Comments

@eugenesvk
Copy link

Only the Wide variant is straight

Image

(Office apps have the same issue, if you select Normal font, it's always italicized, but Wide variant is straight)

@kenmcd
Copy link

kenmcd commented Mar 31, 2025

The v1.200 fonts are not going to work in applications which use the STAT table (such as Notepad, Word, LibreOffice, etc.) primarily because the names are too long. When the long names are truncated to 32 characters in the application, some of the names then become duplicates - which confuses the applications.
And there is an additional issue with how the slant axis and the italic axis are handled in the STAT table - which is why you see the italics confusion.

Even the static fonts have this same names-too-long issue with the normal name fields.

Right now the only way you are going to get this to work in Notepad is to rename the static fonts to much shorter names.

@eugenesvk
Copy link
Author

Oh, bad old designs strike again.
If it's a universal issue even with static fonts, shouldn't the default names be abbreviated? Like Monaspace Ar Med It

@CrendKing
Copy link

In my case when I tried to use the variable font in Firefox, everything becomes italic and completely unusable. I tried to use ttx to replace every "Monaspace Neon Var" to just "MNV" in the name table, but it doesn't fix the issue: non-slant text are still italic, but italic text become non-slant. I guess there are more than one table needs fixing.

@kenmcd
Copy link

kenmcd commented Apr 18, 2025

In my case when I tried to use the variable font in Firefox, everything becomes italic and completely unusable. I tried to use ttx to replace every "Monaspace Neon Var" to just "MNV" in the name table, but it doesn't fix the issue: non-slant text are still italic, but italic text become non-slant. I guess there are more than one table needs fixing.

There is no "italic" in the variable fonts.
So if you are specifying Italic in the CSS you are probably getting a fake italic or a fallback.

Some browsers have issues with other axes such as opsz - it does not take the axis default correctly.
So you have set it directly.
That could be happening here (wild guess).
So set the slant axis in both your Roman/upright text and for your slanted "italic" text.

Like above, you may have to use renamed static fonts.
But AFAIK browsers do not have same name-length issues.
And the static fonts have actual italic fonts.
Statics may work as-is.

@CrendKing
Copy link

CrendKing commented Apr 27, 2025

I worked around by rebuilding the font with gftools (with the default splitItalic: true). The roman and italic variable fonts are generated separately, so in applications that are compatible before I can manually pick the roman face. I don't see any problem so far.

@heathercran heathercran modified the milestone: 1.3 May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

4 participants