Skip to content

feat!: Update font to Ubuntu Sans - #1063

Draft
ashuntu wants to merge 7 commits into
mainfrom
ubuntu-sans-font
Draft

feat!: Update font to Ubuntu Sans#1063
ashuntu wants to merge 7 commits into
mainfrom
ubuntu-sans-font

Conversation

@ashuntu

@ashuntu ashuntu commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

Updates the default font from Ubuntu to Ubuntu Sans and Ubuntu Mono to Ubuntu Sans Mono.

This uses the variable fonts from https://github.com/canonical/Ubuntu-Sans-fonts/tree/main/fonts/variable and https://github.com/canonical/Ubuntu-Sans-Mono-fonts/tree/main/fonts/variable.

This requires >=Flutter 3.41 to support FontWeight for variable fonts.

I've also added some toggles/sliders to the font page so you can view different variations of the fonts. Leaving weight and width unchecked will use the default weight and width of the given text style.

Before After
Light image image
Dark image image

cc @juanruitina


UDENG-9088

@ashuntu

ashuntu commented Feb 12, 2026

Copy link
Copy Markdown
Contributor Author

@juanruitina can you confirm this looks correct? I believe the new font has some slightly thicker weight.

@ashuntu
ashuntu force-pushed the ubuntu-sans-font branch 5 times, most recently from 59ba366 to c082711 Compare February 13, 2026 20:41
@ashuntu ashuntu changed the title feat: Update font to Ubuntu Sans feat!: Update font to Ubuntu Sans Feb 13, 2026
@juanruitina

juanruitina commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

Thank you for all this. Can we move the variable fonts perhaps to a togglable container (perhaps YaruExpansionPanel) below the style examples? I think it's good that the variable fonts can be used, but we should encourage using the default styles first. Other than that, I think it all looks as it should.

@ashuntu
ashuntu force-pushed the ubuntu-sans-font branch 2 times, most recently from b5799fa to 05dc920 Compare February 18, 2026 21:28
@ashuntu

ashuntu commented Feb 18, 2026

Copy link
Copy Markdown
Contributor Author

Since this change is very minor but breaking because of the Flutter upgrade, I think we should consider postponing this for Yaru 11+, especially since Flutter 3.41 is so new.

@Feichtmeier

Copy link
Copy Markdown
Member

Since this change is very minor but breaking because of the Flutter upgrade, I think we should consider postponing this for Yaru 11+, especially since Flutter 3.41 is so new.

alright!

@Muqtxdir

Muqtxdir commented Apr 4, 2026

Copy link
Copy Markdown
Member

Hi @ashuntu @Feichtmeier do I close my pr #996 in favour of this?

@ashuntu

ashuntu commented Apr 7, 2026

Copy link
Copy Markdown
Contributor Author

Hi @ashuntu @Feichtmeier do I close my pr #996 in favour of this?

I think this PR has the benefit of utilizing the 3.41 features to apply font weights, however, this obviously requires Flutter 3.41.

I don't necessarily think this is conflicts directly with #996, as we could technically merge #996 if the CI passed and then merge this PR later for the 3.41 weight features. I also haven't tested #996 to see how it interacts with custom weights in code. Ultimately, this is up to @Feichtmeier and others.

@Feichtmeier

Copy link
Copy Markdown
Member

Hi @ashuntu @Feichtmeier do I close my pr #996 in favour of this?

I think this PR has the benefit of utilizing the 3.41 features to apply font weights, however, this obviously requires Flutter 3.41.

I don't necessarily think this is conflicts directly with #996, as we could technically merge #996 if the CI passed and then merge this PR later for the 3.41 weight features. I also haven't tested #996 to see how it interacts with custom weights in code. Ultimately, this is up to @Feichtmeier and others.

sure sounds like a plan, align yaru with 3.41 (but is it stable enough on linux? I became quite conservative with flutter versions in the last year and am rocking 3.38.10 pretty solid on all operating systems) and then merge this here

@ashuntu

ashuntu commented Apr 8, 2026

Copy link
Copy Markdown
Contributor Author

but is it stable enough on linux

Yeah, I think that's why we should keep this as draft for a while, most likely until our Ubuntu apps are up to date which probably won't be for a little while due to previous instability with Flutter upgrades.

ashuntu added 7 commits April 8, 2026 16:46
Also increase titleSmall weight
This allows us to use TextWeight for variable fonts.

The test dependency doesn't seem necessary, as flutter_test
provides the same functionality. It also introduces problems
upgrading Flutter.
@ashuntu
ashuntu force-pushed the ubuntu-sans-font branch from 05dc920 to 2e98543 Compare April 8, 2026 21:48
@Feichtmeier

Copy link
Copy Markdown
Member

We also need emoji fallback fonts, please @ashuntu if you keep working on this PR again, let's fix emojis and chinese fonts on ARM with this branch here, they are bugged like hell with yaru.dart

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.

4 participants