Skip to content

Conversation

@ickshonpe
Copy link
Contributor

@ickshonpe ickshonpe commented Jan 6, 2026

Objective

Add an example that demonstrates demonstrates loading and querying for system fonts via cosmic-text.

Fixes #22391

Solution

New UI example system_fonts.

It loads the system fonts into cosmic-text's database, queries for all the available fonts, and then displays them in a scrolling list. The fonts are presented autologically, with each font name rendered in its own typeface.

Testing

cargo run --example system_fonts

Showcase

Screenshot 2026-01-06 115611

Displays a scrollable list of all available system fonts. Demonstrates loading and querying system fonts via cosmic-text.
@ickshonpe ickshonpe force-pushed the system-fonts-example branch from 56f0ac4 to 78a93ce Compare January 6, 2026 12:11
@ickshonpe ickshonpe added C-Examples An addition or correction to our examples A-UI Graphical user interfaces, styles, layouts, and widgets A-Text Rendering and layout for characters D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Text Rendering and layout for characters A-UI Graphical user interfaces, styles, layouts, and widgets C-Examples An addition or correction to our examples D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bevy_text system fonts example

2 participants