BLF: Slant Angle Correction #112483

Merged
Harley Acheson merged 1 commits from Harley/blender:SlantAngle into main 2023-09-17 18:58:46 +02:00
Member

Internal change to slant direction of artificial italics (obliquing)
to match the counter-clockwise degrees of variable font SLNT values.


This is an internal correction only, without any user-facing change.

When rendering a glyph with a slant, we can do so in two ways. One is to change the value of the SNLT axis if the font is a variable type (Adobe MM, Apple's TrueType GX, OpenType variation fonts), or to to do an obliquing transform on the glyph if the font is not a variable type.

When adding the obliquing transform I had assumed that a positive value should move the top of the glyph rightward. Unfortunately, the OTF spec has a different idea for the SLNT variable axis, which treats these as counter-clockwise degrees. So a typical right-leaning design has a negative slant value. This was done so that this value can match an older "italicAngle" value in the "post" (PostScript) table.

This PR just aligns the obliquing transform direction with the SLNT axis direction. While there it decreases the range of change for obliquing to be within more sane values, and therefore also changes the value for the default "italic" setting.

Internal change to slant direction of artificial italics (obliquing) to match the counter-clockwise degrees of variable font SLNT values. --- This is an internal correction only, without any user-facing change. When rendering a glyph with a slant, we can do so in two ways. One is to change the value of the SNLT axis if the font is a variable type (Adobe MM, Apple's TrueType GX, OpenType variation fonts), or to to do an obliquing transform on the glyph if the font is not a variable type. When adding the obliquing transform I had assumed that a positive value should move the top of the glyph rightward. Unfortunately, the OTF spec has a different idea for the SLNT variable axis, which treats these as **counter-clockwise** degrees. So a typical right-leaning design has a negative slant value. This was done so that this value can match an older "italicAngle" value in the "post" (PostScript) table. This PR just aligns the obliquing transform direction with the SLNT axis direction. While there it decreases the range of change for obliquing to be within more sane values, and therefore also changes the value for the default "italic" setting.
Harley Acheson added 1 commit 2023-09-17 18:58:06 +02:00
cc3a893b45 BLF: Slant Angle Correction
Internal change to slant direction of artificial italics (obliquing)
to match the counter-clockwise degrees of variable font SLNT values.
Harley Acheson added this to the User Interface project 2023-09-17 18:58:24 +02:00
Harley Acheson merged commit 87fbe14cb4 into main 2023-09-17 18:58:45 +02:00
Harley Acheson deleted branch SlantAngle 2023-09-17 18:58:51 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#112483
No description provided.