I know this question is asked and answered before in the links below. I want to change the default font without having to add to every css.
Things I have tried:
The correct solution for Ionic 2 should be to change the $font-family-base
variable and its friends. That's the way Ionic is made to do it. It gives you more control (like having different fonts per platform), and it avoids the !important
keyword, which is always a good thing.
Using Ionic 3.3, go to your variables.scss
and find the section "Shared variables". Add these lines:
$font-family-base: 'MyFont';
$font-family-ios-base: 'MyFont';
$font-family-md-base: 'MyFont';
$font-family-wp-base: 'MyFont';