lehieugch68 / G1N-Font-Editor

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

Add better support for big .g1n files #2

Open ZTetriminos opened 3 months ago

ZTetriminos commented 3 months ago

Atelier Ayesha DX has a real big font file. About as many characters as one could fit.

I've already had a related issue, using P5SFontEditor, which the author promptly solved.

When I open the ArlandDX_font_jp.g1n file, it takes about 30 minutes to load. When it finally loads, it looks like this: Captura de Tela (18) (Ignore the "Advent Pro Black" up there, I misclicked)

As you can guess, it's pretty hard to do anything. I am unable to zoom in.

I could remove some glyphs, one by one, but... My guess is that the image has 65535 glyphs. The maximum. WHY? I don't know. Gust is insane. The game might use only about 300 of them in EN/JP, or even less.

This g1n is used for the EN and JP versions, the CH version has a different file I haven't opened yet. Even when there's a separate file for the CH version, the EN-JP g1n has Chinese characters! What a mess.

I don't even know what I'm really asking for. Maybe for a way to segment what the app shows in the main panel? A kind of "zooming" tool? The loading time could also be improved, I don't know if there's a way to break the loading into smaller segments. Batch deleting glyphs would also help a lot.

Here's a link to the JP-EN and the CH g1n files if you want to test for yourself.

Finally, thank you for creating this tool. I can't even begin to describe how much I needed it. Gust (and Koei) sucks when it comes to file systems, you sure had a lot of work. You are awesome.

lehieugch68 commented 3 months ago

Thanks, I think I'll split a font into multiple pages and add a zoom function if possible. I have quite a bit of free time these days, so it might take a while.

lehieugch68 commented 3 months ago

Btw, you can create a new g1n file with the necessary glyphs instead of trying to modify the original one.