webengine/osswebengine/WebCore/platform/symbian/FontCacheSymbian.cpp
branchRCL_3
changeset 37 ac77f89b1d9e
parent 36 c711bdda59f4
child 38 4917f9bf7995
equal deleted inserted replaced
36:c711bdda59f4 37:ac77f89b1d9e
   231     TInt comma = fPtr.Locate(TChar(','));
   231     TInt comma = fPtr.Locate(TChar(','));
   232     if (comma != KErrNotFound) {
   232     if (comma != KErrNotFound) {
   233         fPtr.Set(fPtr.Left(comma));
   233         fPtr.Set(fPtr.Left(comma));
   234     }
   234     }
   235      
   235      
       
   236     if(fPtr.Length() >KMaxTypefaceNameLength) {
       
   237         fPtr.Set(fPtr.Left(KMaxTypefaceNameLength));
       
   238     }
       
   239     
   236     TFontSpec fontSpec(fPtr, twipSize);
   240     TFontSpec fontSpec(fPtr, twipSize);
   237     fontSpec.iFontStyle.SetStrokeWeight(fontDescription.bold() ? EStrokeWeightBold : EStrokeWeightNormal);
   241     fontSpec.iFontStyle.SetStrokeWeight(fontDescription.bold() ? EStrokeWeightBold : EStrokeWeightNormal);
   238     fontSpec.iFontStyle.SetPosture(fontDescription.italic() ? EPostureItalic : EPostureUpright);
   242     fontSpec.iFontStyle.SetPosture(fontDescription.italic() ? EPostureItalic : EPostureUpright);
   239     fontSpec.iFontStyle.SetBitmapType(EAntiAliasedGlyphBitmap); // enable anti-aliasing
   243     fontSpec.iFontStyle.SetBitmapType(EAntiAliasedGlyphBitmap); // enable anti-aliasing
   240     
   244