Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix Capitalize First Letter fails with curved labels (fix #14875)
Instead of using QFont's inbuilt capitalization support, which applies only on rendering and accordingly fails for curved labels which are drawn one character at a time, we now manually capitalize label text while registering features. The capitalize first method from Qt was reimplemented in QgsStringUtils (together with what I expect is better handling of unicode characters over the Qt method). This change also makes it possible to implement other capitalization methods not directly supported by Qt
- Loading branch information
Showing
with
227 additions
and 34 deletions.
- +19 −0 python/core/qgsstringutils.sip
- +36 −34 src/core/qgspallabeling.cpp
- +49 −0 src/core/qgsstringutils.cpp
- +18 −0 src/core/qgsstringutils.h
- +61 −0 tests/src/core/testqgslabelingengine.cpp
- +44 −0 tests/src/python/test_qgsstringutils.py