aboutsummaryrefslogtreecommitdiff
path: root/base64.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-29 18:39:22 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-29 18:39:22 +0000
commit013cf61ffbd58f5f706ae6688aea56a14fce6622 (patch)
treefc7eb8b9b9b7bcfdb82fb492db5c9c4fa8653dca /base64.c
parentsearch: turn info log to a debug log (diff)
render: add font_baseline() - calculates the y-coordinate for the baseline
The old baseline calculation was copy-pasted to a couple of places, and also assumed that the font's height was equal to ascent+descent. While this is typically true, it isn't necessarily so. Now, we assume that height >= ascent+descent, and then position the baseline in "center" (but adjusted for the descent).
Diffstat (limited to 'base64.c')
0 files changed, 0 insertions, 0 deletions