fix: split the np2 V98 font from font.bmp

NP2kai and meowPC98 read font.bmp (PC-98 bitmap) and FONT.ROM (V98) as
separate files, each through its own reader (NP2kai font/font.c:192-195,
meowPC98 font/font.c:180-181). The V98 names hung on font.bmp as aliases
let a collection without font.bmp serve the PC-88 2 KB font.rom there.
FONT.ROM is now its own entry, at least 0x46800 bytes (fontv98.c:8, 51).

Manifests: np2/FONT.ROM and np2kai/FONT.ROM are added where the platform
did not declare them, served by the V98 font bios/NEC/PC-98/font.rom.
This commit is contained in:
Abdessamad Derraz committed 2026-11-05 19:33:04 +01:00
1 parent 3b0112001e
commit 439b2cdaba
16 files changed
+406 -60

No files matched your search

+14 -4
View File
@@ -77,12 +77,22 @@ files:
path: "np2/font.bmp"
required: false
hle_fallback: true
aliases: ["FONT.ROM"]
aliases: ["FONT.BMP"]
note: >
PC-98 font bitmap (288 KB). Required for correct Japanese kanji display.
PC-98 font bitmap. Required for correct Japanese kanji display.
Without this, only basic ASCII renders using built-in 8x8 data.
FONT.ROM (V98 format) is also accepted.
source_ref: "libretro/libretro.c:872, font/font.c:113, font/fontdata.c:12"
source_ref: "libretro/libretro.c:872, font/font.c:74-104, 180, font/fontdata.c:11"
- name: "FONT.ROM"
path: "np2/FONT.ROM"
required: false
hle_fallback: true
min_size: 288768
validation: [size]
note: >
V98 font, read after font.bmp and filling only the glyphs it left
out. fontv98_read refuses a file shorter than 0x46800 bytes.
source_ref: "libretro/libretro.c:196, 868, font/font.c:181, font/fontdata.c:12, font/fontv98.c:8, 45-51"
# -- Sound BIOS ROM --
# Loaded by soundrom_load() via loadsoundrom() in sound/soundrom.c:21-55.
+14 -3
View File
@@ -66,12 +66,23 @@ files:
path: "np2kai/font.bmp"
required: false
hle_fallback: true
aliases: ["FONT.ROM", "font.rom", "FONT.BMP"]
aliases: ["FONT.BMP"]
note: >
PC-98 font bitmap. Required for correct Japanese kanji display.
Without this, only basic ASCII renders using built-in 8x8 data.
FONT.ROM (V98 format) is also accepted.
source_ref: "source sdl/libretro/libretro.c:1830, source font/font.c:86-125, upstream font/fontdata.c:11"
source_ref: "source sdl/libretro/libretro.c:1830, source font/font.c:77-116, 192-193, source font/fontdata.c:11-12"
- name: "FONT.ROM"
path: "np2kai/FONT.ROM"
required: false
hle_fallback: true
min_size: 288768
validation: [size]
aliases: ["font.rom"]
note: >
V98 font, read after font.bmp and filling only the glyphs it left
out. fontv98_read refuses a file shorter than 0x46800 bytes.
source_ref: "source sdl/libretro/libretro.c:1830-1831, source font/font.c:194-195, source font/fontdata.c:13-14, source font/fontv98.c:8, 45-51"
# -- Sound BIOS ROM --
# Loaded by soundrom_load() in soundrom.c:93-106 via loadsoundrom().