question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

postscriptSlantAngle is overriden by italicAngle

See original GitHub issue
In [3]: u = Font()

In [6]: u.info.italicAngle = 10

In [7]: u.info.postscriptSlantAngle = 20

In [8]: t = ufo2ft.compileTTF(u)

In [11]: assert t["post"].italicAngle == 20, t["post"].italicAngle
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-11-e1fd7231bc4c> in <module>
----> 1 assert t["post"].italicAngle == 20, t["post"].italicAngle

AssertionError: 10.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
moyogocommented, Jun 25, 2021

Here’s a screenshot of the relevant section of the FLS5 Font Info > Metrics and Dimensions > Key Dimensions panel with the description “Slant is based on FontMatrix and works only in T1”. Screenshot 2021-06-24 at 19 41 24

Here’s a screenshot of Fontforge with two test fonts produced in FLS5, one with the default Slant angle value and another with a custom Slant angle value set to -12. Note that in FLS5 the source or the generated Win Type 1 fonts are exactly the same except for the Slant angle value whereas in Fontforge the one with the Slant angle set to -12 has slanted glyphs. Screenshot 2021-06-24 at 19 45 59

Edit: the same is true when exporting OpenType CFF from FLS5 with the slant angle value set, however this does not set the FontMatrix but slants the outlines instead, whereas it sets the FontMatrix in Type 1.

1reaction
typesupplycommented, Jun 23, 2021

From the Mac FontLab 5 manual (User manual release 5.1 [5/2006]), page 243:

Slant angle Type 1 fonts can be artificially slanted to get an “oblique” appearance while keeping the actual outlines upright. Enter a slant angle value (in degrees) here and check the result in the Preview panel

Read more comments on GitHub >

github_iconTop Results From Across the Web

Default font slant angle - PTC Community
This would set the default font to isocpeur font with italic specified. "i" at the end in "isocpeui " denotes italics. I am...
Read more >
Preferences - FontLab Help Center
Slant angle allows slanted vertical gridlines. The angle can be within the -45˚+45˚ range. This option is overridden by the next one.
Read more >
How to increase the angle of italic text? - Stack Overflow
P.S. : This method will help you change the angle of italics of text, but for the case of designing the logo, you'll...
Read more >
PostScript - RoboFont
Artificial slant angle. UnderlineThickness, Underline thickness value. Corresponds to the post table UnderlineThickness field. UnderlinePosition ...
Read more >
TextMesh Pro - Italics is... too italicized? How to customize?
The change adjusts the position of the italic text by an amount proportional to the slant / angle. Last edited: Jun 3, 2019....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found