So the issue is that the editor doesn’t load @font-face
CSS.
You can give this method a try:
1. Add this to your child theme’s functions.php
:
add_action( 'enqueue_block_editor_assets', function() {
wp_enqueue_style( 'local_fonts_in_editor', get_stylesheet_directory_uri() . "/block-editor.css", false, '1.0', 'all' );
} );
2. Create a block-editor.css
file in your child theme folder, add all the@font-face
CSS along with other CSS that you want it to load in the editor.
Let me know if this works.