View Full Version : Anti-aliased fonts config file
Charles
07-14-2005, 12:20 AM
I was gonna edit the following file to configure anti-aliasing properly:
/usr/X11R6/etc/fonts/local.conf
But then I said "What if I asked on the PC-BSD forum?!" :lol:
Has some one tweaked this config file properly with the webfonts?
Basically, I want all serif fonts to be anti-aliased, large sans-serif fonts too, but I want normal and small sans-serif fonts to be aliased, as well as monospace fonts.
If no one has done it yet, I'll look into it :roll:
kmoore134
07-14-2005, 02:35 AM
I haven't looked into the AA too closely yet either.. If somebody has the steps or knows how to quickly enable AA, please let me know, i'll see about getting done here!
Charles
07-14-2005, 12:02 PM
Kris, you're back?! I thought you'd leave the forum, good to know you didn't abandonned us! :lol:
Look, yesterday I edited this config file, and it's not complicated. The first time, there was probably an XML synthax error because when I restarted X, the fonts were ugly, then I fixed it and it got better. I still have to add rules for individual fonts. It won't take much time.
Other than that, I found out that on individual apps, after installation, the pbi will have to figure out a way to edit the config file of the fonts specifically to the application, for instance in Opera, I had to edit its config file to choose a different default font and to make it bigger because it was almost unreadable.
Is there a way to create a pbi file with an embedded script that opens the config file of the application, and changes several values automatically? :roll:
sblevin
07-14-2005, 01:03 PM
Is there a way to create a pbi file with an embedded script that opens the config file of the application, and changes several values automatically? :roll:
I believe there are a few ways to do that. The nVidia PBI for example invokes a script to remove lines from files if they exist, and you can grep and and cat and echo and all sorts of tricks to add stuff .... but ...
****FANTASY ALERT! FANTASY ALERT!****
(You can stop reading here)
Either these programs should deal with their own requirements seperately, or, preferably, we should have a tool that can read standard configuration files, and display the contents graphically not as .xml in a text editor, but in a program that understands then and lets you edit them via dialogs and drop downs etc.
This cant happen though unless PC-BSD does the Mac thing and takes absolute control over what happens at lower system levels. I imagine this would mean:
Breaking the ports/packages system deliberately to stop extraneous alterations to known system config files.
Having a dev team able to update such a utility/utilities with a very rapid response time to allow system upgrades to occur
Develop psychopathy and start throwing pot plants at people
Spend more on advertising than development
Fill up the website with fake pictures of 'real' people syaing stuff like "I was to stupid to use a computer, so I got a Mac - I'm still stupid, but now I can lie on a website and say I'm a system admin"
Basically, creating a totally branched and seperate operating system. This would be easy to do if you can loan me about 20 million dollars : ) We work cheap in Australia.
....... Ohhhh, we would also have to bang up some silly cases that look like lamps or ballons or lollypops or pug dog puppies : )
antik
07-14-2005, 02:41 PM
I was gonna edit the following file to configure anti-aliasing properly:
/usr/X11R6/etc/fonts/local.conf
But then I said "What if I asked on the PC-BSD forum?!" :lol:
Has some one tweaked this config file properly with the webfonts?
Basically, I want all serif fonts to be anti-aliased, large sans-serif fonts too, but I want normal and small sans-serif fonts to be aliased, as well as monospace fonts.
If no one has done it yet, I'll look into it :roll:
my file:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<test qual="all" name="rgba">
<const>unknown</const>
</test>
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
</match>
<match target="font">
<test name="size" compare="less">
<double>3</double>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="pixelsize" compare="less" qual="any">
<double>6</double>
</test>
<edit mode="assign" name="antialias">
<bool>false</bool>
</edit>
</match>
<match target="pattern" name="family">
<test qual="any" name="family">
<string>fixed</string>
</test>
<edit name="family" mode="assign">
<string>mono</string>
</edit>
</match>
<match target="pattern" name="family">
<test qual="any" name="family">
<string>console</string>
</test>
<edit name="family" mode="assign">
<string>mono</string>
</edit>
</match>
<match target="pattern" name="family">
<test qual="any" name="family">
<string>mono</string>
</test>
<edit name="spacing" mode="assign">
<int>100</int>
</edit>
</match>
<match target="pattern" name="family">
<test qual="any" name="family">
<string>Helvetica</string>
</test>
<edit name="family" mode="assign">
<string>sans-serif</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Bitstream Vera Sans</string>
</test>
<edit name="family" mode="assign">
<string>Verdana</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Helvetica</string>
</test>
<edit name="family" mode="assign">
<string>Arial</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>Palatino</string>
</test>
<edit name="family" mode="assign">
<string>Georgia</string>
</edit>
</match>
</fontconfig>
fonts.cache-1
"local" 0 ".dir"
"bitstream-vera" 0 ".dir"
"encodings" 0 ".dir"
"TTF" 0 ".dir"
"util" 0 ".dir"
"100dpi" 0 ".dir"
"75dpi" 0 ".dir"
"cyrillic" 0 ".dir"
"misc" 0 ".dir"
"Type1" 0 ".dir"
"CID" 0 ".dir"
"PEX" 0 ".dir"
"Speedo" 0 ".dir"
"freefont" 0 ".dir"
"jmk" 0 ".dir"
"latin2" 0 ".dir"
"urwfonts-ttf" 0 ".dir"
"webfonts" 0 ".dir"
"URW" 0 ".dir"
"windoza" 0 ".dir"
Charles
07-14-2005, 09:58 PM
Thank you! Actually your config file is pretty good :)
I think I can re-vamp it a little bit. Do you know the exact synthax to alias verdana for 12px and below?
Charles
07-15-2005, 12:04 PM
Also, do you know if there is a file that I can edit to change default fonts in KDE applications overall?
Also, do you know if there is a file that I can edit to change default fonts in KDE applications overall?
kdeglobalsrc
Also, do you know if there is a file that I can edit to change default fonts in KDE applications overall?
KDE Kontrol Center?
Charles
07-15-2005, 09:49 PM
Also, do you know if there is a file that I can edit to change default fonts in KDE applications overall?
kdeglobalsrc
Where is this file located?
Also, do you know if there is a file that I can edit to change default fonts in KDE applications overall?
kdeglobalsrc
Where is this file located?
sorry kdeglobals
/home/(username)/.kde/share/config/kdeglobals
You know guys this might be unrelated but if you copy all of your Windows fonts to your PCBSD system, you set KDE to use Tahoma size 10 (equivelent to size 8 in Windows), and then turn ANTI-aliasing OFF, restart KDE, your fonts will look exactly (literally) the same as in Windows. Even web pages displayed with Konqueror. Try it out, feels like using Windows, pages all displayed with proper fonts etc but you must restart KDE in order for changes to take effect properly.
Charles
10-16-2005, 04:23 AM
I have achieved some interesting things tweaking fonts settings. Antik, where did you learn the synthax of the XML file located at: /usr/X11R6/etc/fonts/local.conf :?:
The X.org site doesn't seem to have a manual section :?
Charles
10-16-2005, 04:55 AM
Ok, that's great, I just found it (http://www.freebsd.org/cgi/man.cgi?query=fontconfig&sektion=3&apropos=0&manpath=XFree86+4.5.0) :wink:
antik
11-02-2005, 08:26 PM
Ok, that's great, I just found it (http://www.freebsd.org/cgi/man.cgi?query=fontconfig&sektion=3&apropos=0&manpath=XFree86+4.5.0) :wink:
The standard X11 distribution comes with a set of bitmapped fonts. Unfortunately, the standard setup allows the XServer to scale these fonts. As scaled bitmap fonts look really ugly, the first thing to do is to tell the XServer not to scale these fonts. This can be done, by editing the XF86Config file.
Replace all font path entries pointing to directories containing bitmapped fonts as for example:
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
by
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
Like this you'll never again see ugly scaled bitmapped fonts on your screen.
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.