This is a high level overview of how we do text layout and rendering in Flutter Web:
Before we start measuring text, we first need to break it down into fragments. A fragment is the longest substring in the paragraph that satisfies the following:
- Contains no soft or hard line breaks.
- The entire fragment has the same text direction.
- The entire fragment has the same text style.