mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-20 05:33:47 -04:00
wayland: calculate a single, scaled DPI value
Previously, we calculated the monitors horizontal and vertical PPI values. For font sizing, we used the vertical PPI value. It seems however, that using the diagonal PPI value, i.e. diagonal_px / diagonal_inch, gives more consistent results. This is still a PPI value, but since it is intended to be used as a FontConfig DPI value, name it 'dpi'.
This commit is contained in:
parent
d675cf8720
commit
9601ed7cfb
2 changed files with 13 additions and 2 deletions
|
|
@ -236,6 +236,8 @@ struct monitor {
|
|||
} scaled;
|
||||
} ppi;
|
||||
|
||||
float dpi;
|
||||
|
||||
int scale;
|
||||
float refresh;
|
||||
enum wl_output_subpixel subpixel;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue