webengine/osswebengine/WebCore/platform/symbian/FontCacheSymbian.cpp
branchRCL_3
changeset 37 ac77f89b1d9e
parent 36 c711bdda59f4
child 38 4917f9bf7995
--- a/webengine/osswebengine/WebCore/platform/symbian/FontCacheSymbian.cpp	Wed Mar 31 23:16:40 2010 +0300
+++ b/webengine/osswebengine/WebCore/platform/symbian/FontCacheSymbian.cpp	Wed Apr 14 17:06:56 2010 +0300
@@ -233,6 +233,10 @@
         fPtr.Set(fPtr.Left(comma));
     }
      
+    if(fPtr.Length() >KMaxTypefaceNameLength) {
+        fPtr.Set(fPtr.Left(KMaxTypefaceNameLength));
+    }
+    
     TFontSpec fontSpec(fPtr, twipSize);
     fontSpec.iFontStyle.SetStrokeWeight(fontDescription.bold() ? EStrokeWeightBold : EStrokeWeightNormal);
     fontSpec.iFontStyle.SetPosture(fontDescription.italic() ? EPostureItalic : EPostureUpright);