Skip to content

Font replacement not working correctly #21

Description

@EmberLightVFX

When I replace a font with another the font gets replaced but the text becomes suuuuuper small

Image Image I tried changing the size to 200 but it doesn't change the resolution.

Here is the font:
FrogDetectiveNeat-Latin.zip

This is the files that UGT generates:
fonts.zip

Checking the logs nothing seems wrong: https://pastes.io/WWVuyAlI

but if I restart the game I'm getting this error in the logs:

--- BEGIN IL2CPP STACK TRACE ---
System.NullReferenceException: Object reference not set to an instance of an object.

--- END IL2CPP STACK TRACE ---

   at Il2CppInterop.Runtime.Il2CppException.RaiseExceptionIfNecessary(IntPtr returnedException) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppException.cs:line 36
   at UnityEngine.Object.get_name()
   at UnityGameTranslator.Core.FontManager.ApplyFontReplacement(Object component, Object originalFontObj, String originalFontName)
   at UnityGameTranslator.Core.TranslatorPatches.ProcessTextPatchPrefix(Object __instance, String& textValue, String componentType)
[Error  :UnityGameTranslator] [Patches] ProcessTextPatchPrefix error (TMP): System.NullReferenceException: Object reference not set to an instance of an object.

Here is the full log in case you want to see it: https://pastes.io/CBj4CfHR

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions