Open Yamilquery opened 7 years ago
I have the same problem, only different is the message log, but I dont see the icon
Hey, change the font folder to fonts, should be work
Try increasing the size of the font.
The problem is that you haven´t load in the correct way the font in your NativeScript application, the .ttf file that you save on the /fonts folder must to be declared on your css file on two ways to be recognized by android and ios itself, i´ll show you how is my font declared on my .css
.ptSans{
font-family:PT_Sans-Web-Regular, PT Sans;
`}`
The one of the names responds at the .ttf file name, the second one responds at the font name itselfs, you can check this last name by view the content of the font file, at windows, by opening the font with Windows Explorer...
Hope this help
I've tried get running this on Android, but only works right on IOS.
I get this:
That looks like on Android:
In the module:
This is my button html:
<Button [text]="('fa-facebook' | fonticon) + ' Iniciar con Facebook'" class="initial-button-label fa" (tap)="showFBLogin()"></Button>
In my component:
import { TNSFontIconService } from 'nativescript-ng2-fonticon';
And: