Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[FEATURE][layouts] Use text renderer for drawing scalebar text
Allows the full range of formatting options exposed through text renderer - e.g. scalebar text with buffers, shadows, background shapes, letter spacing, etc. Say goodbye to unreadable scale bar text!
- Loading branch information
Showing
with
351 additions
and 208 deletions.
- +31 −5 python/core/layout/qgslayoutitemscalebar.sip.in
- +10 −1 python/core/scalebar/qgsscalebarrenderer.sip.in
- +32 −5 python/core/scalebar/qgsscalebarsettings.sip.in
- BIN python/plugins/processing/tests/testdata/custom/circular_strings.gpkg
- +8 −27 src/app/layout/qgslayoutscalebarwidget.cpp
- +1 −2 src/app/layout/qgslayoutscalebarwidget.h
- +27 −13 src/app/qgsdecorationscalebar.cpp
- +2 −2 src/app/qgsdecorationscalebar.h
- +3 −3 src/app/qgsdecorationscalebardialog.cpp
- +6 −0 src/core/layout/qgscompositionconverter.cpp
- +54 −21 src/core/layout/qgslayoutitemscalebar.cpp
- +23 −5 src/core/layout/qgslayoutitemscalebar.h
- +5 −2 src/core/scalebar/qgsdoubleboxscalebarrenderer.cpp
- +9 −10 src/core/scalebar/qgsnumericscalebarrenderer.cpp
- +27 −13 src/core/scalebar/qgsscalebarrenderer.cpp
- +9 −1 src/core/scalebar/qgsscalebarrenderer.h
- +51 −10 src/core/scalebar/qgsscalebarsettings.h
- +5 −2 src/core/scalebar/qgssingleboxscalebarrenderer.cpp
- +5 −2 src/core/scalebar/qgsticksscalebarrenderer.cpp
- +32 −76 src/ui/layout/qgslayoutscalebarwidgetbase.ui
- +11 −8 tests/src/core/testqgslayoutscalebar.cpp
Binary file not shown.
Oops, something went wrong.