I'm trying to set this font https://www.dafont.com/perfect-dos-vga-437.font as the game's default font. I have it in lib\fonts\Perfect DOS VGA 437.ttf. However, when I run an angband.exe compiled with the following in main-sdl2.c:
#define DEFAULT_FONT "Perfect DOS VGA 437.ttf"
and no \lib\user\sdl2init.txt, I get a Fatal Error window:
"font cache rendering failed for ' ' (ASCII 0) in font 'Perfect DOS VGA 437.ttf': Text has zero width"
If I instead compile main-sdl2.c with the regular
#define DEFAULT_FONT "10x20x.fon"
then the game runs okay and I can SWITCH to Perfect DOS VGA 437.ttf in the SDL2 front end's game menu with no error. And the game runs with no error if there's an sdl2init.txt with
subwindow-font:0:16:Perfect DOS VGA 437.ttf
But that fatal error will occur if I try to use Perfect DOS VGA 437.ttf as DEFAULT_FONT, and I'm too ignorant to understand why. I'd really like to be able to run with that font as the default. : )
#define DEFAULT_FONT "Perfect DOS VGA 437.ttf"
and no \lib\user\sdl2init.txt, I get a Fatal Error window:
"font cache rendering failed for ' ' (ASCII 0) in font 'Perfect DOS VGA 437.ttf': Text has zero width"
If I instead compile main-sdl2.c with the regular
#define DEFAULT_FONT "10x20x.fon"
then the game runs okay and I can SWITCH to Perfect DOS VGA 437.ttf in the SDL2 front end's game menu with no error. And the game runs with no error if there's an sdl2init.txt with
subwindow-font:0:16:Perfect DOS VGA 437.ttf
But that fatal error will occur if I try to use Perfect DOS VGA 437.ttf as DEFAULT_FONT, and I'm too ignorant to understand why. I'd really like to be able to run with that font as the default. : )
Comment