LineBreakMeasurer is constructed with an iterator over styled text. The iterator's range should be a single paragraph in the text. LineBreakMeasurer maintains a position in the text for the start of the next text segment. Initially, this position is the start of text.

Text Sample: Serif

Text Sample: Sans Serif

Text Sample: Monospaced

Arial font

Times New Roman font

Arial larger font

imaginary, Times New Roman (should default to times)

imaginary, madeup (should default to sans)

You can even load in a custom font from a file in your program.

this ismysuperdupercrazyasshugelylongwordofawordohasdfasdfasdfasdfasdfasdfasdfas end

text u `tt` and b and i and big and small

text em, strong, dfn, `code`, `samp`, `kbd`, var, cite, and finally a link

nested styles bold, italic, and bold-talic!

inserted text and deleted text

example of subscript and superscript text

example of big and really big

Uppercased Text (orig, mixed)

Lowercased Text (orig, mixed)

captialized text (orig, lower)

normal text 200% and 2em normal text