Commit Graph

6 Commits

Author SHA1 Message Date
bryanthaboi 1c46326ab9 Merge pull request #2579 from flaviodelima/fix/battle-text-ttf-advance
# Conflicts:
#	src/battle/BattleState.lua
2026-10-06 20:05:48 -04:00
Flavio de Lima 9595d86de6 fix(battle): advance the message box pen by glyph width for TTF fonts
The battle message box laid its glyphs on a fixed 8px grid, in both the
classic layout (BattleState:drawTextArea) and the wide one (WideBattle's
drawMessageBox). With a mod's TTF font registered, glyphs have their own
advance, so Latin text was spread out and clipped at the box edge and
wider CJK glyphs overlapped. Move the pen by Font.advanceOf, as TextBox
and the text() helper in drawTextArea already do.

Tile pages advance 8px, so nothing changes without a TTF.
2026-09-30 13:29:29 -03:00
thibautbus 3c6242717e Use 1x TTF rasterizer on Android 2026-08-10 08:43:46 +02:00
bryanthaboi 30edac03a6 fix ttf text erased after a box, and type names outside battle
drawBox left the color white, which tiles ignore but ttf text does not, so
every label after a box drew white on white.

typechart only loaded on entering a battle, so the summary screen got raw
type ids back instead of display names.
2026-08-04 09:43:01 -04:00
bryanthaboi 33998aab5d add ttf tiles option
lets a translation keep chosen characters on the rom tiles instead of the ttf.
needed for japanese: sizing the font for kana makes latin narrower, which
knocks the party menu numbers out of line.
2026-08-04 09:11:05 -04:00
bryanthaboi 3a6557ffe2 CLOSES #779 , CLOSES #743 + new font 2026-08-04 06:41:34 -04:00