'Thin', 200 => 'Extra Light', 300 => 'Light', 400 => 'Regular', 500 => 'Medium', 600 => 'Semi Bold', 700 => 'Bold', 800 => 'Extra Bold', 900 => 'Black', ]; /** * Constructor. */ public function __construct() { // Empty constructor - class is instantiated for rendering } /** * Render the admin page. */ public function render() { $capability = function_exists('mlf_get_capability') ? mlf_get_capability() : 'edit_theme_options'; if (!current_user_can($capability)) { wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'maple-local-fonts')); } $registry = new MLF_Font_Registry(); $installed_fonts = $registry->get_imported_fonts(); ?>
' . esc_html__('Appearance → Editor → Styles → Typography', 'maple-local-fonts') . '' ); ?>
body {
font-family: "Open Sans", sans-serif;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Open Sans", sans-serif;
}
' . esc_html__('Appearance → Customize → Additional CSS', 'maple-local-fonts') . '' ); ?>