webengine/osswebengine/WebCore/platform/symbian/FontDataSymbian.cpp
branchRCL_3
changeset 44 800203832575
parent 5 10e98eab6f85
child 46 30342f40acbf
--- a/webengine/osswebengine/WebCore/platform/symbian/FontDataSymbian.cpp	Wed Jun 09 10:52:50 2010 +0300
+++ b/webengine/osswebengine/WebCore/platform/symbian/FontDataSymbian.cpp	Mon Jun 21 16:54:17 2010 +0300
@@ -27,6 +27,7 @@
 #include <e32base.h>
 #include <e32std.h>
 #include <fbs.h>
+#include <e32const.h>
 
 // CONSTATNS
 _LIT(KX,"x");
@@ -40,8 +41,14 @@
 void FontData::platformInit()
 {
     const CFont& font( m_font );
-    m_ascent = font.AscentInPixels() + 2;
-    m_descent = font.DescentInPixels() - 2;
+    TLanguage language = User::Language();
+    if (language == ELangPrcChinese ) {
+        m_ascent = font.AscentInPixels();
+        m_descent = font.DescentInPixels();
+    } else {
+        m_ascent = font.AscentInPixels() + 2;
+        m_descent = font.DescentInPixels() - 2;
+    }
     m_lineGap = font.FontLineGap();
     m_lineSpacing = m_ascent + m_descent + 1;