-
Notifications
You must be signed in to change notification settings - Fork 96
fix/font #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix/font #37
Conversation
|
notosan jpに変更 |
|
お忙しい中、早速ありがとうございます!! ローカルで確認してみたのですが、少し気になる点がありました、 現在
|
|
すみません!ようこそにはまだ当ててません💦 ようこそ
デペロッパーツールに下記出てくるかと |
|
interに関してはインポート不必要でそのままフォント使えたかと思いますがいかがですか? |
|
interインんポートしときますね! |
|
遅くなりました! おそらく @kana1166 さんと私とで設定の認識の違いがあったのかと思います。
こんな感じでしょうか。 違いがわかった上で、私の方法をするならどうすれば良いのか...という点は以下にまとめてみました。 とりあえずご提案なので、ご検討いただけると嬉しいです! style: Inter, Noto Sans Japaneseを設定、lang属性をjaに変更
上記に至った理由とりあえずNext.jsのフォント最適化の方法でフォントを2つ設定したのですが思うような挙動になりませんでした。 layout.tsx <body className={`${inter.className} ${notojp.className}`}>{children}</body>↑の状態だとnotojpのフォントしか適応されず。 body {
font-family: "Inter", "Noto Sans Japanese";
}理想はHTMLでいう、↑の状態です。 これを解決するためにあれこれやっていて、現在たどりついたのがコミットした内容です。 |
kazzyfrog
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTMです👍
お二人ともありがとうございます!
| > | ||
| By{" "} | ||
| <Image | ||
| src={`${BASE_PATH}/vercel.svg`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
< Image >で画像を扱うときは、Github Pagesにデプロイする関係で、basePathをimportして、srcのパスの先頭につけないといけないことだけ、注意しておいてください!
|
aileenさんありがとうございました! |




notosan のフォントCSSに入れたのでfont-noto-sansでする
#31