fonts are not loading for NativeScript on ios -


fonts not loading on iphone simulator. followed instructions listed https://docs.nativescript.org/ui/styling#using-fonts. however, fonts got loaded android, not ios.

code:

label {   font-family: opensans-regular; } 

i have added font opensans-regular app/fonts folder.

ios looking font name , not font file name . in order font appear in ios need refer original font name. sdee original font-name under macos open font font book application , see name @ top in center. think original name looking "open sans" (without -regular)

your code work if keep original font name , change css following code

.icon {    font-family: 'open sans';    font-size: 48; } 

Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -