Hello all. Maybe this is a trivial question but I cannot understand what's going on. I've read the mfonts.pdf and I tried to compile the following file: \usetypescript[palatino] \switchtobodyfont[palatino,11pt] \starttext Hello world \stoptext It works. Changing palatino to whatever other font name (even non-existant ones like hfdjfh!) produces the same output. I used also the \setupbodyfont but same result. texexec always says bodyfont: 12pt rm is loaded no matter what I specify. So the question is: how do I actually change the font my document is typeset in? Thank you. Fabio
Hi Fabio, it seems as a problem in your typescripts somewhere. I recommend you the Bill McClain's ConTeXt beginners manual: http://home.salamander.com/~wmcclain/context-help.html It is IMHO the best documentation on fonts and typescripts. Try to test your fonts step by step (starting with the simple \font command) - you'll soon find error like missinf TFM files, MAP files problems and so on... Good luck! -Richard _____ From: Fabio Mancinelli [mailto:mancinel@di.univaq.it] To: ConTeXt list [mailto:ntg-context@ntg.nl] Sent: Tue, 06 Dec 2005 12:48:05 +0100 Subject: [NTG-context] [Newbie] Fonts! Hello all. Maybe this is a trivial question but I cannot understand what's going on. I've read the mfonts.pdf and I tried to compile the following file: \usetypescript[palatino] \switchtobodyfont[palatino,11pt] \starttext Hello world \stoptext It works. Changing palatino to whatever other font name (even non-existant ones like hfdjfh!) produces the same output. I used also the \setupbodyfont but same result. texexec always says bodyfont: 12pt rm is loaded no matter what I specify. So the question is: how do I actually change the font my document is typeset in? Thank you. Fabio _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Fabio Mancinelli wrote:
Hello all.
Maybe this is a trivial question but I cannot understand what's going on.
Not competely trivial, but it is a recurring theme, for sure. First, here is an input file that should actually work: \usetypescript[adobekb][8r,ec] \usetypescript[palatino][ec] \switchtobodyfont[palatino,11pt] \starttext Hello world \stoptext The problem with your input is that you have to specify an encoding (or a set of encodings) to \usetypescript. That's what the extra "[ec]" is for on the second line of my example. The other problem is that you do not have palatino installed in way that is usable by a default ConTeXt installation. For palatino to work, you have three options : a. install the font family using texfont b. download cont-fnt.zip from the pragma site c. load the latex psnfss compatibity typescripts (as above) More on this is on the Wiki, http://wiki.contextgarden.net/Fonts Cheers, Taco
Fabio Mancinelli wrote:
Hello all.
Maybe this is a trivial question but I cannot understand what's going on. I've read the mfonts.pdf and I tried to compile the following file:
\usetypescript[palatino]
\usetypescript[palatino][ec] % or whatever encoding you need
\switchtobodyfont[palatino,11pt] \starttext Hello world \stoptext
It works. Changing palatino to whatever other font name (even non-existant ones like hfdjfh!) produces the same output. I used also the \setupbodyfont but same result. texexec always says bodyfont: 12pt rm is loaded no matter what I specify.
So the question is: how do I actually change the font my document is typeset in?
Thank you. Fabio _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (4)
-
Fabio Mancinelli
-
Hans Hagen
-
Richard Gabriel
-
Taco Hoekwater