On Sat, 20 Dec 2014 23:26:29 +0100, Pablo Rodriguez <oi...@gmx.es> wrote:
On 12/20/2014 07:31 PM, j. van den hoff wrote:
newbie question:
how can I get access to fonts installed outside the TeX tree under
MacOSX
(10.9 to be precise)?
mtxrun --script font --list --name --pattern=*
shows lots of fonts (so they are recognized by context, I'd guess)
but the simple-minded approach, namely to trying something like
\starttypescript [stix]
\definetypeface [stix] [rm] [serif] [stix] [default]
\definetypeface [stix] [ss] [sans] [adventor] [default]
\definetypeface [stix] [tt] [mono] [cursor] [default]
\definetypeface [stix] [mm] [math] [stix] [default]
\stoptypescript
\usetypescript[stix]
\setupbodyfont[stix,12pt]
fails with `unknown library stix'.
obviously I am doing something wrong -- or is this a luatex problem not
being able to find the system fonts?
Hi Jörg,
hi pablo,
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]
yes this seems to work (mostly, at least -- there are still some hickups).
thanks a lot for this solution.
You don’t need to define a typescript. \definefontfamily is the command
you need.
Typeface should be defined only once ([rm] and [serif] are redundant).
essentially, I copied/pasted this from contextgarden and my understanding
was
that `rm' and `serif' are aliases?
also: why does the typescript definition does not work in the first place?
Default body font size is 12pt.
I think it is easier to invoke typefaces with the system font name. I
mean, use the same name as you use in Word or any other MacOS X program.
understood. OTOH, ` mtxrun --script font --list --name --pattern=*' lists
the fonts using a different convention (lower case, no blanks), so I am
undecided what might be the "best practice" here?
I hope this helps. Don’t hesitate to ask, if you have further questions.
well, see above ;-).
joerg
Pablo
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________