AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Cadence font box problem12/21/2023 This font scale factor does not have to be set to a whole number, a scale factor of 1.2 or 1.5 would work. The above example does nothing since the scale factor is 1. It can be configured by setting something called gsettings describe text-scaling-factor this way: GNOME has a special GNOME scaling system for fonts. Similarly, icon sizes can be configured for GTK2 applications and GTK 3 had that option in early versions but GNOME developers, who are in control of GTK development, thought it was too useful for visually impaired people so that level of user control over their own desktop systems had to go. It used to be possible to configure font DPI in GNOME but that was a feature for people with poor eye-sight and GNOME developers hate actually user-friendly features so it had to go. Scaling has to be set to an integer so you can either have "100%", which is too small given a hard-coded DPI of 96, and "200%", which is too big unless your screen has a DPI at or above 2*96=192. The "GNOME way" is to use a "scale-factor" set in GNOMEs settings. ![]() Scaling: The Alternative To Caring About Actual Dots Per Inches GNOME and GNOME "apps" Ī big part of the reason why X hard-codes DPI to 96 for both the server and the fonts is that the developers who are heavily in control of both GNOME and GTK are also in positions where they have a lot to say about what goes into X - even though they are entirely focused on Wayland. Common GUI toolkits like Qt and GTK don't care about that setting, not even a little. The X server DPI is, on the other hand, barely used. You will immediately notice a huge difference when that setting is changed, a majority of software applications will change the font size depending on his setting. The font DPI setting ( Xft.dpi) is used by a lot of programs. The MATE desktop environment is an exception it will set the Xft.dpi value using the X servers DPI value. You can verify that the right font DPI setting is in effect with xrdb -query |grep dpiĭo note that setting font DPI does NOT change or affect the X server DPI and a X configuration file with a Monitor section and a DisplaySize setting will or a X startup command with a -dpi VALUE will NOT change the Xft.dpi value accordingly. KDE Plasma has a similar setting available in systemsettings5 ("System settings" in its menu) under Fonts where you can define a Force font DPI value. Font DPI can be set in that configuration tools Fonts tab. Xfce has a tool called xfce4-appearance-settings (called "Appearance" in its menu). This font DPI setting can also be configured in desktop environment specific configuration tools. You can create a file in /etc/X11// with a Monitor section with a DisplaySize value: There are three not great options for setting the X server DPI. The website /dpi/ has a DPI Calculator you can use to get a correct DPI value for any monitor if you know the resolution and the diagonal size in inches. Why the -fbmm parameter doesn't "take" the first time it is set is a unsolved mystery. Running xrandr with the -fbmm parameter and a resolution twice makes xdpyinfo | grep -B2 resolution show the screens correct DPI size instead of the hard-coded 96x96 value. ![]() Xrandr -fbmm `xrandr | sed -n '/ connected / '` Xdpyinfo | grep -B2 resolution will tell you resolution: 96x96 dots per inch even so - unless you have configured X to use a different DPI setting. The xrandr output would indicate that X totally knows DPI given that it has the screen resolution and the screen dimentions. It will produce a line like:ĮDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm The command xrandr |grep "connected pri" will in most cases give you a line which ends with your primary monitors dimensions. Xrdb -query |grep dpi How To Tell What DPI You Have The current X server DPI setting can be checked with:Īnd the typically more important font DPI setting can be checked with: They are both set to 96 even if the X server knows the correct DPI. To complicate matters, there are actually two DPI settings of importance: The X server DPI and the font DPI. X will insist that your DPI is 96x96 even if it knows it isn't.
0 Comments
Read More
Leave a Reply. |