prime31 / Nez

Nez is a free 2D focused framework that works with MonoGame and FNA
MIT License
1.76k stars 357 forks source link

Check if font file has padding defined. #782

Closed xThuby closed 7 months ago

xThuby commented 7 months ago

I ran into a problem where a .fnt file I had generated could not be read by Nez, and I figured out the issue was that the generated file had no parameter for padding defined, I guess since I had set padding to 0, that specific program defaulted to not including the parameter at all. Nez should probably check if the padding parameter is there before trying to read from it.