Skip to content

Commit 3d6688c

Browse files
committedJul 26, 2016
Add labeling tests for letter/word spacing
1 parent 5228de3 commit 3d6688c

File tree

21 files changed

+16
-0
lines changed

21 files changed

+16
-0
lines changed
 

‎tests/src/python/test_qgspallabeling_tests.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,22 @@ def test_shadow(self):
185185
self.lyr.shadowTransparency = 0
186186
self.checkTest()
187187

188+
def test_letter_spacing(self):
189+
# Modified letter spacing
190+
font = QFont(self._TestFont)
191+
font.setLetterSpacing(QFont.AbsoluteSpacing, 3.5)
192+
font.setPointSizeF(30)
193+
self.lyr.textFont = font
194+
self.checkTest()
195+
196+
def test_word_spacing(self):
197+
# Modified word spacing
198+
font = QFont(self._TestFont)
199+
font.setPointSizeF(30)
200+
font.setWordSpacing(20.5)
201+
self.lyr.textFont = font
202+
self.checkTest()
203+
188204
# noinspection PyPep8Naming
189205

190206

Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.