ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mica Semrick <mica@silentumbrella.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: the new simplefonts stuff
Date: Thu, 04 Sep 2014 08:53:02 -0700	[thread overview]
Message-ID: <0cf70340-95b9-4ca9-8304-7d819c49d3af@email.android.com> (raw)
In-Reply-To: <87wq9jrh44.fsf@ellen.idiomdrottning.org>

On Debian, you can try: 
fc-list : family
to list the family name. I was playing with this last night on my Debian Jessie system. 

The colon is a wildcard operator that will match all fonts on the system. I usually just grep the results for what I need.

You may want to refresh the font cache, with
fc-cache -fv

Best,
Mica

On September 4, 2014 12:15:39 AM PDT, Sandra Snan <sandra.snan@idiomdrottning.org> wrote:
>Thank you so much for your help, guys!
>
>On Thu, 4 Sep 2014 00:21:22 +0200, Wolfgang Schuster
><schuster.wolfgang@gmail.com> wrote:
>> Am 03.09.2014 um 21:40 schrieb Joshua Krämer
><joshua.kraemer@gmail.com>:
>[...]
>> > The only name which works in ConTeXt is the family name (which can
>be
>> > seen in FontForge): "Swis721 BT", note the single "s".  However,
>this
>> > name is *not* shown in the mtxrun output.
>
>Something I realized as I was messing around waiting for fontforge to
>install is that, at least for fonts that come with *.afm metric files
>and *.pfb files,, you can look at them for some info. Looking at
>ubkl8a.afm I see:
>
>ellen% grep Name
>/usr/share/fonts/type1/texlive-fonts-recommended/ubkl8a.afm
>FontName URWBookmanL-Ligh
>FullName URW Bookman L Light
>FamilyName URW Bookman L
>
>The same info is similarly ascii-encoded in the pfb file. But when
>fontforge had installed (I needed it to look at the otf and ttf fonts
>in
>my example) I double checked and found the same info.
>
>> 
>> The family name is shown when you use the info option, e.g.
>> 
>> mtxrun --script font --list --info --all texgyrepagella*
>
>This was one of the first things I tried.
>
>ellen% mtxrun --script fonts  --info --list --all
>--pattern='bookmanlligh$'|grep name
>mtx-fonts       | fontname: urwbookmanlligh
>mtx-fonts       | fullname: urwbookmanlligh
>mtx-fonts       | filename: ubkl8a.afm
>
>Not really any of the same names even though it finds the same file.
>
>I don't have Macintosh but in Inkscape the name shows up as URW Bookman
>L and the font works there. I have Debian.
>
>ellen% context --version|grep version
>mtx-context     | current version: 2014.05.21 22:04
>
>I guess I'm missing something that will in hindsight look obvious...
>
>Sandra
>
>Example follows.
>
>% Uncomment one of the \definefontfamily lines.
>
>%% Just as a test for \definefontfamily, which works, text shows up in
>%% DejaVu Serif which is a ttf font.
>% \definefontfamily [five] [serif] [DejaVu Serif]
>
>%% This is what fontforge reports as the family name for
>%% Baskervaldx-Reg. It works for me, text shows up in Baskervaldx,
>which
>%% is an otf font.
>% \definefontfamily [five] [serif] [Baskervaldx]
>
>%% Fontforge called this the ``name for humans'', it didn't fly, text
>didn't show up:
>% \definefontfamily [five] [serif] [Baskervaldx Regular]
>
>%% This is straight out of the manual, works, text shows up bookman.
>%% Wanted this look, but with \definefontfamily.
>% \definetypeface [five] [rm] [serif] [bookman]
>
>%% None of these worked. Text doesn't show up at all.
>% \definefontfamily [five] [rm] [URW Bookman L Light]
>% \definefontfamily [five] [rm] [urwbookmanlligh]
>% \definefontfamily [five] [rm] [URWBookmanL-Ligh]
>% \definefontfamily [five] [rm] [URW Bookman L]
>
>\setupbodyfont [five]
>\starttext
>Hello, snow! Won't you go, and return in december?
>\stoptext
>___________________________________________________________________________________
>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
>___________________________________________________________________________________

___________________________________________________________________________________
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-09-04 15:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87wq9jrh44.fsf@ellen.idiomdrottning.org>
2014-09-04 15:53 ` Mica Semrick [this message]
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
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

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=0cf70340-95b9-4ca9-8304-7d819c49d3af@email.android.com \
    --to=mica@silentumbrella.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).