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

[web app] Are there metrics labels available? #85

Open
arrowtype opened this issue May 29, 2023 · 3 comments
Open

[web app] Are there metrics labels available? #85

arrowtype opened this issue May 29, 2023 · 3 comments

Comments

@arrowtype
Copy link

Looking at a font in Samsa, I see that one of the font metrics(?) plunges way down around wght=200, and I’m not sure why, or what that value might be:

Screen.Recording.2023-05-29.at.6.19.08.PM.mov

Is there a way to see a label for that within the app?

@arrowtype
Copy link
Author

Oh, I think I found it!

image

Looks like it might be stro (strikeout offset) within the mvar table.

I’ll dig a little further to see if I’ve set that with a silly mistake, somewhere.

@arrowtype
Copy link
Author

The OT Spec relates stro to OS/2.yStrikeoutPosition:

'stro' strikeout offset OS/2.yStrikeoutPosition

So, after looking into the font slightly further, I’m wondering if Samsa is being inaccurate here.

If I use the FontTools Instancer to instance the variable font at wght=200 vs wght=750 (opsz=72 in both), then inspect with TTX, the OS/2.yStrikeoutPosition is different but pretty similar:

  • <yStrikeoutPosition value="633"/> for wght=200
  • <yStrikeoutPosition value="615"/> for wght=750

Here’s a variable font that exhibits the issue (it has a limited/trial glyphset, so I can share it here, and folks are welcome to use it for testing purposes / inspecting internal font data:):
AT-NameSansVariable.Trial.ttf.zip

@Lorp
Copy link
Owner

Lorp commented May 30, 2023

Thanks for the report. I didn’t complete MVAR handling to my satisfaction, so I don’t think it’s reliable for now. I’ll take a look soon.

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

No branches or pull requests

2 participants