Skip to main content

Module brand

Module brand 

Source
Expand description

The startup brand lockup: the three-bar mark, the rpi wordmark, and the Rust crab standing in for the language name.

The layout exists as a module rather than inline in the welcome header for one reason: width must be unambiguous. The lockup this replaced drew a crab above a box containing π. π is East-Asian Ambiguous — width 1 in most locales and width 2 under a CJK locale — so the box borders walked out of alignment depending on the user’s system. The mark here is built from █, which is single-width everywhere; the crab is the only wide glyph, so it is the one thing the layout has to account for, and a test pins its width.

The mark and the wordmark also supply the terminal window/tab title (see window_title), so the tab and the startup screen cannot drift apart.

Structs§

BrandLockup
The startup lockup. Add one to the welcome header.

Constants§

CRAB
The Rust mascot, standing where the word “rust” used to be.
MARK
The three-bar mark as a single plain-text row: the lockup’s silhouette, scaled into one row.
NO_EMOJI_ENV
Set to 1/true/yes to render the lockup without the crab.

Functions§

window_title
The startup lockup flattened into a terminal window/tab title.