How to import font-face in ionic?

Hi,

I have included in my app.scss.
@font-face {
font-family: ‘scrabble’;
src: url(’./assets/fonts/scrabble.ttf’) format(‘truetype’);

}

It is working perfectly on browser, but not on Ios. Any idea? I have seen some suggestion using gulp, but I think there is a clean way to do it.

Thanks,

Stéphane.

Hi,

I solved this adding a point in the url route

@font-face {
font-family: 'scrabble';
src: url('../assets/fonts/scrabble.ttf') format('truetype');

}

Keep in mind that the files executed are placed on “www/build”, so the css will be generated in www/build/main.css and the relative route to www/assets will need the two points …