Help us understand the problem. What is going on with this article?

Google Noto Fonts (日本語)の組み込み

Google Noto Fonts

https://www.google.com/get/noto/
Googleが作ったNotoという名前のフォント

"no more tofu"が合言葉のようで、文字化けや豆腐(フォントにない文字)で苦しむ日本のエンジニアにはうれしい限りです。
(詳しくは、Wikipedia をどうぞ)

Webフォントとして使えるので、組み込み方を整理

手っ取り早く組み込む

@import url(//fonts.googleapis.com/earlyaccess/notosansjapanese.css); 

軽量して組み込む

フォントのロードが終わるまで、デフォルトのフォントで画面が表示されてしまうので、できるだけ早くロードするTips

@font-face {
    font-family: 'Noto Sans Japanese';
    font-style: normal;
    font-weight: 400;
    src: local('NotoSansJP-Regular.otf'),
         url(//fonts.gstatic.com/ea/notosansjapanese/v6/NotoSansJP-Regular.woff2) format('woff2'),
         url(//fonts.gstatic.com/ea/notosansjapanese/v6/NotoSansJP-Regular.woff) format('woff'),
         url(//fonts.gstatic.com/ea/notosansjapanese/v6/NotoSansJP-Regular.otf) format('opentype');
    font-display: swap;
}

References

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした