ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: access to system fonts under MacOSX
Date: Sat, 20 Dec 2014 23:26:29 +0100	[thread overview]
Message-ID: <5495F795.8080307@gmx.es> (raw)
In-Reply-To: <op.xq6i2xrpp7eajd@muck.fritz.box>

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,

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]

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).

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.

I hope this helps. Don’t hesitate to ask, if you have further questions.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2014-12-20 22:26 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-20 18:31 j. van den hoff
2014-12-20 22:26 ` Pablo Rodriguez [this message]
2014-12-21 10:51   ` j. van den hoff
2014-12-21 16:01     ` Pablo Rodriguez
2014-12-21 13:31   ` j. van den hoff
2014-12-21 16:20     ` Pablo Rodriguez
2014-12-21 17:37       ` j. van den hoff
2014-12-21 18:22         ` Pablo Rodriguez
2014-12-21 20:24           ` j. van den hoff
2014-12-21 21:39             ` Wolfgang Schuster
2014-12-21 21:45               ` j. van den hoff
2014-12-21 21:56                 ` Wolfgang Schuster
2014-12-21 22:23                   ` j. van den hoff
2014-12-21 23:12                   ` j. van den hoff
2014-12-22  6:09                     ` Pablo Rodriguez
2014-12-23 13:19                       ` j. van den hoff
2014-12-22 21:35                     ` Loading modules (was: access to system fonts under MacOSX) Wolfgang Schuster
2014-12-23 13:15                       ` j. van den hoff
2014-12-23 13:29                         ` Loading modules Wolfgang Schuster
2014-12-23 13:29                         ` Loading modules (was: access to system fonts under MacOSX) j. van den hoff
2014-12-23 13:38                           ` Loading modules Wolfgang Schuster
2014-12-21 22:17                 ` access to system fonts under MacOSX Pablo Rodriguez
2014-12-21 22:22                   ` j. van den hoff
2014-12-21 22:11             ` Pablo Rodriguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5495F795.8080307@gmx.es \
    --to=oinos@gmx.es \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).