QGIS/python/core/auto_additions
Nyall Dawson 7a17557e64 Refactor QgsTextRenderer internal methods, optimise buffer render
Rework internals of QgsTextRenderer horizontal text rendering,
so that:

1. It's easier to read, cleaning up years of accumulated cruft
2. Split out bits into smaller functions
3. Reduce the amount of duplicate code for text layout, so that
there's only one function responsible for horizontal text layout
instead of multiple
4. Add shortcut optimisations for rendering text + buffer/shadow
at the same time, instead of always drawing these completely
independantly of each other and incurring the cost of text path
calculation multiple times for the same bit of text. In a simple
benchtest this reduces the time required for rendering many
text fragments with buffers from 40 seconds to 27 seconds.

There's still more we could do here, but it's a start...
2024-11-19 11:15:34 +10:00
..
2024-08-13 20:28:55 +10:00
2024-09-12 07:21:24 +00:00
2024-09-12 07:21:24 +00:00
2024-09-12 07:21:24 +00:00
2024-09-13 14:55:52 +00:00
2024-09-25 05:09:28 +00:00
2024-10-09 03:49:26 +00:00
2024-10-11 11:22:54 +10:00