ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: jbf <roma83537@gmail.com>
To: Otared Kavian <otared@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: defining font family for several options
Date: Wed, 2 Sep 2020 10:10:40 +1000	[thread overview]
Message-ID: <81d54173-16d2-b1be-a3a3-7024c154b3ae@gmail.com> (raw)
In-Reply-To: <E66ACEBA-B385-4949-8848-587C7DA08FFA@gmail.com>

That's now clear. Thank you.

Julian

On 2/9/20 9:59 am, Otared Kavian wrote:
> Hi Julian,
>
> What Aditya means is that you define two (or more) font families: one is named mainface as yu have already done, the other named mychapterfont (for instance) where you attribute whatever fonts you wish to sans serif and else. Then when you want to use the special font in some of the titles you use
>
> {\switchtobodyfont[mychapterfont]\ss my text}
>
> You can use also
>
> \start \switchtobodyfont[mychapterfont] \ss my text \stop
>
> in case the braces are not convenient for a longer text.
>
> Best regards: Otared
>
>> On 2 Sep 2020, at 01:22, jbf <roma83537@gmail.com> wrote:
>>
>> I presume you mean, {\switchtobodyfont[itcavantgarde]\ss My text} for the case I mentioned?
>>
>> Because at no point in the example I gave of \definefontfamily[mainface] had I defined ss as an AvanteGarde typeface, and that is the heart of my question. Can I somehow define two kinds of sans serif for different uses?
>>
>> It was earlier suggested (Hraban) I might be able to do away with the serif font or use calligraphy, but I need the rm and I don't need cg (though, was the suggestion that I could use the initials cg but set up the typeface in fact as a sans serif, in this case AvantGarde? Is that possible? In which case I could also use hw as well for a different typeface as well?). As you can see, I am trying to get to grips with this whole typeface issue which I find a bit complicated.
>>
>> Julian
>>
>>
>> On 2/9/20 9:08 am, Aditya Mahajan wrote:
>>> On Tue, 1 Sep 2020, jbf wrote:
>>>
>>>> Perhaps someone can assist me with the following query. I have a
>>>> situation where I need to use more than one sans serif fonts (especially
>>>> within complicated chapter heads). I currently have the following:
>>>>
>>>> \definefontfamily [mainface] [rm] [alegreya]
>>>> \definefontfamily [mainface] [ss] [dax][tf=file:dax-regular]
>>>> \definefontfamily [mainface] [mm] [alegreya]
>>>> \setupbodyfont[mainface]
>>>> \setupbodyfont[11pt]
>>>>
>>>> But what if I need to have, in addition to the Dax sans serif typeface,
>>>> an additional sans serif typeface such as ITCAvantGarde? How do I
>>>> declare that? Do I just give it another name, e.g.
>>>> \definefontfamily[chapter][itcavantgarde] etc? If I did that, how then
>>>> do I refer to it? Obviously not just as {\ss my text} since that would
>>>> call in the dax font.
>>> {\switchtobodyfont[chapter]\ss my text}
>>>
>>> I tried to improve the explanation on the wiki: https://wiki.contextgarden.net/Font_Switching#Switching_typefaces
>>>
>>> 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
>>> ___________________________________________________________________________________
>> ___________________________________________________________________________________
>> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2020-09-02  0:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-01  3:22 jbf
2020-09-01 20:36 ` Henning Hraban Ramm
2020-09-01 23:08 ` Aditya Mahajan
2020-09-01 23:22   ` jbf
2020-09-01 23:59     ` Otared Kavian
2020-09-02  0:10       ` jbf [this message]
     [not found]       ` <7e248e94-f223-6850-7b69-402939425229@gmail.com>
     [not found]         ` <DFAA6733-13EF-463A-9786-0E5352182E88@gmail.com>
     [not found]           ` <60f78515-9d33-c944-c8ad-9dcbc7053247@gmail.com>
     [not found]             ` <AAFB42C0-CCC0-47BD-8FAA-8E9E2EFBC73C@gmail.com>
2020-09-03 21:06               ` jbf
2020-09-03 21:16                 ` Aditya Mahajan
2020-09-03 22:17                   ` 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=81d54173-16d2-b1be-a3a3-7024c154b3ae@gmail.com \
    --to=roma83537@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=otared@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).