Skip to content

Commit d67711f

Browse files
Merge pull request #103 from github/copilot/fix-italic-axis-in-chromium
Fix italic axis support documentation for Chromium browsers
2 parents 7a5260e + c655fc4 commit d67711f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ If you want to access the whole design space, use `MonaSansVF[wdth,wght,opsz,ita
2222
url('MonaSansVF[wdth,wght,opsz,ital].woff2') format('woff2-variations');
2323
font-weight: 200 900;
2424
font-stretch: 75% 125%;
25+
font-style: normal;
26+
font-optical-sizing: auto;
27+
}
28+
29+
@font-face {
30+
font-family: 'Mona Sans VF';
31+
src:
32+
url('MonaSansVF[wdth,wght,opsz,ital].woff2') format('woff2 supports variations'),
33+
url('MonaSansVF[wdth,wght,opsz,ital].woff2') format('woff2-variations');
34+
font-weight: 200 900;
35+
font-stretch: 75% 125%;
36+
font-style: italic;
2537
font-optical-sizing: auto;
2638
}
2739

@@ -30,6 +42,8 @@ html {
3042
}
3143
```
3244

45+
> **Note:** Chromium-based browsers require two separate `@font-face` declarations (one with `font-style: normal`, one with `font-style: italic`) for the italic axis to work correctly.
46+
3347
Mona Sans includes an optical size axis (`opsz`) that automatically adjusts the font's design for optimal readability at different sizes. The optical size range spans from 1 to 100, where smaller values (1-20) are optimized for body text with improved readability, while larger values (21-100) are designed for display use with refined details and tighter spacing. When `font-optical-sizing: auto` is set, browsers will automatically select the appropriate optical size based on the font size, or you can manually control it using `font-variation-settings: "opsz" [value]`. That looks like this:
3448

3549
```css
@@ -50,6 +64,8 @@ To reduce [CLS](https://web.dev/cls/), you can preload the font in the `head` of
5064

5165
Or you can use one of the other variable font files, which cover small portions of the design space. For example, if you're only using the regular width weights and the italic styles, you can use the `MonaSansVF[wght,opsz,ital]` file instead.
5266

67+
> **Note:** Variable font files with the italic axis (`ital`) require two separate `@font-face` declarations for Chromium compatibility.
68+
5369
## Stylistic sets
5470

5571
Mona Sans has ten stylistic sets:

0 commit comments

Comments
 (0)