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:
parent
7ba7294949
commit
30fe145df0
BIN
app/assets/fonts/NotoSans-Bold.woff2
Normal file
BIN
app/assets/fonts/NotoSans-Bold.woff2
Normal file
Binary file not shown.
BIN
app/assets/fonts/NotoSans-BoldItalic.woff2
Normal file
BIN
app/assets/fonts/NotoSans-BoldItalic.woff2
Normal file
Binary file not shown.
Binary file not shown.
BIN
app/assets/fonts/NotoSans-Italic.woff2
Normal file
BIN
app/assets/fonts/NotoSans-Italic.woff2
Normal file
Binary file not shown.
BIN
app/assets/fonts/NotoSans-Regular.woff2
Normal file
BIN
app/assets/fonts/NotoSans-Regular.woff2
Normal file
Binary file not shown.
Binary file not shown.
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user