Skip to content
Permalink
Browse files

Run text renderer test suite with scaling workaround enabled

In order to identify any issues when the scaling workaround is applied
  • Loading branch information
nyalldawson committed Jul 7, 2020
1 parent 8789b27 commit 629e86e2fa59916a2d468597715b9ac6f2244399
Showing with 1 addition and 0 deletions.
  1. +1 −0 tests/src/python/test_qgstextrenderer.py
  2. BIN ...estdata/control_images/text_renderer/background_ellipse_pixels/background_ellipse_pixels_mask.png
  3. BIN tests/testdata/control_images/text_renderer/background_fillcolor/background_fillcolor_mask.png
  4. BIN ...images/text_renderer/background_marker_buffer_mapunits/background_marker_buffer_mapunits_mask.png
  5. BIN ...ata/control_images/text_renderer/background_marker_buffer_mm/background_marker_buffer_mm_mask.png
  6. BIN ...rol_images/text_renderer/background_marker_buffer_pixels/background_marker_buffer_pixels_mask.png
  7. BIN ...l_images/text_renderer/background_marker_fixed_mapunits/background_marker_fixed_mapunits_mask.png
  8. BIN ...tdata/control_images/text_renderer/background_marker_fixed_mm/background_marker_fixed_mm_mask.png
  9. BIN ...ntrol_images/text_renderer/background_marker_fixed_pixels/background_marker_fixed_pixels_mask.png
  10. BIN ...tdata/control_images/text_renderer/background_offset_mapunits/background_offset_mapunits_mask.png
  11. BIN tests/testdata/control_images/text_renderer/background_offset_mm/background_offset_mm_mask.png
  12. BIN tests/testdata/control_images/text_renderer/background_opacity/background_opacity_mask.png
  13. BIN tests/testdata/control_images/text_renderer/background_outline/background_outline_mask.png
  14. BIN ...estdata/control_images/text_renderer/background_radii_mapunits/background_radii_mapunits_mask.png
  15. BIN tests/testdata/control_images/text_renderer/background_radii_mm/background_radii_mm_mask.png
  16. BIN ...rol_images/text_renderer/background_rect_buffer_mapunits/background_rect_buffer_mapunits_mask.png
  17. BIN ...estdata/control_images/text_renderer/background_rect_buffer_mm/background_rect_buffer_mm_mask.png
  18. BIN ...control_images/text_renderer/background_rect_buffer_pixels/background_rect_buffer_pixels_mask.png
  19. BIN .../text_renderer/background_rect_center_buffer_pixels/background_rect_center_buffer_pixels_mask.png
  20. BIN .../testdata/control_images/text_renderer/background_rect_mapunits/background_rect_mapunits_mask.png
  21. BIN tests/testdata/control_images/text_renderer/background_rect_mm/background_rect_mm_mask.png
  22. BIN ...erer/background_rect_multiline_buffer_mapunits/background_rect_multiline_buffer_mapunits_mask.png
  23. BIN ...ages/text_renderer/background_rect_multiline_mapunits/background_rect_multiline_mapunits_mask.png
  24. BIN tests/testdata/control_images/text_renderer/background_rect_pixels/background_rect_pixels_mask.png
  25. BIN ...es/text_renderer/background_rect_right_buffer_pixels/background_rect_right_buffer_pixels_mask.png
  26. BIN ...ntrol_images/text_renderer/background_rect_right_mapunits/background_rect_right_mapunits_mask.png
  27. BIN ...tdata/control_images/text_renderer/background_rotation_offset/background_rotation_offset_mask.png
  28. BIN ...ntrol_images/text_renderer/background_svg_buffer_mapunits/background_svg_buffer_mapunits_mask.png
  29. BIN .../testdata/control_images/text_renderer/background_svg_buffer_mm/background_svg_buffer_mm_mask.png
  30. BIN ...a/control_images/text_renderer/background_svg_buffer_pixels/background_svg_buffer_pixels_mask.png
  31. BIN ...control_images/text_renderer/background_svg_fixed_mapunits/background_svg_fixed_mapunits_mask.png
  32. BIN tests/testdata/control_images/text_renderer/background_svg_fixed_mm/background_svg_fixed_mm_mask.png
  33. BIN ...ata/control_images/text_renderer/background_svg_fixed_pixels/background_svg_fixed_pixels_mask.png
  34. BIN tests/testdata/control_images/text_renderer/shadow_color/shadow_color_mask.png
  35. BIN tests/testdata/control_images/text_renderer/shadow_enabled/shadow_enabled_mask.png
  36. BIN tests/testdata/control_images/text_renderer/shadow_offset_angle/shadow_offset_angle_mask.png
  37. BIN tests/testdata/control_images/text_renderer/shadow_offset_mapunits/shadow_offset_mapunits_mask.png
  38. BIN tests/testdata/control_images/text_renderer/shadow_offset_pixels/shadow_offset_pixels_mask.png
  39. BIN tests/testdata/control_images/text_renderer/shadow_opacity/shadow_opacity_mask.png
  40. BIN ...ata/control_images/text_renderer/shadow_placement_background/shadow_placement_background_mask.png
  41. BIN tests/testdata/control_images/text_renderer/shadow_placement_buffer/shadow_placement_buffer_mask.png
  42. BIN tests/testdata/control_images/text_renderer/shadow_radius_mapunits/shadow_radius_mapunits_mask.png
  43. BIN tests/testdata/control_images/text_renderer/shadow_radius_pixels/shadow_radius_pixels_mask.png
  44. BIN tests/testdata/control_images/text_renderer/shadow_scale_150/shadow_scale_150_mask.png
  45. BIN tests/testdata/control_images/text_renderer/text_angled/text_angled_mask.png
  46. BIN tests/testdata/control_images/text_renderer/text_bold/text_bold_mask.png
  47. BIN tests/testdata/control_images/text_renderer/text_buffer_color/text_buffer_color_mask.png
  48. BIN tests/testdata/control_images/text_renderer/text_buffer_pixels/text_buffer_pixels_mask.png
  49. BIN tests/testdata/control_images/text_renderer/text_color/text_color_mask.png
  50. BIN tests/testdata/control_images/text_renderer/text_dd_color_rect/text_dd_color_rect_mask.png
  51. BIN tests/testdata/control_images/text_renderer/text_line_height/text_line_height_mask.png
  52. BIN tests/testdata/control_images/text_renderer/text_mapunits/text_mapunits_mask.png
  53. BIN tests/testdata/control_images/text_renderer/text_multiline/text_multiline_mask.png
  54. BIN tests/testdata/control_images/text_renderer/text_opacity/text_opacity_mask.png
  55. BIN tests/testdata/control_images/text_renderer/text_pixels/text_pixels_mask.png
  56. BIN .../testdata/control_images/text_renderer/text_rect_center_aligned/text_rect_center_aligned_mask.png
  57. BIN ...ages/text_renderer/text_rect_multiline_center_aligned/text_rect_multiline_center_aligned_mask.png
  58. BIN ...images/text_renderer/text_rect_multiline_right_aligned/text_rect_multiline_right_aligned_mask.png
  59. BIN tests/testdata/control_images/text_renderer/text_rect_right_aligned/text_rect_right_aligned_mask.png
  60. BIN tests/testdata/control_images/text_renderer/text_vertical_rect_mode/text_vertical_rect_mode_mask.png
  61. BIN ...t_renderer/text_vertical_rect_mode_center_aligned/text_vertical_rect_mode_center_aligned_mask.png
  62. BIN ...ext_renderer/text_vertical_rect_mode_right_aligned/text_vertical_rect_mode_right_aligned_mask.png
  63. BIN tests/testdata/control_images/text_renderer/text_with_background/text_with_background_mask.png
  64. BIN tests/testdata/control_images/text_renderer/text_with_buffer/text_with_buffer_mask.png
  65. BIN ...rol_images/text_renderer/text_with_buffer_and_background/text_with_buffer_and_background_mask.png
  66. BIN ...rol_images/text_renderer/text_with_shadow_and_background/text_with_shadow_and_background_mask.png
  67. BIN ...ata/control_images/text_renderer/text_with_shadow_and_buffer/text_with_shadow_and_buffer_mask.png
  68. BIN ...ext_with_shadow_below_buffer_and_background/text_with_shadow_below_buffer_and_background_mask.png
  69. BIN ...er/text_with_shadow_below_text_and_background/text_with_shadow_below_text_and_background_mask.png
  70. BIN ...t_renderer/text_with_shadow_below_text_and_buffer/text_with_shadow_below_text_and_buffer_mask.png
  71. BIN ...hadow_below_text_buffer_and_background/text_with_shadow_below_text_buffer_and_background_mask.png
  72. BIN ...t_renderer/text_with_shadow_buffer_and_background/text_with_shadow_buffer_and_background_mask.png
@@ -925,6 +925,7 @@ def checkRender(self, format, name, part=None, angle=0, alignment=QgsTextRendere
context = QgsRenderContext.fromMapSettings(ms)
context.setPainter(painter)
context.setScaleFactor(96 / 25.4) # 96 DPI
context.setFlag(QgsRenderContext.ApplyScalingWorkaroundForTextRendering, True)

painter.begin(image)
painter.setRenderHint(QPainter.Antialiasing)
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.

0 comments on commit 629e86e

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