From: Keith McKay <mckaymeister@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: the new simplefonts stuff
Date: Fri, 05 Sep 2014 11:19:33 +0100 [thread overview]
Message-ID: <54098E35.6090709@gmail.com> (raw)
In-Reply-To: <5D145AD1-28A8-491E-8601-DE1369F3E663@gmail.com>
Wolfgang's wee bit of code is brilliant for finding out the details of
font names. The icing on the cake would be if it printed the details in
its own font so we could see what it looked like.
But in any case a useful bit of code. Thanks Wolfgang.
Best Wishes
Keith McKay
On 04/09/2014 11:24, Wolfgang Schuster wrote:
> Am 04.09.2014 um 09:15 schrieb Sandra Snan <sandra.snan@idiomdrottning.org>:
>
>> %% 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
> Below is a short example which shows the different names in a font, as you can
> see in the output the names in each font are different except from the familyname
> entry which is the same for all.
>
> \definefontfamily [five] [rm] [URW Bookman L]
>
> \setupbodyfont [five]
>
> \starttext
>
> \dolookupfontbyspec{fontname=urwbookman*}
>
> \dorecurse{\dolookupnoffound}
> {\starttabulate[|l|l|]
> \NC Familyname \EQ \dolookupgetkeyofindex{familyname}{#1} \NC\NR
> \NC Fontname \EQ \dolookupgetkeyofindex{fontname}{#1} \NC\NR
> \NC Fullname \EQ \dolookupgetkeyofindex{fullname}{#1} \NC\NR
> \NC Filename \EQ \dolookupgetkeyofindex{filename}{#1} \NC\NR
> \NC Rawname \EQ \dolookupgetkeyofindex{rawname}{#1} \NC\NR
> \stoptabulate
> \page}
>
> \stoptext
>
> Wolfgang
>
> ___________________________________________________________________________________
> 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
___________________________________________________________________________________
next prev parent reply other threads:[~2014-09-05 10:19 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
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 [this message]
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=54098E35.6090709@gmail.com \
--to=mckaymeister@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).