A
A
alexnotonfire2016-04-07 17:45:43
HTML
alexnotonfire, 2016-04-07 17:45:43

How to add custom fonts to ionic project?

My project is configured to compile scss -> css and I can't pick up fonts from the correct folder.
Here is my folder structure for better understanding.

| scss/
  |-- basics/
    |--_fonts.scss
  |-- fonts/
    |-- lineto-circular-book.woff
    |-- lineto-circular-medium.woff
| www

This is what _fonts.scss looks like
@charset "UTF-8";

@font-face {
  font-family: 'Circular-Medium';
  src: url('fonts/lineto-circular-medium.woff');
}

@font-face {
  font-family: 'Circular-Medium-Book';
  src: url('fonts/lineto-circular-book.woff');
}

da2c6ca009b04cf8889f980bbf433409.png
I am getting Not Found status. How can I fix the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Shvedov, 2016-04-07
@alexnotonfire

They lie in scss/fonts and are requested at css/fonts, maybe this is the problem?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question