How to draw the rich text, and how to get the position of the typing mark? #345
|
I try to draw a rich text like |
Answered by
JimBobSquarePants
Nov 11, 2024
Replies: 1 comment 2 replies
Could you please explain further? What did you do? Could you provide code? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Why do you expect the library to parse some random syntax you've introduced?
<color=\"red\">is absolutely meaningless.To draw rich text you need to provide the options with a set of text runs describing what you want.
TextRunshttps://docs.sixlabors.com/api/ImageSharp.Drawing/SixLabors.ImageSharp.Drawing.Processing.RichTextOptions.html#SixLabors_ImageSharp_Drawing_Processing_RichTextOptions_TextRuns
RichTextRunhttps://docs.sixlabors.com/api/ImageSharp.Drawing/SixLabors.ImageSharp.Drawing.Processing.RichTextRun.html