21 #ifndef HX3D_GRAPHICS_FONT 22 #define HX3D_GRAPHICS_FONT 24 #include <freetype-gl/freetype-gl.h> 28 #include "hx3d/graphics/shader.hpp" 29 #include "hx3d/utils/resource.hpp" 30 #include "hx3d/utils/ptr.hpp" 31 #include "hx3d/utils/file.hpp" 58 Font(std::string fontPath,
int characterSize);
100 std::map<int, Data> data;
103 unsigned int defaultSize;
unsigned int getDefaultSize() const
Get the default font size.
Data & getFontData(int size)
Get internal font data from a size.
texture_font_t * font
Internal font.
texture_atlas_t * atlas
Internal atlas.
Resource type: to use in an asset manager.
const Ptr< Shader > & getShader()
Get the font shader.
Font(std::string fontPath, int characterSize)
Build a font from a path and a character size.
std::shared_ptr< T > Ptr
Quick-typing shared ptr.
void createFontSize(int size)
Generate a font in cache.