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
@kfc35 kfc35 added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jan 9, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 10, 2026
Merged via the queue into bevyengine:main with commit c6ab064 Jan 10, 2026
44 checks passed
@mockersf
Copy link
Member

This example crash on macOS and Linux: #22475

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-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bevy_text system fonts example

6 participants