Respect the system default font for languages
If the default font is 'system' do not apply fonts. Required for languages like English Change-Id: I4f798c62856d33220b3b1d2d87451bcf6dca41d8
This commit is contained in:
@@ -229,9 +229,11 @@
|
||||
|
||||
if ( fonts && fonts.length ) {
|
||||
$.each( fonts, function ( key, font ) {
|
||||
if ( font !== 'system' ) {
|
||||
var $fontOption = $( "<option>" ).attr( "value", font ).text( font );
|
||||
$fontSelector.append( $fontOption );
|
||||
$fontOption.attr( 'selected', savedFont === font );
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
@@ -261,9 +263,11 @@
|
||||
|
||||
if ( fonts && fonts.length ) {
|
||||
$.each( fonts, function ( key, font ) {
|
||||
if ( font !== 'system' ) {
|
||||
var $fontOption = $( "<option>" ).attr( "value", font ).text( font );
|
||||
$fontSelector.append( $fontOption );
|
||||
$fontOption.attr( 'selected', savedFont === font );
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user