9 Commits

Author SHA1 Message Date
Nyall Dawson
6526cf5a86 New QgsFontUtils::asCSS method for converting a QFont to a CSS
string representation (as close as possible)
2016-03-30 19:35:34 +11:00
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01:00
Nyall Dawson
c49b5b777f Change a lot of arguments to const references in core/gui
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Juergen E. Fischer
9752c468c1 indentation update 2015-07-29 11:52:14 +02:00
Nyall Dawson
e4d0d27cd2 Followup 87c05f1 2015-06-27 12:05:55 +10:00
Nyall Dawson
7a3a857d79 Add QgsFontUtils methods for saving/loading font from XML (fix #12644)
Fixes loss of font styles when restoring projects. Credit to @nirvn
for the initial implementation.
2015-06-15 19:40:28 +10:00
Larry Shaffer
523fd44d86 Add more standard test font functions to QgsFontUtils 2014-02-19 13:27:59 -07:00
Larry Shaffer
2d4ecbac00 Move loading of test fonts to QgsFontUtils
- Always add testdata.qrc to desktop and server, but only auto-load Roman and Bold if built in debug mode
- Test fonts can now be loaded directly, after startup
- Add sip binding and unit tests
2014-02-19 13:27:59 -07:00
Juergen E. Fischer
e4b278d6ed add QgsFontUtils sip bindings and fix doxygen warnings 2013-06-19 23:12:28 +02:00