[NTG-context] defining font family for several options

jbf roma83537 at gmail.com
Wed Sep 2 01:22:28 CEST 2020


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 at 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
> ___________________________________________________________________________________


More information about the ntg-context mailing list