R
R
rundll322021-09-14 20:29:57
C++ / C#
rundll32, 2021-09-14 20:29:57

Formatted text output in Graphics?

I have a Rectangle in which a line like this should be drawn

Просто [blue]набор[/blue] текста для [red]примера[/red]

The output should look like this

6140da5812430124113913.jpeg

. But the question is not about parsing strings for these same styles, but about their application. DrawString can place text in the center of a rect, but it cannot apply different styles to the same text. To paint parts of the text in parts and somehow connect it all, I have no idea how.
I would REALLY not want to use RichTextBox for these purposes.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question