baba-s / TMP_FontAssetUpdater

You can automatically update FontAsset when the character you want to include in FontAsset of TextMesh Pro is changed.

Home Page:http://baba-s.hatenablog.com/entry/2018/12/27/090000

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TMP_FontAssetUpdater

You can automatically update FontAsset when the character you want to include in FontAsset of TextMesh Pro is changed.

Features

  • Support for Material Preset
  • Mass update of multiple Font Asset
  • Manual update is also possible

Version

  • Unity 2018.3.0f2
  • TextMesh Pro 1.3.0

Example

By writing the character you want to include in FontAsset of TextMesh Pro in .txt and saving it.
FontAsset is automatically updated to include only the characters listed in that .txt.

Even if you are using Material Preset, it will update properly.
It is also possible to automatically update multiple FontAsset at once.

You can also disable automatic updating function and update manually.

How To Use

Select "Create> TMP_Font Asset Updater Settings" in Project view.

A file for managing update rules of FontAsset is generated.

Set FontAsset to be updated, original font data, .txt describing the character to include in FontAsset in each item.

By pressing the "Update" button at the end, FontAsset is updated to include only the characters described in .txt.

If "Is Auto Update" is checked, FontAsset will be automatically updated at the time of change in .txt.

When updating of FontAsset is completed, the result is output to the Console window.
You can check Missing Characters.

Material Preset file name must be named using underbar.
Material Preset that is not using underbar will not be eligible for updating.

Acknowledgments

This repository uses the code of the following repository.

Example of this repository use the following free fonts.

About

You can automatically update FontAsset when the character you want to include in FontAsset of TextMesh Pro is changed.

http://baba-s.hatenablog.com/entry/2018/12/27/090000

License:MIT License


Languages

Language:ShaderLab 63.6%Language:C# 27.2%Language:HLSL 9.2%