akarnokd / ThePlanetCrafterMods

BepInEx+Harmony mods for the Unity/Steam game The Planet Crafter
Apache License 2.0
44 stars 29 forks source link

When the game is set to CJK language, part of the console output will not be displayed correctly #39

Closed KagurazakaNyaa closed 1 year ago

KagurazakaNyaa commented 1 year ago

The default font arial.ttf used by the mod cannot display CJK characters correctly. Can the font be configured to support the display of CJK characters? For example, we can add a configuration FontName, string type, the default value is arial.ttf, and then replace the hard code below with this configuration variable. https://github.com/akarnokd/ThePlanetCrafterMods/blob/fd2f247fa1723460c30b079fe925d8c9be596b6d/FeatCommandConsole/Plugin.cs#L118-L126

fontName = Config.Bind("General", "FontName", "arial.ttf", "The font name in the console");

if (fp.ToLower().Contains(fontName))  //L120
akarnokd commented 1 year ago

Sure. Will post an update shortly.

akarnokd commented 1 year ago

Done in 1.0.0.11.