mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Method rename
This commit is contained in:
@ -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)) {
|
||||||
|
Reference in New Issue
Block a user