tex(0),
own_tex(false),
default_size(1),
+ ascent(1),
+ descent(0),
varray((TEXCOORD2, VERTEX2))
{ }
font(f)
{
add("default_size", &Font::default_size);
+ add("ascent", &Font::ascent);
+ add("descent", &Font::descent);
add("texture", &Loader::texture);
add("glyph", &Loader::glyph);
}
void set_texture(const Texture2D &);
void add_glyph(wchar_t, float, float, float, float, float, float, float, float, float);
float get_default_size() const { return default_size; }
+ float get_ascent() const { return ascent; }
+ float get_descent() const { return descent; }
float get_string_width(const std::string &) const;
float get_string_width(const std::wstring &) const;
void draw_glyph(wchar_t);
const Texture2D *tex;
bool own_tex;
float default_size;
+ float ascent;
+ float descent;
GlyphMap glyphs;
VertexArray varray;