Add 'Baseline' as an option for VerticalAlignment #287
Unanswered
AndrewShepherd
asked this question in
Ideas
Replies: 1 comment
-
Our text runs actually automatically align at the baseline. You can assign different font sizes to a individual runs. This image from a draft PR in the drawing repository indicates how the functionality will eventually allow rich text rendering. Where a specific |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One of the many appeals of this library is that the details of how a font renders is abstracted away. (So far I have happily gotten away with not learning what a 'Glyph' is)
At the moment, the VerticalAlignment enumeration consist of
Top
,Center
,Bottom
.In comparison, the CSS 'vertical-align' property includes the value 'baseline'. (Which I think is the default)
This means that in HTML you can have flowing text where the style and the font size changes, but it all still reads like it is on the same line.
It would be a really good feature if we can choose
Baseline
as a vertical alignment option.(Just from reading this discussion about font measurements I understand this might not be trivial)
Beta Was this translation helpful? Give feedback.
All reactions