1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

Optimize font loading by replacing variable fonts with specific weights for Noto Sans (#41748).

Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23275 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2024-11-15 00:50:14 +00:00
parent 7ba7294949
commit 30fe145df0
7 changed files with 20 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -6,18 +6,32 @@
@font-face {
font-family: "Noto Sans";
src: url("/NotoSans-VariableFont_wdth,wght.woff2") format("woff2");
font-weight: 100 900;
font-stretch: 75% 125%;
src: url("/NotoSans-Regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Noto Sans";
src: url("/NotoSans-Italic-VariableFont_wdth,wght.woff2") format("woff2");
font-weight: 100 900;
font-stretch: 75% 125%;
src: url("/NotoSans-Bold.woff2") format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Noto Sans";
src: url("/NotoSans-Italic.woff2") format("woff2");
font-weight: 400;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Noto Sans";
src: url("/NotoSans-BoldItalic.woff2") format("woff2");
font-weight: 700;
font-style: italic;
font-display: swap;
}