Fix how asset manager loads bitmap font
This commit is contained in:
@@ -13,12 +13,10 @@
|
|||||||
[path]
|
[path]
|
||||||
(if (nil? path)
|
(if (nil? path)
|
||||||
(BitmapFont.)
|
(BitmapFont.)
|
||||||
(let [^Files files (Gdx/files)
|
(or (u/load-asset path BitmapFont)
|
||||||
^FileHandle fh (if (string? path)
|
(BitmapFont. (if (string? path)
|
||||||
(.internal files path)
|
(.internal (Gdx/files) path)
|
||||||
path)]
|
path)))))
|
||||||
(or (u/load-asset (.path fh) BitmapFont)
|
|
||||||
(BitmapFont. fh)))))
|
|
||||||
|
|
||||||
(defmacro bitmap-font
|
(defmacro bitmap-font
|
||||||
"Returns a [BitmapFont](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/g2d/BitmapFont.html).
|
"Returns a [BitmapFont](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/graphics/g2d/BitmapFont.html).
|
||||||
|
|||||||
Reference in New Issue
Block a user