summaryrefslogtreecommitdiff
path: root/src/gempub.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-15 18:18:45 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-15 18:18:45 +0300
commitaed6837cc1e1bfb9ccb238900ad7387444b624eb (patch)
tree3b502166a9b9cd69b46ea6c11949be82bedaff53 /src/gempub.c
parent9f7bbeecba762213c7dec4555e0cbb1da2b2ea66 (diff)
Fixing regressions text metrics, InputWidget
`run_Font_` was moving the Y cursor position twice for each line break. Checking for the HarfBuzz UNSAFE_TO_BREAK flag leads to some unexpected behavior near edges of words. The old `tryAdvanceNoWrap` method should return the maximum horizontal advance of the text, and not the cursor position's advance. `draw_WrapText` used the wrong foreground color. `TextBuf` now uses WrapText to do all the measuring and drawing, making things much simpler.
Diffstat (limited to 'src/gempub.c')
0 files changed, 0 insertions, 0 deletions