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

1.2     ! schmonz     1: **Contents**
        !             2: 
        !             3: [[!toc]]
        !             4: 
        !             5: #  Introduction
        !             6: 
        !             7: The purpose of this document is to guide you on how to make xterm use a [truetype][10] font. 
        !             8: 
        !             9:    [10]: http://en.wikipedia.org/wiki/TrueType (http://en.wikipedia.org/wiki/TrueType)
        !            10: 
        !            11: #  freetype support
        !            12: 
        !            13: First you need to compile xterm with [freetype][11] support. Assuming your pkgsrc is located in `/usr/pkgsrc`, you may write: 
        !            14:     
        !            15:        [11]: http://en.wikipedia.org/wiki/FreeType (http://en.wikipedia.org/wiki/FreeType)
        !            16: 
        !            17: # cd /usr/pkgsrc/x11/xterm
        !            18:     # make PKG_OPTIONS.xterm=freetype
        !            19:     # make install
        !            20:     
        !            21: 
        !            22: 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. 
        !            23: 
        !            24: #  Choose font
        !            25: 
        !            26: First pick a font you like, from this list: 
        !            27:     
        !            28:     $ fc-list | col | sort | less
        !            29:     
        !            30: 
        !            31: Note: A nice font set is [Liberation][12]. It can be found in `fonts/liberation-ttf`. 
        !            32: 
        !            33:    [12]: http://en.wikipedia.org/wiki/Liberation_fonts (http://en.wikipedia.org/wiki/Liberation_fonts)
        !            34: 
        !            35: #  Run xterm
        !            36: 
        !            37: Then type: 
        !            38:     
        !            39:     xterm -fa 'Liberation Mono' -fs 10
        !            40:     
        !            41: 
        !            42: #  ~/.Xdefaults file
        !            43: 
        !            44: If you want xterm to use these font settings by default, you may add the following lines in your `~/.Xdefaults` file: 
        !            45:     
        !            46:     XTerm*faceName: Liberation Mono
        !            47:     XTerm*faceSize: 10
        !            48:     
        !            49: 
        !            50: #  Screenshots
        !            51: 
        !            52: ![](/images/Xterm-ttf.jpeg)  
        !            53: 
        !            54: Liberation TTF 
        !            55: 
        !            56: #  Credits
        !            57: 
        !            58: 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