skia:textlayout::Paragraph to SkPath

63 views
Skip to first unread message

Joe

unread,
Mar 25, 2023, 2:11:59 PM3/25/23
to skia-discuss
hello! 

I'm currently looking for a way to convert a skia::textlayout::Paragraph to an SkPath, is there an API available to do that? 

Thank you

craste...@gmail.com

unread,
Mar 25, 2023, 5:48:53 PM3/25/23
to skia-discuss
I don't know the specific answer to your question, but you might try searching this group for "text to path"
I know that you would need a font object to do it. Here is an example:
It doesn't use the paragraph, but it might give you ideas.
Reply all
Reply to author
Forward
0 new messages