Skip to content

Commit

Permalink
排版:修改斜體、引用英文字型
Browse files Browse the repository at this point in the history
  • Loading branch information
yixiuer committed Oct 29, 2024
1 parent eda0219 commit f082521
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions assets/scss/custom/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@
font-style: normal;
}

// /~https://github.com/TypeNetwork/Amstelvar
@font-face {
font-family: 'Amstelvar';
font-display: swap;
src: url('#{$baseRelURL}/fonts/Amstelvar-Roman-VF.woff2') format('woff2-variations'),
url('#{$baseRelURL}/fonts/Amstelvar-Roman-VF.woff2') format('woff2');
font-weight: 100 900;
font-stretch: 50% 125%;
font-style: normal;
}
@font-face {
font-family: 'Amstelvar';
font-display: swap;
src: url('#{$baseRelURL}/fonts/Amstelvar-Italic-VF.woff2') format('woff2-variations'),
url('#{$baseRelURL}/fonts/Amstelvar-Italic-VF.woff2') format("woff2");
font-weight: 100 900;
font-stretch: 50% 125%;
font-style: italic;
}

.home {
font-family: 'Noto Serif TC', serif;
.avatar {
Expand Down Expand Up @@ -36,6 +56,14 @@ sup {
blockquote .emphasis-point {
font-family: $fontFamilyQuote;
}
blockquote {
font-family: 'glyph-correction', 'Amstelvar', 'LXGW WenKai TC', cursive;
font-variation-settings: 'wght' 280;
}
em {
font-family: 'Amstelvar', serif;
font-variation-settings: 'wght' 280;
}

[data-type="poetry"], [data-type="aphorism"] {
.post-body {
Expand Down
Binary file added static/fonts/Amstelvar-Italic-VF.woff2
Binary file not shown.
Binary file added static/fonts/Amstelvar-Roman-VF.woff2
Binary file not shown.

0 comments on commit f082521

Please sign in to comment.