I purchased a magento 2 theme, but the theme uses the Google api font.
How can I use a custom local font?
Magento ver. 2.3.0
I purchased a magento 2 theme, but the theme uses the Google api font.
How can I use a custom local font?
Magento ver. 2.3.0
@font-face {
font-family: 'MyFonts';
src: url('../fonts/CustomFont/myfonts_regular.ttf');
font-weight: 300;
font-style: normal
}
<head>
...
<css src="css/fonts.css" />
...
</head>
Thanks for your advice.
I can't find default_head_blocks.xml, Only default.xml.
Thanks for your help.
– Angelo Feb 10 '19 at 16:33https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/xml-manage.html#layout_markup_css
– Alexander Bobylev Feb 10 '19 at 17:15
Add custom CSS to child theme by using https://magento.stackexchange.com/questions/108685/how-to-add-a-custom-css-file-in-magento-2
After that you can add custom fonts to your theme!
– Pawan Feb 09 '19 at 18:17