GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zeldrisho/UnityFontSync: Configurable glyph fallback and TextMeshPro font synchronization for Unity Mono games.

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
scripts
scripts
 
 
src
src
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
NuGet.Config
NuGet.Config
 
 
README.md
README.md
 
 
UnityFontSync.slnx
UnityFontSync.slnx
 
 
global.json
global.json
 
 

Repository files navigation

UnityFontSync

Configurable glyph fallback and TextMeshPro font synchronization for Unity Mono games, delivered as a BepInEx 5 plugin. Add missing glyphs or apply a consistent replacement font to selected font groups. For example, use it to add accented letters to a Vietnamese fan translation.

The plugin does not translate text. It can work alongside XUnity.AutoTranslator or an existing translation.

Compatibility

  • Windows, BepInEx 5, Unity Mono, and compatible TextMeshPro APIs.
  • BepInEx 6, IL2CPP, legacy Unity UI, NGUI, and UI Toolkit are not supported.
  • Missing required TMP APIs disable font changes and are logged.

Installation

  1. Install BepInEx 5 for Unity Mono.
  2. Download the ZIP from the latest release and extract it into <Game>/BepInEx/. The plugin DLL should be at:
    <Game>/BepInEx/plugins/zeldrisho.UnityFontSync/UnityFontSync.dll
    
  3. Run the game once with the plugin installed to generate:
    <Game>/BepInEx/config/zeldrisho.UnityFontSync.cfg
    
  4. Close the game and follow the setup steps below to discover font names and configure a matching rule.

The initial configuration makes no font changes. No game assemblies or proprietary font files are bundled.

Upgrading from UnityVietnameseFontSync

  1. Close the game. Delete UnityVietnameseFontSync.dll from BepInEx/plugins/ (including any subfolders) so the two plugins don't run together. UnityFontSync logs the path if it finds the old DLL and skips font changes if BepInEx loaded the old plugin, even under a different filename.
  2. Install UnityFontSync.dll. If you used a Fonts/ directory beside the old DLL, move or copy it beside the new DLL. Update any absolute paths if you move those files.
  3. On first launch, if BepInEx/config/zeldrisho.UnityVietnameseFontSync.cfg exists and BepInEx/config/zeldrisho.UnityFontSync.cfg does not, the plugin copies the old config to the new path, loads its values, and logs the migration. The original is kept as a backup. If the new file already exists, it wins; merge any old settings manually with the game closed.

Configure and verify

1. Discover the font asset name

With the game closed, set Diagnostics = true under [General] in the generated config. Leave Rules.Order empty while discovering names. Start the game, visit the menus or screens you want to change, then inspect Discovered TMP font: entries in BepInEx/LogOutput.log. Match the TMP font asset name, not the text component name.

2. Add an exact Fallback rule

Close the game before editing. Create this directory and place a licensed font that covers your required characters in it. Fonts are not included:

<Game>/BepInEx/plugins/zeldrisho.UnityFontSync/Fonts/

This example uses a Vietnamese-capable font with the default ASCII and Vietnamese preset. Replace MyVietnameseFont.ttf and the fictional asset name MainMenu SDF with your filename and discovered name. For other scripts, choose a different CharacterPreset and set CustomCharacters as needed (see configuration).

[General]
Enabled = true
Diagnostics = true

[Fonts]
Profiles = menu

[Font.menu]
File = MyVietnameseFont.ttf

[Rules]
Order = menu-text
Exclude = Icons, Symbols

[Rule.menu-text]
Profile = menu
Match = Exact
Pattern = MainMenu SDF
Mode = Fallback

Fallback retains original glyphs and adds missing-character coverage. To replace incorrect existing glyphs or make accented and unaccented letters use the same replacement style, change only Mode = Fallback to Mode = Synchronize.

Synchronize clears the matched font's whole character table in memory. Use narrow rules and check symbols, untranslated text, and layout. Unmatched fonts are left alone.

3. Verify and turn off diagnostics

Restart the game. Check the log for a loaded profile and an Applied rule, then visually check the relevant screens. Successful log messages do not guarantee correct rendering or layout.

Once verified, close the game, set Diagnostics = false, and restart to stop font-name logging. Warnings and errors remain enabled.

To restore the game's original fonts, set Enabled = false and restart. To uninstall, close the game and remove the plugin DLL.

Guides

  • Configuration reference: character sets, multiple profiles, fallback files, and XUnity.AutoTranslator setup.
  • Troubleshooting guide: missing glyphs, font discovery, and rendering issues.
  • Development guide and release guide: build, test, package, and publish.

License

MIT

About

Configurable glyph fallback and TextMeshPro font synchronization for Unity Mono games.

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.