From: jbf <roma83537@gmail.com>
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: odd behaviour with \definefontfamily
Date: Wed, 26 Aug 2020 14:42:40 +1000 [thread overview]
Message-ID: <630ee53f-e22a-6276-7dad-5f740dc4e2eb@gmail.com> (raw)
In-Reply-To: <c19392b7-b5f3-dbfa-76bb-f7683f8c7c0f@gmail.com>
I get it now. Thanks to you both.
Julian
On 26/8/20 2:20 pm, Wolfgang Schuster wrote:
> jbf schrieb am 26.08.2020 um 05:42:
>> MWE as follows:
>>
>> \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]
>>
>> \starttext
>> \tf ffi,
>>
>> \it ffi,
>>
>> \bf ffi,
>>
>> \bi ffi.
>>
>> \ss THIS IS A TITLE IN SANS SERIF
>>
>> \tt Monospaced
>>
>> \stoptext
>>
>> Context then tells me that:
>>
>> /mkiv lua stats > loaded fonts: 6 files: baskervaldadfstd-bold.otf,
>> baskervaldadfstd-bolditalic.otf, baskervaldadfstd-italic.otf,
>> baskervaldadfstd.otf, librisadfstd-bolditalic.otf,
>> texgyrepagella-math.otf/
>>
>> So, in this instance, and as you explained would be the case, it is
>> loading the sans serif family (Libris) but I note that it is not
>> giving me what I asked for, which was /LibrisADFStd-Regular.otf/.
>> Instead it has given me /LibrisADFStd-BoldItalic.otf/
>>
>> And I deliberately did not include any maths, or itemize or anything
>> that might involve those symbols, thinking it would not then load the
>> Pagella Maths file, but it did. So my two questions now are
>>
>> 1. Why is it loading Libris BoldItalic and not Regular as asked for?
>
> You used \bi before you switched to the sans serif font and the style
> is still active. To prevent this problem add around around style
> changes, e.g. {\bi ...}.
>
>> 2. If I am not using Maths so far, why is it loading the Pagella math
>> file?
>
> ConTeXt checks the math font when you change the font with
> \setupbodyfont and at this point the math font gets loaded.
>
> You can prevent the loading of the math font with \textonly but you
> should use this only when you're 100% sure you never use math in your
> document. As Aditya already ConTeXt can use math for itemize symbols
> (which isn't the default behavior anymore) and it's better to keep
> math to avoid problems.
>
> %% begin example
> \textonly
>
> \starttext
> \unknown
> \stoptext
> %% end example
>
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2020-08-26 4:42 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
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 [this message]
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=630ee53f-e22a-6276-7dad-5f740dc4e2eb@gmail.com \
--to=roma83537@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=wolfgang.schuster.lists@gmail.com \
/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).