Annotation of wikisrc/tutorials/how_to_use_ttf_fonts_in_xterm.mdwn, revision 1.3

1.2       schmonz     1: **Contents**
                      2: 
                      3: [[!toc]]
                      4: 
                      5: #  Introduction
                      6: 
1.3     ! sevan       7: The purpose of this document is to guide you on how to make xterm use a [truetype](http://en.wikipedia.org/wiki/TrueType) font. 
1.2       schmonz     8: 
                      9: #  freetype support
                     10: 
1.3     ! sevan      11: First you need to compile xterm with [freetype](http://en.wikipedia.org/wiki/FreeType) support. Assuming your pkgsrc is located in `/usr/pkgsrc`, you may write: 
1.2       schmonz    12:     
1.3     ! sevan      13:     # cd /usr/pkgsrc/x11/xterm
1.2       schmonz    14:     # make PKG_OPTIONS.xterm=freetype
                     15:     # make install
                     16:     
                     17: 
                     18: Note: If you want to compile every application with freetype enabled, provided it has support for it, add `PKG_DEFAULT_OPTIONS+=freetype` in your `/etc/mk.conf` file. 
                     19: 
                     20: #  Choose font
                     21: 
                     22: First pick a font you like, from this list: 
                     23:     
                     24:     $ fc-list | col | sort | less
                     25:     
                     26: 
1.3     ! sevan      27: Note: A nice font set is [Liberation](http://en.wikipedia.org/wiki/Liberation_fonts). It can be found in `fonts/liberation-ttf`. 
1.2       schmonz    28: 
                     29: #  Run xterm
                     30: 
                     31: Then type: 
                     32:     
                     33:     xterm -fa 'Liberation Mono' -fs 10
                     34:     
                     35: 
                     36: #  ~/.Xdefaults file
                     37: 
                     38: If you want xterm to use these font settings by default, you may add the following lines in your `~/.Xdefaults` file: 
                     39:     
                     40:     XTerm*faceName: Liberation Mono
                     41:     XTerm*faceSize: 10
                     42:     
                     43: 
                     44: #  Credits
                     45: 
                     46: This articled is based on a post in the [BSD nexus forum](http://forums.bsdnexus.com/viewtopic.php?pid=15728). 

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb