Skip to content

Commit

Permalink
Fix bug for bold
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseRafn committed Feb 26, 2019
1 parent cf74388 commit 50406a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InitialAvatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ protected function findFontFile() {
$originalFile = $fontFile;

foreach ( $weightsToTry as $weight ) {
$fontFile = str_replace( '/(\-(Bold|Semibold|Regular))/', $weight, $originalFile );
$fontFile = preg_replace( '/(\-(Bold|Semibold|Regular))/', "-{$weight}", $originalFile );

if ( file_exists( $fontFile ) ) {
return $fontFile;
Expand Down

0 comments on commit 50406a7

Please sign in to comment.