Specify fb_text sizes on 1/4 of a point
* Helps with scaling of long ROM names
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user