SkParagraph and vertical alignment of text

411 views
Skip to first unread message

Łukasz Siudek

unread,
Jun 5, 2021, 3:10:25 PM6/5/21
to skia-discuss
Hi,

I'm trying to draw rich text using Skia's SkParagraph module, however I'm having some difficulties with implementing superscript/subscript feature. Paragraph's TextStyle seems to be lacking any capabilities of vertical text alignment or capability to raise text baseline by some extent (it can only be set to either ideographic or alphabetic type) when creating single paragraph.

Am I missing any simple solution? If not, what would be the best approach to solve this problem?

Thanks,
Łukasz

gianpatt

unread,
Dec 9, 2021, 8:26:40 AM12/9/21
to skia-discuss
Hi Lukasz,

I'm having the same issue. Did you find any solution for the vertical alignment?
Thanks
Jey
Reply all
Reply to author
Forward
0 new messages