Skip to content
Permalink
Browse files

Add labeling tests for letter/word spacing

  • Loading branch information
nyalldawson committed Jul 19, 2016
1 parent 5228de3 commit 3d6688cce5598d0c09d13f2cd8db30f1f073e928
Showing with 16 additions and 0 deletions.
  1. +16 −0 tests/src/python/test_qgspallabeling_tests.py
  2. BIN tests/testdata/control_images/expected_pal_canvas/sp_letter_spacing/sp_letter_spacing.png
  3. BIN tests/testdata/control_images/expected_pal_canvas/sp_letter_spacing/sp_letter_spacing_mask.png
  4. BIN tests/testdata/control_images/expected_pal_canvas/sp_word_spacing/sp_word_spacing.png
  5. BIN tests/testdata/control_images/expected_pal_canvas/sp_word_spacing/sp_word_spacing_mask.png
  6. BIN tests/testdata/control_images/expected_pal_composer/sp_img_letter_spacing/sp_img_letter_spacing.png
  7. BIN ...estdata/control_images/expected_pal_composer/sp_img_letter_spacing/sp_img_letter_spacing_mask.png
  8. BIN tests/testdata/control_images/expected_pal_composer/sp_img_word_spacing/sp_img_word_spacing.png
  9. BIN tests/testdata/control_images/expected_pal_composer/sp_img_word_spacing/sp_img_word_spacing_mask.png
  10. BIN tests/testdata/control_images/expected_pal_composer/sp_pdf_letter_spacing/sp_pdf_letter_spacing.png
  11. BIN ...estdata/control_images/expected_pal_composer/sp_pdf_letter_spacing/sp_pdf_letter_spacing_mask.png
  12. BIN tests/testdata/control_images/expected_pal_composer/sp_pdf_word_spacing/sp_pdf_word_spacing.png
  13. BIN tests/testdata/control_images/expected_pal_composer/sp_pdf_word_spacing/sp_pdf_word_spacing_mask.png
  14. BIN tests/testdata/control_images/expected_pal_composer/sp_svg_letter_spacing/sp_svg_letter_spacing.png
  15. BIN ...estdata/control_images/expected_pal_composer/sp_svg_letter_spacing/sp_svg_letter_spacing_mask.png
  16. BIN tests/testdata/control_images/expected_pal_composer/sp_svg_word_spacing/sp_svg_word_spacing.png
  17. BIN tests/testdata/control_images/expected_pal_composer/sp_svg_word_spacing/sp_svg_word_spacing_mask.png
  18. BIN tests/testdata/control_images/expected_pal_server/sp_letter_spacing/sp_letter_spacing.png
  19. BIN tests/testdata/control_images/expected_pal_server/sp_letter_spacing/sp_letter_spacing_mask.png
  20. BIN tests/testdata/control_images/expected_pal_server/sp_word_spacing/sp_word_spacing.png
  21. BIN tests/testdata/control_images/expected_pal_server/sp_word_spacing/sp_word_spacing_mask.png
@@ -185,6 +185,22 @@ def test_shadow(self):
self.lyr.shadowTransparency = 0
self.checkTest()

def test_letter_spacing(self):
# Modified letter spacing
font = QFont(self._TestFont)
font.setLetterSpacing(QFont.AbsoluteSpacing, 3.5)
font.setPointSizeF(30)
self.lyr.textFont = font
self.checkTest()

def test_word_spacing(self):
# Modified word spacing
font = QFont(self._TestFont)
font.setPointSizeF(30)
font.setWordSpacing(20.5)
self.lyr.textFont = font
self.checkTest()

# noinspection PyPep8Naming


Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 3d6688c

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