synspawacza / nier_automata_localization

41 stars 7 forks source link

How to apply kerning for .txt, .smd, and .tmd files #12

Open ModzabazeR opened 4 months ago

ModzabazeR commented 4 months ago

I customized kerning for my fonts and it worked in translation files that are in .mcd. However, I need kernings to also work for txt, smd, and tmd. Is that possible?

I looked up build_localization.sh and only see fonts.json parameter only in mcd extension.

Note: I edited the .ktb file and have tried to pack it back to font_xx.dat, it did packed though using build_fonts.sh but newly added kerning doesn't appear to work.

ModzabazeR commented 4 months ago

After some experiment, I can finally identify the problem. It seems that my ktb file is fine, but the game (or fonts?) doesn't recognize glyphs I've add for my language (the font does rendered but kerning doesn't apply). Editing latin kernings works fine but I didn't want to do that, I need to get kernings for my language to work.

I think this can be solved, but don't know how yet.