File:  [NetBSD Developer Wiki] / wikisrc / tutorials / x11 / how_to_use_ttf_fonts_in_xterm.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Wed Mar 31 06:59:10 2021 UTC (8 months, 1 week ago) by nia
Branches: MAIN
CVS tags: HEAD
move some things to the x11 category

    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](http://en.wikipedia.org/wiki/TrueType) font. 
    8: 
    9: #  Choose font
   10: 
   11: First pick a font you like, from this list: 
   12:     
   13:     $ fc-list | col | sort | less
   14:     
   15: 
   16: Note: A nice font set is [Liberation](http://en.wikipedia.org/wiki/Liberation_fonts). It can be found in `fonts/liberation-ttf`. 
   17: 
   18: #  Run xterm
   19: 
   20: Then type: 
   21:     
   22:     xterm -fa 'Liberation Mono' -fs 10
   23:     
   24: 
   25: #  ~/.Xdefaults file
   26: 
   27: If you want xterm to use these font settings by default, you may add the following lines in your `~/.Xdefaults` file: 
   28:     
   29:     XTerm*faceName: Liberation Mono
   30:     XTerm*faceSize: 10
   31:     
   32: 
   33: #  Credits
   34: 
   35: 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