Commit graph

4 commits

Author SHA1 Message Date
Christophe de Dinechin
e57c310ccd menus: Adjust size of menus to make descenders visible
Descenders in softkey menus were not really visible. This meant that a
unit like `kg` would be visually equivalent to `kq`.

This adjusts the size of menus by one pixel to make it visible, and
extends the clipping area by another pixel, which gives two extra
pixels when drawing in white on a black background.

This is not visually perfect, because as a result, menu entries
without a descender, e.g. 'mol' now appear to be a bit shifted up.

Fixes: #939

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2024-05-15 18:57:28 +02:00
Christophe de Dinechin
6218993e11 variables: Store and recall BMP files
Store files and objects as BMP files.
Recall BMP files as graphical objects.

Also adjust `Show` to not add a border to input graphical objects.

Fixes: #867

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2024-04-08 21:28:15 +02:00
Christophe de Dinechin
e33a9accff tests: Change the height of ignored header
We need to ignore a few additional rows of pixels at the top,
otherwise the test images depend on the month name, e.g. "April",
which has a descender for "p", modifies pixesl at the top.

Fixes: #873

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2024-04-08 21:28:15 +02:00
Christophe de Dinechin
5362dd634c graph: Improve rendering of exp, exp2, exp10
Use a smaller font for the argument of these functions.

Also add tests for `sqrt`, `cbrt` and `xroot`

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
2024-03-28 23:51:08 +01:00