DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st May 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default 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.)
Attached Images
File Type: png liberation.png (18.9 KB, 309 views)
__________________
Kill your t.v.

Last edited by anomie; 21st May 2008 at 01:55 AM.
Reply With Quote
  #2   (View Single Post)  
Old 21st May 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

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>
I also have similar settings in ~/.Xdeafults
Code:
Xft.antialias:           true
Xft.hinting:             true
Xft.hintstyle:           3
Xft.dpi:                 75
Attached Images
File Type: png vermaden-2008.05.21-08.18.14.png (8.5 KB, 205 views)
__________________
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
Reply With Quote
  #3   (View Single Post)  
Old 21st May 2008
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 427
Default

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 :-)
Reply With Quote
  #4   (View Single Post)  
Old 21st May 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

Thanks for the tips, guys. I'm very much a fonts novice, but I can discern between "hey, that looks like garbage" and "hey, that looks pretty nice".

I'll try out the suggestions when I get back to my laptop.
__________________
Kill your t.v.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 04:40 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick