LoginSignup
1
2

More than 5 years have passed since last update.

font-smoothingで文字を綺麗に見せる

Last updated at Posted at 2018-01-01

問題

文字がガタガタしてる気がする。
もっと文字綺麗に見せたい。

解決策

1行足すだけでテキストがスタイリッシュになります。

/*フォントに エイリアスがかかってちょっとだけクールになります*/
-webkit-font-smoothing: antialiased;

/*端数に対してのみアンチエイリアスをかける。
 antialiased よりは若干弱いが良い塩梅で見た目をスムーズにしてくれる*/
-webkit-font-smoothing: subpixel-antialiased;

/*アンチエイリアスのオフ。上2つと比べて少しガタガタに見える。*/
-webkit-font-smoothing: none;

font-smoothing の注意点

文字が細くなりすぎる。

解決策

font-weightをあげて、かつfont-smoothingをつける。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2