I bought a new font type I would like to implement in my project.
The font file is in a .otf format.
I added the font file to my assets folder and did the following in my styles.css:
@font-face {
font-family: p22-mackinac-pro !important;
src: url('assets/fonts/P22Mackinac-Book.otf') format('otf');
font-style: normal;
}
When I add the font family in the body tag, nothing happens.
Now comes the most confusing part for me:
If a use the global selector and add the font family, it changes the font to another font, but not the font that I am using.
* {font-family: 'p22-mackinac-pro', serif;
font-style: normal;
font-weight: 400;
}
Lastly, part of the my sites font does not change at all unless I add "!important" to my global selector above, but this causes my angular icons to stop working!
This is the font I wish to have global in my project:
This is the font I get when I add the font family to my global selector in styles.css:
This is the font type on part of my project (when I don't add the !important" to font-family in styles.css to my global selector)
The css in my developer toolbar on chrome when I inspect the html that doesn't change:



