Skip to content

feat(shared): change the winjs font for a new fluent style font - #3744

Merged
alextrepa merged 1 commit into
unoplatform:masterfrom
alextrepa:dev/alextrepa/uno-font
Aug 11, 2020
Merged

alextrepa merged 1 commit into
unoplatform:masterfrom
alextrepa:dev/alextrepa/uno-font

Conversation

@alextrepa

@alextrepa alextrepa commented Aug 7, 2020 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): #3011, 967

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

We currently use the Winjs-symbols font. Since it is not and exact match for Segoe there are control symbols that are missing.

What is the new behavior?

This is very much a work in progress. It is a first draft of a font that will be used as a default for Uno controls. It takes most of its symbols from the Fluent System Icons. As a fall back, we use Icons from Icons 8 Line awesome and Winjs. Thank you to @kakone for his help as he had already did part of the icon mapping and made a pretty great tool that was very useful (https://github.com/kakone/SvgFont2Files).

PR Checklist

Please check if your PR fulfills the following requirements:

This PR will bring some breaking change. For now it is a draft. I will add further details.

Other information

Uno Fluent UI assets

Uno has a new multiplateform font. The new font must be added to app build before the change.

[!IMPORTANT]
This is a breaking change on most platform the font needs to be changed or most control will display incorrectly.

Font files

The updated fonts are here.
uno-fluentui-assets.zip

Changes

Device family Description
iOS & macOS Once Uno has been updated, it will start looking for a font named symbols (Not necessarily the name of the file). For this font to be available it needs to be in the resource folder. image image
Android Once Uno has been updated, it will start looking for a font file named uno-fluentui-assets.ttf in its assets folder: image
WebAssembly A wasm build won't break after the update but to access the new symbols the file Font.css should be chnaged. The font is passed as a base64 file. image

Limitations

On iOS and macOS the indeterminate state for a check box is not the right color.

Related Topics

@gitpod-io

gitpod-io Bot commented Aug 7, 2020 •

Copy link
Copy Markdown

@alextrepa
alextrepa marked this pull request as ready for review August 7, 2020 19:27
@alextrepa
alextrepa requested a review from a team August 7, 2020 19:27
@alextrepa alextrepa changed the title feat(shared): change the winjs font for a new fluent style font (WIP) feat(shared): change the winjs font for a new fluent style font Aug 7, 2020

@davidjohnoliver davidjohnoliver left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

still need to document the upgrade path for existing apps

@jeromelaban

Copy link
Copy Markdown
Member

Make sure mention in the commit BREAKING CHANGE: saying the font is now changed and the newer one should be used instead.

@robloo

robloo commented Aug 8, 2020

Copy link
Copy Markdown
Contributor

Awesome work!!!

BREAKING CHANGE: the symbol font (winjs-symbols) has changed and the new one (uno-fluentui-asset) should be used.
@alextrepa alextrepa changed the title (WIP) feat(shared): change the winjs font for a new fluent style font feat(shared): change the winjs font for a new fluent style font Aug 11, 2020
@alextrepa
alextrepa merged commit 64c9f52 into unoplatform:master Aug 11, 2020
@jeromelaban

Copy link
Copy Markdown
Member

@Mergifyio backport release/beta/3.0

@mergify

mergify Bot commented Aug 12, 2020

Copy link
Copy Markdown
Contributor

Command backport release/beta/3.0: success

Backports have been created

jeromelaban added a commit that referenced this pull request Aug 12, 2020
…/pr-3744

feat(shared): change the winjs font for a new fluent style font (bp #3744)
@alextrepa
alextrepa deleted the dev/alextrepa/uno-font branch August 21, 2020 16:34
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