Added typed information for lazily loaded android types.

This commit is contained in:
atanasovg
2016-01-20 14:03:04 +02:00
parent fbc612610f
commit f930914fa8
10 changed files with 13 additions and 12 deletions

View File

@@ -64,7 +64,7 @@ export class Span extends spanCommon.Span {
(realFontAttributes & enums.FontAttributes.Italic) ? enums.FontStyle.italic : enums.FontStyle.normal,
(realFontAttributes & enums.FontAttributes.Bold) ? enums.FontWeight.bold : enums.FontWeight.normal);
ensureCustomTypefaceSpanClass();
let typefaceSpan = new CustomTypefaceSpanClass(realFontFamily, font.getAndroidTypeface());
let typefaceSpan: android.text.style.TypefaceSpan = new CustomTypefaceSpanClass(realFontFamily, font.getAndroidTypeface());
this.spanModifiers.push(typefaceSpan);
}
var realFontSize = this.fontSize ||