summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/substitutefont/README
blob: 64ff715c3896b5f805bdf2253b14f2a8054cbde5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Combine font families
*********************

:Date:      Last revised 2012-04-30
:Copyright: © 2011 Günter Milde <milde@users.sf.net>
:Contributor: Special thanks to Ulrike Fischer who provided
              the indirect definition with active ``\nfss@catcodes``.
:Licence:   This work may be distributed and/or modified under the
            conditions of the `LaTeX Project Public License`_,
            either version 1.3 of this license or (at your option)
            any later version.

.. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt

Many free fonts are extensions of a basic font family with new glyphs
or shapes. Sometimes they are given a new name due to license reasons
or the creators preference. 

The `substitutefont` package facilitates the task to set up a font
family as substitute for another one in a specified font encoding.

Example:
  Use the `txtt` font family from txfonts_ instead of CM for
  monospaced text (enables monospaced-bold as well as
  monospaced-italic)::
   
    \usepackage{substitutefont}
    \substitutefont{T1}{txtt}{cmtt}

Source
  `<substitutefont.sty>`_, `<substitutefont.sty.xhtml>`__

_`Tests`
  * CB-Fonts for Greek text in a document using Times/Helvetica/Courier:
    `<test-greek.tex>`__, `<test-greek.pdf>`__
  * TeX-Gyre with Cyrillic from the once included `Freefonts`:
    `<test-cyrillic.tex>`__, `<test-cyrillic.pdf>`__
  * Monospaced text in many variants with txtt:         
    `<test-txtt.tex>`__, `<test-txtt.pdf>`__

References:

  `LaTeX2e font selection
  <http://mirror.ctan.org/macros/latex/doc/fntguide.pdf>`_
  
  `LaTeX font encodings
  <http://mirror.ctan.org/macros/latex/doc/encguide.pdf>`_
  
  .. _txfonts: http://mirror.ctan.org/help/Catalogue/entries/txfonts.html