1 #pragma once 2 3 namespace horizon::bitmap_font { 4 void load_texture(); 5 6 class GlyphInfo { 7 public: 8 unsigned int atlas_x = 0, atlas_y = 0; 9 unsigned int atlas_w = 0, atlas_h = 0; 10 float minx = 0, maxx = 0; 11 float miny = 0, maxy = 0; 12 float advance = 0; is_valid() const13 bool is_valid() const 14 { 15 return atlas_w && atlas_h; 16 } 17 }; 18 19 GlyphInfo get_glyph_info(unsigned int glyph); 20 unsigned int get_smooth_pixels(); 21 float get_min_y(); 22 } // namespace horizon::bitmap_font 23