I've been trying to use that --reuse
switch, but I always get an invalid .cfg error message. I've tried stripping the commands down to the basics, but that gets me the same error.
msdf-bmfont --reuse -o Atlas.png font1.ttf
Using following settings
========================================
version : msdf-bmfont-xml v2.5.2
outputType : xml
filename : Atlas.png
fontSize : 42
charsetFile : Unspecified, fallback to ASC-II
textureSize : 2048,2048
texturePadding : 1
border : 0
distanceRange : 4
fieldType : msdf
roundDecimal : 0
vector : false
reuse : true
smartSize : false
pot : false
square : false
rot : false
rtl : false
fontFile : font1.ttf
========================================
No valid charset file loaded, fallback to ASC-II
Warning: no bitmap for character ' ' (32), adding to font as empty
Generation complete!
wrote cfg file : Atlas.cfg
wrote spritesheet[ 0 ] : Atlas.png
wrote font file : font1.fnt
That first line correctly outputs an Atlas.png, a font1.fnt, and it generates an Atlas.cfg because there's no filename after the --reuse
switch. Now when I try to use that .cfg file, I get an error.
msdf-bmfont --reuse Atlas.cfg font2.ttf
Using following settings
========================================
version : msdf-bmfont-xml v2.5.2
outputType : xml
filename : font2
fontSize : 42
charsetFile : Unspecified, fallback to ASC-II
textureSize : 2048,2048
texturePadding : 1
border : 0
distanceRange : 4
fieldType : msdf
roundDecimal : 0
vector : false
reuse : Atlas.cfg
smartSize : false
pot : false
square : false
rot : false
rtl : false
fontFile : font2.ttf
========================================
File: Atlas.cfg not valid! Aborting...
Is there anything obvious that I'm doing wrong?