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.
- 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.
- Install BepInEx 5 for Unity Mono.
- 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 - Run the game once with the plugin installed to generate:
<Game>/BepInEx/config/zeldrisho.UnityFontSync.cfg - 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.
- Close the game. Delete
UnityVietnameseFontSync.dllfromBepInEx/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. - Install
UnityFontSync.dll. If you used aFonts/directory beside the old DLL, move or copy it beside the new DLL. Update any absolute paths if you move those files. - On first launch, if
BepInEx/config/zeldrisho.UnityVietnameseFontSync.cfgexists andBepInEx/config/zeldrisho.UnityFontSync.cfgdoes 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.
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.
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.
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.
- 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.