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
cedd73ee4d
More list formatting fixes
2020-06-13 16:49:14 +10:00
Nyall Dawson
8fb8e45d51
Ensure that fields required by marker symbol backgrounds for labels
...
are fetched when rendering
Fixes #36944
2020-06-05 08:53:06 +10:00
Nyall Dawson
f2b03a8334
Doxygen test fixes
2020-05-12 19:21:39 +10:00
Nyall Dawson
99c8510709
Sipify
2020-05-12 15:37:22 +10:00
Nyall Dawson
180bbeccb8
PyQGIS syntatic sugar, start on tests for QgsTextDocument
2020-05-12 13:26:50 +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
8b263162d5
Try to fix Travis build
2020-05-12 10:46:45 +10:00
Nyall Dawson
bf71382065
Don't try to reuse True value in enum, causes Python issue
2020-05-12 10:33:30 +10:00
Nyall Dawson
9a63810d82
Use composition rather then inheritance for QgsTextBlock/QgsTextDocument
...
Allows us to expose these to python and hopefully fixes compilation issue on Travis
2020-05-12 10:33:30 +10:00
Nyall Dawson
cb1e8445d3
Expose some more classes to Python, but mark as unstable API
2020-05-12 10:33:30 +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