Skip to content

Commit

Permalink
chore:added font style inside font face
Browse files Browse the repository at this point in the history
  • Loading branch information
yssambare12 committed Sep 9, 2024
1 parent eef9794 commit f95c768
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/helper-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ function bcf_prepare_lfont_face_css( $font_family, $font_data, $variation_data )
$src = array();
$font_face = '@font-face {' . PHP_EOL;
$font_face .= "\tfont-family: '" . $font_family . "';" . PHP_EOL;
$font_face .= ! empty( $variation_data['font_style'] ) ? "\tfont-style: " . $variation_data['font_style'] . ';' . PHP_EOL : '';
$font_face .= ! empty( $variation_data['font_weight'] ) ? "\tfont-weight: " . $variation_data['font_weight'] . ';' . PHP_EOL : '';
$font_face .= ! empty( $font_data['font_display'] ) ? "\tfont-display: " . $font_data['font_display'] . ';' . PHP_EOL : '';
$font_face .= ! empty( $font_data['font_fallback'] ) ? "\tfont-fallback: " . $font_data['font_fallback'] . ';' . PHP_EOL : '';
Expand Down

0 comments on commit f95c768

Please sign in to comment.