ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: OSX fonts
Date: Mon, 3 Apr 2017 12:07:18 -0700 (PDT)	[thread overview]
Message-ID: <alpine.OSX.2.02.1704031151110.8312@nqv-znpobbx> (raw)
In-Reply-To: <7859F180-8E85-474E-8A6D-6C185A607D7E@di.unito.it>

On Mon, 3 Apr 2017, Andrea Valle wrote:

> Dear list,
>
> I have a question which is really basic. MacOSX here.
> I looked at the wiki, but the whole matter is a bit far from my knowledge.
> Is there a way to use system fonts? I *think* I remember something like simpletypescript package


1. First, let's check if context is seeing the fonts that ship with OSX.

mtxrun --script fonts --list --pattern="palatino*" --all

palatino                     palatinobolditalic           /System/Library/Fonts/Palatino.ttc                           index:  4
palatinobold                 palatinobolditalic           /System/Library/Fonts/Palatino.ttc                           index:  4
palatinobolditalic           palatinobolditalic           /System/Library/Fonts/Palatino.ttc                           index:  4
palatinolinotype             palatinolinotyperoman        /Library/Fonts/Microsoft/Palatino Linotype.ttf
palatinolinotypebold         palatinolinotypebold         /Library/Fonts/Microsoft/Palatino Linotype Bold.ttf
palatinolinotypebolditalic   palatinolinotypebolditalic   /Library/Fonts/Microsoft/Palatino Linotype Bold Italic.ttf
palatinolinotypeitalic       palatinolinotypeitalic       /Library/Fonts/Microsoft/Palatino Linotype Italic.ttf
palatinolinotypenormal       palatinolinotyperoman        /Library/Fonts/Microsoft/Palatino Linotype.ttf
palatinolinotyperegular      palatinolinotyperoman        /Library/Fonts/Microsoft/Palatino Linotype.ttf
palatinolinotyperoman        palatinolinotyperoman        /Library/Fonts/Microsoft/Palatino Linotype.ttf

OK. So, I have a palatino that ships with apple and Palatino Linotype that
ships with Microsoft Office (I think).

2. Let's create a typescript to use this (I haven't check the font 
license to see if you can distribute a pdf of this document. Please check 
your font license!):

\definefontfamily [myfont] [serif] [Palatino Linotype]
\setupbodyfont [myfont]

\starttext
This is a test \bold{Does bold work} and does \italic{italic}?
\stoptext

That's it! Simply compile the file and everything works. Of course, for a
real document, you need to set the sans serif, mono, and math font style as
well.

Aditya
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2017-04-03 19:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-03 14:07 Andrea Valle
2017-04-03 19:04 ` Henning Hraban Ramm
2017-04-03 19:07 ` Aditya Mahajan [this message]
2017-04-03 21:29   ` Andrea Valle

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=alpine.OSX.2.02.1704031151110.8312@nqv-znpobbx \
    --to=adityam@umich.edu \
    --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).