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.
I've installed slack 10.1 with KDE 3.3. I'm totaly newbie as far as X concerned. I've also installed the newest Firefox. The first thing I've found is that the fonts look just UGLY! I've read some articles about importing windows fonts (i've got winxp partion mounted). I used built in functionality from KDE control center to import my winfonts, however they look the same ugly as linux fonts !!! Only the font "Helvetica" looks well - but anyway, event if I set all fonts to Helvetica some of them remain still the same (the fonts in Kadu communicator or AMSN messenger). And of course damn firefox is using some bad looking font in address bar. It doesn't also show verdana where it should. I experimented with fonts settings in firefox but without success.
So, did anybody manage to setup KDE + firefox + other applications to look at least 90% of what windows fonts look like? If yes could you provide some steps how to do it? I was using olny text mode unitl this day, so ... be patient with me please
After much trial and error, I've never gotten fonts to look exactly right in X. Anti-aliasing makes them too blurry and not having it on makes them too jagged looking.
By my tastes, my KDE+Firefox+other applications fonts look 400% of what Windows fonts look like. I run 2048x1536 and use the high DPI to acheive superb sharp detail that you just can't do in Windows (it's harder to configure everything in Windows to work well with larger fonts).
But anyway, KDE's control center will only control fonts for KDE apps. IMHO, this alone is a good excuse to use more KDE apps than GNOME apps. However, some GtK apps are simply too good to pass up, like Mozilla Firefox and The GIMP.
In order to configure the fonts on those GtK apps within KDE, you'll need to set up a GtK config file in your home directory. Here's a great little guide on how to do it:
Skim down to the third post, where he finally gets around to the config file for GtK-2 apps. By now, most every GtK app you'll be using uses GtK-2 (like Mozilla Firefox). So, you just create the file ~/.gtkrc-2.0 and put something like this:
Thank you for your advice everybody. Especially IsaacKuo's post regarding Gtk apps. I've found it very usefull! I've also found that the another problem with my settings might be screen dpi settings. I'm using LCD monitor with it's native resolution of 1280x1024. I heard that in the case of well working display and good resolution there's no need to use antialiasing, honestly I don't really like kind of a blur fonts it produces. Can you tell me then how to set dpi?
I'm not sure about the dpi thing, but I do know that you really really really really want to use "sub-pixel rendering". This is a technique which only works on LCD displays, and takes advantage of the fact that each pixel in most LCD displays is actually made up of 3 rectangular sub-pixels (red, green and blue side-by-side).
This means that a sophisticated font renderer can acheive a 3x boost in horizontal resolution for fonts. This looks very, very, good. Unlike anti-aliasing which is blurry, sub-pixel rendering is super-sharp.
I know there's a simple switch for setting subpixel-rendering in the GNOME control center. I'm not familiar with where to find the option in KDE. Do a Google search on sub-pixel rendering and linux. Once you figure out how to get sub-pixel rendering working, you'll never go back!
2. Copy any extra TrueType fonts to /usr/X11R6/lib/X11/fonts/TTF
3. Install latest version of Freetype
Code:
a. decompress the archive
b. Open the file "include/freetype/config/ftoption.h"
locate a line that says:
#undef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
change it to:
#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
c. configure, make, make install (I use an old slacware build script for freetype)
4. Update font metrics
It is important to do this AFTER you have a fixed Freetype installed. I run this from a script, as root. Re-run it every time you add fonts to your system.
5. Turn on anti-aliasing but limit the range. I think it works best to have it turned off for small fonts, except italics.
Here is my copy of ~/.fonts.conf
I've found that to cause a lot of trouble with the Bitstream fonts. With the bytecode interpreted fonts, such as Arial, it doesn't make a difference. It's safer to leave it out, or set it to 'none' - X already knows the sub pixel order.
To enable sub pixel hinting (which you should always do for LCDs) as IsaacKuo says, you need to add the following to your ~/.fonts.conf:
My experience is that if you are using the Bitstream fonts, they look better using the autohinter + antialiasing (for all sizes). If you use the M$ fonts and want the super crisp look (though much improved over) Windows look, you need to follow coffeedrinker's instructions to enable the bytecode interpreter and then install the M$ fonts.
When you compile FreeType, make sure you pass --prefix=/usr to ./configure (e.g. ./configure --prefix=/usr) to make sure that FreeType overwrites the old FreeType libraries, otherwise some applications get themselves in a muddle.
You can also redefine the default fonts in ~/.fonts.conf (you may still need to edit .gtkrc though) - especially useful if you want to redefine the default sans-serif, serif and monospace fonts.
e.g.
Code:
<!-- Make the default sans-serif font Arial -->
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>sans-serif</string>
</test>
<edit mode="assign" name="family" >
<string>Arial</string>
</edit>
</match>
It worked! Thank you guys! I'm writing this posting using beautiful, clear M$-like fonts! I really appreciate your help!!!, Now I know what this is all about.
So, just a brief note about how to use the information from this thread to get the good fonts in Slack.
1. Set your dpi to 96x96 (posted by tuvok and egag)
2. Compile newest FreeType with TT_CONFIG_OPTION_BYTECODE_INTERPRETER (posted by coffeedrinker)
3. Install MS TrueType fonts (posted by coffeedrinker)
3. Set up fonts.conf (posted by coffeedrinker/cathetic)
4. Add settings to ~/.gtkrc and ~/.gtkrc-2.0 (posted by coffeedrinker)
5. If you have LCD Display - set the proper subpixel hinting options (posted by cathetic)
All you need is to read CAREFULLY what has been written in above posts and follow the instructions.
If you want to make your changes system wide, you can also copy your ~/.fonts.conf to /etc/fonts/local.conf (don't worry if it doesn't exist, Slackware just doesn't create it by default).
Originally posted by krizzz So, just a brief note about how to use the information from this thread to get the good fonts in Slack.
1. Set your dpi to 96x96 (posted by tuvok and egag)
2. Compile newest FreeType with TT_CONFIG_OPTION_BYTECODE_INTERPRETER (posted by coffeedrinker)
3. Install MS TrueType fonts (posted by coffeedrinker)
3. Set up fonts.conf (posted by coffeedrinker/cathetic)
4. Add settings to ~/.gtkrc and ~/.gtkrc-2.0 (posted by coffeedrinker)
5. If you have LCD Display - set the proper subpixel hinting options (posted by cathetic)
All you need is to read CAREFULLY what has been written in above posts and follow the instructions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.