ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: the new simplefonts stuff
Date: Wed, 3 Sep 2014 22:51:54 +0200	[thread overview]
Message-ID: <157C12F1-0800-459C-A11F-A6EE8EEE5D76@gmail.com> (raw)
In-Reply-To: <87wq9nb123.fsf@ellen.idiomdrottning.org>


[-- Attachment #1.1: Type: text/plain, Size: 2013 bytes --]


Am 01.09.2014 um 21:20 schrieb Sandra Snan <sandra.snan@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]

\setupbodyfont[examplefont]

\setupalign[hanging]

\showframe[text][text]

\starttext

\input tufte

\ss\input tufte

\stoptext

Wolfgang

[-- Attachment #1.2.1: Type: text/html, Size: 2890 bytes --]

[-- Attachment #1.2.2: schriftsammlung.gif --]
[-- Type: image/gif, Size: 62512 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2014-09-03 20:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-01 19:20 Sandra Snan
2014-09-02 14:16 ` Pablo Rodriguez
2014-09-03 19:40 ` Joshua Krämer
2014-09-03 22:21   ` Wolfgang Schuster
2014-09-03 20:51 ` Wolfgang Schuster [this message]
     [not found] <87wq9jrh44.fsf@ellen.idiomdrottning.org>
2014-09-04 15:53 ` Mica Semrick
2014-09-05  6:22   ` Sandra Snan
     [not found] ` <5D145AD1-28A8-491E-8601-DE1369F3E663@gmail.com>
2014-09-05  6:20   ` Sandra Snan
2014-09-05 10:19   ` Keith McKay

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=157C12F1-0800-459C-A11F-A6EE8EEE5D76@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).