summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-05 21:51:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-05 21:51:03 +0300
commit5090180c23dd53de111c316286639d3ba8277468 (patch)
treeb936b58ce905a06cc83a5ec70ce08629722abd04 /src/client.cpp
parent38489512096ca1f5a79a5fdaf9a73c9f5fda22e2 (diff)
downloadplus-5090180c23dd53de111c316286639d3ba8277468.tar.gz
plus-5090180c23dd53de111c316286639d3ba8277468.tar.bz2
plus-5090180c23dd53de111c316286639d3ba8277468.tar.xz
plus-5090180c23dd53de111c316286639d3ba8277468.zip
Add chinese font auto usage if detected chinese locale.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 43c474dab..e5f06016e 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -2354,6 +2354,7 @@ void Client::storeSafeParameters() const
std::string helpFont;
std::string secureFont;
std::string japanFont;
+ std::string chinaFont;
bool showBackground;
bool enableMumble;
bool enableMapReduce;
@@ -2378,6 +2379,7 @@ void Client::storeSafeParameters() const
helpFont = config.getStringValue("helpFont");
secureFont = config.getStringValue("secureFont");
japanFont = config.getStringValue("japanFont");
+ chinaFont = config.getStringValue("chinaFont");
showBackground = config.getBoolValue("showBackground");
enableMumble = config.getBoolValue("enableMumble");
@@ -2398,6 +2400,7 @@ void Client::storeSafeParameters() const
config.setValue("helpFont", "fonts/dejavusansmono.ttf");
config.setValue("secureFont", "fonts/dejavusansmono.ttf");
config.setValue("japanFont", "fonts/mplus-1p-regular.ttf");
+ config.setValue("chinaFont", "fonts/wqy-microhei.ttf");
config.setValue("showBackground", false);
config.setValue("enableMumble", false);
config.setValue("enableMapReduce", false);
@@ -2438,6 +2441,7 @@ void Client::storeSafeParameters() const
config.setValue("helpFont", helpFont);
config.setValue("secureFont", secureFont);
config.setValue("japanFont", japanFont);
+ config.setValue("chinaFont", chinaFont);
config.setValue("showBackground", showBackground);
config.setValue("enableMumble", enableMumble);
config.setValue("enableMapReduce", enableMapReduce);