Open rubybrowncoat opened 3 years ago
Seems like the font requires a custom shader, which means we would either have to extend BitmapFont
to ensure it is called before rendering, or document this for the users. The examples show how to implement outlines and shadows, so we probably should consider adding these as well. Either way, an extension for msdf-gdx
would be cleaner, but the library does not seem to be updated anymore. I might tinker with it in a while, but no promises.
A loader for asset manager in the vein of what was done with ktx-freetype but for distance field fonts: https://github.com/libgdx/libgdx/wiki/Distance-field-fonts
A loader for this type of fonts might be desirable, I couldn't figure out how to integrate the loading method specified in the wiki with my asset manager setup.
Alternatively to that, I have used https://github.com/maltaisn/msdf-gdx to load msdf fonts seamlessly like this, because the library includes a loader and I just needed to load it onto the Asset Manager:
I'm not sure about all the differences between the distance field fonts described on the libgdx wiki and the ones used by the msdf library, so I can't really say if using that library is sufficient to cover the use cases set forth by the libgdx wiki.