Method rename

This commit is contained in:
vakrilov
2015-12-14 18:06:37 +02:00
parent 942dfb1ddd
commit 9418ab8f63

View File

@ -75,7 +75,7 @@ export class Font extends common.Font {
break; break;
default: default:
result = this.loadFontFromAsset(fonts[i]); result = this.loadFontFromFile(fonts[i]);
break; break;
} }
@ -87,7 +87,7 @@ export class Font extends common.Font {
return null; return null;
} }
private loadFontFromAsset(fontFamily: string): android.graphics.Typeface { private loadFontFromFile(fontFamily: string): android.graphics.Typeface {
var result = typefaceCache.get(fontFamily); var result = typefaceCache.get(fontFamily);
// Check for undefined explicitly as null mean we tried to load the font, but failed. // Check for undefined explicitly as null mean we tried to load the font, but failed.
if (types.isUndefined(result)) { if (types.isUndefined(result)) {