Repository navigation
Conversation
|
Development assets will need variable fonts for tests and documentation (probably). |
|
Thanks for opening a PR! Initially, I have two high-level comments:
|
|
I'll add the mentioned summary of testing fonts for each axis here (as mentioned in Discord), as a separate comment, rather than cluttering the main summary more then. I can also move it to the main summary if wanted. The fonts I assume are to be added to the development assets, which I've already submitted a PR starting with Roboto Flex. Ideally, it would be good to test the main registered axes, then as extras, test the proprietary ones, regardless. Testing fonts for variable axesRegisteredWeight (wght)Testing font: Google Sans Flex Maps directly to:
Optical size (opsz)Testing font: Google Sans Flex, although serif fonts have an easier or more notorious change such as Adobe's Source Serif Variable. Maps directly to:
Slant (slnt)Testing font: Google Sans Flex There's no clear mapping for slant yet. As mentioned by @laurmaedje in Discord too. Italic (ital)One could say Inter, but it comes as a separate file. So, there's Retail Variable in that case with true italic axis. Something to consider are cases where this axis is misused, such as Basenji Variable where the italics axis is used as a slant axis, as italics should be either 0 or 1. I emailed the designer, as for why they did it this way and basically:
In terms of behavior, it maps directly to:
Width (wdth)Testing font: Google Sans Flex Similar to slant, there's no clear mapping, there's text stretch but yeah. ProprietaryThese are mainly to be used via Roundness (ROND)The main font seems to be Google Sans Flex. Bleed (BLED)Bounce (BNCE)AR Retinal Resolution (ARRR)Ascender height (YTAS)Time of the day (TOTD) and distance (DIST)GNOMON* as suggested by @isuffix. Casual (CASL)Contrast (CTRS)Cursive (CRSV)Descender depth (YTDE)Edge highlight (EHLT)Nabla. Element expansion (ELXP)Element grid (ELGR)Yeast and gravityWonkyVertical Position of Paint 1 and 2And well, many more axes. In these proprietary axes, the default, max/min, and step values, as well as the axis name, are entirely defined by the foundry or the designer, and are quite arbitrary. As for the registered by the specification ones, technically they should follow the convention strictly, but there's the case of the Basenji font. |
Is this truly a misuse? My reading of the linked part of the OpenType spec would be that any value between 0 and 1 is fine. |
|
Well, the specification kinda wants the axes values to be "strict", and the Basenji Variable has the italic axis ranging from 0 to 15, and it's behaving like the Slant axis. I'll attach the full email in a bit. If you meant if the italic axis can be continuous, then yeah. My misuse point was just on the italics axis being used as a slant with out of range values (0 to 15). |
|
Superseded by #8425. Thanks for your work on this! In the end, I made various different design decisions while working on it, so it made more sense to open a new PR, but this was still very useful as a base. :) |
Closes #185
This follows up on the discussion in Discord's Font Forge channel: https://discord.com/channels/1054443721975922748/1184433451554840636/1502363192247189617
Attachments
Round
Round axis using Google Sans Flex: round.pdf
Optical size
Optical sizing axis using Adobe's Source Serif:
size.pdf
Weight
Weight axis using Google Sans Flex: weight.pdf
Credits
Mainly the initial #6771 and also https://github.com/yeslogic/allsorts as I used them to learn and how to implement it in Typst.
References
MATHtable harfbuzz/boring-expansion-spec#136