You are viewing a potentially older version of this package. View all versions.
LeKAKiD-FontPatcher-1.0.0 icon

FontPatcher

Replace in-game font with other things

Date uploaded 2 years ago
Version 1.0.0
Download link LeKAKiD-FontPatcher-1.0.0.zip
Downloads 572
Dependency string LeKAKiD-FontPatcher-1.0.0

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

LC-FontPatcher

image image

Change in-game font to other font asset

How to create another language's font AssetBundle

image

Create a new project with Unity 2022.3.9

image

Open Window > TextMeshPro > Font Asset Creator

image

Import TMP Essentials

image

Add ttf font file that want to be import

image

Generate font asset with your language's character set
If you want to use the in-game alphabet font, exclude the alphabet from the character set

image

Save with the name below

  • Normal: Default game font
  • Transmit: Signal translator's HUD font

image

Create "Editor" Folder

image

Create script file, then paste below source in file

// https://docs.unity3d.com/Manual/AssetBundles-Workflow.html
using UnityEditor;
using System.IO;

public class CreateAssetBundles
{
    [MenuItem("Assets/Build AssetBundles")]
    static void BuildAllAssetBundles()
    {
        string assetBundleDirectory = "Assets/AssetBundles";
        if(!Directory.Exists(assetBundleDirectory))
        {
            Directory.CreateDirectory(assetBundleDirectory);
        }
        BuildPipeline.BuildAssetBundles(assetBundleDirectory,
                                        BuildAssetBundleOptions.None,
                                        BuildTarget.StandaloneWindows);
    }
}

image

Select Normal.asset, Transmit.asset, add to AssetBundle
AssetBundle's name must be "font"

image

Build AssetBundles

image

Copy "font" file

image

Browse mod folder, then replace "font" file