Modular 3D Text
  • ✉️Contact Support
  • ⭐Read me first
  • Introduction
    • ⚡Namespace
    • ⚡Assembly Definition
    • ⚡Scripting define symbol
    • 3D UI for XR
      • Internal documentation
  • Text
    • Modular 3D Text
      • Script documentation
        • UpdateText
        • MeshPostProcess
        • Internal Documentation
    • Text Updater
    • Fonts
      • Creating fonts
        • Troubleshoot
      • Letter
  • Input
    • Button/Key
      • Button Input System
      • Button Input Processor
    • Mouse/Touch
      • Raycast Selector
      • Raycast Input Processor
    • Troubleshoot
  • Modules
    • Modules
  • UI
    • List
      • Script documentation
    • Button
      • Script documentation
    • Toggle
      • Script documentation
    • Slider
      • Script documentation
        • UpdateValue
        • IncreaseValue
        • DecreaseValue
      • SliderHandle
    • Input Field
      • Script documentation
        • UpdateText
        • ContentType
    • Horizontal Selector
      • Script documentation
  • Layout System
  • Modules
  • Package Importer
  • Utility
    • UI States
    • Asset Settings
  • Version History
Powered by GitBook
On this page
  • How to Create Fonts
  • Video Tutorial
  • Written Tutorial
  • About the Font Creation Settings
  • Convert to TTF file
  • Runtime font creation

Was this helpful?

  1. Text
  2. Fonts

Creating fonts

A walkthrough of the workflow of creating fonts.

PreviousFontsNextTroubleshoot

Last updated 1 year ago

Was this helpful?

Supports only TTF file formats. If you are unable to find the TTF format of your font, for the steps to convert it.

How to Create Fonts

Video Tutorial

Written Tutorial

  1. Select your TTF font file and wait a few seconds to process and then select the location inside your project where your mesh/font will be saved.‌

About the Font Creation Settings

Character input

There are four different ways to input characters.

  1. Unicode Range: Includes all the characters between the first and last Unicode.

  2. Custom Characters: Just type the characters you want in the font.

  3. Unicode Sequence: A sequence of Unicode for the characters. Separate codes with ',' and create ranges with '&'.

You can click the Debug.Log all characters button to check if the chracters are correct.

Convert to TTF file

  1. Open the application & select your font.

  2. Save your TTF file. Done!

Runtime font creation

(RuntimeFontImporter.cs) Requires minimum version 3.2.0

Call CreateFontFromTTFFile(byte[] rfontBytes), pass the TTF file as a byte array and it will return a new Font.

How to open a TTF file and convert it to a byte array depends on your use case and platform. The asset doesn't provide a way to open them.

Go to Tools > Tiny Giant Studios > Modular 3D Text

Select the Font Creation Tab

Click Create Font button

Fonts can be generated with prebuilt characters. This provides better performance and finer controls. exists for characters that you might miss.

Character Range: Includes all the characters between the first and last character. to get the range.

Download . It's a tiny open-source application.

File > Generate Fonts...: To create your new font file

If you want to make sure that kerning information is included, click options

Click and enable 'kern' table.

Something to get started:

Dynamic character generation
Click here
FontForge
https://docs.unity3d.com/ScriptReference/Windows.File.ReadAllBytes.html
Troubleshoot
click here
Video tutorial of how to create fonts in modular 3d text