Nyall Dawson
a492cb22fb
[feature] Support horizontal alignment in HTML labels
...
For multi-line labels, this allows use of either:
- HTML <p align="xxx"> attributes
- CSS "text-align: xxx"
- HTML <center>some text</center> tags
Supported alignments are left, right, center and justify
Horizontal alignment can be used in all contexts where
HTML text is rendered, EXCEPT for curved labels (since they
are restricted to single-line text)
Sponsored by City of Freiburg im Breisgau
2024-09-16 17:26:24 +10:00
Nyall Dawson
b7d18c009a
Fix dox
2024-09-14 13:25:59 +10:00
Nyall Dawson
957de0c311
Expose private QgsTextRenderer method for drawing document at point
...
This allows more efficient rendering when the document and metrics
have already been calculated
2024-09-14 13:25:59 +10:00
Nyall Dawson
5734116a10
Support h1/h2/.../h6 formatting in html labels
2024-09-11 13:43:00 +10:00
Nyall Dawson
90524634f9
[feature] Add support for word-spacing CSS in html labels
...
...and other places HTML text formatting is accepted.
This allows use of CSS "word-spacing: 12" to increase the word
spacing in a section of HTML text. The word spacing is always
treated as being in point units.
2024-09-11 08:24:39 +10:00
Nyall Dawson
b39f760cbc
Correctly handle multiline SIP_OUT param documentation
2024-09-10 11:11:25 +10:00
Nyall Dawson
534ca73c59
Fix missing see also trailing notes in PyQGIS documentation
2024-09-04 06:32:03 +10:00
Nyall Dawson
ef0289f3ec
Fix formatting of Python ..deprecated annotations in docstrings
...
Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/174
2024-09-02 11:42:12 +10:00
Nyall Dawson
519959154a
Fix some overly verbose class "brief" descriptions
2024-08-28 11:58:21 +10:00
Nyall Dawson
8b04562ba7
Avoid fragile reg for argument removal
2024-08-14 13:05:46 +10:00
Nyall Dawson
3a578d6712
Header update
2024-08-13 20:28:55 +10:00
Nyall Dawson
be8dce7d0d
Valid improvements from new sipify
2024-08-13 20:28:55 +10:00
Nyall Dawson
6f652d251b
Drop no-value copy constructor dox
2024-07-25 04:02:55 +10:00
Nyall Dawson
ad29a505e1
Fix text wrapping stability for small text
...
Adjust the QgsTextRenderer::calculateScaleFactorForFormat logic
so that small text is scaled up to at least 50 pixels when
calculating text metrics
This avoids tiny differences in calculated text metrics for small
text from affecting how text wrapping is calculated, which can
otherwise result in words at the end of lines "bouncing" from line
to line as layouts and maps are zoomed out
2024-07-25 04:02:33 +10:00
Nyall Dawson
28943f9c1b
Remove a bunch of useless default constructor doxygen
2024-07-23 02:08:28 +10:00
Nyall Dawson
190108e7f1
Fix automatic font download on Windows
2024-06-27 06:17:13 +10:00
Nyall Dawson
fce4ed06b8
Split fragments on tab characters
2024-05-25 06:10:28 +10:00
Nyall Dawson
25f00e2560
Don't try to render empty text strings
2024-05-25 06:10:28 +10:00
Nyall Dawson
f5853a7212
Add tab stop distance to QgsTextFormat
2024-05-25 06:10:28 +10:00
Nyall Dawson
b70fba6762
Download Google fonts from github, not broken Google fonts download url
...
Note that not all fonts available from Google fonts are present on
the github repo for some reason, eg Open Sans Condensed is not.
Fixes #57070
2024-04-18 11:31:55 +10:00
Alessandro Pasotti
db37ff8fc9
Merge pull request #56334 from elpaso/bugfix-gh55532-line-break-in-html-labels
...
[labeling] fix BR in HTML labels
2024-02-23 09:28:08 +01:00
Even Rouault
15ea5c46bc
Header files: remove all mentions of '\since QGIS 3.0'
2024-02-18 20:57:23 +01:00
Alessandro Pasotti
3705ad0c2b
[labeling] fix BR in HTML labels
...
Fix <br> ignored in HTML formatted labels.
Fix #55532
2024-02-13 12:10:25 +01:00
Nyall Dawson
0096246afe
Sipify
2024-02-13 20:51:03 +10:00
Julien Cabieces
7f586d8742
PyQt6 sip files
2023-12-13 05:36:44 +10:00
Julien Cabieces
bb3c36a69b
Initialize sip bindings for PyQt6
...
use exactly the ones from PyQt5 so we can study the difference when
generating for PyQt6
2023-12-08 03:38:42 +10:00