Archived topic
Adding local fonts and editing post fonts don't match
1 reply · Started by kiant123 on April 20, 2021
Hi,
I followed this guide (https://docs.generatepress.com/article/adding-local-fonts/) around two weeks ago and everything is up and working fine.
Since then I have noticed that in the 'edit post' screen the font doesn't match the new added local font I am using. My selected system font is Montserrat but it looks like the one in my editor is something similar to Times New Roman.
Do you know what the issue is?
Thanks in advance!
Hi there,
You'll have to enqueue the stylesheet containing the fonts for block editor use.
add_action( 'enqueue_block_editor_assets', function() {
wp_enqueue_style( 'your-handle', 'URL TO YOUR FILE' );
} );
See similar questions here:
https://generatepress.com/forums/topic/issue-installing-fonts-locally/