Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default font does not look right on systems without Segoe UI #3954

Open
2 of 23 tasks
MartinZikmund opened this issue Sep 3, 2020 · 9 comments · May be fixed by #15958
Open
2 of 23 tasks

Default font does not look right on systems without Segoe UI #3954

MartinZikmund opened this issue Sep 3, 2020 · 9 comments · May be fixed by #15958
Assignees
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/text 🔤 Categorizes an issue or PR as relevant to text (TextBox, PasswordBox, TextBlock, Fonts, …) triage/most-wanted

Comments

@MartinZikmund
Copy link
Member

MartinZikmund commented Sep 3, 2020

Current behavior

When WASM Uno app is loaded in Tesla browser, the default font is generic Times New Roman.

ds

Expected behavior

A nicer font should be rendered (OpenSans?)

How to reproduce it (as minimally and precisely as possible)

Workaround

Environment

Nuget Package:

  • Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
  • Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
  • Uno.SourceGenerationTasks
  • Uno.UI.RemoteControl / Uno.WinUI.RemoteControl
  • Other:

Nuget Package Version(s):

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Skia
    • WPF
    • GTK (Linux)
  • Windows
  • Build tasks
  • Solution Templates

IDE:

  • Visual Studio 2017 (version: )
  • Visual Studio 2019 (version: )
  • Visual Studio for Mac (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )
  • Visual Studio Code (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

Prerequisites:

@MartinZikmund MartinZikmund added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification and removed triage/untriaged Indicates an issue requires triaging or verification labels Sep 3, 2020
@agneszitte agneszitte added the project/text 🔤 Categorizes an issue or PR as relevant to text (TextBox, PasswordBox, TextBlock, Fonts, …) label Sep 21, 2020
@MartinZikmund MartinZikmund changed the title Default font does not look right on Tesla Default font does not look right on systems without Segoe UI Jan 29, 2021
@MartinZikmund
Copy link
Member Author

Seems this is a general issue on systems without Segoe UI (e.g. macOS)
image

@MartinZikmund MartinZikmund added this to the 3.6 milestone Jan 29, 2021
@kazo0 kazo0 self-assigned this Feb 1, 2021
@jeromelaban jeromelaban added the difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. label Feb 15, 2021
@kazo0 kazo0 modified the milestones: 3.6, 3.7 Mar 15, 2021
@kazo0 kazo0 modified the milestones: 3.7, 3.8 Mar 31, 2021
@MartinZikmund
Copy link
Member Author

This could be implemented along with #3588

@MartinZikmund MartinZikmund added difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI and removed difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Jun 1, 2021
@carldebilly carldebilly modified the milestones: 3.8, 3.9 Jun 7, 2021
@jeromelaban jeromelaban modified the milestones: 3.9, 3.10 Aug 11, 2021
@fangeles02
Copy link

fangeles02 commented Aug 11, 2021

Hi, I've found a free font similar to Segoe UI from other forums, if you could consider it.
WeblySleek UI http://fontpro.com/weblysleek-ui-font-9838

image

@jeromelaban jeromelaban modified the milestones: 3.10, 3.11 Sep 10, 2021
@MartinZikmund
Copy link
Member Author

Same problem occurs on other OS/browsers - e.g. Safari on iOS

@nor0x
Copy link
Contributor

nor0x commented Apr 13, 2022

any known workarounds? setting a global font via css unfortunately doesn't solve this issue

@MartinZikmund
Copy link
Member Author

MartinZikmund commented Apr 13, 2022

Yes, this is something we need to address asap... I will be working on the icon font and will try to look into this as well. Microsoft is suggesting https://docs.microsoft.com/en-us/typography/font-list/selawik as the open-source alternative to Segoe UI, so that could be a potentially viable solution

Typographic info for the Selawik font

@MartinZikmund MartinZikmund self-assigned this Apr 13, 2022
@MartinZikmund MartinZikmund removed this from the 3.11 milestone Apr 13, 2022
@MartinZikmund
Copy link
Member Author

Thisis also a problem for mobile browsers - for example {ThemeResource TitleTextBlockStyle} renders very bold typeface on Android as compared to desktop browser

@mikernet
Copy link
Contributor

mikernet commented May 17, 2024

I like the "system native" font selection fallbacks for one of the apps I'm working on, but something odd happens on macos+chrome where font-weight is completely ignored, which doesn't seem to happen with any other combination of browsers/platforms/targets as far as I can tell.

When I check chrome dev tools and select an element, it says font-family: "Segoe UI" and shows that it is actually rendering Helvetica Neue, but font-weight does not do anything. If I change font-family directly to Helvetica Neue then the font-weight setting kicks in and starts to work.

@mikernet
Copy link
Contributor

I also noticed that if it falls back to sans-serif (i.e. if you remove the Helvetica Neue fallback) then it renders times new roman, which might be related to the initial problem. If I change font-family to sans-serif in chrome dev tools then it shows a suitable font.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/text 🔤 Categorizes an issue or PR as relevant to text (TextBox, PasswordBox, TextBlock, Fonts, …) triage/most-wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants