Replies: 5 comments 1 reply
-
Maybe you're just missing the <axis tag="ital" name="italic" values="0 1000" default="0">
<labels>
<label uservalue="0" name="Upright" elidable="true" linkeduservalue="1000" />
<label uservalue="1000" name="Italic" linkeduservalue="0" />
</labels>
</axis> I hope this is all there is to it! Documentation: https://fonttools.readthedocs.io/en/latest/designspaceLib/xml.html#label-element-axis Side note: I was under the impression that you only needed to link the user value in one direction (e.g. upright has linkeduservalue="1000" but not the other way round). Did you get from Adobe that you needed both directions? |
Beta Was this translation helpful? Give feedback.
-
Thank you!
Hm, I don't understand the issue enough to confirm that. But the behaviour was as follows: in InDesign, text set in Roman, use the slider to change the width, the text would flip to Italic. The first remedy was to add names in When I add both <label uservalue="0" name="Upright" elidable="true" linkeduservalue="1000" />
<label uservalue="1000" name="Italic" linkeduservalue="0" /> ... fontmake (3.4.0) crashes:
When I only include one of |
Beta Was this translation helpful? Give feedback.
-
We define the STAT in the feature file which is what I used to then dump the above ttx.
No, nobody said both directions are required and they aren't. This was just one quick way to make this particular set of fonts work in InDesign, but there are other possible ways. Like adding Format 2 range values to both fonts and giving them unique names. The reason moving the slider can make it jump from Italic to Regular is that both fonts contained the exact same STAT table with no differentiation and no AxisValue records. InDesign is using the STAT information to construct location names on the fly as you move the slider. In this case with identical STAT tables it can't know which one you mean so it switches to the non-Italic (or more accurately the first font). With the |
Beta Was this translation helpful? Give feedback.
-
Thanks for the longer explanation @punchcutter . I think the recursion error in fontmake is due to me making the assumption that there would be a linked value in only one direction, and having them both creates a loop of following the linked values... I should open a PR to prevent that from happening. |
Beta Was this translation helpful? Give feedback.
-
Tangential: <labels>
<label uservalue="50" userminimum="50" usermaximum="52.99" name="Fifty"/>
<label uservalue="55" userminimum="53" usermaximum="58.99" name="FiftyFive"/>
<label uservalue="62" userminimum="59" usermaximum="65.99" name="SixtyTwo"/>
<label uservalue="70" userminimum="66" usermaximum="74.99" name="Seventy"/>
<label uservalue="79" userminimum="75" usermaximum="84.99" name="SeventyNine"/>
<label uservalue="89" userminimum="85" usermaximum="95.99" name="EightyNine"/>
<label uservalue="100" userminimum="96" usermaximum="100" name="Hundred"/>
</labels> @LettError I think you can set the usermaximum to the same value as the userminimum of the next range. The spec explicitly states that in that case, at the value the higher range takes precedence. The way you set it now, there may be a tiny gap between the ranges in the final values. |
Beta Was this translation helpful? Give feedback.
-
I'm struggling with a STAT issue and I want to solve it using ds5 and fontmake. It is a typeface with an interpolating
wdth
axis and a discreteital
axis. So there are two variable fonts, roman and italic.The fonts showed some odd behaviour in InDesign. I'm grateful to have received very specific help from Adobe in the form of ttx files for the roman and italic. With these patches applied the fonts work well.
I would like to incorporate these values in the designspace file so that I can generate the fonts in one go, without having to patch them afterwards.
The roman (hopefully the relevant bits, the full ttx files are in the screengrab below)
The italic:
The designspace snippet below does not result in the right
AxisValueArray
. I've included it to illustrate where the struggle is.Maybe TMI, but this is a screengrab of both ttx files.
Thanks!
Cc @belluzj
Beta Was this translation helpful? Give feedback.
All reactions