Skip to content
Permalink
Browse files

[Tests] Read SLD TextSymbolizer set units to pixels

  • Loading branch information
rldhont authored and Gustry committed Jan 10, 2020
1 parent 770a490 commit e62594e8283c58c5dc166b4e124d60149289f53d
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/src/python/test_qgssymbollayer_readsld.py
@@ -442,10 +442,12 @@ def testLineOpacity():
self.assertFalse(font.italic())

self.assertEqual(format.size(), 18)
self.assertEqual(format.sizeUnit(), QgsUnitTypes.RenderPixels)

self.assertEqual(settings.placement, QgsPalLayerSettings.OverPoint)
self.assertEqual(settings.xOffset, 1)
self.assertEqual(settings.yOffset, 0)
self.assertEqual(settings.offsetUnits, QgsUnitTypes.RenderPixels)


if __name__ == '__main__':

0 comments on commit e62594e

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