Nyall Dawson
fadfb477d9
[api] Move text wrapping handling logic from layout table code to QgsTextRenderer
...
Allows other users of QgsTextRenderer to take advantage of the
automatic line wrapping behaviour
2021-11-29 13:03:13 +10:00
Nyall Dawson
832d5e95ee
Cleanup and refactor calculationg of label text metrics for curved
...
labels, and move methods for calculating curved text placement
out of PAL so that they can be reused elsewhere
2021-04-08 14:26:05 +10:00
Denis Rouzaud
ba8a445850
run sipify
2021-03-22 21:13:52 +01:00
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