Skip to content
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

Italics generated by STAT table is not properly handled #113

Open
be5invis opened this issue May 1, 2020 · 3 comments
Open

Italics generated by STAT table is not properly handled #113

be5invis opened this issue May 1, 2020 · 3 comments

Comments

@be5invis
Copy link

be5invis commented May 1, 2020

The Inter V font is a variable with two axes — wght and ital, represents Weight and Italic-ness respectively. According to its STAT table (which exports its named instances) the glyphs should be slanted under all instances with "Italic" suffix. However, Character Map is not properly handling italicness, and glyphs remained upright.

image
image

Font used: Inter-V.zip

@JohnnyWestlake
Copy link
Collaborator

The main problem here is the UI layer (UWP XAML) doesn't understand what the slnt axis is.
Underneath at the DirectWrite layer it's all there, but not in the Windows UI layer.

Like a lot of these tied to the UI layer, the solution is to either wait for Microsoft to release WinUI 3 (the open source variant of XAML, so that we can actually fix this properly at the UI layer), or re-write the character map grid entirely in DirectX (which is not impossible but leads to lot of extra work around input and keyboards and GPU handling and accessibility), or replace the text rendering with a custom one (which I've tried, and did not have good performance or memory usage).

At the moment I'm not likely to attempt the DirectX rewrite (though anyone can feel free), and WinUI3 is at least 6 months away.

@JohnnyWestlake
Copy link
Collaborator

JohnnyWestlake commented May 11, 2020

(Full support for variable OpenType Axis for Type Ramp view only is currently in the Character-Map-UWP/Variations-Basic dev branch. This won't be coming to character map view for the time being for performance reasons.)

@JohnnyWestlake
Copy link
Collaborator

Issue is still present in DirectUI on Windows 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants