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