LoginSignup
7
6

More than 5 years have passed since last update.

等幅フォントがずれるときの対処

Posted at

等幅フォントを指定しているのに

00112233445566778899*
0123456789*

のような文字列で*の位置がずれてしまう場合がある。

そういうときはフォントサイズをチェック。

フォントサイズが 奇数 だと半角2つが全角1つと同じ幅にならずレイアウトが崩れてしまう。

フォントサイズを 偶数 にすれば同じ幅になる。

7
6
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
7
6