Skip to content

Add super and subscript support for text renderer#50848

Merged
nyalldawson merged 9 commits intoqgis:masterfrom
nyalldawson:superscript
Nov 14, 2022
Merged

Add super and subscript support for text renderer#50848
nyalldawson merged 9 commits intoqgis:masterfrom
nyalldawson:superscript

Conversation

@nyalldawson
Copy link
Collaborator

@nyalldawson nyalldawson commented Nov 10, 2022

(temporarily includes #50837)

This allows for either:

  • <sup>superscript</sup> / <sub>subscript</sub> components in text, where the text will be vertically super or subscript aligned and automatically sized to 2/3rd of the parent font size. Users can also set a fixed font size for the super/sub script by
    including css rules, e.g. <sup style="font-size:33pt">super</sup>

  • vertical-align: super or vertical-align: sub CSS formatting rules in any other HTML element

Sponsored by OSGEO UK

@nyalldawson nyalldawson added Feature Labeling Related to QGIS map labeling Changelog Items that are queued to appear in the visual changelog - remove after harvesting labels Nov 10, 2022
@github-actions github-actions bot added this to the 3.30.0 milestone Nov 10, 2022
This allows for either:

- <sup>superscript</sup> / <sub>subscript</sub> components in text,
where the text will be vertically super or subscript aligned
and automatically sized to 2/3rd of the parent font size. Users
can also set a fixed font size for the super/sub script by
including css rules, e.g. <sup style="font-size:33pt">super</sup>

- "vertical-align: super" or "vertical-align: sub" CSS formatting
rules in any other HTML element

Sponsored by OSGEO UK
Copy link
Contributor

@nirvn nirvn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally, m2 labels unlocked! :)

@nyalldawson nyalldawson merged commit fe125df into qgis:master Nov 14, 2022
@nyalldawson nyalldawson deleted the superscript branch November 14, 2022 10:46
@zacharlie zacharlie added ChangelogHarvested This PR description has been harvested in the Changelog already. and removed Changelog Items that are queued to appear in the visual changelog - remove after harvesting labels Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ChangelogHarvested This PR description has been harvested in the Changelog already. Feature Labeling Related to QGIS map labeling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants