fix android main loop, scale font texture
This commit is contained in:
@@ -15,6 +15,7 @@ bool Font::load(const std::string& ttf, int font_size, float font_scale)
|
||||
LOG("Font::load %s", ttf.c_str());
|
||||
if (file.open(ttf.c_str()) && file.read_all())
|
||||
{
|
||||
w = h = 512 * ceilf(font_scale);
|
||||
path = ttf;
|
||||
scale = font_scale;
|
||||
LOG("Font::load loaded");
|
||||
|
||||
@@ -12,8 +12,8 @@ enum class kFont : uint16_t
|
||||
class Font
|
||||
{
|
||||
public:
|
||||
const int w = 512;
|
||||
const int h = 512;
|
||||
int w = 512;
|
||||
int h = 512;
|
||||
const int num_chars = 96;
|
||||
const int start_char = 32;
|
||||
// {mix, max}
|
||||
|
||||
Reference in New Issue
Block a user