Unlock Version
Lock Version
The full power of normal label and rule expressions can now be used for label properties. Nearly every property can be defined with an expression or field value giving you more control over the label result. Expressions can refer to a field (e.g. set the font size to the value of the field 'font') or can include more complex logic.
Examples of bindable properties include:
Use of the older labelling engine available in QGIS <= 1.8 is now discouraged (i.e. deprecated), but has not been removed. This is to allow users to migrate existing projects from the old to new labelling engine.
The following guidelines for working with the older engine in QGIS 2.0 apply:
Deprecated labelling tab can be enabled/disabled for the current project, via Python console commands, e.g.:
>>> QgsProject.instance().writeEntry('DeprecatedLabels', '/Enabled', True | False)
# or
>>> QgsProject.instance().removeEntry('DeprecatedLabels', '/')
NOTE: There is a very high likelihood the deprecated labelling engine will be completely removed prior to the next stable release of QGIS. Please migrate older projects.
The labelling system has been totally overhauled - it now includes many new features such as drop shadows, 'highway shields', many more data bound options, and various performance enhancements. We are slowly doing away with the 'old labels' system, although you will still find that functionality available for this release, you should expect that it will disappear in a follow up release.
Import PR from Github into Entries