RichTextKit v0.4

Measuring RichString

The RichString class provides various measurements of its contained text.

Measuring TextBlock

The TextBlock class provides various measurements of its contained text.

Going Deeper

In addition to these basic measurements you can also inspect the text block's Lines collection and each line's FontRuns collection to get detailed information about the final layout of each line and font run.