Replies: 7 comments
-
Sorry, can't reproduce. Can you specify your platform \ terminal \ locale ? |
Beta Was this translation helpful? Give feedback.
-
I'm OK but u r not ... |
Beta Was this translation helpful? Give feedback.
-
What is the cause of the problem...I don't understand. |
Beta Was this translation helpful? Give feedback.
-
I suspect the cause might be your terminal locale, some locales use commas as decimal separator. |
Beta Was this translation helpful? Give feedback.
-
Ok Thanks, I will try in a different terminal to see if the problem still occurs and I will be back : ) |
Beta Was this translation helpful? Give feedback.
-
Hello, You have right! The problem it was from VScode terminal. Thanks so much! |
Beta Was this translation helpful? Give feedback.
-
Hi, first of all thanks for this great tool!
I try to run the following command : msdf-bmfont --reuse -o fonts/arial.png -m 512,512 -s 15 -r 3 -p 1 -t msdf fonts/arial.ttf -f json
and get the following error.
Can someone show me how to create a texture size 512x512?
If I remove the -m 512,512 it uses the default settings and generate 2048x2048 texture image
Using following settings
version : msdf-bmfont-xml v2.5.4
outputType : json
filename : fonts/ltmono.png
fontSize : 15
charsetFile : Unspecified, fallback to ASC-II
textureSize : 512 512
texturePadding : 1
border : 0
distanceRange : 3
fieldType : msdf
roundDecimal : 0
vector : false
reuse : true
smartSize : false
pot : false
square : false
rot : false
rtl : false
fontFile : fonts\ltmono.ttf
No valid charset file loaded, fallback to ASC-II
assert.js:391
throw err;
^
AssertionError [ERR_ASSERTION]: textureSize format shall be: width,height
at generateBMFont (C:\Users\Cru\AppData\Roaming\npm\node_modules\msdf-bmfont-xml\index.js:62:10)
at ReadFileContext.callback (C:\Users\Cru\AppData\Roaming\npm\node_modules\msdf-bmfont-xml\cli.js:101:3)
at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:282:13) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '=='
}
Beta Was this translation helpful? Give feedback.
All reactions