Change font Ionic 2

Half an hour just to change the font looks long for me :joy:
But thanks for your answer !
First, how can I know if I’m using app-script 0.0.48 ? the thing I know is that currently I’m using RC 4.
Then, what do you mean with ā€œmain/primary/first/global scssā€ because I don’t find it ^^
So no, I don’t no which is my ā€œprimary/main scss filleā€ā€¦
I’m sorry but I’m not an experienced user :joy: I actually have this code in src/app/app.scss :

@font-face {
font-family: ā€˜Josefin Sans’;
font-weight: 400;
font-style: normal;
src: url(ā€˜ā€¦/assets/fonts/Josefin-Sans-regular/Josefin-Sans-regular.eot’);
src: url(ā€˜ā€¦/assets/fonts/Josefin-Sans-regular/Josefin-Sans-regular.eot?#iefix’) format(ā€˜embedded-opentype’),
local(ā€˜Josefin Sans’),
local(ā€˜Josefin-Sans-regular’),
url(ā€˜ā€¦/assets/fonts/Josefin-Sans-regular/Josefin-Sans-regular.woff2’) format(ā€˜woff2’),
url(ā€˜ā€¦/assets/fonts/Josefin-Sans-regular/Josefin-Sans-regular.woff’) format(ā€˜woff’),
url(ā€˜ā€¦/assets/fonts/Josefin-Sans-regular/Josefin-Sans-regular.ttf’) format(ā€˜truetype’),
url(ā€˜ā€¦/assets/fonts/Josefin-Sans-regular/Josefin-Sans-regular.svg#JosefinSans’) format(ā€˜svg’);
}

and then this in src/theme/variables.scss :

$font-family-md-base: ā€œJosefin Sansā€;
$font-family-ios-base: ā€œJosefin Sansā€;
$font-family-wp-base: ā€œJosefin Sansā€;

But it don’t works for me…

3 Likes

OKAY I FOUND !!!

Thanks now everything works ! :smiley:

1 Like

Hooray, glad to hear you found the solution, congrats!

Maybe could interest someone in the future, could you briefly document what was your solution?

I just forgot to remove what I tried to do before ^^ So your solution is the good one :wink:

1 Like

merciiiii :* :* finally i found a solution :smiley:

Thank you… this worked for me!

1 Like