Skip to content

Commit a53c2e6

Browse files
committedJul 26, 2016
Add labeling tests for letter/word spacing
(cherry-picked from 3d6688c)
1 parent d07f80d commit a53c2e6

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
@@ -184,6 +184,22 @@ def test_shadow(self):
184184
self.lyr.shadowTransparency = 0
185185
self.checkTest()
186186

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

189205

Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.