Skip to content

Commit 0bf163d

Browse files
author
Vlad Olaru
committed
Fixes #224
1 parent eb805bc commit 0bf163d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/class-customify-fonts-global.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,7 +2175,7 @@ public static function convertFontVariantsToGoogleFontsCSS2Styles( $variants ) {
21752175

21762176
$axisTuplesList = [];
21772177
foreach ( $allWeights as $weight ) {
2178-
// Go through all axis determine the tuple (e.g. italic 400 becomes 1,400; or 700 becomes 0,700)
2178+
// Go through all axes determine the tuple (e.g. italic 400 becomes 1,400; or 700 becomes 0,700)
21792179
// The ital axis can only have the value 0 or 1.
21802180
if ( false !== array_search( $weight, $styleWeights['normal'] ) ) {
21812181
$axisTuplesList[] = '0,' . $weight;
@@ -2189,7 +2189,7 @@ public static function convertFontVariantsToGoogleFontsCSS2Styles( $variants ) {
21892189
// We must make sure that the axis tags are ordered alphabetically.
21902190
sort( $axisTagsList, SORT_STRING );
21912191
// We also need to sort the tuples, numerically.
2192-
sort( $axisTuplesList, SORT_NUMERIC );
2192+
sort( $axisTuplesList, SORT_STRING );
21932193

21942194
$stylesString = join( ',', $axisTagsList ) . '@' . join( ';', $axisTuplesList );
21952195
}

0 commit comments

Comments
 (0)