You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to make a single atlas out of multiple font files, but I always get a ".cfg not valid" error. What am I doing wrong? This is from an administrator Command Prompt in Windows 10 with Node.js version 12.10.0. I also tried it on a different Windows 10 machine with Node.js LTS version 10.16.3 and the result was the same.
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
console.error('File: ',filePath,' not valid! Aborting...');
process.exit(1);
}elsereturnpath.normalize(filePath);
Tested under MacOS 10.14.6 & Linux, not sure if I can reproduce this under Windows.
But when I'm trying to reproduce your problem, I found some old bugs regarding the multi-font atlas generation! Thank you.
You can try the latest version to see if that solves your problem, if not, feel free to re-open this issue, thank you.
I've been trying to make a single atlas out of multiple font files, but I always get a ".cfg not valid" error. What am I doing wrong? This is from an administrator Command Prompt in Windows 10 with Node.js version 12.10.0. I also tried it on a different Windows 10 machine with Node.js LTS version 10.16.3 and the result was the same.
msdf-bmfont --reuse -o Atlas.png font1.ttf
msdf-bmfont --reuse Atlas.cfg font2.ttf
Here is the Atlas.cfg:
The text was updated successfully, but these errors were encountered: