Add super and subscript support for text renderer#50848
Merged
nyalldawson merged 9 commits intoqgis:masterfrom Nov 14, 2022
Merged
Add super and subscript support for text renderer#50848nyalldawson merged 9 commits intoqgis:masterfrom
nyalldawson merged 9 commits intoqgis:masterfrom
Conversation
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
786306d to
2f501ae
Compare
nirvn
approved these changes
Nov 14, 2022
Contributor
nirvn
left a comment
There was a problem hiding this comment.
Finally, m2 labels unlocked! :)
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(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 byincluding css rules, e.g.
<sup style="font-size:33pt">super</sup>vertical-align: superorvertical-align: subCSS formatting rules in any other HTML elementSponsored by OSGEO UK