head table bounding box is not recalculated for variable font instances

Aperta
#40 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@khaledhosny ci sta già lavorando.

Dal 29/10/2026.

  • #41 di @khaledhosny — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
backend

Direzione di ricerca

Start by reading subset_with_variations() and the code that writes the OpenType head table; the issue does not name files or tests. Check how the default instance's bounds are copied and whether existing variation tests cover the table. Done means the instantiated font's xMin, yMin, xMax, and yMax include its glyph bounds, preventing macOS rasterizer cropping.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Using subset_with_variations() to instance of a variable font, it does not update the head table bounds (xMin, yMin, xMax and yMax are copied unchanged). Some glyphs in the instance might be bigger than the bounds of the default instance.

The macOS rasterizer crops glyphs outside of the head bounds. This can be seen when opening PDFs created with Krilla in macOS Preview (I had the same issue in PDFs created with Illustrator previously).

Lingua principale
Rust
Stelle
61
Fork
16
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di typst/subsetter

Tutte le issue di typst/subsetter

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.