From f95c76892cbe4da692e56e214e5faa5e3082d1bf Mon Sep 17 00:00:00 2001 From: Yogesh Sambare <91533131+yssambare12@users.noreply.github.com> Date: Mon, 9 Sep 2024 15:07:10 +0530 Subject: [PATCH] chore:added font style inside font face --- includes/helper-functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/helper-functions.php b/includes/helper-functions.php index 6842d680..ed28b403 100644 --- a/includes/helper-functions.php +++ b/includes/helper-functions.php @@ -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 : '';