25218

Android Not Showing Font Icon In NativeScript

I'm trying to use Ionicons with Android and NativeScript. I've included the ionicon.ttf file and my set font-family: "Ionicons". It's working on iOS, but not Android.

Answer1:

Android registers font names differently than iOS. For Ionicons, the font name is ionicons.ttf, so the correct CSS is font-family: "Ionicons", ionicons.

Recommend

  • get content of webview in nativescript
  • What is causing this project to fail on Macbook Pro when It runs just fine on windows 10
  • Using Firebase in Native Script
  • Nativescript behavior of the '< Go Back' button
  • How to disable iOS console filtering out same messages?
  • How to add a side menu with NativeScript + Angular 2 project?
  • Integrate firebase with nativescript
  • NativeScript How to hide tab buttons from TabView
  • How to prevent app from crashing on uncaughtErrorEvent
  • Android Not Showing Font Icon In NativeScript
  • IE9 Refusing to Load custom font?
  • How can i use same custom fonts for both android and ios using react native
  • Font Awesome in Viewpager Previous Next
  • how to set variables in a php include file?
  • Eloquent paginate function in Slim 3 project using twig
  • Cannot resolve symbol 'MyApi'
  • If I include Java 8 in my Android app does that affect which devices it will work on?
  • Xamarin Forms - UWP Fonts
  • How to apply VCL Styles to DLL-based forms in Inno Setup?
  • Change an a tag attribute in JavaScript based on screen width
  • Release, debug version and Authorization Google?
  • Font Awesome Showing Box instead of Icons
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Unanticipated behavior
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • How to set the response of a form post action to a iframe source?
  • -fvisibility=hidden not passed by compiler for Debug builds
  • coudnt use logback because of log4j
  • Change div Background jquery
  • Qt: Run a script BEFORE make
  • reshape alternating columns in less time and using less memory