Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Save the Children

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 208 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

setfont



SYNOPSIS

       setfont [-O font+umap.orig] [-o font.orig] [-om cmap.orig]
       [-ou umap.orig] [-N] [font.new ...]  [-m cmap]  [-u  umap]
       [-hH] [-v] [-V]


DESCRIPTION

       The  setfont  command  reads a font from the file font.new
       and loads it into the  EGA/VGA  character  generator,  and
       optionally  outputs  the  previous font.  It can also load
       various mapping tables and output the previous versions.

       If no args are given (or only the option -N for some  num­
       ber  N),  then a default (8xN) font is loaded (see below).
       One may give several small fonts, all containing a Unicode
       table,  and  setfont will combine them and load the union.
       Typical use:

       setfont
              Load a default font.

       setfont drdos8x16
              Load a given font (here the 448-glyph drdos  font).

       setfont cybercafe -u cybercafe
              Load  a given font that does not have a Unicode map
              and provide one explicitly.

       setfont LatArCyrHeb-19 -m 8859-2
              Load a given font (here a 512-glyph font  combining
              several  character  sets)  and  indicate that one's
              local character set is ISO 8859-2.


FONT FORMATS

       The standard Linux font format is the PSF font.  It has  a
       header  describing  font  properties  like character size,
       followed by the glyph bitmaps, optionally  followed  by  a
       Unicode  mapping  table  giving the Unicode value for each
       glyph.  Several other (obsolete) font formats  are  recog­
       nized.   If  the input file has code page format (probably
       with suffix .cp), containing three fonts with  sizes  e.g.
       8x8,  8x14  and 8x16, then one of the options -8 or -14 or
       -16 must be used to select one.  Raw font files are binary
       files  of size 256*N bytes, containing bit images for each
       of 256 characters, one byte per scan line, and N bytes per
       character  (0  <  N  <= 32).  Most fonts have a width of 8
       bits, but with the framebuffer device  (fb)  other  widths
       can be used.


FONT HEIGHT

       The program setfont has no built-in knowledge of VGA video
       converts that to Unicode (ucs2).  Otherwise, a translation
       table is used from the 8-bit program output to 16-bit Uni­
       code values. Such a translation table is called a  Unicode
       console map.  There are four of them: three built into the
       kernel, the fourth settable using the -m  option  of  set­
       font.   An  escape  sequence  chooses  between  these four
       tables; after loading a  cmap,  setfont  will  output  the
       escape  sequence Esc ( K that makes it the active transla­
       tion.

       Suitable arguments for  the  -m  option  are  for  example
       8859-1, 8859-2, ..., 8859-15, cp437, ..., cp1250.

       Given the Unicode value of the symbol to be displayed, the
       kernel finds the right glyph in the font using the Unicode
       mapping info of the font and displays it.

       Old  fonts  do not have Unicode mapping info, and in order
       to handle them there are direct-to-font maps (also  loaded
       using  -m)  that  give a correspondence between user bytes
       and font positions.  The most common correspondence is the
       one  given in the file trivial (where user byte values are
       used directly as font positions).   Other  correspondences
       are  sometimes  preferable  since  the  PC  video hardware
       expects line drawing characters in certain font positions.

       Giving a -m none argument inhibits the loading and activa­
       tion of a mapping table.  The previous console map can  be
       saved  to a file using the -om file option.  These options
       of setfont render mapscrn(8) obsolete. (However, it may be
       useful to read that man page.)


UNICODE FONT MAPS

       The correspondence between the glyphs in the font and Uni­
       code values is described by a Unicode mapping table.  Many
       fonts  have  a  Unicode mapping table included in the font
       file, and an explicit table can be indicated using the  -u
       option.  The program setfont will load such a Unicode map­
       ping table, unless a -u none argument is given. The previ­
       ous  Unicode  mapping  table  will be saved as part of the
       saved font file when the -O option  is  used.  It  can  be
       saved to a separate file using the -ou file option.  These
       options of setfont render loadunimap(8) obsolete.

       The Unicode mapping table should assign some glyph to  the
       `missing  character' value U+fffd, otherwise missing char­
       acters are not translated, giving a usually very confusing
       result.

       Usually  no mapping table is needed, and a Unicode mapping
       table is already contained in the font (sometimes this  is
       -o file
              Save previous font in file.

       -O file
              Save previous font and Unicode map in file.

       -om file
              Store console map in file.

       -ou file
              Save previous Unicode map in file.

       -u file
              Load Unicode table describing the font from file.

       -v     Be verbose.

       -V     Print version and exit.


FILES

       /usr/share/kbd/consolefonts is the default font directory.
       /usr/share/kbd/unimaps is the default directory  for  Uni­
       code  maps.   /usr/share/kbd/consoletrans  is  the default
       directory for screen mappings.  The default font is a file
       default (or default8xN if the -N option was given for some
       number N) perhaps with suitable extension (like .psf).


SEE ALSO

       psfaddtable(1), unicode_start(1), loadunimap(8), utf-8(7),
       mapscrn(8)

                           11 Feb 2001                 SETFONT(8)
  
Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.


Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds