mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
[labeling] Fix font family changes when font size is too small
Fix #57559
This commit is contained in:
parent
b4b84813d3
commit
1ae7a8d438
@ -1307,16 +1307,13 @@ void QgsTextFormatWidget::updateFont( const QFont &newFont )
|
||||
// NOTE: QgsFontUtils::fontMatchOnSystem may fail here, just crosscheck family
|
||||
mFontMissingLabel->setVisible( !QgsFontUtils::fontFamilyMatchOnSystem( mRefFont.family() ) );
|
||||
|
||||
if ( mDirectSymbolsFrame->isVisible() )
|
||||
{
|
||||
QFont symbolFont = mRefFont;
|
||||
symbolFont.setPointSize( font().pointSize() );
|
||||
mDirectSymbLeftLineEdit->setFont( symbolFont );
|
||||
mDirectSymbRightLineEdit->setFont( symbolFont );
|
||||
}
|
||||
QFont symbolFont = mRefFont;
|
||||
symbolFont.setPointSize( font().pointSize() );
|
||||
mDirectSymbLeftLineEdit->setFont( symbolFont );
|
||||
mDirectSymbRightLineEdit->setFont( symbolFont );
|
||||
|
||||
blockFontChangeSignals( true );
|
||||
mFontFamilyCmbBx->setCurrentFont( mRefFont );
|
||||
mFontFamilyCmbBx->setCurrentFont( symbolFont );
|
||||
populateFontStyleComboBox();
|
||||
mFontUnderlineBtn->setChecked( mRefFont.underline() );
|
||||
mFontStrikethroughBtn->setChecked( mRefFont.strikeOut() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user