mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
BIN
apps/fonts/Entypo.ttf
Normal file
BIN
apps/fonts/Entypo.ttf
Normal file
Binary file not shown.
BIN
apps/fonts/EvilIcons.ttf
Normal file
BIN
apps/fonts/EvilIcons.ttf
Normal file
Binary file not shown.
BIN
apps/fonts/FontAwesome.ttf
Normal file
BIN
apps/fonts/FontAwesome.ttf
Normal file
Binary file not shown.
BIN
apps/fonts/Foundation.ttf
Normal file
BIN
apps/fonts/Foundation.ttf
Normal file
Binary file not shown.
BIN
apps/fonts/Ionicons.ttf
Normal file
BIN
apps/fonts/Ionicons.ttf
Normal file
Binary file not shown.
BIN
apps/fonts/MaterialIcons.ttf
Normal file
BIN
apps/fonts/MaterialIcons.ttf
Normal file
Binary file not shown.
BIN
apps/fonts/Octicons.ttf
Normal file
BIN
apps/fonts/Octicons.ttf
Normal file
Binary file not shown.
BIN
apps/fonts/Zocial.ttf
Normal file
BIN
apps/fonts/Zocial.ttf
Normal file
Binary file not shown.
3
apps/fonts/package.json
Normal file
3
apps/fonts/package.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"name": "fonts"
|
||||
}
|
@ -7,6 +7,8 @@
|
||||
<TabViewItem.view>
|
||||
<StackLayout>
|
||||
|
||||
<Label ios:text="" android:text="" style="font-family: FontAwesome; font-size: 25;" />
|
||||
|
||||
<HtmlView html="<span><font color='#ff0000'>Test</font></span>" />
|
||||
|
||||
<WebView src="<html><body><span style='color:red'>Test</span></body></html>" />
|
||||
|
@ -175,7 +175,11 @@ function registerCustomFonts() {
|
||||
if (fs.Folder.exists(fs.path.join(fontsFolderPath, fileEntity.name))) {
|
||||
return true;
|
||||
}
|
||||
ios.registerFont(fileEntity.name);
|
||||
|
||||
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