Skip to content

toolkit: add FontChooser live-preview font picker#18

Merged
tannevaled merged 1 commit into
mainfrom
toolkit-fontchooser
Jul 10, 2026
Merged

toolkit: add FontChooser live-preview font picker#18
tannevaled merged 1 commit into
mainfrom
toolkit-fontchooser

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

The picker the Font interface (v0.20) unblocked — the long-deferred sibling of ColorChooser/FileChooser.

A vertical list of named fonts where each option's name is rendered in that very font, so the list doubles as a live size/style preview. Clicking a row selects it, applies it as the active font via SetFont, and fires OnChoose(idx, f). With no options it defaults to a three-scale ladder of the built-in bitmap font (Regular / Large / Extra Large), so an app gets a working font-size picker for free.

Renders through painter.Painter. 100% coverage; go vet clean; builds on all 6 arches + js/wasm.

🤖 Generated with Claude Code

The picker the Font interface (v0.20) unblocked — the long-deferred sibling of
ColorChooser/FileChooser. A vertical list of named fonts, each rendered in its
own font so the row doubles as a live size/style preview; clicking one selects
it, applies it as the active font via SetFont, and fires OnChoose. Defaults to
a three-scale ladder of the built-in bitmap font (Regular/Large/Extra Large)
so an app gets a working font-size picker for free. 100% coverage.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit d3f28ae into main Jul 10, 2026
1 check passed
@tannevaled
tannevaled deleted the toolkit-fontchooser branch July 10, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant