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
Add check for MVAR table with correct values #2118
Comments
Similar to #2119, I will call it com.google.fonts/check/varfont/has_MVAR and add it to the Google Fonts specification (a.k.a. "gfonts profile"). |
"Per the spec, the MVAR tables contain variation data for metadata otherwise in like OS/2 and hhea; if not present, then the default values in those tables will apply to all instances, which can effect text layout." This description is not very clear to be used as a rationale for the check. Do you have a clearer way to express this idea? I will create the check using this text, but I would like to later further improve it. |
layout-software depend on it. (issue fonttools#2118)
layout-software depend on it. (issue #2118)
@m4rc1e disagrees with this new check. He said at #2122 (comment):
What do you think, @davelab6 ? |
Thanks for this! |
(See discussion at issue fonttools#2118)
@nyshadhr9 said at #2122 (comment):
|
(See discussion at issue #2118)
Closing since we don't want a MVAR table due to the DirectWrite issue. We just use ttx to drop the table, https://github.com/googlefonts/OswaldFont/blob/master/sources/build.sh#L42-L47 |
@m4rc1e did you ever hear back from MS about this issue? Is there a link to the bug report available somewhere? Have you had the chance to see if the issue has been fixed in more recent versions of Windows? |
I haven't heard back from them. I'll ping them now. You're also included in the mail. AFAIK there isn't a bugzilla like site for MS bugs.
A few months ago, I accidentally pushed a VF with a MVAR, users complained, google/fonts#2085. Once DW is fixed and we've waited a few months, we will/should restore this table. Fyi, our vertical metrics and underline thickness vals remain consistent across a family. |
Will reopen since this check may be relevant one day. Thanks Cosimo. |
I wish we could sumarize the status of this discussion in the rationale of an MVAR check. I think right now we only have MVAR being checked on the |
Perhaps downgrade to a warning and rephrase the recommendation to remove the MVAR table, at least in the universal profile? |
Do we know whether the MVAR table is still causing this issue? |
I'm about to strip MVAR from a Google font-to-be (Science Gothic) in which the ascender height varies slightly between certain masters. To make the ascender metadata better in its incorrectness, I would go through and make all the lower-ascender masters “lie” about their ascender height—because it seems less problematic to overstate ascender height, than to understate it, and the default master has a lower value. Is there any reason I should not do this? |
Hi @m4rc1e . Do you know if the MVAR issue with DW is solved? I am working on a static/vf font with optical sizes and I would ideally like the different subfamilies (text, display, etc) to have different vertical metrics values. If the vf can't handle this via MVAR then I would have to keep one set of values for the statics. Thanks. |
Observed behaviour
Per the spec, the MVAR tables contain variation data for metadata otherwise in like OS/2 and hhea; if not present, then the default values in those tables will apply to all instances, which can effect text layout.
Expected behaviour
We must check MVAR tables are present and correct, since text layout software depends on these values
Resources and exact process needed to replicate
https://docs.microsoft.com/en-us/typography/opentype/spec/mvar
The text was updated successfully, but these errors were encountered: