9 Commits

Author SHA1 Message Date
Nyall Dawson
49a3c1047e code cleanup 2020-07-09 13:23:20 +10:00
Nyall Dawson
77dfaae688 Add QgsTextRenderer methods to convert Qt alignment flags 2020-07-09 13:23:20 +10:00
Nyall Dawson
573e46b671 Add a character based text height calculation method to QgsTextRenderer 2020-07-08 17:00:39 +10:00
Nyall Dawson
a49cb7c9f3 [api] Add vertical alignment control to QgsTextRenderer 2020-07-08 08:49:57 +10:00
Nyall Dawson
0dd1490fdc [api] Apply a font scale workaround factor to QgsTextRenderer
This is a hack which has been in place in layouts/composer for a long
time in order to provide more consistent and reliable text rendering
at small font sizes or when "zoomed out". Without this hack the font
rendering and metric based calculations for these small font sizes
can be unstable, leading to font sizes "jumping" around as a layout
is zoomed into or out of.
2020-07-08 08:49:57 +10:00
Nyall Dawson
81a9db9f57 [sipify] Fix creation of cross references 2020-06-15 13:43:58 +10:00
Nyall Dawson
7dfc510771 Fix scalebar text size calculation when HTML formatting is used 2020-05-12 11:37:08 +10:00
Nyall Dawson
0e139992e3 Split massive qgstextrenderer.cpp/.h files into separate files per
contained class

and tighten includes to speed up recompilation
2020-05-12 10:33:30 +10:00
Nyall Dawson
e4b201a414 Code shuffle 2020-05-12 10:33:30 +10:00