5

How can I set a custom value for font DPI in KDE?

The only options available in KDE are 96 and 120 DPI values. My Screen resolution is 1920*1080, so I would like to keep the DPI at a value higher than 120.

I know how to do this in gnome. Could any one tell how to set custom DPI values in KDE?

A GUI method is preferred

  • Is there a reason to not use the actual screen DPI? If you disable the "force font dpi" it should use your screen's DPI and therefore have the best rendering of the fonts. If you want to change the font size, change the font size directly. If your screen's DPI is incorrectly detected, you can use xrandr to set the correct DPI in your kdm startup wiki.ubuntu.com/X/Config/… – maco Nov 7 '11 at 18:40
  • possible duplicate of How to find and change the screen DPI? – user.dz Jul 15 '14 at 0:41
  • @Sneetsher this question is specific to KDE. The other question that you linked is generic ubuntu. – AIB Jul 15 '14 at 10:42
  • 1
    @AIB, I thought this is an old question which didn't get an accepted answer, where xrandr could be the solution. didn't work? Could I ask if you found other working solution? – user.dz Jul 15 '14 at 12:17
  • 1
    BTW @AIB, it's for 11.04 :) I preferred closing it as duplicate then off-topic. – user.dz Jul 15 '14 at 12:48
2

Configuration can be done per-user through ~/.fonts.conf, and globally with /etc/fonts/local.conf. The settings in the per-user configuration have precedence over the global configuration. Both these files use the same syntax.

Just scroll down and change the DPI value in the conf file. You may have to restart x or logout/login to KDE to get the change to apply.

This applies to most DEs, I don't know of any GUI method to do it other than what you have tried already.

font config man page!

| improve this answer | |
2

Just go to System Settings > Application Appearance > Fonts, and manually enter the dpi value you would like. No need to change fonts.conf.

Incidentally, most desktop environments have a GUI way to change this. Even lightweights like XFCE have it.

| improve this answer | |
  • 1
    With the new plasma this is System Settings > Fonts – Russell Greene Feb 20 '17 at 5:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.