Skip to content

Commit ae211b4

Browse files
committedJul 29, 2016
[labels] Fix word and letter spacing truncated to integers
(cherry-picked from 449fcad)
1 parent 6f904fb commit ae211b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/qgspallabeling.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3362,7 +3362,7 @@ void QgsPalLayerSettings::parseTextStyle( QFont& labelFont,
33623362
wordspace = wspacing;
33633363
}
33643364
}
3365-
labelFont.setWordSpacing( sizeToPixel( wordspace, context, fontunits, false, fontSizeMapUnitScale ) );
3365+
labelFont.setWordSpacing( scaleToPixelContext( wordspace, context, fontunits, false, fontSizeMapUnitScale ) );
33663366

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.