Difference between revisions of "Fonts - Old Content"

From Wiki
Jump to navigation Jump to search
(Updated link for Junicode)
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
< [[Visuals]] | [[Symbols]] >
 
< [[Visuals]] | [[Symbols]] >
 
= Where to find fonts =
 
 
== Available Free Fonts ==
 
* [http://ctan.tug.org/tex-archive/info/Free_Math_Font_Survey/survey.html Free Math Fonts] : overview of different free Math fonts; [http://www.geocities.com/hartke01/ links to other free fonts]
 
* [http://greekfontsociety.gr/ GFS Didot] : Latin, full set of polytonik Greek, small caps, oldstyle figures, full f-ligatures ([http://modules.contextgarden.net/gfsdidot Module for ConTeXt])
 
* [[TeX Gyre]] : a set of great text fonts by our GUST friends, based on URW's free PostScript standard fonts for GhostScript.
 
* [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]: GPL/OFL serif font [[Linux Libertine on mkiv|sample]]
 
* [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
 
* [http://www.stormtype.com/typefaces-fonts-shop/free.php Lido] : OpenType and TrueType typeface by Storm Type Foundry, free for non-commercial use. [http://modules.contextgarden.net/stormfontsupport Support].
 
* [http://www.alanwood.net/unicode/fontsbyrange.html Alan Wood’s Unicode Resources] : find fonts by Unicode character range
 
* [http://www.josbuivenga.demon.nl/ exljbris] Free Quality Font Foundry by Jos Buivenga
 
* [http://www.stixfonts.org/ STIX Fonts] Beta download of the STIX-Fonts
 
* [http://www.fontsquirrel.com/ Font Squirrel] Handpicked free fonts for graphic designers with commercial-use licenses
 
* [http://www.theleagueofmoveabletype.com/ The league of Moveable Type] : a collection of open source fonts
 
* [http://www.1stwebdesigner.com/resources/65-popular-and-professional-free-fonts-for-creative-typography/ 65 Popular And Professional Free Fonts For Creative Typography] and [http://www.1stwebdesigner.com/resources/52-really-high-quality-free-fonts-for-modern-and-cool-design/ 52 Really High Quality Free Fonts For Modern And Cool Design]
 
* ''... many more to be added ...''
 
 
 
= How to use fonts in ConTeXt =
 
= How to use fonts in ConTeXt =
 
'''The ConTeXt way of handling fonts are [[TypeScripts]].''' It’s a system of abstraction and aliases, which may seem “strange” at first for new users of ConTeXt.
 
'''The ConTeXt way of handling fonts are [[TypeScripts]].''' It’s a system of abstraction and aliases, which may seem “strange” at first for new users of ConTeXt.
 +
* If it fits your needs, consider first to use the former [[Simplefonts]] module, now in the core as {{src|font-sel.mkvi}}.
 
* There is now a [http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf manual chapter on fonts].
 
* There is now a [http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf manual chapter on fonts].
 
* If you happen to use [[XeTeX]] then you can forget almost all the magic and start using your system fonts (see [[Fonts_in_XeTeX]]).
 
* If you happen to use [[XeTeX]] then you can forget almost all the magic and start using your system fonts (see [[Fonts_in_XeTeX]]).
Line 89: Line 59:
 
Another important thing is that it also does not share font map files with LaTeX and, specifically,
 
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>.'''
+
'''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)
 
(this is at the root of a great many problems reported by users only familiar with PSNFSS)
Line 111: Line 81:
 
== Hints by Language ==
 
== Hints by Language ==
 
* general: [[Encodings and Regimes]]
 
* general: [[Encodings and Regimes]]
* [[Arabic and Hebrew]] (Idris? other ArabTeX specialists?)
+
* [[Arabic and Hebrew]]
 
* [[Chinese]]
 
* [[Chinese]]
 
* [[Czech]]
 
* [[Czech]]
Line 134: Line 104:
 
* In newer distributions, map files belong in <tt>&hellip;/fonts/map/pdftex/context</tt>!
 
* In newer distributions, map files belong in <tt>&hellip;/fonts/map/pdftex/context</tt>!
 
* Don't forget to look at  [[cont-sys.tex]]!
 
* Don't forget to look at  [[cont-sys.tex]]!
 +
 +
= Where to find fonts =
 +
 +
== Available Free Fonts ==
 +
* [http://www.georgduffner.at/ebgaramond/ EB Garamond] is still in development, but it has nice-looking oldstyle numbers.
 +
* [http://ctan.tug.org/tex-archive/info/Free_Math_Font_Survey/survey.html Free Math Fonts] : overview of different free Math fonts; [http://www.geocities.com/hartke01/ links to other free fonts]
 +
* [http://greekfontsociety.gr/ GFS Didot] : Latin, full set of polytonik Greek, small caps, oldstyle figures, full f-ligatures ([http://modules.contextgarden.net/gfsdidot Module for ConTeXt])
 +
* [[TeX Gyre]] : a set of great text fonts by our GUST friends, based on URW's free PostScript standard fonts for GhostScript.
 +
* [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]: GPL/OFL serif font [[Linux Libertine on mkiv|sample]]
 +
* [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://junicode.sourceforge.net/ 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
 +
* [http://www.stormtype.com/family-lido-stf.html Lido] : OpenType and TrueType typefaces by Storm Type Foundry, free for non-commercial use. [http://modules.contextgarden.net/stormfontsupport Support].
 +
* [http://www.alanwood.net/unicode/fontsbyrange.html Alan Wood’s Unicode Resources] : find fonts by Unicode character range
 +
* [http://www.josbuivenga.demon.nl/ exljbris] Free Quality Font Foundry by Jos Buivenga
 +
* [http://www.stixfonts.org/ STIX Fonts] Beta download of the STIX-Fonts
 +
* [http://www.fontsquirrel.com/ Font Squirrel] Handpicked free fonts for graphic designers with commercial-use licenses
 +
* [http://www.theleagueofmoveabletype.com/ The league of Moveable Type] : a collection of open source fonts
 +
* [http://www.1stwebdesigner.com/resources/65-popular-and-professional-free-fonts-for-creative-typography/ 65 Popular And Professional Free Fonts For Creative Typography] and [http://www.1stwebdesigner.com/resources/52-really-high-quality-free-fonts-for-modern-and-cool-design/ 52 Really High Quality Free Fonts For Modern And Cool Design]
 +
* [http://www.paratype.com/public/]: Public fonts for minority languages of Russia [[Paratype typescript for mkiv|sample]]
 +
* ''... many more to be added ...''
  
  
 
[[Category:Fonts]]
 
[[Category:Fonts]]

Revision as of 20:30, 1 July 2014

< Visuals | Symbols >

How to use fonts in ConTeXt

The ConTeXt way of handling fonts are TypeScripts. It’s a system of abstraction and aliases, which may seem “strange” at first for new users of ConTeXt.

Font support & configuration

Type 1 fonts

Type 1 fonts come in multiple files. The various components are:

  • .pfb: "Printer Font, Binary".
  • .pfa: "Printer Font, ASCII".
  • .pfm: "Printer Font Metrics", binary.
  • .afm: "Adobe Font Metrics".

Typically each font will have a set of outlines in a pfb or pfa file, and a set of metrics in a pfm or afm file.

Which file variations are preferred depends on platform. Linux prefers pfa and afm (the ASCII versions). Windows prefers pfb and pfm (the binary versions). Mac OS X prefers pfm and afm.

On the Mac, you may encounter old-style PostScript Type 1 fonts which have an extensionless file containing the font outlines. These are a relic from the days when bitmaps were used to display fonts on screen, and the PostScript was downloaded to the printer. Your best bet is to throw them away and get an up-to-date OpenType version, or use a font editing utility such as fontforge to convert them.

On Windows 7, the OS will identify only the .pfm file as the actual font. However, when you install the font, Windows invisibly locates the matching .pfb file from the same directory, and copies them both to the C:\Windows\Fonts directory.

True Type fonts

OpenType fonts

Basic Hints

How to change to Palatino for text with Euler for math: Palatino with Euler for Math

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.

Hints by Language

Unsorted links

Where to find fonts

Available Free Fonts