Difference between revisions of "Fonts - Old Content"

From Wiki
Jump to navigation Jump to search
m (Reverted edit of 209.123.8.145, changed back to last version by Hraban)
Line 1: Line 1:
 
< [[Visuals]] | [[Symbols]] >
 
< [[Visuals]] | [[Symbols]] >
  
Font handling in ConTeXt is
+
Font handling in ConTeXt is &ldquo;strange&rdquo; for LaTeX users. It's a system of abstraction and aliases, complex and mighty&nbsp;&hellip; But there's help:
 +
 
 +
* '''The ConTeXt way of using fonts are [[TypeScripts]].'''
 +
* [http://www.pragma-ade.com/general/manuals/mtexfont.pdf font installation with texfont] by Pragma
 +
* [http://www.pragma-ade.com/general/manuals/mfonts.pdf ConTeXt's font mechanism in detail] by Pragma
 +
* [http://www.pragma-ade.com/general/manuals/mmakempy.pdf making outlines] by Pragma
 +
* [http://pragma-ade.nl/fonttest.pdf Here] you can try out several TeX fonts online (PDF interface!)
 +
* Troubleshooting: solving [[TeXfont]] problems.
 +
* Character [[Protrusion]] (also known as hanging or font handling) is a more subtle typographic effect.
 +
* [[Font Handling Internals]]
 +
* [http://homepage.mac.com/atl/tex/  Adam Lindsay's page] focuses on typography (OpenType, Unicode etc.), esp. on MacOS X
 +
* [http://home.salamander.com/~wmcclain/context-help.html Bill McClain's ConTeXt beginners page] has also a lot about fonts
 +
* [http://tug.org/pracjourn/2005-2/schmitz/schmitz.pdf Integrating TrueType Fonts into ConTeXt] by Thomas A. Schmitz (PracTeX Journal)
 +
* [[Installing a TrueType font, step by step]]. If you just need to install a TrueType font, this may be what you are looking for.
 +
* [http://dl.contextgarden.net/myway/expertfonts.pdf Installing Expert Fonts: Minion Pro] by Idris Samawi Hamid; contains step-by-step instructions, from preinstallation to writing typescripts
 +
* [[Pseudo Small Caps]] by Vit Zyka
 +
* Matt Gushee's introduction to [http://havenrock.com/textips/bookfonts.html virtual fonts], especially for getting expert fonts to work.
 +
* [[URW Garamond]]
 +
 
 +
=Basic Hints=
 +
 
 +
''Some hints by Taco from the mailing list on 2005-11-20:''
 +
 
 +
Q: How up to date or out of date is the information in [http://www.pragma-ade.com/general/manuals/mfonts.pdf mfonts manual]?
 +
 
 +
A: It looks like it is still quite up-to-date, but some of the examples it gives may no longer be the very best and latest way of doing things, and possibly there are some new developments that do not get as much attention as desired (like [http://www.pragma-ade.com/general/manuals/mtexfont.pdf texfont], and the issues arising from font map files). Overall, the document appears accurate, though.
 +
 
 +
An important thing to remember is this:
 +
 
 +
'''ConTeXt does not share font metric conventions with LaTeX.'''
 +
 
 +
(at one point it started doing so, like supporting the ''Karl Berry naming scheme'' and the ''PSNFSS'' style font family names, but that has since been abandoned).
 +
 
 +
Another important thing is that it also does not share font map files with LaTeX and, specifically,
 +
 
 +
'''ConTeXt does not make pdfetex read <tt>pdftex.map</tt>.'''
 +
 
 +
(this is at the root of a great many problems reported by users only familiar with PSNFSS)
 +
 
 +
The preferred format for metric files in ConTeXt is
 +
 
 +
<tt><vendor>/<familyname>/<encoding>-<fontname>.tfm</tt>
 +
 
 +
for metrics and
 +
 
 +
<tt><encoding>-<vendor>-<familyname>.map</tt>
 +
 
 +
for the mapping files.
 +
 
 +
*  <fontname> is usually derived from the font source (afm or ttf),
 +
*  <encoding> is a 'controlled' list, (see [[Encodings and Regimes]])
 +
*  <vendor> and <familyname> are user-supplied (at install time).
 +
 
 +
There are ways to trick ConTeXt into using different conventions, but if you do that you are likely to run into trouble.
 +
 
 +
=Configuration=
 +
* Using [[psnfss]] metrics in ConTeXt
 +
* Matt Gushee about [http://havenrock.com/textips/bookfonts.html virtual fonts]
 +
* Fonts rely on [[Encodings and Regimes]], and it helps to know what happens underneath the hood, from time to time.
 +
* In newer distributions, map files belong in <tt>&hellip;/fonts/map/pdftex/context</tt>!
 +
* Don't forget to look at  [[cont-sys.tex]]!
 +
 
 +
= Available Free Fonts =
 +
* [http://www.math.uiuc.edu/~hartke/computer/latex/survey/survey.html Free Math Fonts] : overview of different free Math fonts; [http://www.math.uiuc.edu/~hartke/computer/latex/freefonts.php links to other free fonts]
 +
* [http://greekfontsociety.org/ GFS Didot] : Latin, full set of polytonik Greek, small caps, oldstyle figures, full f-ligatures ([http://modules.contextgarden.net/gfsdidot Module for ConTeXt])
 +
* [http://www.janusz.nowacki.strefa.pl/kurier.html Foto Alfa] : some TeX related fonts from Poland (Antykwa Toruńska. Antykwa Półtawskiego, Kurier, Iwona...)
 +
* [http://linuxlibertine.sourceforge.net Libertine Open Fonts Project] : a not really beautiful serif family
 +
* [http://scripts.sil.org SIL International] : great Unicode fonts for scholars by SIL (Gentium, Doulos, Charis, etc.)
 +
* [http://ist-socrates.berkeley.edu/~pinax/greekkeys/GreekKeys.html GreekKeys] : links to polytonic Greek fonts
 +
* [http://scholarsfonts.net Scholar's Fonts] : Font for Scholars (Latin, Germanic languages, Greek, Hebrew and Linguistics)
 +
* [http://www.engl.virginia.edu/OE/junicode/junicode.html Junicode] : Junius-Unicode, a font for medievalists
 +
* [http://www.freelang.net/fonts/index.html FreeLang fonts] : fonts for exotic languages
 +
* [http://www.blambot.com Blambot] : Comic fonts
 +
* [http://www.chank.com/freefonts.php Chank] : some free Chank fonts
 +
* [http://www.fontface.com/fonts/ FontFace] : free fonts
 +
* [http://www.dafont.com DaFont] : more free fonts
 +
* [http://fonts.tom7.com/fonts98.html Divide by Zero] : more fonts
 +
* [http://moorstation.org/typoasis/typoasis1.htm TypOasis] : lots of nice fonts, but a bit hard to find (have a look at designers Apostrophic Lab, Manfred Klein and Dieter Steffmann)
 +
* [http://kadyellebee.com/fonts/ Kristine's Font Organization] : find a font in a sorted directory
 +
* [http://www.fontlover.com FontLover] : font news portal site
 +
* ''... many more to be added ...''
 +
 
 +
=Hints by Language=
 +
* general: [[Encodings and Regimes]]
 +
* [[Arabian and Hebrew]] (Idris? other ArabTeX specialists?)
 +
* [[Chinese]]
 +
* [[Greek]]
 +
* [[Russian]]
 +
* [[Vietnamese]]
 +
 
 +
[[Category:Fonts]]

Revision as of 10:47, 8 March 2006

< Visuals | Symbols >

Font handling in ConTeXt is “strange” for LaTeX users. It's a system of abstraction and aliases, complex and mighty … But there's help:

Basic Hints

Some hints by Taco from the mailing list on 2005-11-20:

Q: How up to date or out of date is the information in mfonts manual?

A: It looks like it is still quite up-to-date, but some of the examples it gives may no longer be the very best and latest way of doing things, and possibly there are some new developments that do not get as much attention as desired (like texfont, and the issues arising from font map files). Overall, the document appears accurate, though.

An important thing to remember is this:

ConTeXt does not share font metric conventions with LaTeX.

(at one point it started doing so, like supporting the Karl Berry naming scheme and the PSNFSS style font family names, but that has since been abandoned).

Another important thing is that it also does not share font map files with LaTeX and, specifically,

ConTeXt does not make pdfetex read pdftex.map.

(this is at the root of a great many problems reported by users only familiar with PSNFSS)

The preferred format for metric files in ConTeXt is

<vendor>/<familyname>/<encoding>-<fontname>.tfm

for metrics and

<encoding>-<vendor>-<familyname>.map

for the mapping files.

  • <fontname> is usually derived from the font source (afm or ttf),
  • <encoding> is a 'controlled' list, (see Encodings and Regimes)
  • <vendor> and <familyname> are user-supplied (at install time).

There are ways to trick ConTeXt into using different conventions, but if you do that you are likely to run into trouble.

Configuration

  • Using psnfss metrics in ConTeXt
  • Matt Gushee about virtual fonts
  • Fonts rely on Encodings and Regimes, and it helps to know what happens underneath the hood, from time to time.
  • In newer distributions, map files belong in …/fonts/map/pdftex/context!
  • Don't forget to look at cont-sys.tex!

Available Free Fonts

Hints by Language