diff options
author | Carl Worth <cworth@cworth.org> | 2013-02-01 14:58:44 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-01 16:13:05 +1100 |
commit | 393c88f087d40578558b104dd42ff2076e198188 (patch) | |
tree | 5e41e7b0c8539428e8baf8722fdc05a18541890d /gps.c | |
parent | a6fd4076267be5aabe8adc7da56105e520371476 (diff) | |
download | subsurface-393c88f087d40578558b104dd42ff2076e198188.tar.gz |
print: Use logical text extents to layout text in weight system box
The old code was computing locations based on relative portions of the
available height. The correct thing to do, (and done here in the
patch), is to advance by the logical height of rendered text each
time.
What's stll missing is anything to guarantee that the text drawn will
fit in the box. The correct answer here is along one of two lines:
1. Use the logical text extents to decide what size to draw the box.
2. Use a pre-computed box size and choose a font size that will fit
Either approach will involve a fairly substantial reworking of the
rendering code in print.c.
Signed-off-by: Carl Worth <cworth@cworth.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gps.c')
0 files changed, 0 insertions, 0 deletions