equal
deleted
inserted
replaced
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 |