Skip to content
Permalink
Browse files

[labeling] Further fix for #8367, 'font missing' text keeps showing up

- Move to more generic test on font family
  • Loading branch information
dakcarto committed Aug 31, 2013
1 parent 40b8ea4 commit 4c402731b5639f91d6b713095365cd6bbec21576
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgslabelinggui.cpp
@@ -1049,7 +1049,8 @@ void QgsLabelingGui::updateFont( QFont font )
}

// test if font is actually available
mFontMissingLabel->setVisible( !QgsFontUtils::fontMatchOnSystem( mRefFont ) );
// NOTE: QgsFontUtils::fontMatchOnSystem may fail here, just crosscheck family
mFontMissingLabel->setVisible( !QgsFontUtils::fontFamilyMatchOnSystem( mRefFont.family() ) );

mDirectSymbLeftLineEdit->setFont( mRefFont );
mDirectSymbRightLineEdit->setFont( mRefFont );

0 comments on commit 4c40273

Please sign in to comment.
You can’t perform that action at this time.