glLineWidth(1);
- int size = int(font.get_default_size()+0.5);
+ int size = int(font.get_native_size()+0.5);
float spacing = round(size*1.1)/size;
float baseline = round((0.5-font.get_ascent()*0.5-font.get_descent()*0.5)*size)/size;
{
GL::MeshBuilder bld(icon.text);
bld.color(0.0f, 1.0f, 0.0f);
- font.draw_string(icon.label, bld);
+ font.build_string(icon.label, bld);
}
}