Skip to content
Permalink
Browse files

[labels] Fix word and letter spacing truncated to integers

(cherry-picked from 449fcad)
  • Loading branch information
nyalldawson committed Jul 26, 2016
1 parent cd39423 commit 59ee0b0c6bcf5f58773d2137cdf341bc8095c1b2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgspallabeling.cpp
@@ -3361,7 +3361,7 @@ void QgsPalLayerSettings::parseTextStyle( QFont& labelFont,
wordspace = wspacing;
}
}
labelFont.setWordSpacing( sizeToPixel( wordspace, context, fontunits, false, fontSizeMapUnitScale ) );
labelFont.setWordSpacing( scaleToPixelContext( wordspace, context, fontunits, false, fontSizeMapUnitScale ) );

// data defined letter spacing?
double letterspace = labelFont.letterSpacing();
@@ -3375,7 +3375,7 @@ void QgsPalLayerSettings::parseTextStyle( QFont& labelFont,
letterspace = lspacing;
}
}
labelFont.setLetterSpacing( QFont::AbsoluteSpacing, sizeToPixel( letterspace, context, fontunits, false, fontSizeMapUnitScale ) );
labelFont.setLetterSpacing( QFont::AbsoluteSpacing, scaleToPixelContext( letterspace, context, fontunits, false, fontSizeMapUnitScale ) );

// data defined font capitalization?
QFont::Capitalization fontcaps = labelFont.capitalization();

0 comments on commit 59ee0b0

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