ceramic-engine / ceramic

Cross-platform 2D framework written in Haxe that can export natively to desktop (windows, mac, linux), mobile (ios, android), web (js + webgl) and to unity projects
MIT License
254 stars 22 forks source link

Allow relative/subfolder font paths #98

Closed yesitsfebreeze closed 2 years ago

yesitsfebreeze commented 2 years ago

Adds path info to Bitfont in order to load images relative. Generated Bitfont files have their pngs, relative to the .fnt file. If we would place a font in /assets/fonts it would currently try to resolve the image from /assets instead of /assets/fonts.

This pr resolves that issue.