mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 11:17:04 +08:00
only ttf and otf fonts are supported
This commit is contained in:
@ -175,7 +175,11 @@ function registerCustomFonts() {
|
||||
if (fs.Folder.exists(fs.path.join(fontsFolderPath, fileEntity.name))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (fileEntity instanceof fs.File &&
|
||||
((<fs.File>fileEntity).extension === "ttf" || (<fs.File>fileEntity).extension === "otf")) {
|
||||
ios.registerFont(fileEntity.name);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user