Skip to content

Tracking, spacing, and adjustability fixes - #8985

Merged
laurmaedje merged 2 commits into
mainfrom
tracking-spacing-fixes
Oct 20, 2026
Merged

laurmaedje merged 2 commits into
mainfrom
tracking-spacing-fixes

Conversation

@laurmaedje

Copy link
Copy Markdown
Member

Two fixes:

  1. We now split tracking and spacing application into two so that spacing adjustments can be picked up by calculate_adjustability but tracking does not influence the glyph widths.
  2. We now compute all Em-based glyph metrics based glyph.size instead of ctx.size. The cases that still used ctx.size were leftovers from before glyphs could have their own size (for synthesized superscripts).

(These are some issues fixed along the way of reviewing #8963.)

The adjustability is computed based on the advance width and should not take into account `tracking`.

The spacing computation however, should run first since it defines the width of space glyphs and affects their adjustability.
@laurmaedje
laurmaedje merged commit 300fe3c into main Oct 20, 2026
18 checks passed
@chinzhening

Copy link
Copy Markdown
Contributor

This should also close #8959

@laurmaedje

Copy link
Copy Markdown
Member Author

Any specific reason you reopened #8959?

@chinzhening

Copy link
Copy Markdown
Contributor

Sorry, that was accidental. It is now closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants