[GH-ISSUE #336] Fonts: TrueType providers and fonts picked by text components #87

Closed
opened 2026-11-02 15:36:14 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/336

Two font gaps for resource packs and data-driven text:

  • ttf providers (file, size, oversample, shift, skip) aren't supported: Horizon's font (font.rs) handles bitmap, space, unihex and reference.
  • A text component's font (minecraft:alt, minecraft:illageralt, minecraft:uniform, a pack's own font) isn't kept in text::Style, so everything except the enchanting table's alt glyphs uses the default font.
    Needs a TrueType rasteriser in Rust (e.g. ab_glyph or fontdue) baking glyphs into the font atlas like vanilla's TrueTypeGlyphProvider, and a font id on the style.

Found by the resource pack audit (docs/resource-packs.md).

Originally created by @ludovic111 on GitHub (Oct 15, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/336 Two font gaps for resource packs and data-driven text: - `ttf` providers (`file`, `size`, `oversample`, `shift`, `skip`) aren't supported: Horizon's font (`font.rs`) handles `bitmap`, `space`, `unihex` and `reference`. - A text component's `font` (`minecraft:alt`, `minecraft:illageralt`, `minecraft:uniform`, a pack's own font) isn't kept in `text::Style`, so everything except the enchanting table's alt glyphs uses the default font. Needs a TrueType rasteriser in Rust (e.g. ab_glyph or fontdue) baking glyphs into the font atlas like vanilla's `TrueTypeGlyphProvider`, and a font id on the style. Found by the resource pack audit (docs/resource-packs.md).
bsakaguchi 2026-11-02 15:36:14 +07:00
Author
Owner

@ludovic111 commented on GitHub (Oct 22, 2026):

Claimed by ludovic on Discord (GitHub: ludovic111), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #336).

<!-- gh-comment-id:6340053320 --> @ludovic111 commented on GitHub (Oct 22, 2026): Claimed by `ludovic` on Discord (GitHub: `ludovic111`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #336). <!-- kira:work -->
Author
Owner

@ludovic111 commented on GitHub (Oct 22, 2026):

🤖 Agent: fix in #1216 (stacked on #1215)

<!-- gh-comment-id:6341915728 --> @ludovic111 commented on GitHub (Oct 22, 2026): 🤖 Agent: fix in #1216 (stacked on #1215)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
horizon-rust/horizon#87
No description provided.