-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update config.yaml #57
Conversation
@@ -3,13 +3,17 @@ | |||
<axes> | |||
<axis default="100" minimum="0" maximum="100" name="Roundness" tag="ROND"/> | |||
<axis default="-100" minimum="-100" maximum="100" name="Vertical Element Alignment" tag="YELA"> | |||
<map input="-100" output="0"/> | |||
<map input="100" output="1"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RosaWagner this maps -100..+100 user-space YELA values to 0..1 design-space alignment values, I don't think it can be removed, is there a specific reason for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I have confuse output and input. I saw weird fractional coordinates in the FVAR but that was maybe another axis.
_sources/Wavefont.designspace
Outdated
<map input="500" output="75"/> | ||
<map input="600" output="100"/> | ||
<map input="700" output="128"/> | ||
<map input="800" output="160"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it won't increase increase complexity of font calculation? I'd need to sync it with linefont
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the same values you use for the instances, they need to be in sync with the axis mapping.
Hi @RosaWagner! |
I incorporated your changes into main branch please check if that's ok. |
Mapping looks correct. If default of YELA is 0 in STAT, it should be 0 also for the FVAR instances (they are currently at -100), or we should have -100 as default in the STAT. |
@RosaWagner the thing is that |
Ok, updated stat YELA to -100. Thanks for the point @RosaWagner |
Almost looking good ! I forgot about the name tables. Basically we have that requirement: https://googlefonts.github.io/gf-guide/variable.html#font-zero-origin, and so we would need the style name of the family being Thin so it matches the origin of the font. I don't know why I missed it before.
fyi we opened an issue in fonttools for what is blocking us in sandbox: fonttools/fonttools#3211 |
Good point. Updated to |
@RosaWagner do you know how to add |
Cool cool 🔥 FAIL 'Thin' instance has the same coordinates as the default instance; its postscript name should be 'Wavefont-Thin', instead of 'WavefontDefaultDefault-Thin'. [code: invalid-default-instance-postscript-name] |
@dy typographic family name is name ID 16, but gftools builder is making these tables based on the family name and style name of the family |
I see. Well both of |
I opened an issue for the builder's bug: googlefonts/axisregistry#139 |
@dy |
Great, done, thank you @RosaWagner |
Somehow it cannot build linefont with latest gftools though:
|
Ah there is a problem with fonttools. I'll open another issue there… |
But so is it working with wavefont? |
Also there's something changed in gftools, the proof command doesn't exist anymore:
Maybe @simoncozens knows if there's a way to upgrade the command? |
Yes, wavefont builds fine except for the proof command. I remember I decided limit gftools version because of that API change, I wasn't able to figure out how to properly work that around. I reflected all changes that you mentioned for Wavefont in Linefont |
Ah yes we use diffenator2 now, actually you can find the new command in the template repo where it is updated https://github.com/googlefonts/googlefonts-project-template/blob/main/Makefile#L36 |
Oh, nice, updated to diffenator2, thank you |
Should I post the issue with linefont somewhere in gftools or you'll be able to do that @RosaWagner ? |
Reviewed axis mapping and STAT. Let's see the result once built.
I don't remember, was there something against having YELA's default at 0 ?