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

More than 3 years have passed since last update.

【Unity】自作フォントの使用に関する備忘録

1
Posted at

自作フォントの使用は大きく分けて2通りある。理由は定かではないが上手く出来ずに手こずったので参考にしたサイトと結果的に成功したやり方を記す。同じ境遇の同士が他のやり方で妥協出来るように参考にしたサイトと特色をここに記す。Unity:ver.2020.3.16f1

・やり方1「Custom Fontを使用する」
検索するとそこそこヒットするが、数値の設定が大変なので文字数が多い場合はオススメしない。

参考
http://scalar.seesaa.net/article/447727959.html
https://hachy.github.io/2018/05/08/custom-font-in-unity.html
http://ktstg.blog.shinobi.jp/Entry/994/

・やり方2「TextMeshProを使用する」
おそらく最もメジャーなやり方。
細かく分けると一つの画像をスライスして使う方法と、一文字づつ別れた画像データをアセットを使ってくっつけるやり方がある。
私は前者がどうしても出来なくて後者のやり方のたどり着いた。助かった。

参考(スライス方法)
https://note.com/non_non_cha/n/n455cb315193b
https://elekibear.com/20200927_02

参考(くっつける方法)
https://shikaku-sh.hatenablog.com/entry/unity-draw-text-with-image-in-textmeshpro#%E5%8F%82%E8%80%83
https://baba-s.hatenablog.com/entry/2018/08/08/090000
(↑結果的にはこれで成功した)

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