回答編集履歴

1

フォントが対応しているか確認するテストコードを追記

2020/02/08 14:14

投稿

thyda.eiqau
thyda.eiqau

スコア2982

test CHANGED
@@ -7,3 +7,51 @@
7
7
 
8
8
 
9
9
  それとは別の問題で、もしご提示のコードが `iSara.css` なのであれば、CSSの構文ルールを満たしていないので、正常に評価されないでしょう。ご提示のSCSSコードをCSSにコンパイルしたものが `iSara.css` であるならば、問題ありませんが。
10
+
11
+
12
+
13
+
14
+
15
+ ### Feb 8, 2020 PM11:14追記
16
+
17
+ 下記のコードで、font-familyを適当に変えてみたら、そのフォントがどの数値の指定に対応しているか確認できると思います。
18
+
19
+ ```html
20
+
21
+ <!doctype html>
22
+
23
+ <html>
24
+
25
+ <head>
26
+
27
+ <meta charset="UTF-8">
28
+
29
+ <style>#preview { font-family: Noto Serif; }</style>
30
+
31
+ </head>
32
+
33
+ <body>
34
+
35
+ <input type="range" min="100" max="900" step="100" value="400" id="gauge">
36
+
37
+ <p>Current Value: <i id="current_weight">400</i></p>
38
+
39
+ <p id="preview">Lorem ipsum dolor sit amet, consectetur adipisici elit</p>
40
+
41
+ <script>
42
+
43
+ document.getElementById('gauge').addEventListener('change', evt => {
44
+
45
+ const val = evt.currentTarget.value;
46
+
47
+ document.getElementById('preview').style.fontWeight = val;
48
+
49
+ document.getElementById('current_weight').textContent = val;
50
+
51
+ });
52
+
53
+ </script>
54
+
55
+ </body></html>
56
+
57
+ ```