How to reproduce:
- Launch foot
- Try to resize font with keyboard shortcut ctrl in combination with either + or -
Expected behaviour:
Font scales properly when trying to resize
Issue in detail:
The font doesn't get scaled linearly because when resizing foot doesn't read the DPI correctly
Attached log - (describes the bug):
nikp123@HP-Laptop /home/nikp123 $ foot
info: config.c:841: loading configuration from /home/nikp123/.config/footrc
info: wayland.c:798: HDMI-A-1: 1920x1080+1092x0@60Hz 2343 23.10" scale=1 PPI=96x98 (physical) PPI=96x98 (logical)
info: wayland.c:798: eDP-1: 1366x768+0x645@60Hz 0x0354 13.23" scale=2 PPI=124x128 (physical) PPI=99x102 (logical)
info: wayland.c:834: cursor theme: (null), size: 24
info: terminal.c:482: using 4 rendering threads
info: wayland.c:1027: requesting SSD decorations
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF.ttf: size=12.00pt/32px, dpi=196
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Bold.ttf: size=12.00pt/32px, dpi=196
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Italic.ttf: size=12.00pt/32px, dpi=196
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Bold Italic.ttf: size=12.00pt/32px, dpi=196
info: terminal.c:526: cell width=16, height=35
info: wayland.c:634: using SSD decorations
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF.ttf: size=12.00pt/34px, dpi=204
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Bold.ttf: size=12.00pt/34px, dpi=204
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Italic.ttf: size=12.00pt/34px, dpi=204
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Bold Italic.ttf: size=12.00pt/34px, dpi=204
info: terminal.c:526: cell width=17, height=37
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF.ttf: size=12.50pt/13px, dpi=75
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Bold.ttf: size=12.50pt/13px, dpi=75
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Italic.ttf: size=12.50pt/13px, dpi=75
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Bold Italic.ttf: size=12.50pt/13px, dpi=75
info: terminal.c:526: cell width=7, height=14
info: main.c:393: goodbye
nikp123@HP-Laptop /home/nikp123 $
How to reproduce:
1. Launch foot
2. Try to resize font with keyboard shortcut ctrl in combination with either + or -
Expected behaviour:
Font scales properly when trying to resize
Issue in detail:
The font doesn't get scaled linearly because when resizing foot doesn't read the DPI correctly
Attached log - (describes the bug):
```
nikp123@HP-Laptop /home/nikp123 $ foot
info: config.c:841: loading configuration from /home/nikp123/.config/footrc
info: wayland.c:798: HDMI-A-1: 1920x1080+1092x0@60Hz 2343 23.10" scale=1 PPI=96x98 (physical) PPI=96x98 (logical)
info: wayland.c:798: eDP-1: 1366x768+0x645@60Hz 0x0354 13.23" scale=2 PPI=124x128 (physical) PPI=99x102 (logical)
info: wayland.c:834: cursor theme: (null), size: 24
info: terminal.c:482: using 4 rendering threads
info: wayland.c:1027: requesting SSD decorations
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF.ttf: size=12.00pt/32px, dpi=196
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Bold.ttf: size=12.00pt/32px, dpi=196
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Italic.ttf: size=12.00pt/32px, dpi=196
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Bold Italic.ttf: size=12.00pt/32px, dpi=196
info: terminal.c:526: cell width=16, height=35
info: wayland.c:634: using SSD decorations
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF.ttf: size=12.00pt/34px, dpi=204
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Bold.ttf: size=12.00pt/34px, dpi=204
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Italic.ttf: size=12.00pt/34px, dpi=204
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Bold Italic.ttf: size=12.00pt/34px, dpi=204
info: terminal.c:526: cell width=17, height=37
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF.ttf: size=12.50pt/13px, dpi=75
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Bold.ttf: size=12.50pt/13px, dpi=75
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Italic.ttf: size=12.50pt/13px, dpi=75
info: fcft.c:451: /usr/share/fonts/TTF/TerminusTTF-Bold Italic.ttf: size=12.50pt/13px, dpi=75
info: terminal.c:526: cell width=7, height=14
info: main.c:393: goodbye
nikp123@HP-Laptop /home/nikp123 $
```