This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Font DPI config file?

Tags: None
(comma "," separated)
User avatar
danniken
Registered Member
Posts
91
Karma
0

Font DPI config file?

Mon May 14, 2012 9:40 pm
Hi, I'm looking for the config file which controls the DPI setting of fonts in KDE 4 (Under LinuxMint12). I checked in all the places recommended here: http://www-archive.mozilla.org/unix/dpi.html , but I came up empty.

I did find the setting to switch between 96DPI and 120DPI in the SystemSettings app, but I would like to play around with a setting besides those two choices.

Thanks!
luebking
Karma
0

Re: Font DPI config file?

Tue May 15, 2012 4:52 pm
check ~/.fonts.conf (fontconfig config file)
User avatar
danniken
Registered Member
Posts
91
Karma
0

Re: Font DPI config file?

Wed May 16, 2012 12:16 am
luebking wrote:check ~/.fonts.conf (fontconfig config file)


Looked promising, but no DPI setting available there:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
</fontconfig>
luebking
Karma
0

Re: Font DPI config file?

Wed May 16, 2012 5:15 am
the general system dpi is contolled by xrandr and can also be set in /etc/X11/xorg.conf (this is to fix your screen dpi)

fontconfig manpage:
http://freedesktop.org/software/fontcon ... -user.html

i don't know which one the kde dialog affects

you btw /can/ actually enter random numbers in "kcmshell4 fonts" - just the steping moves between some defaults
User avatar
danniken
Registered Member
Posts
91
Karma
0

Re: Font DPI config file?

Wed May 16, 2012 2:52 pm
luebking wrote:the general system dpi is contolled by xrandr and can also be set in /etc/X11/xorg.conf (this is to fix your screen dpi)

I have the /etc/X11 folder, but there is no "xorg.conf" file there.

fontconfig manpage:
http://freedesktop.org/software/fontcon ... -user.html

i don't know which one the kde dialog affects

It references DPI, but I can't find a DPI setting in any of the .conf files it references.

you btw /can/ actually enter random numbers in "kcmshell4 fonts" - just the steping moves between some defaults

I tried that originally, and I just tried it again, but there is no mechanism to allow me to enter any value in the box; my only choices are "disabled", "96 DPI", or "120DPI".
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Font DPI config file?

Wed May 16, 2012 3:35 pm
re: /etc/X11/xorg.conf

xorg.conf is no longer mandatory nor always shipped but can be created, from the Fedora wiki (as an example)
Fedora releases since Fedora 10 do not create a /etc/X11/xorg.conf file, used to configure the X server, by default. The X configuration is automatically determined each time X is started. In most cases, this works well and there is no need to manually specify X configuration information.


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
danniken
Registered Member
Posts
91
Karma
0

Re: Font DPI config file?

Wed May 16, 2012 11:06 pm
That looked promising, but when I went to create the xorg.conf file I got:

sudo: Xorg:1: command not found

I know the DPI has to be set somewhere, because when I run :
xrdb -query | grep dpi

it returns the value I set in "kcmshell4 fonts"


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]