glacambre / firenvim

Embed Neovim in Chrome, Firefox & others.
GNU General Public License v3.0
4.57k stars 144 forks source link

guifont doesn't respect HiDPI scale #1565

Open Freed-Wu opened 9 months ago

Freed-Wu commented 9 months ago
❯ firefox --version
Mozilla Firefox 117.0.1
❯ uname -r
6.5.4

What I tried to do

I have a laptop with a 3120x2080 screen, which means it is a HiDPI device. I use scale = 2 to use it:

Screenshot from 2023-10-07 14-26-58

I expect set guifont=XXX:h12 will be scaled to set guifont=XXX:h24.

What happened

firenvim doesn't respect scale.

glacambre commented 9 months ago

Hi, thanks for the report, and sorry for not replying earlier - I was not able to answer when I received your issue's notification and then forgot about it. HiDPI scaling has been a sore point in Firenvim for a long time ( https://github.com/glacambre/firenvim/issues/972 , https://github.com/glacambre/firenvim/issues/869 , https://github.com/glacambre/firenvim/issues/1124 ), I probably won't be able to fix it properly before buying a HiDPI monitor.