* OK, I Don't Quite Understand \definefontfamily
@ 2020-09-25 19:12 Michael Urban
2020-09-25 21:45 ` Michael Urban
2020-09-28 19:39 ` Wolfgang Schuster
0 siblings, 2 replies; 6+ messages in thread
From: Michael Urban @ 2020-09-25 19:12 UTC (permalink / raw)
To: ntg-context
I don't seem quite able to put it all together, forgive the question.
I have a 'Bookman' font setup, pretty vanilla:
\definetypeface [Bookman] [rm] [serif] [bonum] [sl=name:unituscndboldoblique]
\definetypeface [Bookman] [tt] [mono] [modern] [default]
\definetypeface [Bookman] [ss] [sans] [unitus] [default]
\definetypeface [Bookman] [mm] [math] [modern] [default]
(Unitus is the fontsite 500 'Univers' substitute, works fine)
Now, the built-in gyre bonum font doesn't have a slanted/oblique variant, so if I have Bookman as my main body
font, \sl produces (unsurprisingly) the same result as \it, TexGyreBonum-Italic. If I want \sl to summon
Latin Modern for the variant, I have tried variations on
\definetypeface [Bookman] [rm] [serif] [bonum] [sl=file:Latin Modern Roman Slanted]
but to no avail — not helped by the fact that the \definetypeface contextgarden page doesn't have any pointer to just what that fifth
argument can contain.
How do I accomplish this?
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OK, I Don't Quite Understand \definefontfamily
2020-09-25 19:12 OK, I Don't Quite Understand \definefontfamily Michael Urban
@ 2020-09-25 21:45 ` Michael Urban
2020-09-28 19:39 ` Wolfgang Schuster
1 sibling, 0 replies; 6+ messages in thread
From: Michael Urban @ 2020-09-25 21:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
> On Sep 25, 2020, at 12:12 PM, Michael Urban <urban.m@ca.rr.com> wrote:
>
> \definetypeface [Bookman] [rm] [serif] [bonum] [sl=name:unituscndboldoblique]
Oops, this was one of my bad attempts. the fifth argument is actually omitted in the normally working version.
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OK, I Don't Quite Understand \definefontfamily
2020-09-25 19:12 OK, I Don't Quite Understand \definefontfamily Michael Urban
2020-09-25 21:45 ` Michael Urban
@ 2020-09-28 19:39 ` Wolfgang Schuster
2020-09-28 21:49 ` Michael Urban
1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2020-09-28 19:39 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Michael Urban
Michael Urban schrieb am 25.09.2020 um 21:12:
> I don't seem quite able to put it all together, forgive the question.
>
> I have a 'Bookman' font setup, pretty vanilla:
>
> \definetypeface [Bookman] [rm] [serif] [bonum] [sl=name:unituscndboldoblique]
> \definetypeface [Bookman] [tt] [mono] [modern] [default]
> \definetypeface [Bookman] [ss] [sans] [unitus] [default]
> \definetypeface [Bookman] [mm] [math] [modern] [default]
>
> (Unitus is the fontsite 500 'Univers' substitute, works fine)
>
> Now, the built-in gyre bonum font doesn't have a slanted/oblique variant, so if I have Bookman as my main body
> font, \sl produces (unsurprisingly) the same result as \it, TexGyreBonum-Italic. If I want \sl to summon
> Latin Modern for the variant, I have tried variations on
>
> \definetypeface [Bookman] [rm] [serif] [bonum] [sl=file:Latin Modern Roman Slanted]
>
>
> but to no avail — not helped by the fact that the \definetypeface contextgarden page doesn't have any pointer to just what that fifth
> argument can contain.
https://wiki.contextgarden.net/Command/definetypeface
> How do I accomplish this?
Use \definefontfamily which is missing in your example.
\definefontfamily [Bookman] [rm] [TeX Gyre Bonum]
[sl=features:{*,slanted},
bs=features:{*,slanted}]
\definetypeface [Bookman] [mm] [math] [modern] [default]
\setupbodyfont [Bookman]
\starttext
\tf upright \it italic \sl slanted \bf bold \bi bolditalic \bs boldslanted
\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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OK, I Don't Quite Understand \definefontfamily
2020-09-28 19:39 ` Wolfgang Schuster
@ 2020-09-28 21:49 ` Michael Urban
2020-09-29 14:10 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Michael Urban @ 2020-09-28 21:49 UTC (permalink / raw)
Cc: mailing list for ConTeXt users
> On Sep 28, 2020, at 12:39 PM, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
>
> Michael Urban schrieb am 25.09.2020 um 21:12:
>> I don't seem quite able to put it all together, forgive the question.
>> I have a 'Bookman' font setup, pretty vanilla:
>> \definetypeface [Bookman] [rm] [serif] [bonum] [sl=name:unituscndboldoblique]
>> \definetypeface [Bookman] [tt] [mono] [modern] [default]
>> \definetypeface [Bookman] [ss] [sans] [unitus] [default]
>> \definetypeface [Bookman] [mm] [math] [modern] [default]
>> (Unitus is the fontsite 500 'Univers' substitute, works fine)
>> Now, the built-in gyre bonum font doesn't have a slanted/oblique variant, so if I have Bookman as my main body
>> font, \sl produces (unsurprisingly) the same result as \it, TexGyreBonum-Italic. If I want \sl to summon
>> Latin Modern for the variant, I have tried variations on
>> \definetypeface [Bookman] [rm] [serif] [bonum] [sl=file:Latin Modern Roman Slanted]
>> but to no avail — not helped by the fact that the \definetypeface contextgarden page doesn't have any pointer to just what that fifth
>> argument can contain.
>
> https://wiki.contextgarden.net/Command/definetypeface
>
>> How do I accomplish this?
>
> Use \definefontfamily which is missing in your example.
>
> \definefontfamily [Bookman] [rm] [TeX Gyre Bonum]
> [sl=features:{*,slanted},
> bs=features:{*,slanted}]
>
> \definetypeface [Bookman] [mm] [math] [modern] [default]
>
> \setupbodyfont [Bookman]
>
> \starttext
> \tf upright \it italic \sl slanted \bf bold \bi bolditalic \bs boldslanted
> \stoptext
>
> Wolfgang
Except that this does not work, because, as I said, the Gyre Bonum font has no builtin slanted version. So, I want to use some other font (like Latin Modern) for a substitute for \sl .
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OK, I Don't Quite Understand \definefontfamily
2020-09-28 21:49 ` Michael Urban
@ 2020-09-29 14:10 ` Wolfgang Schuster
2020-09-29 17:07 ` Michael Urban
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2020-09-29 14:10 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Michael Urban
Michael Urban schrieb am 28.09.2020 um 23:49:
>
>
>> On Sep 28, 2020, at 12:39 PM, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
>>
>> Michael Urban schrieb am 25.09.2020 um 21:12:
>>> I don't seem quite able to put it all together, forgive the question.
>>> I have a 'Bookman' font setup, pretty vanilla:
>>> \definetypeface [Bookman] [rm] [serif] [bonum] [sl=name:unituscndboldoblique]
>>> \definetypeface [Bookman] [tt] [mono] [modern] [default]
>>> \definetypeface [Bookman] [ss] [sans] [unitus] [default]
>>> \definetypeface [Bookman] [mm] [math] [modern] [default]
>>> (Unitus is the fontsite 500 'Univers' substitute, works fine)
>>> Now, the built-in gyre bonum font doesn't have a slanted/oblique variant, so if I have Bookman as my main body
>>> font, \sl produces (unsurprisingly) the same result as \it, TexGyreBonum-Italic. If I want \sl to summon
>>> Latin Modern for the variant, I have tried variations on
>>> \definetypeface [Bookman] [rm] [serif] [bonum] [sl=file:Latin Modern Roman Slanted]
>>> but to no avail — not helped by the fact that the \definetypeface contextgarden page doesn't have any pointer to just what that fifth
>>> argument can contain.
>>
>> https://wiki.contextgarden.net/Command/definetypeface
>>
>>> How do I accomplish this?
>>
>> Use \definefontfamily which is missing in your example.
>>
>> \definefontfamily [Bookman] [rm] [TeX Gyre Bonum]
>> [sl=features:{*,slanted},
>> bs=features:{*,slanted}]
>>
>> \definetypeface [Bookman] [mm] [math] [modern] [default]
>>
>> \setupbodyfont [Bookman]
>>
>> \starttext
>> \tf upright \it italic \sl slanted \bf bold \bi bolditalic \bs boldslanted
>> \stoptext
>>
>> Wolfgang
>
> Except that this does not work, because, as I said, the Gyre Bonum font has no builtin slanted version.
Have you even taken a look at the output of my example?
> So, I want to use some other font (like Latin Modern) for a substitute for \sl .
I still think my version looks better (even with bold Latin Modern).
\definefontfamily [slantedbookman] [rm] [TeX Gyre Bonum]
[sl={style:regular,features:{*,slanted}},
bs={style:bold,features:{*,slanted}}]
\definefontfamily [modernbookman] [rm] [TeX Gyre Bonum]
[sl={file:lmromanslant10-regular},
bs={file:lmromanslant10-bold}]
% \definefontfamily [modernbookman] [rm] [TeX Gyre Bonum]
% [sl={file:lmromanslant10-regular,features:{*,boldened}},
% bs={file:lmromanslant10-bold,features:{*,boldened}}]
\starttext
\setupbodyfont [slantedbookman]
\it italic \sl slanted \bi bolditalic \bs boldslanted
\setupbodyfont [modernbookman]
\it italic \sl slanted \bi bolditalic \bs boldslanted
\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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OK, I Don't Quite Understand \definefontfamily
2020-09-29 14:10 ` Wolfgang Schuster
@ 2020-09-29 17:07 ` Michael Urban
0 siblings, 0 replies; 6+ messages in thread
From: Michael Urban @ 2020-09-29 17:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
OK, that worked. Thank you for your help.
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-09-29 17:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 19:12 OK, I Don't Quite Understand \definefontfamily Michael Urban
2020-09-25 21:45 ` Michael Urban
2020-09-28 19:39 ` Wolfgang Schuster
2020-09-28 21:49 ` Michael Urban
2020-09-29 14:10 ` Wolfgang Schuster
2020-09-29 17:07 ` Michael Urban
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).