Skip to content

Commit

Permalink
Global fonts: Add IBM Plex Sans to the preloadable list
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Nov 19, 2023
1 parent 5fc5902 commit c4dfd29
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mu-plugins/global-fonts/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,14 @@ function get_font_url( $font, $subset ) {
$font_folder = 'IBMPlexMono/';
$font_file_name = 'IBMPlexMono-BoldItalic-';
break;
case 'ibm plex sans':
$font_folder = 'IBMPlexSans/';
$font_file_name = 'IBMPlexSans-Regular-';
break;
case 'ibm plex sans semibold':
$font_folder = 'IBMPlexSans/';
$font_file_name = 'IBMPlexSans-SemiBold-';
break;
}

$filepath = $font_folder . $font_file_name . $lower_subset . '.woff2';
Expand Down

0 comments on commit c4dfd29

Please sign in to comment.