[PC-BSD Commits] r747 - pcbsd/trunk/PCInstall
svn at pcbsd.org
svn at pcbsd.org
Mon Sep 17 22:16:40 PDT 2007
Author: kris
Date: 2007-09-17 22:16:40 -0700 (Mon, 17 Sep 2007)
New Revision: 747
Modified:
pcbsd/trunk/PCInstall/pcinstall.ui.h
Log:
Added code to change the font type if we are running on Chinese, since
mingunittf works as "Serif" not "Sans Serif"
Modified: pcbsd/trunk/PCInstall/pcinstall.ui.h
===================================================================
--- pcbsd/trunk/PCInstall/pcinstall.ui.h 2007-09-18 05:01:27 UTC (rev 746)
+++ pcbsd/trunk/PCInstall/pcinstall.ui.h 2007-09-18 05:16:40 UTC (rev 747)
@@ -17,7 +17,7 @@
void PCInstall::ProgramInit()
{
QFont f( "Sans Serif", 10);
- setFont( f );
+ setFont( f, TRUE);
// Set the variable to regenerate the custom slices
regenCustomSlices = 1;
@@ -367,6 +367,16 @@
file.close();
}
+ // Check if we are running in chinese, and set the font to Serif
+ if ( nlang == "zh_CN" || znlang == "zh_TW" )
+ {
+ QFont f( "Serif", 10);
+ setFont( f, TRUE);
+ } else {
+ QFont f( "Sans Serif", 10);
+ setFont( f, TRUE);
+ }
+
}
More information about the Commits
mailing list