ManaGunZ
ManaGunZ copied to clipboard
[Bug] IRD log table displayed incorrectly.
I believe this is caused by the font used by MGZ to display text files. The width of each character is not the same, so the table ends up being misaligned when displayed. I'll post a picture of the problem.
The problem is especially clear when you compare the width of the letters to the width of the underscores.
IBM Fonts appear to be monospaced by default, and are in a format compatible with crystalct's library for displaying fonts: https://github.com/crystalct/PS3_BDF_FNT_fonts_lib (though, the lib is outside Tiny3D, so I don't know how feasible it would be to use in MGZ; I'm not really sure how Tiny3D handles fonts).
IBM Fonts: https://github.com/farsil/ibmfonts
Edit: Looking at the source code of MGZ, I see you're using Latin2 Seurat as the default font. To avoid including an entire separate font in the installation package, perhaps it would be worth to try using Rodin, NewRodin, or Matisse (I don't know if they are monospaced or not). Though, if you picked Seurat, it's probably for a reason. Anyway, since it seems that the libfont library is able to handle ttf files, perhaps you'd be interested in picking one of these fonts if you choose to use a font pack not in the PS3: https://int10h.org/oldschool-pc-fonts/.
Here's a list with a lot of monospace fonts: https://fonts.google.com/?category=Monospace. Droid Sans Mono is what vscode uses (at least on Ubuntu) for text editing by default. A lot of these fonts have an open source license (apache, open-font, etc).
I already noticed this too. If I remember correctly, with monospace fonts, it's way more better but there is still something wrong, an issue caused by tiny3D: sometimes, it add or remove 1 pixel, it doesn't respect the original width. I don't remember if I fixed it though.
You can add font by adding them inside : "/dev_hdd0/game/MANAGUNZ0/USRDIR/GUI". This directory is scanned recursively for ttf files. Then go to settings and choose your font. It won't change JP KR, only the 'main'/first font file used.
Anyway, I was planning to build a table (something similar to SFO viewer) that's why I didn't bother too mcuh. But I still don't know how exactly I'm going to do this. I'm probably going to create a my own type of file to have a nice result screen with colors ;)