Skip to content

Commit ab102ec

Browse files
Add italic fonts files
1 parent 4186a80 commit ab102ec

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

Binary file not shown.
36.9 KB
Binary file not shown.

‎packages/lib/src/styles/injectFonts.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import openSansMath from "./fonts/Open-sans-math.woff2";
33
import openSansLatin from "./fonts/Open-sans-latin.woff2";
44
import openSansLatinExt from "./fonts/Open-sans-latin-ext.woff2";
55
import openSansSymbols from "./fonts/Open-sans-symbols.woff2";
6+
import openSansLatinItalic from "./fonts/Open-sans-latin-italic.woff2";
7+
import openSansLatinExtItalic from "./fonts/Open-sans-latin-ext-italic.woff2";
68

79
const FONT_FACE_ID = "halstack-material-symbols";
810

@@ -85,7 +87,7 @@ if (typeof document !== "undefined" && !document.getElementById(FONT_FACE_ID)) {
8587
font-weight: 300 800;
8688
font-stretch: 100%;
8789
font-display: swap;
88-
src: url(${openSansLatinExt}) format('woff2');
90+
src: url(${openSansLatinExtItalic}) format('woff2');
8991
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
9092
}
9193
@@ -96,7 +98,7 @@ if (typeof document !== "undefined" && !document.getElementById(FONT_FACE_ID)) {
9698
font-weight: 300 800;
9799
font-stretch: 100%;
98100
font-display: swap;
99-
src: url(${openSansLatin}) format('woff2');
101+
src: url(${openSansLatinItalic}) format('woff2');
100102
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
101103
}
102104
`;

0 commit comments

Comments
 (0)