Skip to content

Add your own code fonts

Stelios Kourlis edited this page Jul 19, 2025 · 3 revisions

How to add your own code fonts in TMP

  1. Import an font to your project (Only tested with .ttf)
  2. From the top toolbar go to Window->TextMeshPro->Font Asset Creator
  3. Add your font as the source font
  4. (Optional) Set padding to 5% and Atlas Resolution to 512x512
  5. (Optional) Tweak any other settings you might want to change
  6. Save your created TMP_Font Asset
  7. Place it in your TMP Fonts folder (Default is "Resources/Fonts & Materials")
  8. Select it as the code font in the MarkdownFormatter component

If no font is selected it will default to the Consolas font included in the package

For more info on the TMP Fonts Folder check out Unity Documentation

Clone this wiki locally