Hi all I am new to ConTeXt, as my question is about to reveal. There are now several sets of instructions on the net, some of them very long essays, about how to enable different fonts for ConTeXt. Before I dive in: Which set of instructions should I follow, in order to allow use of Palatino or Times, on Mac OS X, Gerben Wierda's TeX distribution, latest ConTeXt installed? I know the information is already out there, just don't know which pages to trust my afternoon/weekend/summer to. :-) Thanks David
Hello David,
I am new to ConTeXt, as my question is about to reveal.
This questions can also come from more experienced users :)
Which set of instructions should I follow, in order to allow use of Palatino or Times, on Mac OS X, Gerben Wierda's TeX distribution, latest ConTeXt installed?
OK, do you have LaTeX working? Then you can use the standard postscript fonts for ConTeXt as well. Have a look at the (yet unfinished page) http://contextgarden.net/Psnfss Patrick -- ConTeXt wiki and more: http://contextgarden.net
Patrick Gundlach said this at Mon, 4 Jul 2005 09:54:06 +0200:
Hello David,
I am new to ConTeXt, as my question is about to reveal.
This questions can also come from more experienced users :)
Which set of instructions should I follow, in order to allow use of Palatino or Times, on Mac OS X, Gerben Wierda's TeX distribution, latest ConTeXt installed?
OK, do you have LaTeX working? Then you can use the standard postscript fonts for ConTeXt as well. Have a look at the (yet unfinished page)
Sadly, that page relies on type-pre, which is deprecated! (Yes, the situation changes again.) So, the situation should now be: % Times, Helvetica, Courier: \usetypescript [adobekb] [\defaultencoding] % default=ec \usetypescript [postscript][\defaultencoding] \setupbodyfont [postscript] % or, for Times, Helvetica, and Latin Modern TT: \usetypescript [adobekb][\defaultencoding] \usetypescript [times] [\defaultencoding] \setupbodyfont [times] % or, for Palatino & Latin Modern TT: \usetypescript [adobekb] [\defaultencoding] \usetypescript [palatino] [\defaultencoding] \setupbodyfont [palatino] The situation is "dynamic" because, to Hans's increasing frustration, the font files that get distributed change with just about every release of tetex (which gwTeX is mostly based on) or TeXLive. Anyway, I hope this helps in the short term! -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
On 7/4/05, Adam Lindsay
Patrick Gundlach said this at Mon, 4 Jul 2005 09:54:06 +0200:
Hello David,
I am new to ConTeXt, as my question is about to reveal.
This questions can also come from more experienced users :)
Which set of instructions should I follow, in order to allow use of Palatino or Times, on Mac OS X, Gerben Wierda's TeX distribution, latest ConTeXt installed?
OK, do you have LaTeX working? Then you can use the standard postscript fonts for ConTeXt as well. Have a look at the (yet unfinished page)
Sadly, that page relies on type-pre, which is deprecated! (Yes, the situation changes again.)
So, the situation should now be:
% Times, Helvetica, Courier: \usetypescript [adobekb] [\defaultencoding] % default=ec \usetypescript [postscript][\defaultencoding] \setupbodyfont [postscript]
% or, for Times, Helvetica, and Latin Modern TT: \usetypescript [adobekb][\defaultencoding] \usetypescript [times] [\defaultencoding] \setupbodyfont [times]
% or, for Palatino & Latin Modern TT: \usetypescript [adobekb] [\defaultencoding] \usetypescript [palatino] [\defaultencoding] \setupbodyfont [palatino]
The situation is "dynamic" because, to Hans's increasing frustration, the font files that get distributed change with just about every release of tetex (which gwTeX is mostly based on) or TeXLive.
Hi David, Patrick and Adam, It is right that handling fonts is extremely disappointing and instable... For instance, what used to work does not work anymore properly with the new version of ConTeXt I installed two weeks ago... (please see below). For instance: \usetypescript [adobekb][\defaultencoding] \setupbodyfont[postscript] \usetypescript[times][\defaultencoding] %or helvetica, or palatino \setupbodyfont[times,12pt] used to work fine, but now it results in ConTeXt creating, the first time, a whole bunch of things regarding fonts, and then the resulting PDF contains some ugly jagging bitmap-looking characters (interestingly this happens only to the text characters, not to the math characters...). Adding \usetypescript [postscript][\defaultencoding] before \setupbodyfont[postscript] does not change anymorethe situation. I wanted to answer David's question on Saturday but when I tried my examples, I was dispappointed and did not answer. Best regards: OK
Adam Lindsay wrote:
Patrick Gundlach said this at Mon, 4 Jul 2005 09:54:06 +0200:
Hello David,
I am new to ConTeXt, as my question is about to reveal.
This questions can also come from more experienced users :)
Which set of instructions should I follow, in order to allow use of Palatino or Times, on Mac OS X, Gerben Wierda's TeX distribution, latest ConTeXt installed?
OK, do you have LaTeX working? Then you can use the standard postscript fonts for ConTeXt as well. Have a look at the (yet unfinished page)
Sadly, that page relies on type-pre, which is deprecated! (Yes, the situation changes again.)
So, the situation should now be:
% Times, Helvetica, Courier: \usetypescript [adobekb] [\defaultencoding] % default=ec \usetypescript [postscript][\defaultencoding] \setupbodyfont [postscript]
OK, I tried this setup, and ConTeXt ran without stopping to complain, but (as Otared described, I guess) the font actually produced is very jaggy, both on screen and in print. My nostalgia for dot matrix printers is not as great as one might suppose. :-) And I thought I was just asking for a shortcut answer to a dumb question! Thanks for the help David
David Rogers wrote:
OK, I tried this setup, and ConTeXt ran without stopping to complain, but (as Otared described, I guess) the font actually produced is very jaggy, both on screen and in print. My nostalgia for dot matrix printers is not as great as one might suppose. :-)
So, do you get bitmaps fonts (i didn't kno wthat there were for the ps fonts)? what does the pdftex log say? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
David Rogers wrote:
OK, I tried this setup, and ConTeXt ran without stopping to complain, but (as Otared described, I guess) the font actually produced is very jaggy, both on screen and in print. My nostalgia for dot matrix
Hans Hagen wrote: printers
is not as great as one might suppose. :-)
So, do you get bitmaps fonts (i didn't kno wthat there were for the ps fonts)?
Yes, or so it appears - a bitmap Times and a bitmap Palatino, which are vaguely recognizable. (the Palatino has oval bowls and long serifs, for instance.)
what does the pdftex log say?
13->2:2 cz->il2:il2->14->2:2 cz->ec:ec->15->2:2 sk->il2:il2->16->2:2 sk->ec:ec ->17->2:2 pl->pl0:pl0->18->2:2 pl->ec:ec->19->2:2 loaded specials : tex,postscript,rokicki loaded system : PretendPaper.top loaded (./PretendPaper.top specials : loading definition file tpd (/usr/local/teTeX/share/texmf.local/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/usr/local/teTeX/share/texmf.local/tex/context/base/spec-fdf.tex) specials : fdf loaded ) specials : fdf,tpd loaded ) (./env_mla.tex systems : print width forced to paper width (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-dis.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-dis.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-dis.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-dis.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-dis.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-dis.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-dis.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex))) (./PretendPaper.tuo) (./PretendPaper.tuo) (./PretendPaper.tuo) (./PretendPaper.tuo) (./PretendPaper.tuo) (./PretendPaper.tuo) (./PretendPaper.tuo) (./PretendPaper.tuo) (./PretendPaper.tuo) (./PretendPaper.tuo) (./PretendPaper.tuo) (./PretendPaper.tuo) (./PretendPaper.tuo) systems : begin file PretendPaper at line 34 fonts : resetting map file list fonts : using map file: original-base fonts : using map file: ec-public-lm fonts : using map file: ec-base fonts : using map file: original-ams-base fonts : using map file: original-public-lm fonts : using map file: ec-urw-palatino fonts : using map file: original-youngryu-px [1.1{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ original-empty .map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ original-base .map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ec-
I don't have the log of the first run, where it created the fonts, but
this is what I get now:
_______________________________________
TeXExec 5.4.2 - ConTeXt / PRAGMA ADE 1997-2005
fixing engine variable : pdfetex
executable : pdfetex
format : cont-en
inputfile : PretendPaper
output : pdftex
interface : en
current mode : none
TeX run : 1
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
(/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)
entering extended mode
(./PretendPaper.tex
ConTeXt ver: 2005.06.27 fmt: 2005.7.2 int: english mes: english
language : language en is active
David Rogers wrote:
OK, I tried this setup, and ConTeXt ran without stopping to complain, but (as Otared described, I guess) the font actually produced is very jaggy, both on screen and in print. My nostalgia for dot matrix
.................... fonts : resetting map file list fonts : using map file: original-base fonts : using map file: ec-public-lm fonts : using map file: ec-base fonts : using map file: original-ams-base fonts : using map file: original-public-lm fonts : using map file: ec-urw-palatino fonts : using map file: original-youngryu-px [1.1{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ original-empty .map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ original-base .map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ec- public-lm. map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ec-base .map}{/ usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original-ams- base.ma p}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original- public- lm.map} Warning: pdfetex (file ec-urw-palatino.map): cannot open font map file {/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original- youngryu- px.map}] [2.2] [3.3] ............
Well, here is your problem. pdftex cannot find map file for direct font
inclusion and you get bitmaps.
I've found needed definitions in context-base.map and ec-base.map.
ec-base is loaded by default, but dose nothing. Maybe someone explain
this. As a quick solution try:
\loadmapfile [context-base] % !!!
\setupencoding [default=ec]
\usetypescript [adobekb] [\defaultencoding]
\usetypescript [palatino] [\defaultencoding]
\usetypescript [postscript] [\defaultencoding]
\usetypescript [lucida] [\defaultencoding]
\setupbodyfont [palatino]
\setupoutput[pdftex]
\startbuffer
Some {\bf text} to {\it test} {\sl font} {\bs switching}.
\stopbuffer
\starttext
\getbuffer
\switchtobodyfont [postscript] \getbuffer
\switchtobodyfont [lucida] \getbuffer
\stoptext
Works for me on tetex-3.0.
--
Radhelorn
David Rogers wrote:
systems : print width forced to paper width (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-dis.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) ...
you can try (top of document): \preloadtypescripts this saves some runtime
fonts : using map file: original-youngryu-px
this is the one
[1.1{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ original-empty .map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ original-base .map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ec- public-lm. map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ec-base .map}{/ usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original-ams- base.ma p}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original- public- lm.map} Warning: pdfetex (file ec-urw-palatino.map): cannot open font map file
this one is missing on your system, it's an indocation that your setup expects texfont generated metrics (you can generate the lot with " texmfstart texfont.pl type-tmf.dat --en=ec ")
{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original- youngryu- px.map}]
thos one should do the job for your (math) palatino [2.2] [3.3]
Underfull \hbox (badness 2181) in paragraph at lines 56--56 []\*palatino12ptrmsc*: Works Cit-ed [4.4] systems : end file PretendPaper at line 60 ) (see the transcript file for additional information)
hm, i have no idea how these pk fonts are generated; i've disabled those automatisms and don't want to mess up my system Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Adam Lindsay wrote:
Sadly, that page relies on type-pre, which is deprecated! (Yes, the situation changes again.)
hm, i can enable that one again, but will not give guarantees (some fonts have changed, for instance antikwa and we now have proper encoding support for latin modern so all those other things should go otherwise they will interfere; which ones from type-pre are used?
So, the situation should now be:
% Times, Helvetica, Courier: \usetypescript [adobekb] [\defaultencoding] % default=ec \usetypescript [postscript][\defaultencoding] \setupbodyfont [postscript]
% or, for Times, Helvetica, and Latin Modern TT: \usetypescript [adobekb][\defaultencoding] \usetypescript [times] [\defaultencoding] \setupbodyfont [times]
% or, for Palatino & Latin Modern TT: \usetypescript [adobekb] [\defaultencoding] \usetypescript [palatino] [\defaultencoding] \setupbodyfont [palatino]
The situation is "dynamic" because, to Hans's increasing frustration, the font files that get distributed change with just about every release of tetex (which gwTeX is mostly based on) or TeXLive.
indeed; the only way out is to have an additional zip with font files (something that we discussed last ntg meeting); for instance, - say that you want verbatim - and use ec encoding - and use kb names - and don't want --- ligatures and such .... impossible (with the current tex, less impossible with the next release of pdftex) .. so, you switch to texnansi - for which there are kb names - but metrics are never shipped - so you need to generate them with texfont - and then *not* load the kn typescripts etc etc. it's just impossible to keep up with feature requests (fonts, languages, backends) and at the same time be compatible with the way latex users are accustomed to it cq. latex changes dealing with fonts cq. distributions keep changing (so guess why i only use tex font generated metrics)
Anyway, I hope this helps in the short term!
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (6)
-
Adam Lindsay
-
David Rogers
-
Hans Hagen
-
Otared KAVIAN
-
Patrick Gundlach
-
Radhelorn