Jump to navigation Jump to search
3,005 bytes added ,  20:30, 1 July 2014
Updated link for Junicode
< [[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.
* 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 [ 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 use [[LuaTeX]], see [[Fonts_in_LuaTeX]]
* If you want to keep using [[pdfTeX]], read on.
= Font handling in ConTeXt is “strange” for LaTeX users. It’s a system of abstraction and aliases, complex and mighty… But there’s help. If you happen to use [[XeTeX]], then you can forget almost all the magic and start using your system support & configuration === Type 1 fonts (see [[Fonts_in_XeTeX]]). If you want to keep using [[pdfTeX]], read on:==
Type 1 fonts come in multiple files. The various components are: * '''The ConTeXt way of using fonts are [[TypeScripts]].pfb''': "Printer Font, Binary".* [http'''.pfa'''://www"Printer Font, ASCII".pragma-ade* '''.com/general/manuals/mtexfontpfm''': "Printer Font Metrics", binary.pdf font installation with texfont] by Pragma* [http'''.afm'''://www"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.pragma On the Mac, you may encounter old-adestyle PostScript Type 1 fonts which have an extensionless file containing the font are a relic from the days when bitmaps were used to display fonts on screen, and the PostScript was downloaded to the printer.pdf ConTeXt's Your best bet is to throw them away and get an up-to-date OpenType version, or use a font mechanism in detail] by Pragmaediting utility such as fontforge to convert them. * [http://wwwOn Windows 7, the OS will identify only the .pfm file as the actual font.pragma-adeHowever, when you install the font, Windows invisibly locates the matching .com/general/manuals/mmakempypfb file from the same directory, and copies them both to the C:\Windows\Fonts directory.pdf making outlines * Using [[psnfss]] by Pragmametrics in ConTeXt* Matt Gushee's introduction to [http://pragma-adehavenrock.nlcom/textips/fonttestbookfonts.pdf Herehtml virtual fonts] you can try out several TeX , especially for getting expert fonts online (PDF interface!)to work.* Troubleshooting: solving [[TeXfontURW Garamond]] problems.* Character [[ProtrusionLucida]] (also known as hanging or : large font handling) is a more subtle typographic effectfamily designed by Bigelow & Holmes; suitable e.g.* [[Font Handling Internals]]for presentations* [http://homepagedl.maccontextgarden.comnet/atlmyway/tex/ Adam Lindsay's pageexpertfonts.pdf Installing Expert Fonts: Minion Pro] focuses on typography (OpenType, Unicode etc.)by Idris Samawi Hamid; contains step-by-step instructions, esp. on MacOS Xfrom preinstallation to writing typescripts* [http://homewww.salamanderstormtype.comStorm Type Foundry] : [http:/~wmcclain/context-helpmodules.contextgarden.html Bill McClain's ConTeXt beginners pagenet/stormfontsupport support] has also a lot about of selected fonts == True Type fonts==
* [ 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.
* [ Installing Expert Fonts: Minion Pro] by Idris Samawi Hamid; contains step-by-step instructions, from preinstallation to writing typescripts* [[Pseudo Small CapsPalatino Linotype under MKIV]] by Vit Zyka.* Matt Gushee's introduction to [ virtual fonts], especially for getting expert == OpenType fonts to work.==* [[URW Garamondotfinstall|otfinst - a script for using OpenType fonts in ConTeXt]] == Basic Hints ==
=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:''
Another important thing is that it also does not share font map files with LaTeX and, specifically,
'''ConTeXt does not make pdfetex pdfeTeX read <tt></tt>.'''
(this is at the root of a great many problems reported by users only familiar with PSNFSS)
There are ways to trick ConTeXt into using different conventions, but if you do that you are likely to run into trouble.
=Configuration=Hints by Language ==* general: [[Encodings and Regimes]]* [[Arabic and Hebrew]]* [[Chinese]]* [[Czech]]* [[Greek]]* [[Russian]]* Using [[psnfssVietnamese]= Unsorted links = * [ font installation with texfont] metrics by Pragma* [ ConTeXt's font mechanism in detail] by Pragma* [ ConTeXtbasics for users: Font styles] by Aditya Mahajan (2007)* [ making outlines] by Pragma* Matt Gushee about [ 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]]* [ virtual Bill McClain's ConTeXt beginners page] has also a lot about fonts* [[Pseudo Small Caps]] by Vit Zyka* [[Understanding how fonts work in ConTeXt]]
* 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]]!
= Where to find fonts = == Available Free Fonts ==* [ EB Garamond] is still in development, but it has nice-looking oldstyle numbers.
* [ Free Math Fonts] : overview of different free Math fonts; [ links to other free fonts]
* [http://greekfontsociety.orggr/ GFS Didot] : Latin, full set of polytonik Greek, small caps, oldstyle figures, full f-ligatures ([ 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. [[GYRE: simple usage]]
* [ Foto Alfa] : some TeX related fonts from Poland (Antykwa Toruńska. Antykwa Półtawskiego, Kurier, Iwona...)
* [ Libertine Open Fonts Project]: GPL/OFL serif font[[Linux Libertine on mkiv|sample]]
* [ SIL International] : great Unicode fonts for scholars by SIL (Gentium, Doulos, Charis, etc.)
* [ GreekKeys] : links to polytonic Greek fonts
* [ Scholar's Fonts] : Font for Scholars (Latin, Germanic languages, Greek, Hebrew and Linguistics)
* [ Junicode] : Junius-Unicode, a font for medievalists
* [ FreeLang fonts] : fonts for exotic languages
* [ Blambot] : Comic fonts
* [ Kristine's Font Organization] : find a font in a sorted directory
* [ FontLover] : font news portal site
* [ html Lido] : OpenType and TrueType typeface typefaces by Storm Type Foundry, free for non-commercial use. [ Support].* [ Alan Wood’s Unicode Resources] : find fonts by Unicode character range* [ exljbris] Free Quality Font Foundry by Jos Buivenga* [ STIX Fonts] Beta download of the STIX-Fonts* [ Font Squirrel] Handpicked free fonts for graphic designers with commercial-use licenses* [ The league of Moveable Type] : a collection of open source fonts* [ 65 Popular And Professional Free Fonts For Creative Typography] and [ 52 Really High Quality Free Fonts For Modern And Cool Design]* []: Public fonts for minority languages of Russia [[Paratype typescript for mkiv|sample]]
* ''... many more to be added ...''
=Hints by Language=
* general: [[Encodings and Regimes]]
* [[Arabian and Hebrew]] (Idris? other ArabTeX specialists?)
* [[Chinese]]
* [[Greek]]
* [[Russian]]
* [[Vietnamese]]


Navigation menu