how to use Times Roman font
Hello everyone, I am a newbie to ConTeXt. I have no idea how to use the Times Roman font in ConTeXt. (in Latex, just \usepackage{times}) I found something like this: (http://home.salamander.com/~wmcclain/context-help.html) % Times font \usetypescript[berry][ec] % or [8r] \setupbodyfont[pos] \starttext hellow, world \stoptext but an error occours: --------------------------------------------- kpathsea: Running mktexmf utmr8t ! I can't find file `utmr8t'. <*> ...:=ljfour; mag:=1; nonstopmode; input utmr8t Please type another input file name ! Emergency stop. <*> ...:=ljfour; mag:=1; nonstopmode; input utmr8t Transcript written on mfput.log. mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input utmr8t' failed. kpathsea: Appending font creation commands to missfont.log. ! Font \*12ptrmtf*=utmr8t at 12.0pt not loadable: Metric (TFM) file not found. <to be read again> \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...ame #1\csname #2#3#4#5\endcsname \tryingfontfalse \fi <inserted text> ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \ifskipfontchar... <argument> \getvalue {\@style@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.2 \setupbodyfont[pos] ? ---------------------------------------------- I want to know what I can do with it. Thanks! Leo
The following should work with the stable ConTeXt from January: \usetypescript [adobekb][\defaultencoding] \setupbodyfont[pos] \usetypescript[times][\defaultencoding] \setupbodyfont[times,12pt] \starttext \input knuth \bigskip \stoptext If not, please post the error message together with version information of your system. Matthias On Mar 18, 2005, at 10:41 PM, Xue Ruini wrote:
Hi Matthias!
Unfortunately, error again:
-------------------------------------------------------
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
executable : pdfetex
format : cont-en
inputfile : a
output : standard
interface : en
current mode : none
TeX run : 1
This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5)
entering extended mode
(./a.tex{/usr/local/share/texmf/pdftex/config/pdftex.cfg}
ConTeXt ver: 2003.1.31 fmt: 2005.3.19 int: english mes: english
language : language en is active
Xue, I am not a font expert at all, and we are on different platforms. If I understand correctly, the font mechanism in TeXExec has been changing, and different ConTeXt versions rely on different versions of pdfeTeX (not only for font reasons, but also for pdf features). It should be imperative to use compatible versions of both, even though I have no clue how to achieve this -- (on the Mac, Gerben's iinstaller is nicely taking care of this, but I don't know about Windows) In my recent experience, it was not a good idea to use the latest (March) ConTeXt beta without making sure that your remaining TeX installation (including fonts) is completely up-to-date. As I don't know how easy it is to move to some other 'release' on Windows, I don't know how feasible this recommendation is. Maybe somebody on Windows for whom times works can give you some information which versions he is using, and how to get them. I also wonder why the pdf made at ConTeXtgarden opens in Acrobat with font substitution -- the fonts should be universally available, I believe. Hopefully somebody with more insight will clarify ? Matthias On Mar 20, 2005, at 7:54 PM, Xue Ruini wrote:
Matthias Weber wrote:
not really, they try to adapt themselves invisible
normally this is no problem, i run old and new versions alongside; teh biggest change in the latest pdftex is that the locations of the enc/map files have changed (not context related, more tds/texmf); context never used the pdftex cfg file so no problems should be expected there
for the transition to latim modern one indeed needs latin modern fonts (zip on our website); making this change has to happen anyway; also, when one uses latin modern as well as context pattern files; one can use more font encodings with regards to hyphenation
strange, this should not happen with an embedded font 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 -----------------------------------------------------------------
[...]
I also wonder why the pdf made at ConTeXtgarden opens in Acrobat with font substitution --
I wonder why. Which fonts are substituted? What is your input file? Patrick -- ConTeXt wiki: http://contextgarden.net
Patrick, I tried the following both on the latest (2005-03-16) complete ConTeXt for Windows mswincontext.zip and on live.contextgarden.net ... \usetypescript[times][texnansi] \setupbodyfont[times,12pt] \starttext \showfontstrip \showbodyfont[times] Roman \bf bold \it italics \stoptext On my system, the times font is completely blank and the log file complains of missing characters (see my post from yesterday), while opening the Acrobat file produced from live.contextgarden.net produces the following message: "Could not find a font in the Resources dictionary - using Helvetica instead." In both cases, the roman font "times" is missing or incomplete to some degree. Am I using the correct syntax? The times typescript is defined in the ConTeXt files ... Regards, Stefano
Hello Stefano, on live.contextgarden.net, this works: \setupencoding[default=ec] \usetypescript[adobekb][\defaultencoding] \usetypescript[times][\defaultencoding] \setupbodyfont[times,12pt] \starttext \showfontstrip \showbodyfont[times] Roman \bf bold \it italics \stoptext Patrick -- ConTeXt wiki: http://contextgarden.net
Hello, [...]
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
your ConTeXt is way too old. It doesn't have type-akb included. Either update your ConTeXt or get type-akb from http://levana.de/context/ . Patrick -- ConTeXt wiki: http://contextgarden.net
participants (6)
-
Hans Hagen
-
Matthias Weber
-
Patrick Gundlach
-
Stefano
-
Xue Ruini
-
Xue Ruini