Skip to content
Permalink
Browse files

[labels] Fix word and letter spacing truncated to integers

  • Loading branch information
nyalldawson committed Jul 26, 2016
1 parent 22fdb6a commit 449fcad8ce0808780cf662362cf5c6568abd09bb
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgspallabeling.cpp
@@ -3358,7 +3358,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();
@@ -3372,7 +3372,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 449fcad

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