Skip to content

Commit

Permalink
Merge branch 'raikasdev-fix/modernize-variablefonts'
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Oct 11, 2023
2 parents 8f96ea8 + 5168c6b commit ebcba25
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Fix the permission issue with self-updater
* Fix ACF element colors in Gutenberg editor
* Add WOFF2 to variablefont mixin #194 (thanks @raikasdev!)

### 9.3.5: 2023-09-12

Expand Down
4 changes: 2 additions & 2 deletions css/dev/global.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions css/dev/gutenberg-editor-styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/prod/global.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/prod/gutenberg-editor-styles.css

Large diffs are not rendered by default.

Binary file added fonts/inter-variablefont.woff2
Binary file not shown.
3 changes: 2 additions & 1 deletion sass/helpers/_variablefont.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
font-family: $family;
font-style: $style;
font-weight: $weight;
src: url('#{$src}.ttf') format("truetype-variations");
// IE support (WOFF) is unnecessary as it doesn't support variable fonts.
src: url('#{$src}.woff2') format('woff2-variations'), url('#{$src}.ttf') format('truetype-variations');
}
}

0 comments on commit ebcba25

Please sign in to comment.