weightが異なるGooglefontsを@font-faceで指定をしているが、
weightが600を堺にしか太くなりません。
CSS
1@font-face{ 2 font-family: 'Noto Sans JP', sans-serif; 3 src: url("../fonts/Noto_Sans_JP/woff/NotoSansJP-Thin.woff") format('woff'), 4 url("../fonts/Noto_Sans_JP/otf/NotoSansJP-Thin.otf") format('truetype');; 5 font-weight: 100; 6} 7@font-face{ 8 font-family: 'Noto Sans JP', sans-serif; 9 src: url("../fonts/Noto_Sans_JP/woff/NotoSansJP-Light.woff") format('woff'), 10 url("../fonts/Noto_Sans_JP/woff/NotoSansJP-Light.otf") format('truetype');; 11 font-weight: 300; 12} 13@font-face{ 14 font-family: 'Noto Sans JP', sans-serif; 15 src: url("../fonts/Noto_Sans_JP/woff/NotoSansJP-Regular.woff") format('woff'), 16 url("../fonts/Noto_Sans_JP/woff/NotoSansJP-Regular.otf") format('truetype');; 17 font-weight: 400; 18} 19@font-face{ 20 font-family: 'Noto Sans JP', sans-serif; 21 src: url("../fonts/Noto_Sans_JP/woff/NotoSansJP-Medium.woff") format('woff'), 22 url("../fonts/Noto_Sans_JP/woff/NotoSansJP-Medium.otf") format('truetype');; 23 font-weight: 500; 24} 25@font-face{ 26 font-family: 'Noto Sans JP', sans-serif; 27 src: url("../fonts/Noto_Sans_JP/woff/NotoSansJP-Bold.woff") format('woff'), 28 url("../fonts/Noto_Sans_JP/woff/NotoSansJP-Bold.otf") format('truetype');; 29 font-weight: 700; 30} 31@font-face{ 32 font-family: 'Noto Sans JP', sans-serif; 33 src: url("../fonts/Noto_Sans_JP/woff/NotoSansJP-Black.woff") format('woff'), 34 url("../fonts/Noto_Sans_JP/woff/NotoSansJP-Black.otf") format('truetype');; 35 font-weight: 900; 36} 37 38body{ 39 font-family:'Noto Sans JP',sans-serif,"游ゴシック Medium",YuGothic,YuGothicM,"Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,sans-serif 40} 41 42p.text{ 43font-weight: 300; 44}//ここで指定した太さが適応されない
ちなみに、styleタグで下記を指定すると、指定のweightが動きます。
CSS
1<link href="https://fonts.googleapis.com/css?family=Noto+Sans+JP:100,300,400,500,700,900&display=swap" rel="stylesheet">
ただ、今回はサイト全体の指定なので、@font-faceを使用したいのです。
初歩的なことでつまづいています。。
どうかご教授をお願いいたします。。!

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/07/09 09:17
2019/07/09 09:18
2019/07/09 09:19
2019/07/09 09:26
2019/07/09 09:34
2019/07/09 09:41
2019/07/09 09:45
2019/07/09 09:46
2019/07/09 09:52 編集
2019/07/09 09:52
2019/07/09 09:56
2019/07/09 09:58
2019/07/09 10:03
2019/07/09 10:12
2019/07/09 10:21
2019/07/09 10:28
2019/07/09 10:31
2019/07/09 11:09
2019/07/10 01:55
2019/07/10 09:14
2019/07/10 09:15
2019/07/10 10:44
2019/07/11 08:27
2019/07/11 11:19
2019/07/12 01:46