How to show partial FormattedText?

In WPF 4.0, the FormattedText class requires at least to have enough vertical space to show a line and enough horizontal space to show a character, else shows nothing.

Is there a way to force FormattedText to generate the text characters partially?

By the way, I want this to show big text (e.g. with Arial 72)

Upvotes: 2

Views: 214

Answers (1)

Clemens
Clemens

Reputation: 128060

Just a guess, but instead of limiting the text size by MaxWidth and MaxHeight, couldn't you clip the text by pushing a clip rectangle onto the DrawingContext?

Upvotes: 2

Related Questions