1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Kotlin 初心者】font-familyで余白が入った場合の対処方法

Posted at

font-familyで余白が入った場合の対処方法

font-familyを指定した際に意図しない余白があり困ったので、この記事を書きました:point_up_tone2:

結論から言うと下記のプロパティを書くと解決します。

android:includeFontPadding="false"

fontによっては初期でandroid:includeFontPaddingがtrueになっているみたいです。
ざっくりとですが、android:includeFontPaddingの初期値がtrue,falseのfont一覧を書きました

true false
noto_sans_cjk_jp_medium hiragino_kaku_gothic_pro_n_w_3
- yu_gothic_bold
- roboto_medium
1
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?