![]() ![]() Which makes sense because the DPR is smaller on your external monitor too. However looking at these calculations it seems like the font on your external monitor should be smaller, not bigger. I'd love to see what a println of each value used in this calculation would result in for your system It seems like the 12/13 could be a rounding/truncation error, however the 12 instead of 8 just seems a bit odd. Now don't get me wrong, it is likely that there was at least some kind of math error in my calculations, but it seems like the result for running this on your external monitor should not be Size(12). Size::new = size * 2 as i16 = 8 as i16 = 8 Size = size_f32_pts * resolution / 72 = 4 ![]() It looks like 7.5 is closer to what I want (13 pixels on big screen and 19 on small)Ĭonfiguration loaded from /home/niklas/.config/alacritty.ymlįinished initializing glyph cache in 0.040205583 I noticed that I can use partial font sizes as well. Maybe what I want is to be able to set the "maximum font size" so that it never rounds up? Without knowing the details of how this is implemented. So simply looking at the math I guess Alacritty is doing the right thing and rounds to the closest font size. If I shrink the font by one size on the small screen I get 18px heigh cells which looks good to me, however 18/13 = 1.38. The small screen gives me 21 pixels heigh cells and the big one gives me 13. device_pixel_ratio: 1.0833334 (as reported by alacritty. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |