Better size handling to specific languages
This commit is contained in:
parent
9fe84d3dd4
commit
73ae81554d
@ -91,8 +91,6 @@ void getFontProperties::loadChar(const core::stringc langname, FontUse& fu, floa
|
|||||||
else
|
else
|
||||||
fu = F_DEFAULT; //Default font file
|
fu = F_DEFAULT; //Default font file
|
||||||
|
|
||||||
size = (int)(29*scale); //Set to default size
|
|
||||||
|
|
||||||
usedchar = translations->getCurrentAllChar(); //Loading unique characters
|
usedchar = translations->getCurrentAllChar(); //Loading unique characters
|
||||||
for (int i = 33; i < 256; ++i)
|
for (int i = 33; i < 256; ++i)
|
||||||
usedchar.insert((wchar_t)i); //Include basic Latin too
|
usedchar.insert((wchar_t)i); //Include basic Latin too
|
||||||
@ -100,8 +98,10 @@ void getFontProperties::loadChar(const core::stringc langname, FontUse& fu, floa
|
|||||||
usedchar.insert((wchar_t)215); //Used on resolution selection screen (X).
|
usedchar.insert((wchar_t)215); //Used on resolution selection screen (X).
|
||||||
|
|
||||||
//There's specific handling for some language, we may need more after more translation are added or problems found out.
|
//There's specific handling for some language, we may need more after more translation are added or problems found out.
|
||||||
if (langname == "el")
|
if (langname == "el" || langname == "fr" || langname == "gd")
|
||||||
size = (int)(28*scale); //Set lower size of font for Greek as it uses lots amount of space.
|
size = (int)(27*scale); //Lower scale for them as they're space-consuming.
|
||||||
|
else
|
||||||
|
size = (int)(29*scale); //Set to default size
|
||||||
}
|
}
|
||||||
|
|
||||||
void getFontProperties::loadNumber(float scale)
|
void getFontProperties::loadNumber(float scale)
|
||||||
|
Loading…
Reference in New Issue
Block a user