0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

はじめてのアドベントカレンダーAdvent Calendar 2023

Day 4

Android Studioでフォントを指定する方法

Last updated at Posted at 2023-12-12

背景

カスタムフォントを使いたい。

設定方法

指定フォントの準備→ダウンロードしておく
https://fonts.google.com/specimen/M+PLUS+Rounded+1c?subset=japanese&noto.script=Jpan

res/にfontフォルダを作成し、小文字にリネームした指定フォントを配置する。
image.png

FontLoader objectを作成する。
image.png

fontFamilyで呼び出す。
image.png

適用前

image.png

適用後

image.png

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?