Repository navigation
Conversation
Both GPU frontends fitted every private-use icon into one text cell, so the text face's advance width, not the icon, decided its size: at font size 25 icons rendered at roughly half the text height (NUKE-102). An icon whose right-hand neighbour is blank (the launcher always writes "icon name") is now rasterized across two cells and drawn as two atlas tiles, like a double-width glyph in a terminal. Icons with an occupied neighbour or at the grid edge keep the one-cell fit, and the procedural badge shown without an icon font stays one square cell.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes NUKE-102: GPU icons rendered at about half the text height because every private-use glyph was fitted into one text cell (
cw − 3×h − 3), so the text face's advance width decided icon size.Change
GlyphKeygains aGlyphSpan(Single/Left/Right). The two halves of a wide icon are separate atlas tiles, distinct from the one-cell form.FontSet::coverage_spanrasterizes an icon into a2·cw × htile and returns the requested half. Text ignores the span. With no icon font, the square badge stays in the left cell.grid::glyph_tilesdecides the span: an icon whose next cell is blank and inside the grid spans two cells, and anything else stays one cell. Glyph lists are row-major, so the check only looks at the next entry.CellRenderer::drawuses it, so the native and Rio frontends both get the fix. The externaltuiis unchanged.Validation
cargo fmt --all -- --check,cargo clippy --all-targets --all-features -- -D warnings,cargo build --all-targets,cargo test --all: all green.