# Why negative values for Slant axis?

**URL:** <https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193>\
**Category:** Uncategorized\
**Created:** [May 23, 2024, 1:55pm UTC](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193 "2024-05-23T13:55:26Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![justinpenner](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/justinpenner/32/14306_2.png) [@justinpenner](https://forum.glyphsapp.com/u/justinpenner)\
**Post date:** [May 27, 2024, 9:42pm UTC](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193/21 "2024-05-27T21:42:57Z")

</div>

> [@mekkablue](#):
>
> I would argue that very few fonts need a Slant axis to begin with. For most Latin designs, an Italic axis suffices.

The `slnt` axis is for interpolable italics aka obliques. That’s why the spec specifies the values as being an angle from -90 to 90, so that the end user can set their desired angle of slant.

> [@SCarewe](#):
>
> Currently, if you have an italic axis, Google Fonts require you to split the variable font into two versions: Roman and Italic. That somewhat defeats the purpose of the axis.

The `ital` axis is not usually meant to be used for interpolation. That’s why the spec specifies the values must be from 0 to 1. It allows for fractional values, but it states [“this is not expected to be common”](https://learn.microsoft.com/en-us/typography/opentype/spec/dvaraxistag_ital#:~:text=The%20Italic%20axis%20can%20be%20used%20as%20a%20variation%20axis%20within%20a%20variable%20font%2C%20though%20this%20is%20not%20expected%20to%20be%20common.), since that is when you would typically use `slnt` instead.

Browser support isn’t perfect for `ital` and `slnt` axes, but if you check Arrow Type’s [VF Slant Test](https://arrowtype.github.io/vf-slnt-test/index.html) on various browsers, you’ll see that so far it mostly follows the above interpretation. If your italics are interpolable, a `slnt` axis will give you the best browser support, and you can set the slant angle with the high-level CSS property `font-style: oblique 10deg`. If your italics are not interpolable, browser support is best if you use `ital` (and preferably split your font into two fonts with discrete `ital` values) and enable your italics via the high-level CSS property `font-style: italic`. If you use the wrong axis, the high-level CSS properties won’t work, and you’ll see problems like your italics rendering upright or your conditional glyph substitutions getting ignored.

---

<div class="post-metadata">

**Author:** ![mekkablue](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/mekkablue/32/23_2.png) [@mekkablue](https://forum.glyphsapp.com/u/mekkablue)\
**Post date:** [May 27, 2024, 10:20pm UTC](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193/22 "2024-05-27T22:20:47Z")

</div>

Which browser does not support a variable italic axis?

The only remaining browser issue I am aware of is Safari’s Optical Size problem.

The spec is clear that it can very well be used as a variable axis. Any axis can be variable or just a mere design axis. Italic is no different.

The spec also says that Italic is not supposed to be replaced with Slant. The purposes are distinct. And if you replace italic with slant, you forfeit style linking.

---

<div class="post-metadata">

**Author:** ![justinpenner](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/justinpenner/32/14306_2.png) [@justinpenner](https://forum.glyphsapp.com/u/justinpenner)\
**Post date:** [May 28, 2024, 4:28am UTC](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193/23 "2024-05-28T04:28:48Z")

</div>

> [@mekkablue](#):
>
> Which browser does not support a variable italic axis?
> 
> The only remaining browser issue I am aware of is Safari’s Optical Size problem.

Chrome and Safari have lots of problems – see Arrow Type’s VF Slant Test. The wildest one is how Safari slants left instead of right and vice-versa.

> [@mekkablue](#):
>
> The spec is clear that it can very well be used as a variable axis. Any axis can be variable or just a mere design axis. Italic is no different.

Yes, and the spec is also clear that `ital` is a special axis that’s not meant to be used that way in most cases. See _Additional Information_ in [ital design-variation axis tag (OpenType 1.9) - Typography | Microsoft Learn](https://learn.microsoft.com/en-us/typography/opentype/spec/dvaraxistag_ital#additional-information)

> [@mekkablue](#):
>
> The spec also says that Italic is not supposed to be replaced with Slant. The purposes are distinct. And if you replace italic with slant, you forfeit style linking.

Yes, the purposes are distinct. I think the word “italic” itself is what’s causing some confusion here. From an end-user perspective, “italic” includes both italics and obliques, which I’ve been referring to as “true italics” and “oblique italics” for clarity. From a type designer’s perspective, “true italics” generally have non-interpolable outlines, and “oblique italics” have interpolable outlines. The spec seems to have been written with this in mind, as it seems extremely clear to me that `slnt` is designed for interpolable “oblique” italics, and `ital` is for non-interpolable “true” italics.

What do you mean by forfeiting style linking? The _`I`_ button in a word processor can activate italics in a font that uses `slnt`.

---

<div class="post-metadata">

**Author:** ![alexs](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/a/2acd7d/32.png) [@alexs](https://forum.glyphsapp.com/u/alexs)\
**Post date:** [May 28, 2024, 10:34am UTC](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193/24 "2024-05-28T10:34:07Z")

</div>

> [@justinpenner](#):
>
> The spec seems to have been written with this in mind

It seems like this has created a mess, as if there wasn’t enough of it. Wouldn’t it be better to have one single axis, ital with a scale in positive degrees? Too late to change?

The spec says ital and slnt are not meant to be used together in most cases, which only highlights that their job is the same — to be the i button, applying the italic styles. In this context, italic is the secondary style for emphasis, and it doesn’t matter if it’s interpolatable oblique or true italic.

> [@jkutilek](#):
>
> Why do you think the spec is silly? In mathematics, all angles are measured positive in counterclockwise direction.

And scientists use Kelvin to measure temperature. Negative angle hardly makes sense to the users, dragging the slider backwards 🙃

---

<div class="post-metadata">

**Author:** ![Mark](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/mark/32/20784_2.png) [@Mark](https://forum.glyphsapp.com/u/Mark)\
**Post date:** [May 28, 2024, 10:55am UTC](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193/25 "2024-05-28T10:55:07Z")

</div>

> [@alexs](#):
>
> > [@jkutilek](#):
> >
> > Why do you think the spec is silly? In mathematics, all angles are measured positive in counterclockwise direction.
> 
> And scientists use Kelvin to measure temperature. Negative angle hardly makes sense to the users, dragging the slider backwards 🙃

Yes, that is kind of what I was about to answer to Jens’ question. If you take the user perspective, which I wrote explicitly from, the negative value has is not sensible. If I drag a slider in a LTR environment from left to right, I expect its value to increase. No matter how the engineers implement it behind the scenes. And my issue was and is, that when I look into a lot of fonts out there, the behaviour is all over the place.

---

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [May 28, 2024, 11:28am UTC](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193/26 "2024-05-28T11:28:33Z")

</div>

> [@alexs](#):
>
> And scientists use Kelvin to measure temperature. Negative angle hardly makes sense to the users, dragging the slider backwards 🙃

The OpenType spec is not targeted at end users. Apps presenting variable fonts are not required to expose variation axes as sliders, and sliders don’t have to have the smaller numerical value on the left side, and the axis range that’s presented to the end user does not have to be the same as the one internal to the font. But that is the easiest way to implement controls for variable fonts which is why the controls in most apps look exactly like that.

For example, graphic design apps could offer dials for controlling the slant angle, matching the tilt of the dial to the slant angle. Mapping that to OpenType-complient values for accessing the `slnt` axis values is not difficult, but it’s more work than offering the same UI for all axes, which is why controls for variable fonts are as they are in most apps.

When most fonts follow the spec, apps can make tailored UI controls and offer sensible fallbacks to other variable fonts. When fonts make up their own axis ranges and axis tags, that is not possible. So, I am sympathetic to the OpenType spec in this regard, as it is just a set of technical documents for developers. On the other hand, the fact that most developers would implement this spec in the easiest way possible was predictable, so maybe I am also expecting too much.

---

<div class="post-metadata">

**Author:** ![mekkablue](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/mekkablue/32/23_2.png) [@mekkablue](https://forum.glyphsapp.com/u/mekkablue)\
**Post date:** [May 28, 2024, 11:38am UTC](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193/27 "2024-05-28T11:38:12Z")

</div>

> [@alexs](#):
>
> And scientists use Kelvin to measure temperature. Negative angle hardly makes sense to the users, dragging the slider backwards 🙃

Not the point. The spec does not need to make sense to the end users. How you solve this in an app’s UI is a different question.

> [@justinpenner](#):
>
> not meant to be used

I cannot help but think this is an overinterpretation. It will often be the case that Roman and Italic are in two different files and thus will not be variable. That’s what I understand when I read “can be used as a variation axis within a variable font, though this is not expected to be common”. Shall we avoid using ital as a variation axis because it was not expected to be common? Definitely not.

The same is true about the Slant axis, it is just formulated the other way around: “It can also be used within a STAT table in non-variable, oblique fonts to provide a complete characterization of a font in relation to its family within the STAT table.” (From the slnt recommendations.)

> [@justinpenner](#):
>
> The spec seems to have been written with this in mind, as it seems extremely clear to me that `slnt` is designed for interpolable “oblique” italics, and `ital` is for non-interpolable “true” italics.

Fair enough. The spec does give examples for both uses with oblique styles.

> [@justinpenner](#):
>
> Arrow Type’s VF Slant Test

Thanks for reminding me of the test page. I remember seeing it at one point but had forgotten about that. Will have a closer look. I was remotely involved in a project where the italic of a VF was applied correctly for `<em>...</em>` in all browsers. I didn’t do the CSS and not the testing either. I’ll see if I can ask if they had to do some magic for the italic to work.

> [@justinpenner](#):
>
> What do you mean by forfeiting style linking? The _`I`_ button in a word processor can activate italics in a font that uses `slnt`.

Thanks, I didn’t know that! I built two test cases, one with the usual `ital` Format 3 style linking from 0 to 1, and one with `slnt` Format 3 linking 0 to -8. Here are the results (the middle H’s are selected and have italics applied with Cmd-I):

1. Cocoa apps (TextEdit and Pages): both `slnt` and `ital` style linking work!

 ![Screenshot 2024-05-28 at 13.20.35](https://forum.glyphsapp.com/uploads/default/original/3X/e/7/e794cedf72229406c9b0239eaca1747e3be02ccf.jpeg)

1. Microsoft Word for Mac: neither works. Faux italic for the `slnt` font, nothing happens when you

 ![Screenshot 2024-05-28 at 13.21.07](https://forum.glyphsapp.com/uploads/default/original/3X/2/6/2648a1bd04112610e93490ed8b6b68b845e39212.jpeg)

1. Microsoft Word for Windows: `ital` works, faux italic with the `slnt` font:

 ![Screenshot 2024-05-28 at 13.20.24](https://forum.glyphsapp.com/uploads/default/original/3X/a/f/aff3d084af644b8e2696d740b4aea17b8a1b8b25.png)

1. Adobe InDesign (not Office software, but as a reference): `ital` works, `slnt` doesn’t.

 ![Screenshot 2024-05-28 at 13.36.13](https://forum.glyphsapp.com/uploads/default/original/3X/c/6/c671709f51f45903c9731448965296ebbcd76e69.png)

In conclusion, I would still go with the `ital` axis if you want to keep style linking.

---

<div class="post-metadata">

**Author:** ![alexs](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/a/2acd7d/32.png) [@alexs](https://forum.glyphsapp.com/u/alexs)\
**Post date:** [May 28, 2024, 1:31pm UTC](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193/28 "2024-05-28T13:31:01Z")

</div>

> [@FlorianPircher](#):
>
> The OpenType spec is not targeted at end users.

> [@mekkablue](#):
>
> The spec does not need to make sense to the end users. How you solve this in an app’s UI is a different question.

I understand that, but why is that any better for the developers? There’s one button for italic, but 2 axes applying for its job (style linking is why they are in the specs, right?). The spec’s reason for the 2 axes is different design, but that difference is irrelevant for style linking/the i button, which cancels out the purpose of having 2 axes. But developers have to deal with both, and figure what if both are present.

The axes values are not used (if I’m not mistaken) for anything other than showing to the user, so the negative angle means that developers need to reverse one special slider for no good reason. Do any apps do that?

At the same time, type designers have to figure which axis to use for a better support _in practice_, which apparently is not clear even based on this discussion. It probably creates a feedback loop of uncertainty between type designers and app developers. So I fail to grasp what the pros are. Keep ital with positive angles, deprecate slnt and it’s straightforward for everyone, no? 🙂

---

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [May 28, 2024, 2:01pm UTC](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193/29 "2024-05-28T14:01:23Z")

</div>

> [@alexs](#):
>
> I understand that, but why is that any better for the developers?

Consistency helps. Angles being defined in the same direction across the entire OpenType spec makes it easier to work with as a file format. (Although I would not be surprised if there were exceptions.)

> [@alexs](#):
>
> Do any apps do that?

CSS (not an app, but an interface to variable fonts nonetheless) defines slant angles in clockwise direction. Web browsers reverse the angle specified in CSS code to get the value for the `slnt` axis. The Google Chrome web dev tools even have an appropriate control:

![](https://forum.glyphsapp.com/uploads/default/original/3X/c/8/c86c8f8a3f146b65212658502de64945480ec8af.png)

The CSS code above uses the `slnt` axis location `-11`, abstracting that mapping away for CSS authors.

> [@alexs](#):
>
> It probably creates a feedback loop of uncertainty between type designers and app developers.

I agree. The OpenType spec is followed so loosely by so much software and fonts that I have a feeling the spec does not want to commit to a clear messaging. The spec authors know whatever they write will never be followed by many software and font makers and thus preemptively broaden the spec too much. But that is just my personal opinion; I have little insight into how this specific spec was written.

> [@alexs](#):
>
> Keep ital with positive angles, deprecate slnt and it’s straightforward for everyone, no? 🙂

Not unless you write that axis range down somewhere for font makers and software developers to follow and also convince them that using your range is so much better than just using the spec we already have.

---

<div class="post-metadata">

**Author:** ![justinpenner](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/justinpenner/32/14306_2.png) [@justinpenner](https://forum.glyphsapp.com/u/justinpenner)\
**Post date:** [May 28, 2024, 4:15pm UTC](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193/30 "2024-05-28T16:15:04Z")

</div>

It seems to me that the OpenType spec was written to be somewhat flexible and avoid being too prescriptive in order to allow for experimentation and edge cases. The unintended side effect is it leads to some uncertainty and a lack of clarity, so you have to read between the lines a little bit in some parts, like the descriptions of [`ital`](https://learn.microsoft.com/en-us/typography/opentype/spec/dvaraxistag_ital) and [`slnt`](https://learn.microsoft.com/en-us/typography/opentype/spec/dvaraxistag_slnt) axes.

For instance, @mekkablue noted these two excerpts which are somewhat inversely complementary of each other:

> [@](#):
>
> The ‘ital’ axis tag is used within a STAT table of italic fonts to provide a complete characterization of a font in relation to its family within the STAT table. The Italic axis can be used as a variation axis within a variable font, though this is not expected to be common.

Interpretation: `ital` is a special axis that is primarily used to describe families with roman and “true” italics, which aren’t generally expected to interpolate. But the axis does allow for interpolation (“variation”) to accommodate some uncommon edge cases.

> [@](#):
>
> The Slant axis can be used as a variation axis within a variable font. It can also be used within a STAT table in non-variable, oblique fonts to provide a complete characterization of a font in relation to its family within the STAT table.

Interpretation: `slnt` is primarily meant to describe families with roman and “oblique” italics which are generally expected to interpolate along the variation axis. But `slnt` can also be used in static fonts to describe oblique styles in relation to upright.

Even without those excerpts, I think the ranges defined in the spec (ital: 0 to 1, slnt: -90 to 90) are alone more than clear enough to support my interpretation that generally, `ital` should be used for non-interpolating italics and `slnt` should be used for interpolating italics. 0 to 1 implies a binary switch, i.e. from roman to true italic. -90 to 90 implies a variable slant angle, which is the most sensible unit of measurement for variation from upright to oblique italics.

---

<div class="post-metadata">

**Author:** ![mekkablue](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/mekkablue/32/23_2.png) [@mekkablue](https://forum.glyphsapp.com/u/mekkablue)\
**Post date:** [May 29, 2024, 7:16am UTC](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193/31 "2024-05-29T07:16:38Z")

</div>

0.0 to 1.0 is not binary, they are multiplication factors. It is equivalent to 0% to 100%. If you multiply something with 1.0, that means it is 100% that value. 1.0=100% meaning fully italic. 0.5=50%=half way, etc.

Perfectly usable for anything oblique/italic. It cannot be degrees because an italic style is not necessarily related to angle, and a Roman is not necessarily 0 degrees (especially for the latter, you’ll find many examples in type history).

Slant is necessary where the angle is the primary matter (it’s clear when there is also a backslant for example). Keep in mind that the number is imprecise unless you correct it in avar. 50% of 8 degrees is not 4 degrees in linear interpolation. For most use cases, the deviation will be small enough to not matter, but is best to be aware of that.

And because these are predefined axes, UI devs know what to expect and can create a better interface, e.g. display the Italic axis value as percentage.

[Previous page](https://forum.glyphsapp.com/t/why-negative-values-for-slant-axis/30193.md?page=1)
