Skip to content

Commit a458e72

Browse files
committed
Use "Yu Gothic Medium" in Windows sans-serif display
1 parent 2ed5e5e commit a458e72

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

css/src/ReadiumCSS-ebpaj_fonts_patch.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
local("ヒラギノ角ゴ W3"), /* for old Safari */
4848
local("HiraginoKaku-W3-90msp-RKSJ-H"), /* ヒラギノ角ゴ W3(TrueType) */
4949
local("YuGothic-Medium"), local("YuGothic"), /* 游ゴシック体(macOS) */
50-
local("Yu Gothic"), /* 游ゴシック(Windows) */
50+
local("Yu Gothic Medium"), local("Yu Gothic"), /* 游ゴシック(Windows) "Yu Gothic" is a fallback. */
5151
local("BIZ UDPGothic"); /* BIZ UDPゴシック */
5252
}
5353

@@ -74,6 +74,6 @@
7474
local("ヒラギノ角ゴ W3"), /* for old Safari */
7575
local("HiraKakuDS-W3-83pv-RKSJ-H"), /* ヒラギノ角ゴ W3(TrueType) */
7676
local("YuGothic-Medium"), local("YuGothic"), /* 游ゴシック体(macOS) */
77-
local("Yu Gothic"), /* 游ゴシック(Windows) */
77+
local("Yu Gothic Medium"), local("Yu Gothic"), /* 游ゴシック(Windows) "Yu Gothic" is a fallback. */
7878
local("BIZ UDGothic"); /* BIZ UDゴシック */
7979
}

css/src/modules/ReadiumCSS-base.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ math {
123123
--RS__lineHeightCompensation: 1.167;
124124

125125
/* Extra variables for Japanese font-stacks as we may want to reuse them for user settings + default */
126-
/* BIZ UD fonts will work on Windows. If you set half-width (ASCII) characters to `upright` using `text-orientation`, the width of these characters remains narrow. In this case, specify `font-variant-east-asian: full-width;` as well. */
126+
/* This setting uses the BIZ UD font for serif and the Yu font for sans serif on Windows. Note: When using the BIZ UD font for vertical writing display, if you set half-width (ASCII) characters to stand upright with `text-orientation: upright`, the width of these characters is narrow. By specifying `font-variant-east-asian: full-width;` at the same time, you can display the characters with the width of one full-width character. */
127127
--RS__serif-ja: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "YuMincho", "BIZ UDPMincho", "Yu Mincho", "MS P明朝", "MS PMincho", serif;
128-
--RS__sans-serif-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ W3", "YuGothic", "BIZ UDPGothic", "Yu Gothic", "MS Pゴシック", "MS PGothic", sans-serif;
128+
--RS__sans-serif-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ W3", "YuGothic", "Yu Gothic Medium", "BIZ UDPGothic", "Yu Gothic", "MS Pゴシック", "MS PGothic", sans-serif;
129129
--RS__serif-ja-v: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "YuMincho", "BIZ UDMincho", "Yu Mincho", "MS明朝", "MS Mincho", serif;
130-
--RS__sans-serif-ja-v: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ W3", "YuGothic", "BIZ UDGothic", "Yu Gothic", "MSゴシック", "MS Gothic", sans-serif;
130+
--RS__sans-serif-ja-v: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ W3", "YuGothic", "Yu Gothic Medium", "BIZ UDGothic", "Yu Gothic", "MSゴシック", "MS Gothic", sans-serif;
131131
}
132132

133133
:lang(km) {

0 commit comments

Comments
 (0)