Floating point exception in 2.3.6
lassemt opened this issue Β· 4 comments
lassemt commented
After updating from 2.3.5 to 2.3.6 I get the error message: zsh: floating point exception
when running the command:
msdf-bmfont --reuse -f json -o atlas.png -m 512,512 -s 64 -r 2 font.ttf
It works as expected if I don't specify texture size. Is there something I have missed out in the new version?
soimy commented
I suspect the reason is in node-canvas updates, will look into it!
lassemt commented
@soimy works as expected now in v2.4.0 ππΌThanks for fixing it so quickly and this great tool π
β― msdf-bmfont --reuse -f json -o atlas.png -m 512,512 -s 64 -r 2 akkurat.ttf
Using following settings
========================================
version : msdf-bmfont-xml v2.4.0
outputType : json
filename : atlas.png
fontSize : 64
charsetFile : Unspecified, fallback to ASC-II
textureSize : 512,512
texturePadding : 1
distanceRange : 2
fieldType : msdf
roundDecimal : 0
vector : false
reuse : true
smartSize : false
pot : false
square : false
rtl : false
fontFile : akkurat.ttf
========================================
No valid charset file loaded, fallback to ASC-II
Generating 0%|ββββββββββββββββββββββββββββββββββββββββ| (0/95) 0s
Warning: no bitmap for character ' ' (32), adding to font as empty
Generation complete!
wrote font file : akkurat.json
wrote spritesheet[ 0 ] : atlas.png
wrote cfg file : atlas.cfg
soimy commented
A planned update solved an unexpected issue, just perfectπ