Use localized font

ryzomclassic-develop
kaetemi 4 years ago
parent a3e762f401
commit 6787bbf378

@ -919,8 +919,8 @@ This MUST follow the Enum MISSION_DESC::TIconId
<param name="ctrl_sheet_greenify_color" value="140 255 140 150" />
<param name="ctrl_text_greenify_color" value="140 255 140 150" />
<param name="text_over_back_color" value="64 64 64 255" />
<param name="font" value="noto_sans.ttf" />
<param name="monospace_font" value="noto_mono.ttf" />
<param name="font" value="uiFontSans" />
<param name="monospace_font" value="uiFontMonospace" />
<param name="add_coef_font" value="1" />
<param name="mul_coef_anim" value="0.8" />
<param name="bubbles_timeout" value="10" />

@ -428,8 +428,8 @@ This MUST follow the Enum MISSION_DESC::TIconId
<param name="ctrl_sheet_gray_color" value="255 255 255 100" />
<param name="ctrl_sheet_redify_color" value="255 100 100 100" />
<param name="ctrl_text_redify_color" value="255 32 32 160" />
<param name="font" value="noto_sans.ttf" />
<param name="monospace_font" value="noto_mono.ttf" />
<param name="font" value="uiFontSans" />
<param name="monospace_font" value="uiFontMonospace" />
<param name="add_coef_font" value="3" />
<param name="mul_coef_anim" value="0.8" />
<param name="bubbles_timeout" value="10" />

@ -13,8 +13,8 @@
<param name="ctrl_sheet_gray_color" value="255 255 255 128" />
<param name="ctrl_sheet_redify_color" value="255 100 100 128" />
<param name="ctrl_text_redify_color" value="255 32 32 160" />
<param name="font" value="noto_sans.ttf" />
<param name="monospace_font" value="noto_mono.ttf" />
<param name="font" value="uiFontSans" />
<param name="monospace_font" value="uiFontMonospace" />
<param name="add_coef_font" value="0" />
<param name="mul_coef_anim" value="1.0" />
<param name="bubbles_timeout" value="10" />

@ -13,8 +13,8 @@
<param name="ctrl_sheet_gray_color" value="255 255 255 128" />
<param name="ctrl_sheet_redify_color" value="255 100 100 128" />
<param name="ctrl_text_redify_color" value="255 32 32 160" />
<param name="font" value="noto_sans.ttf" />
<param name="monospace_font" value="noto_mono.ttf" />
<param name="font" value="uiFontSans" />
<param name="monospace_font" value="uiFontMonospace" />
<param name="add_coef_font" value="3" />
<param name="mul_coef_anim" value="0.8" />
<param name="bubbles_timeout" value="10" />

@ -514,7 +514,7 @@ bool connection (const string &cookie, const string &fsaddr)
Actions.enable(false);
EditActions.enable(false);
resetTextContext("noto_sans.ttf", true);
resetTextContext("uiFontSans", true);
if (InterfaceState == GOGOGO_IN_THE_GAME)
{
@ -655,7 +655,7 @@ bool reconnection()
Actions.enable(false);
EditActions.enable(false);
resetTextContext("noto_sans.ttf", true);
resetTextContext("uiFontSans", true);
if (InterfaceState == GOGOGO_IN_THE_GAME)
{

@ -1342,7 +1342,7 @@ void prelogInit()
// Create a text context. We need to put the full path because we not already add search path
resetTextContext("noto_sans.ttf", true);
resetTextContext("uiFontSans", true);
CInterfaceManager::getInstance();

@ -71,7 +71,7 @@ namespace GUIEditor
NLMISC::CPath::remapExtension( "png", "tga", true );
w->init();
w->createTextContext("noto_sans.ttf");
w->createTextContext("uiFontSans");
NLGUI::CAHManager::setEditorMode( true );
NLGUI::CLuaManager::setEditorMode( true );

@ -460,7 +460,7 @@ void CObjectViewer::loadConfig()
#endif
_CameraFocal = settings->value("CameraFocal", 75).toInt();
_FontName = settings->value(Constants::FONT, "noto_sans.ttf").toString().toUtf8().constData();
_FontName = settings->value(Constants::FONT, "uiFontSans").toString().toUtf8().constData();
_BloomEffect = settings->value(Constants::ENABLE_BLOOM, false).toBool();
_BloomDensity = settings->value(Constants::BLOOM_DENSITY, 0).toInt();
_BloomSquare = settings->value(Constants::ENABLE_SQUARE_BLOOM, false).toBool();

Loading…
Cancel
Save