bjornbytes / cargo

LÖVE asset manager
MIT License
163 stars 11 forks source link

Add support for bitmap font files #8

Closed john-cheesman closed 6 years ago

john-cheesman commented 6 years ago

This adds love.graphics.newFont as a loader for .fnt files. As the image file path won't be passed it must be set properly in the .fnt file. I did try doing something similar to makeFont, returning a function that take the image file path, however it seems counter-productive having to set a file path in the code when using a file loader.

bjornbytes commented 6 years ago

Thanks!