Skip to content

Text: all font selection#483

Merged
danirabbit merged 5 commits intomainfrom
danirabbit/font-selection
Feb 25, 2026
Merged

Text: all font selection#483
danirabbit merged 5 commits intomainfrom
danirabbit/font-selection

Conversation

@danirabbit
Copy link
Member

@danirabbit danirabbit commented Feb 22, 2026

Allow selecting any font instead of a toggle for just dyslexia fonts. There's lots of reasons someone might want/need a specific font.

Fixes #304
closes #238
closes #240
closes #390
closes #479

Screenshot from 2026-02-22 12 58 19 Screenshot from 2026-02-22 13 08 18 Screenshot from 2026-02-22 13 08 49

This attempts to make font selection simpler by just selecting family and we enforce our same sizes. There are filters built-in Gtk.FontDialog for language and monospace but I don't think there's any way to activate them by default?

This filters out "Noto" fonts since they're meant to avoid "tofu" chars and not to be a font you use itself

@danirabbit danirabbit requested review from a team February 22, 2026 21:11
@danirabbit danirabbit added this to A11y Feb 22, 2026
@github-project-automation github-project-automation bot moved this to Needs Review in A11y Feb 22, 2026
Copy link
Member

@leolost2605 leolost2605 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM only a comment regarding the filter func


construct {
var default_font_dialog = new Gtk.FontDialog () {
filter = new Gtk.CustomFilter ((item) => {
Copy link
Member

@leolost2605 leolost2605 Feb 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether vala captures the self even if it's not used but I think it does? We can get around this by making it a static function though (as opposed to signal connections that can be object methods other callbacks like this have to be static to avoid a memory leak)

Copy link
Member

@micahilbery micahilbery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me ❤️

@danirabbit
Copy link
Member Author

@leolost2605 filters should be much better now :)

Copy link
Member

@leolost2605 leolost2605 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@danirabbit danirabbit merged commit c643e85 into main Feb 25, 2026
4 checks passed
@danirabbit danirabbit deleted the danirabbit/font-selection branch February 25, 2026 17:46
@github-project-automation github-project-automation bot moved this from Needs Review to Done in A11y Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

3 participants