3b / 3b-bmfont

read/write bmfont metadata files
4 stars 2 forks source link

consider replacing jsown #17

Open 3b opened 1 year ago

3b commented 1 year ago

jsown reads numbers as rationals, which is somewhat annoying since we usually want floats for performance, and also allows for DOS by putting huge exponents in the data.

Need to watch performance in general though, since font metadata can get fairly large (have at least 4 files over 400k from testing sdf atlases, largest over 800k).

3b commented 10 months ago

another side effect of using rationals, it ends up with slightly different values on different lisps. For example 20.726563 in json ends up as 20.726563 on x8664/win sbcl, but 20.726564 on x86 or x8664 linux ccl.