[NTG-context] the new simplefonts stuff

Wolfgang Schuster schuster.wolfgang at gmail.com
Wed Sep 3 22:51:54 CEST 2014

Am 01.09.2014 um 21:20 schrieb Sandra Snan <sandra.snan at idiomdrottning.org>:

> This is probably a pretty basic question, but how do I find out the name
> of the font that \definefontfamily expects in the third argument?
> For example,
> \definefontfamily [dejavu] [serif] [DejaVu Serif]
> works fine and sets the text in DejaVu Serif, but that’s not a name I
> can find with mtxrun –scripts font:
> ellen% mtxrun --script fonts  --list --all --pattern='*DejaVu*'|wc -l
> 28
> ellen% mtxrun --script fonts  --info --list --all --pattern='*DejaVu*'|grep -i "DejaVu Serif"|wc -l
> 0
> mtxrun --script fonts --info for Deja Vu doesn't
> show that identifier anywhere. I want to find out what, for example,
> Bookman is called.
> \definetypeface [five] [rm] [serif] [bookman]
> works fine and sets the text in some font that sure looks a lot like
> Bookman to my eyes, but
> \definefontfamily [five] [serif] [bookman]
> doesn’t work at all and the text doesn’t show up.
> ellen% mtxrun --script fonts  --list --all --pattern='*bookman*'|wc -l
> 5
> I’ve looked all over for this... even tried understanding font-sel.mkvii
> (with mediocre success).

You can take a look into the font manager of your os, attached is a screenshot from my system
where you can see in the second column the name of the font which does also go into the third
argument of the \definefontfamily command. This is also the same name which is shown
in the font selection menu form MS Office or OpenOffice.

> Extra thanks if there’s a way to get ligatures and protrusion to work for it.

\definefontfamily [examplefont] [rm] [TeX Gyre Pagella] [features={default,quality}]
\definefontfamily [examplefont] [ss] [TeX Gyre Heros]   [features={default,quality}]
\definefontfamily [examplefont] [mm] [TeX Gyre Pagella Math]





\input tufte

\ss\input tufte


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140903/37ed30d2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: schriftsammlung.gif
Type: image/gif
Size: 62512 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140903/37ed30d2/attachment-0001.gif>

More information about the ntg-context mailing list