lehieugch68 / G1N-Font-Editor

Koei Tecmo .g1n font format editor.
MIT License
7 stars 0 forks source link
bitmap font g1n

G1N Font Editor

This program allows to create or modify the .g1n font format used in some Koei Tecmo games.

Requires .NET Framework v4.8.

Download latest release.

Features

Guide

G1N is a font format utilized in various Koei Tecmo games like Fatal Frame, Nioh, and Wo Long, etc. This program aims to simplify the process of modifying that format.

I. Convert from TrueType Font

Note: The G1N format utilizes one byte to store each value, you should not set the font size too large (should be less than 127).

II. Modify Glyphs Manually

1. Glyph Metrics

Some converted TrueType fonts may not display properly in the game. To address this, you can manually adjust their glyph metrics by left-clicking on a specific character on the bitmap to modify it, or adjusting the parameters in the Glyph Options section to apply to all glyphs.

There are three editable metrics:

Note: The G1N format utilizes one byte to store each value, these metrics cannot be greater than 127.

For example, the generated characters are positioned quite low, so I increased the Baseline value by 20 to align them with the icon:

2. Add/Remove Glyphs

If you do not want to automatically generate from TrueType font, you can manually add the desired characters via Edit → Add Glyph or by right-clicking on an empty space on the bitmap. The program will prompt you to select an image for the glyph and input the necessary values. The image should have a transparent background and must not exceed the size of 127x127 pixels.

Note: The Character field can only accept characters within the range of 0x00 to 0xFFFF. If the character you want to add is outside this range, you should assign it to an unused character.

To remove a glyph, right-click the character on the bitmap and select Remove Glyph.

3. Import/Export Bitmap Images

Similar to removing a glyph, you can right-click a character on a bitmap to import or export its bitmap.

III. Customize Color

In addition, you can also customize the color of the characters in the game.

Result

Known Issues

Bug Report

If there are any problems with the program or there is an unsupported G1N format, feel free to create an issue.

Helpful Links

Special Thanks