SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Usually, unless you know what you are doing, I would suggest use either xorgcfg, xorgconfig or xorgsetup to modify the file. If you know exactly what to change, you can use any text editor and edit the file accordingly.
root@AB60R:~# cd /etc/X11
root@AB60R:/etc/X11# lsg xorg
xorg.conf
xorg.conf-fbdev
xorg.conf-vesa
xorg.conf.acbackup
xorg.conf.backup
xorg.conf~
root@AB60R:/etc/X11# cp xorg.conf /root/xorg.conf.orig
root@AB60R:/etc/X11# vim xorg.conf
---
That's the vim user's way.
Another way: Do you use KDE?
If so, on menu,
> system > more applications > file manager - Super user mode
Then (in such file manager) enter the /etc/X11 directory, find xorg.conf
right click xorg.conf then with left mouse button click on "open with", choose kate (an editor).
Yet other ways exist, perhaps pico or other editors if the above two do not suit your fancy.
It kind of depends on you -- what your experience level is, what desktop you use (or are you in run level 3) if so then vi or vim or whatever else editor avails without the X server running.
Don't forget to backup first (the cp command listed above makes a backup).
I'm actually trying to make the fonts better in firefox by using better Font Scaling. If you guys know a good way to do this just say so. I'm following these directions:
Better Font Scaling
Now its' time to set your font resolution and screen dimensions.
Execute startx -- -dpi 96, fire up a terminal and type in xdpyinfo | grep dimensions. You'll see something like:
dimensions: 1024x768 pixels (274x203 millimeters)
Immediately edit “/etc/X11/xorg.conf”. In your Monitor section, add—
DisplaySize 274 203
—replacing 274 and 203 with the values that xdpyinfo actually gave you.
Now X will set your font resolution to the desired dpi (96, in this case) and scale your fonts appropriately. If you're using MythTV then you'll need a DisplaySize that sets your font resolution to 100dpi, not 96dpi.
If you need more, have a look at Mozilla Font Size / DPI Issues on Unix.
This usually isn't necessary with NVidia cards. If you have one, the information is contained in the “Dots per Inch” appendex of the driver's README file.
Next, in your xorg.conf's FontPaths section, change
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
to
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled/"
The reason is that the unscaled bitmap fonts in these directories look better than scaled ones.
Oh, you should have told us you are looking for editing your desktop fonts....
I thought we should edit /etc/fonts/fonts.conf or ~/.fonts.conf? But I think editing xorg.conf should be fine as well.
Anyway, I seldom do anything with my fonts, it looks good enough for my desktop (I am using Dropline GNOME). But I guess, our taste will ultimately be different.
Sounds good to me (your mentioned method). After all, Slackware caters to us hands on type of people. Learn by doing.
(Slackware 12.0)
al@AB60R:~$ xdpyinfo | grep dimensions
dimensions: 1152x864 pixels (292x219 millimeters)
al@AB60R:~$ xdpyinfo | grep resolution
resolution: 100x100 dots per inch
alias xs='startx -- -dpi 139'
That's how I start X and it gives me the listed 100x100
96 didn't do anything for me. So I began experimenting then locked it in at 139 (it works, what can I say).
I'm using the Redhat Liberation fonts. I enabled the byte code interpreter.
I used to use MS Core fonts. But Liberation does it for me -- I've not found a need to add MS Core fonts.
The above xdpyinfo plus the next quick and hunky is how I did it for me. And it does fine for me. Not endorsed for others though due to quick and hunky (use at your own risk).
In /usr/share/fonts I renamed TTF to old_TTF
As below, made a TTF sym link to liberation_ttf
Then ran the needed font commands which I now don't remember them but they are all over the www when search google/linux/ for fonts
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.