If you like proper DPI scaling between your monitors, the proper way to 'fix' big font sizes is to reduce the font size in the config. This is how DPI is supposed to work even though a lot of applications on Linux don't make use of DPI (which is why the workaround I've mentioned before exists). If you have two screens where you previously didn't use any DPI and they are now both properly recognized as 2.0 DPI, then the font size should be doubled now. This is fixed with the #1403 PR and you might be able to make things work better by running that. However there currently is no resizing when an Alacritty window changes the screen, so if it's scaled up on one screen and you move it to another where the scaling is 1.0, it will be way too big. Due to rounding this will never be 100% accurate, but it should be about the same size. The goal is to have the same size on both monitors, not in pixels, but in millimeters. All bug reports are very much appreciated and I'm happy to follow through and help whenever I can. However feel free to ask more questions if you need help to get this working.Īlso don't worry about sounding like a dick, you do not. I'm going to close it since it's not an actual issue with Alacritty (or the way this works is intentional). I could see that in the future it might be possible to override the DPI for all platforms in the Alacritty config, but since you're using X11 what is in place already should be fine to do the job for you. You could also export this in your shell's profile file or create an alias to make this permanent. This will set a fixed DPI value of 1.0 for all your displays and should restore the behavior you've had previously. Another option which is only available on X11 is to start Alacritty with the environment flag WINIT_HIDPI_FACTOR=1.0 alacritty. If you switch the font size to 8 you should get the same size you've had before the DPI change. Now there are two possible solutions you have to solve this problem right now. So the font size you've specified (13) is in pt, which means that no matter the size or resolution of the display you open Alacritty on it will always be the same size (in mm). This behavior is intentional since the latest version of the windowing library will always automatically use DPR. So if you change master to the font size 22, it's will probably give you the same font size. However on the master branch you can see that the device_pixel_ratio (short dpr) is 1.6666666, so your font size 13 is scaled by 1.66666 (21.67). I've looked at the device_pixel_ratio of the second output and it's 1.0, so there's no scaling. I didn't notice it since in your -vvv log you posted the master first and the working branch second.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |