Skip to content

Commit 449fcad

Browse files
committedJul 26, 2016
[labels] Fix word and letter spacing truncated to integers
1 parent 22fdb6a commit 449fcad

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
@@ -3358,7 +3358,7 @@ void QgsPalLayerSettings::parseTextStyle( QFont& labelFont,
33583358
wordspace = wspacing;
33593359
}
33603360
}
3361-
labelFont.setWordSpacing( sizeToPixel( wordspace, context, fontunits, false, fontSizeMapUnitScale ) );
3361+
labelFont.setWordSpacing( scaleToPixelContext( wordspace, context, fontunits, false, fontSizeMapUnitScale ) );
33623362

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.