Custom DPI settings in KDE

17,656

Solution 1

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.

Solution 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!

Share:
17,656

Related videos on Youtube

AIB
Author by

AIB

Just another Linux enthusiast

Updated on September 18, 2022

Comments

  • AIB
    AIB over 1 year

    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

    • maco
      maco over 12 years
      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/…
    • user.dz
      user.dz almost 10 years
    • AIB
      AIB almost 10 years
      @Sneetsher this question is specific to KDE. The other question that you linked is generic ubuntu.
    • user.dz
      user.dz almost 10 years
      @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
      user.dz almost 10 years
      BTW @AIB, it's for 11.04 :) I preferred closing it as duplicate then off-topic.
    • Oboroten
      Oboroten over 2 years
      You can edit these numbers
  • Russell Greene
    Russell Greene about 7 years
    With the new plasma this is System Settings > Fonts