From: jbf <roma83537@gmail.com>
To: Aditya Mahajan <adityam@umich.edu>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: odd behaviour with \definefontfamily
Date: Wed, 26 Aug 2020 12:27:24 +1000 [thread overview]
Message-ID: <1bc42edb-2176-35ae-d7fe-8ed207be9a99@gmail.com> (raw)
In-Reply-To: <nycvar.YAK.7.78.908.2008252156140.7052@nqv-guvaxcnq>
[-- Attachment #1.1: Type: text/plain, Size: 2370 bytes --]
I intend to use it! So, yes, I had not used it at this point, and your
explanation now makes sense.
In the test example I have, I have now placed a line: \ss My text, and
I see that it now loads the sans serif font. But can you explain why it
loads the math font, given that I have not, as yet, used that anywhere
(and may not - it is there for insurance in case such a glyph is needed)?
Julian
On 26/8/20 11:58 am, Aditya Mahajan wrote:
> On Wed, 26 Aug 2020, jbf wrote:
>
>> Can someone tell me why, when I define my typefaces as follows below, I get:
>>
>> mkiv lua stats > loaded fonts: 2 files: baskervaldadfstd.otf,
>> texgyrepagella-math.otf
>>
>> when in fact my font definitions are:
>>
>> \definefontfamily [mainface] [rm] [baskervaldadfstd]
>> [tf=file:BaskervaldADFStd.otf]
>> \definefontfamily [mainface] [ss] [librisadfstd]
>> [tf=file:LibrisADFStd-Regular.otf]
>> \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]
>>
>> \setupbodyfont[mainface]
>>
>> ---------------------
>>
>> ConTeXt loads the [rm] and the [mm] but not the [ss]. Be assured that
>> the ss typeface is available. So if, for example, I comment out the
>> first line ([rm]) and change the Libris to rm instead, I am told:
>>
>> mkiv lua stats > loaded fonts: 2 files: librisadfstd-regular.otf,
>> texgyrepagella-math.otf
>>
>> In other words, only two, not three definitions are working at any one
>> time. Or is it not accepting [ss] for some reason regardless? I have
>> tried any number of existing sans serif fonts and none of them will
>> load. I know the family names are correct, so that is not the problem.
>> What could I be doing wrong?
> Are you actually using sans serif text in your document? If not, then context has no reason to embed a subset of it in the PDF. It is the same reason by the teletype [tt] font has not been loaded.
>
> 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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 3574 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-08-26 2:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-26 1:43 jbf
2020-08-26 1:58 ` Aditya Mahajan
2020-08-26 2:27 ` jbf [this message]
2020-08-26 3:18 ` Aditya Mahajan
2020-08-26 3:42 ` jbf
2020-08-26 4:20 ` Wolfgang Schuster
2020-08-26 4:42 ` jbf
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=1bc42edb-2176-35ae-d7fe-8ed207be9a99@gmail.com \
--to=roma83537@gmail.com \
--cc=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).