Use a smaller ratio to waste less space
This commit is contained in:
parent
1707ac7e1e
commit
d7cd98f636
@ -32,8 +32,8 @@ BoldFace::BoldFace() : FontWithFace("BoldFace")
|
|||||||
void BoldFace::init()
|
void BoldFace::init()
|
||||||
{
|
{
|
||||||
FontWithFace::init();
|
FontWithFace::init();
|
||||||
// Reserve some space for characters added later
|
// Reserve some space for characters added later in the next line
|
||||||
m_font_max_height = m_glyph_max_height * 3 / 2;
|
m_font_max_height = m_glyph_max_height * 7 / 5;
|
||||||
|
|
||||||
// Fallback font for emoji
|
// Fallback font for emoji
|
||||||
RegularFace* rf = font_manager->getFont<RegularFace>();
|
RegularFace* rf = font_manager->getFont<RegularFace>();
|
||||||
|
@ -30,9 +30,8 @@ DigitFace::DigitFace() : FontWithFace("DigitFace")
|
|||||||
void DigitFace::init()
|
void DigitFace::init()
|
||||||
{
|
{
|
||||||
FontWithFace::init();
|
FontWithFace::init();
|
||||||
|
// Reserve some space for characters added later in the next line
|
||||||
m_font_max_height = m_glyph_max_height * 3 / 2;
|
m_font_max_height = m_glyph_max_height * 7 / 5;
|
||||||
|
|
||||||
} // init
|
} // init
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@ -30,9 +30,8 @@ RegularFace::RegularFace() : FontWithFace("RegularFace")
|
|||||||
void RegularFace::init()
|
void RegularFace::init()
|
||||||
{
|
{
|
||||||
FontWithFace::init();
|
FontWithFace::init();
|
||||||
// Reserve some space for characters added later
|
// Reserve some space for characters added later in the next line
|
||||||
m_font_max_height = m_glyph_max_height * 3 / 2;
|
m_font_max_height = m_glyph_max_height * 7 / 5;
|
||||||
|
|
||||||
} // init
|
} // init
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user