[PR #226] [MERGED] Title screen: "RUST EDITION" under the logo #2417

Closed
opened 2026-11-02 15:55:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/226
Author: @ludovic111
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

Base: main ← Head: feat/rust-edition-title


📝 Commits (1)

  • 8f3f72c Title screen: "RUST EDITION" under the logo

📊 Changes

5 files changed (+513 additions, -11 deletions)

View changed files

📝 crates/horizon-client/src/hud.rs (+9 -0)
📝 crates/horizon-client/src/lib.rs (+1 -0)
📝 crates/horizon-client/src/title.rs (+8 -11)
➕ crates/horizon-client/src/title_edition.rs (+489 -0)
📝 docs/media/brand/README.md (+6 -0)

📄 Description

The classic title screen's banner under the MINECRAFT logo now reads RUST EDITION instead of JAVA EDITION.

How

  • crates/horizon-client/src/title_edition.rs rebuilds gui/title/edition when the shared atlas is built (HudAtlas::build, so resource-pack reloads go through it too), from the player's own textures/gui/title/edition.png:
    • EDITION is kept column for column (cols 204–511 untouched).
    • The T is lifted out of EDITION: its body plus the outline pixels nearer to it than to its neighbours.
    • R, U, S are Horizon's own glyphs (MIT): rectangles in that file, in the font's geometry (39-texel faces, 11-texel stems, 10-texel bars, 7-texel rounded-corner notches, 6-texel letter spacing), drawn the way the texture's letters are built: face with darker sides and a light bottom edge, an 8-texel extrusion, a 3-texel black outline, a soft rim, counters filled. Shades are sampled from the loaded texture (most common colour per brightness band), so Mojang's palette isn't hard-coded and no Mojang pixels are in the repository.
    • "RUST" spans "JAVA"'s columns to within a texel, so EDITION doesn't move and the banner stays centred in the 128-wide area.
  • Resource packs: only vanilla 26.3's exact texture is rebuilt (FNV-1a fingerprint of its size + pixels). A pack's own edition.png is left as drawn.
  • Placement fixed to vanilla's LogoRenderer: the logo's top 44 of 64 rows and the banner's top 14 of 16 rows at y = 30 + 44 - 7. Horizon drew the banner at 30 + 64 - 7 (20 GUI px too low, the gap visible in Ludovic's screenshot) and squeezed all 16 texture rows into 14.
  • Horizon-style menus (front.rs) draw Horizon's own wordmark, not the vanilla logo, so they are unchanged.
  • The new glyphs are listed under "Drawn in code" in docs/media/brand/README.md.

Tests

  • title_edition::tests::rust_replaces_java_and_edition_is_untouched: on a stand-in banner laid out like vanilla's: same size, EDITION columns byte-identical, JAVA gone, every R/U/S stroke lit and their notches/counters not, the T's body carried over pixel for pixel, the soft rim all round, nothing below the 14 drawn rows, the word gap open, RUST spanning JAVA's columns.
  • only_vanilla_is_rebuilt: a non-vanilla texture is left alone.
  • prepared_vanilla_edition (runs when .local/horizon-client/26.3 is prepared; ran on the Mac mini against the real file): the fingerprint matches, EDITION identical, sampled face colour right, a one-byte edit disables the rebuild.
  • cargo clippy --workspace --all-targets -- -D warnings and cargo fmt --all --check clean (Mac mini).

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/226 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/rust-edition-title` --- ### 📝 Commits (1) - [`8f3f72c`](https://github.com/horizon-rust/horizon/commit/8f3f72c7efaaaa4c5537d76723b4bb7474a62b37) Title screen: "RUST EDITION" under the logo ### 📊 Changes **5 files changed** (+513 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/hud.rs` (+9 -0) 📝 `crates/horizon-client/src/lib.rs` (+1 -0) 📝 `crates/horizon-client/src/title.rs` (+8 -11) ➕ `crates/horizon-client/src/title_edition.rs` (+489 -0) 📝 `docs/media/brand/README.md` (+6 -0) </details> ### 📄 Description The classic title screen's banner under the MINECRAFT logo now reads **RUST EDITION** instead of JAVA EDITION. ## How - `crates/horizon-client/src/title_edition.rs` rebuilds `gui/title/edition` when the shared atlas is built (`HudAtlas::build`, so resource-pack reloads go through it too), from the player's own `textures/gui/title/edition.png`: - **EDITION** is kept column for column (cols 204–511 untouched). - The **T** is lifted out of EDITION: its body plus the outline pixels nearer to it than to its neighbours. - **R, U, S** are Horizon's own glyphs (MIT): rectangles in that file, in the font's geometry (39-texel faces, 11-texel stems, 10-texel bars, 7-texel rounded-corner notches, 6-texel letter spacing), drawn the way the texture's letters are built: face with darker sides and a light bottom edge, an 8-texel extrusion, a 3-texel black outline, a soft rim, counters filled. Shades are sampled from the loaded texture (most common colour per brightness band), so Mojang's palette isn't hard-coded and no Mojang pixels are in the repository. - "RUST" spans "JAVA"'s columns to within a texel, so EDITION doesn't move and the banner stays centred in the 128-wide area. - **Resource packs:** only vanilla 26.3's exact texture is rebuilt (FNV-1a fingerprint of its size + pixels). A pack's own edition.png is left as drawn. - **Placement fixed to vanilla's `LogoRenderer`:** the logo's top 44 of 64 rows and the banner's top 14 of 16 rows at `y = 30 + 44 - 7`. Horizon drew the banner at `30 + 64 - 7` (20 GUI px too low, the gap visible in Ludovic's screenshot) and squeezed all 16 texture rows into 14. - Horizon-style menus (`front.rs`) draw Horizon's own wordmark, not the vanilla logo, so they are unchanged. - The new glyphs are listed under "Drawn in code" in `docs/media/brand/README.md`. ## Tests - `title_edition::tests::rust_replaces_java_and_edition_is_untouched`: on a stand-in banner laid out like vanilla's: same size, EDITION columns byte-identical, JAVA gone, every R/U/S stroke lit and their notches/counters not, the T's body carried over pixel for pixel, the soft rim all round, nothing below the 14 drawn rows, the word gap open, RUST spanning JAVA's columns. - `only_vanilla_is_rebuilt`: a non-vanilla texture is left alone. - `prepared_vanilla_edition` (runs when `.local/horizon-client/26.3` is prepared; ran on the Mac mini against the real file): the fingerprint matches, EDITION identical, sampled face colour right, a one-byte edit disables the rebuild. - `cargo clippy --workspace --all-targets -- -D warnings` and `cargo fmt --all --check` clean (Mac mini). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:55:54 +07:00
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#2417
No description provided.