Specify fb_text sizes on 1/4 of a point

* Helps with scaling of long ROM names
This commit is contained in:
Vojtech Bocek
2014-08-18 13:03:22 +02:00
parent 4b64beb7d4
commit 9744984f8f
2 changed files with 6 additions and 5 deletions

View File

@@ -99,12 +99,13 @@ enum
#define GRAY 0xFF7F7F7F
#define DRED 0xFFCC0000
// Font sizes in 1/4 of a point
enum
{
SIZE_SMALL = 7,
SIZE_NORMAL = 10,
SIZE_BIG = 13,
SIZE_EXTRA = 15,
SIZE_SMALL = (7*4),
SIZE_NORMAL = (10*4),
SIZE_BIG = (13*4),
SIZE_EXTRA = (15*4),
};
extern uint32_t fb_width;

View File

@@ -166,7 +166,7 @@ static struct glyphs_entry *get_cache_for_size(const int style, const int size)
return NULL;
}
error = FT_Set_Char_Size(res->face, 0, size*64, MR_DPI_FONT, MR_DPI_FONT);
error = FT_Set_Char_Size(res->face, 0, size*16, MR_DPI_FONT, MR_DPI_FONT);
if(error)
{
ERROR("failed to set font size with %d\n", error);