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 c95e08f commit f21f8044742de929d36b4d75ac53cf8402d65acb
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgspallabeling.cpp
@@ -3320,7 +3320,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();
@@ -3334,7 +3334,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 f21f804

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