1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! bezel-ui — SwiftUI-flavored components for gpui.
//!
//! Style flows through the environment, never through parameters: components
//! read [`bezel_theme::Theme`] (a gpui `Global`) at paint time, the way SwiftUI
//! views read `@Environment`. Motion comes from the named `bezel_motion`
//! catalog. Everything compiles against stock gpui.
use Cow;
use App;
/// Embedded UI fonts — Geist and Geist Mono (variable), © Vercel Inc.,
/// licensed under the SIL Open Font License 1.1 (https://openfontlicense.org).
/// Bundled so the type ships with the binary instead of depending on what the
/// host system happens to have installed.
static FONT_GEIST: & = include_bytes!;
static FONT_GEIST_MONO: & = include_bytes!;
/// Static Geist weights alongside the variable file: gpui's cosmic-text path
/// (Linux) rasterizes variable fonts at their default instance only — it never
/// applies `wght` coordinates — so medium/semibold/bold text silently paints
/// at 400 with just the variable TTF registered. The statics give the face
/// matcher real 500/600/700 faces (macOS/CoreText applies the variable axis
/// natively and simply never falls through to these).
static FONT_GEIST_MEDIUM: & = include_bytes!;
static FONT_GEIST_SEMIBOLD: & = include_bytes!;
static FONT_GEIST_BOLD: & = include_bytes!;
/// Register the embedded fonts with the gpui text system. Failure is non-fatal:
/// the theme's system fallbacks take over (same families the CSS stack names).