ikemen-engine / Ikemen-GO

An open-source fighting game engine that supports MUGEN resources.
https://ikemen-engine.github.io
Other
728 stars 126 forks source link

Font index error #1599

Open shadowpage opened 9 months ago

shadowpage commented 9 months ago

Describe the bug

Some characters display incorrectly with custom fonts.

To Reproduce

font.zip

  1. unzip font.zip to font folder
  2. settings in system.def: font3 = sf2_font.fnt font4 = sf2_middle.fnt
  3. start game and choose arcade mode

Expected behavior

Issue1: When the first match begins, Ikemen shows "Match 2" (Mugen shows "Match 1")

Issue2: The winners quotes, Ikemen shows "Winner@ Please put the word?" (Mugen shows "Winner! Please put the word.")

Screenshots / Video

ikemen000 ikemen001

Engine Version (or source code date)

v0.99.0

Operating system

None

Extra context or search terms

No response

Finally1994 commented 9 months ago

If you look at the middle.fnt txt file, there are two lines with only line breaks. Mugen ignores line breaks, but Ikemen seems to recognize line breaks as one character, so they are displayed out of alignment.