On Sun, 21 Dec 2014 17:20:33 +0100, Pablo Rodriguez
On 12/21/2014 02:31 PM, j. van den hoff wrote:
On Sat, 20 Dec 2014 23:26:29 +0100, Pablo Rodriguez
wrote: Hi Jörg, I don’t have a Mac, but this works in ConTeXt: \definefontfamily [mainface] [serif] [TeX Gyre Pagella] \definefontfamily [mainface] [sans] [Helvetica] \definefontfamily [mainface] [mono] [Courier] \definefontfamily [mainface] [math] [TeX Gyre Pagella Math] \setupbodyfont[mainface]
I've now looked a bit closer: this works (on my Mac) _except_ for the teletype font: `\tt{some text}' ends up being typeset in the serif font. `Courier' is there, for sure (meaning: it is listed by `mtxrun --script font...' but it does not work. on closer inspection, the actually found fontfiles are `courier new.ttf' and specifying [couriernew] _does_ work.
Hi Jörg,
\tt is a switch, so the right way to deploy it is:
{\tt this text should be typewritten text}
yes, that's right.
I have just discovered that Courier doesn’t work on my system either. I cannot find it.
Could you give the output from the following command?
$ mtxrun --script font --list --name --pattern=courier*
sure: courier courier pcrr8a.afm courierbold courierbold pcrb8a.afm courierboldoblique courierboldoblique pcrbo8a.afm couriermedium courier pcrr8a.afm couriernew couriernewpsmt /Library/Fonts/Courier New.ttf couriernewbold couriernewpsboldmt /Library/Fonts/Courier New Bold.ttf couriernewbolditalic couriernewpsbolditalicmt /Library/Fonts/Courier New Bold Italic.ttf couriernewitalic couriernewpsitalicmt /Library/Fonts/Courier New Italic.ttf couriernewnormal couriernewpsitalicmt /Library/Fonts/Courier New Italic.ttf couriernewpsbolditalicmt couriernewpsbolditalicmt /Library/Fonts/Courier New Bold Italic.ttf couriernewpsboldmt couriernewpsboldmt /Library/Fonts/Courier New Bold.ttf couriernewpsitalicmt couriernewpsitalicmt /Library/Fonts/Courier New Italic.ttf couriernewpsmt couriernewpsmt /Library/Fonts/Courier New.ttf couriernewregular couriernewpsmt /Library/Fonts/Courier New.ttf courieroblique courieroblique pcrro8a.afm as I wrote in the last mail, only the `courier new' fonts are represented by actual font-files it seems (don't know what the *afm files are). so if only those (and their abbreviations) were reported I would not have any problem. but as it stands, `courier' is reported as well -- but does not map to any actual font-file.
so it seems you are right regarding using the "full" names, e.g.
\definefontfamily [mainface] [sans] [adventor]
does not work while
\definefontfamily [mainface] [sans] [TeX Gyre Adventor]
does.
any ideas, why all this is happening?
\definefontfamily [mainface] [sans] [texgyreadventor]
seems to be the right way to invoke the font.
or: _how_ exactly can fonts be specified? how is the mapping from symbolic names to actual font files performed. it seems, sometimes symbolic (short) names work, sometimes they don't. so, is there some prescription, what is the right (TM) way to do it?>
I think using full names is a good way to do it. But TeX Gyre Adventor comes with ConTeXt. You don’t have it installed on your system.
yes, that I know. they are part of the texlive distribution I use. thanks for your help, joerg
Pablo
-- kUsing Opera's revolutionary email client: http://www.opera.com/mail/