mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Method rename
This commit is contained in:
@ -75,7 +75,7 @@ export class Font extends common.Font {
|
||||
break;
|
||||
|
||||
default:
|
||||
result = this.loadFontFromAsset(fonts[i]);
|
||||
result = this.loadFontFromFile(fonts[i]);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -87,7 +87,7 @@ export class Font extends common.Font {
|
||||
return null;
|
||||
}
|
||||
|
||||
private loadFontFromAsset(fontFamily: string): android.graphics.Typeface {
|
||||
private loadFontFromFile(fontFamily: string): android.graphics.Typeface {
|
||||
var result = typefaceCache.get(fontFamily);
|
||||
// Check for undefined explicitly as null mean we tried to load the font, but failed.
|
||||
if (types.isUndefined(result)) {
|
||||
|
Reference in New Issue
Block a user