diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-13 09:49:44 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-13 09:49:44 +0300 |
commit | 6b931c95725eef2ebb7e831c4017d3d67b33294f (patch) | |
tree | 254595663d93c0dcc33baad475fb2f6c3ddeec40 /lib | |
parent | dd0a8798f32bf192ed703c6c512d4a76c4d407bc (diff) |
Text attributes that change inside a run
These changes concern the situation when the attributes of text (i.e., font, color) are changed via escape sequences.
The concept of "base attributes" was added so that the low-level text renderer knows which font/color to set when a "reset" escape sequence is encountered. This depends on what kind of text is being renderer, e.g., preformatted or regular paragraphs.
The base attributes were added as variables in Text because it was getting unwieldy to pass all the information via the draw/measure/WrapText functions.
GmDocument now has a GmTheme struct that collects the font and color information into a single place.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions