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

fix(framework): prioritize external fonts over locally installed #7184

Merged
merged 2 commits into from
Jun 13, 2023

Conversation

ilhan007
Copy link
Member

Fetch the latest font file and then fallback to locally installed.

Fixes: #7177

@ilhan007 ilhan007 merged commit c527c70 into main Jun 13, 2023
@ilhan007 ilhan007 deleted the fix-font-faces-sfsf branch June 13, 2023 07:57
nnaydenow pushed a commit that referenced this pull request Jun 13, 2023
- Fetch the latest font file and then fallback to locally installed.
- reorder font source origin url() and local() and make url first (previously local() used to be first and then followed by url()), so the latest version of the woff2 file will be fetched, and if this fails it will fallback to locally installed font with the same name.
This is also the order in OpenUI5: https://github.com/SAP/openui5/blob/master/src/themelib_sap_horizon/src/sap/ui/core/themes/sap_horizon/shared.less#L259
- the path to the external source is slightly changed: sap/ui/core/themes/sap_fiori_3 changed to sap/ui/core/themes/sap_horizon, although it should be the same
- added test pages

Fixes: #7177
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.

[theming]: Cannot use font-weight when text is using 72-bold
2 participants