StarArawn / kayak_ui

Other
469 stars 50 forks source link

KTTF loader doesn't work with subdirectories #206

Closed zbuc closed 1 year ago

zbuc commented 1 year ago

I tried putting my font files in a subdirectory, e.g.:

    font_mapping.set_default(asset_server.load("fonts/lato-light.kttf"));

With the fonts directory containing all the necessary files:

lato-light.kayak_font
lato-light.kttf
lato-light.kttf-cached.png
lato-light.png
lato-light.ttf

However the font won't render when loading from a subdirectory like this.

If I move all the lato-light* files to the parent assets directory and load the kttf from there it renders as expected:

    font_mapping.set_default(asset_server.load("lato-light.kttf"));