Skip to content

GH-494 truetype font hinting tie in - #534

Open
pcorless wants to merge 4 commits into
mainfrom
GH-494.truetype.font.hinting
Open

GH-494 truetype font hinting tie in #534
pcorless wants to merge 4 commits into
mainfrom
GH-494.truetype.font.hinting

Conversation

@pcorless

Copy link
Copy Markdown
Owner
  • hook for a bunch of work gone into fontbox for supporting composite fonts hinting instructions.

pcorless and others added 4 commits June 15, 2026 20:38
Two conflicts, both from main reworking the same font paint paths this
branch restructured for hinting.

ZSimpleFont.getOutline: kept both sides — main's isSubstitutedNotdef guard
plus this branch's unhinted cached outline (clipping/selection geometry must
not be grid-fit).

ZFontType2: this branch removed the paint() override in favour of the shared
ZSimpleFont.paint(), so main's additions to it were carried across rather
than kept in place — the isSubstitutedNotdef guard is already in the
inherited paint(), and the null-safe trueTypeFont.getGlyph() check moved into
getGlphyShape(). Main also widened that catch to RuntimeException for fontbox
throwing on OTF/CFF fonts with no glyf table; the shared paint() already
catches RuntimeException, and GlyphCache swallows IOException internally, so
that path is preserved.

Not compile-verified: this branch needs the fontbox 4.0.0-SNAPSHOT fork that
provides getHintedPath(gid, ppem), which is not installed in the local
repository.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WDXkgMFf1n9eaXi5q29exm
…box.ttf.hinting system property from FontBox fork
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.

1 participant