|
NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
||||
NetBSD: pretty fonts
I've finally gotten my NetBSD 4.0 laptop set up with a font situation that I am satisfied with -- I thought the solution would be worth sharing. This may be a no-brainer to some of you; but hopefully new NetBSD users will find it useful.
Installing Red Hat's Liberation fonts from pkgsrc has transformed my firefox web browsing from a hideous, semi-legible mess to a rather pleasant experience. If you'd like to set this up as well, simply follow the steps here: http://www.netbsd.org/docs/x/#anti_aliased Except instead of using fonts/ms-ttf, of course, use fonts/liberation-ttf. I've attached a preview screenshot with a cropped post excerpt from our favorite forum. (I wish I had taken a 'before' photo. It looked terrible.)
__________________
Kill your t.v. Last edited by anomie; 21st May 2008 at 01:55 AM. |
|
||||
I use my ~/.fonts.conf to make sure that font renderring will be good no matter what fonts are installed (in fact that does not matter, thing that matters here the most is FONT HINTING) which is also not perfect on your screenshot mate.
Code:
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- antialias all fonts --> <match target="font"> <edit name="antialias" mode="assign"><bool>true</bool></edit> <edit name="hinting" mode="assign"><bool>true</bool></edit> <edit name="hintstyle" mode="assign"><int>2</int></edit> <edit name="dpi" mode="assign"><double>75</double></edit> </match> <!-- replace these with a better-looking font --> <match target="pattern" name="family"> <test name="family" qual="any"> <string>Courier</string> </test> <edit name="family" mode="assign"> <string>monofur</string> </edit> </match> <!-- replace these with a better-looking font --> <match target="pattern" name="family"> <test name="family" qual="any"> <string>lucida</string> <string>arial</string> <string>helvetica</string> <string>luxi sans</string> </test> <edit name="family" mode="assign"> <string>tahoma</string> </edit> </match> <!-- replace these with a better-looking font --> <match target="pattern" name="family"> <test name="family" qual="any"> <string>luxi serif</string> <string>times new roman</string> <string>times</string> </test> <edit name="family" mode="assign"> <string>serif</string> </edit> </match> <!-- disable antialias for TAHOMA:10 (looks like on windows) --> <match target="font"> <test name="family" qual="any"><string>verdana</string></test> <test name="weight" compare="less_eq"><const>medium</const></test> <test name="slant" compare="less_eq"><int>0</int></test> <test name="pixelsize" compare="less" qual="any"><double>11</double></test> <test name="pixelsize" compare="more" qual="any"><double> 9</double></test> <edit mode="assign_replace" name="antialias"> <bool>false</bool> </edit> </match> </fontconfig> Code:
Xft.antialias: true Xft.hinting: true Xft.hintstyle: 3 Xft.dpi: 75
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
||||
To get the best results you have to recompile freetype2, because maybe the truetype byteencoder is disabled due patents. Furthermore you have to enable (at least in FreeBSD), WITH_LCD_FILTERING to get the best results on LCD screens.
http://www.freetype.org/patents.html You have to do this in most Linux distros (it's enabled per default in FreeBSD).
__________________
use UNIX or die :-) |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Questions about Termianl Fonts and some apps Configurations | qmemo | OpenBSD General | 1 | 9th June 2009 06:47 PM |
Console Fonts | JMJ_coder | General software and network | 6 | 10th September 2008 09:57 PM |
Tightvnc startup script not loading fonts - permission denied | master-richie | FreeBSD Ports and Packages | 2 | 3rd August 2008 09:29 PM |
ImageMagick 6.3.6.10 on OpenBSD 4.3 ... ghostscript and fonts... | superslot | OpenBSD Packages and Ports | 9 | 28th July 2008 09:36 AM |