Skip to content

Commit

Permalink
fix(framework): enable 72Blackfull font-family (#7918)
Browse files Browse the repository at this point in the history
Font 72Blackfull was missing from our font styles and now added. This caused unexpected font issues when --sapFontBlackFamily variable is used.

Fixes: #7800
  • Loading branch information
ilhan007 authored Nov 26, 2023
1 parent 4ca3898 commit 214780f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/base/src/css/FontFace.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black.woff2?ui5-webcomponents) format("woff2"), local('72Black');
}

@font-face {
font-family: '72Blackfull';
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black-full.woff2?ui5-webcomponents) format('woff2');
}

@font-face {
font-family: "72-SemiboldDuplex";
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-SemiboldDuplex.woff2?ui5-webcomponents) format("woff2"), local('72-SemiboldDuplex');
Expand Down
3 changes: 3 additions & 0 deletions packages/main/test/pages/FontFace.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@
<div class="boldFamily makeItBold">Hello مرحبًا שלום 你好 Hallo Hola</div>
<ui5-label>sapFontFamily</ui5-label>
<div class="normal">Hello مرحبًا שלום 你好 Hallo Hola</div>

<span style="font-family: var(--sapFontBlackFamily);">sapFontBlackFamily </span>
<span style="font-family: var(--sapFontBlackFamily);">Dzień </span>
</body>

0 comments on commit 214780f

Please sign in to comment.