I use Xft.dpi: 144
in my .Xresources
file to make UI fonts bigger, but that doesn’t work for Chrome. UI font appears very small for Chrome. This is a known issue and there are quite a few solved questions on StackOverflow about this, for example, this one.
The solution boils down to:
- We need to launch Chrome with a custom flag:
/usr/bin/google-chrome --high-dpi-support=1 --force-device-scale-factor=1.5
.- You need to use whatever scale factor you want for your system. It’s 1.5 for me since I use 144 (96 * 1.5).
- For people who use launchers to launch Chrome, you will have to update the launcher too.
- This can be done by copying the file
/usr/share/applications/google-chrome.desktop
to~/.local/share/applications/google-chrome.desktop
and then updating every singleExec
command inside the file to the command we saw in step #1.
- This can be done by copying the file
And that’s it. Chrome should have the same UI font size as your system. If not, try rebooting your device.