ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* typescripts and variants
@ 2021-06-22 22:17 denis.maier
  2021-06-23  6:43 ` Henning Hraban Ramm
  0 siblings, 1 reply; 9+ messages in thread
From: denis.maier @ 2021-06-22 22:17 UTC (permalink / raw)
  To: ntg-context

Hi
 In my current project I need to use different variants if the Noto Serif font (Regular, Medium, Semi Condensed Bold, Regular ExtraBold.)
Is my understanding of typescripts correct that I cannot have bold and extrabold in the same typescript? And that I need a typescript for regular and one for the semicondensed variants?

Denis
___________________________________________________________________________________
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] 9+ messages in thread

* Re: typescripts and variants
  2021-06-22 22:17 typescripts and variants denis.maier
@ 2021-06-23  6:43 ` Henning Hraban Ramm
  2021-06-23  6:53   ` Henning Hraban Ramm
  2021-06-23 19:42   ` Bruce Horrocks
  0 siblings, 2 replies; 9+ messages in thread
From: Henning Hraban Ramm @ 2021-06-23  6:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Am 23.06.2021 um 00:17 schrieb denis.maier@unibe.ch:
> 
> Hi
> In my current project I need to use different variants if the Noto Serif font (Regular, Medium, Semi Condensed Bold, Regular ExtraBold.)
> Is my understanding of typescripts correct that I cannot have bold and extrabold in the same typescript? And that I need a typescript for regular and one for the semicondensed variants?

You can combine whatever you like in one typescript, but you’re restricted to six styles (regular, italic, slanted, bold, bold italic, bold slanted). You can just “abuse” the italic or slanted styles for your other weights.

Hraban
___________________________________________________________________________________
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] 9+ messages in thread

* Re: typescripts and variants
  2021-06-23  6:43 ` Henning Hraban Ramm
@ 2021-06-23  6:53   ` Henning Hraban Ramm
  2021-06-23  9:05     ` denis.maier
  2021-06-23 19:42   ` Bruce Horrocks
  1 sibling, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2021-06-23  6:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> Am 23.06.2021 um 08:43 schrieb Henning Hraban Ramm <texml@fiee.net>:
> 
> 
>> Am 23.06.2021 um 00:17 schrieb denis.maier@unibe.ch:
>> 
>> Hi
>> In my current project I need to use different variants if the Noto Serif font (Regular, Medium, Semi Condensed Bold, Regular ExtraBold.)
>> Is my understanding of typescripts correct that I cannot have bold and extrabold in the same typescript? And that I need a typescript for regular and one for the semicondensed variants?
> 
> You can combine whatever you like in one typescript, but you’re restricted to six styles (regular, italic, slanted, bold, bold italic, bold slanted). You can just “abuse” the italic or slanted styles for your other weights.

... or use roman styles, if you don’t need roman.

Hraban
___________________________________________________________________________________
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] 9+ messages in thread

* Re: typescripts and variants
  2021-06-23  6:53   ` Henning Hraban Ramm
@ 2021-06-23  9:05     ` denis.maier
  2021-06-23 16:22       ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: denis.maier @ 2021-06-23  9:05 UTC (permalink / raw)
  To: ntg-context

Hi,

> > Am 23.06.2021 um 08:43 schrieb Henning Hraban Ramm <texml@fiee.net>:
> >
> >
> >> Am 23.06.2021 um 00:17 schrieb denis.maier@unibe.ch:
> >>
> >> Hi
> >> In my current project I need to use different variants if the Noto
> >> Serif font (Regular, Medium, Semi Condensed Bold, Regular ExtraBold.) Is
> my understanding of typescripts correct that I cannot have bold and extrabold
> in the same typescript? And that I need a typescript for regular and one for the
> semicondensed variants?
> >
> > You can combine whatever you like in one typescript, but you’re restricted to
> six styles (regular, italic, slanted, bold, bold italic, bold slanted). You can just
> “abuse” the italic or slanted styles for your other weights.
> 
> ... or use roman styles, if you don’t need roman.

Thanks for your help. 
After playing a bit more with the different variants for loading fonts it looks like I don't even need to use typescripts. \definefontfamily works just as good:

\definefontfamily[mainface][rm][Noto Serif]
\definefontfamily[mainface-semicond][rm][Noto Serif]
  [tf=file:NotoSerif-SemiCondensed.ttf,
  it=file:NotoSerif-SemiCondensedItalic.ttf,
  bf=file:NotoSerif-SemiCondensedBold.ttf,
  bi=file:NotoSerif-SemiCondensedBoldItalic.ttf]

But, do typescripts have any advantages over that approach?

Then, for fonts used only in specific contexts, you can also do something like
 
\definefont [TitleFont] [notoserifsemicondensedextrabold]
and use that with \TitleFont
But you will then also need \TitleMonoFont etc, whereas it seems easier to keep things consistent with \definefontfamily...

One thing I'm wondering about: Would it be possible to add a easy mechanism to switch to different variants of a font, say, to use the SemiCondensed variant or the ExtraCondensed or so? (Or does that already exist?)
And, what about adding more styles so that you could have Light, Medium, SemiBold, Bold, ExtraBold, Black etc. all defined in a single fontfamily? If that was available each font family would then define all the styles for one variant (SemiCondensed, ExtraCondensed, Condensed, each with 18 styles!)

My knowledge of fonts is quite limited so please excuse if that doesn't make sense or if I'm missing something obvious to others.

Best,
Denis

> 
> Hraban
> ________________________________________________________________
> ___________________
> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: typescripts and variants
  2021-06-23  9:05     ` denis.maier
@ 2021-06-23 16:22       ` Wolfgang Schuster
  2021-06-24 14:53         ` BPJ
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2021-06-23 16:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

denis.maier@unibe.ch schrieb am 23.06.2021 um 11:05:
> Hi,
>
>>> Am 23.06.2021 um 08:43 schrieb Henning Hraban Ramm <texml@fiee.net>:
>>>
>>>
>>>> Am 23.06.2021 um 00:17 schrieb denis.maier@unibe.ch:
>>>>
>>>> Hi
>>>> In my current project I need to use different variants if the Noto
>>>> Serif font (Regular, Medium, Semi Condensed Bold, Regular ExtraBold.) Is
>> my understanding of typescripts correct that I cannot have bold and extrabold
>> in the same typescript? And that I need a typescript for regular and one for the
>> semicondensed variants?
>>> You can combine whatever you like in one typescript, but you’re restricted to
>> six styles (regular, italic, slanted, bold, bold italic, bold slanted). You can just
>> “abuse” the italic or slanted styles for your other weights.
>>
>> ... or use roman styles, if you don’t need roman.
> Thanks for your help.
> After playing a bit more with the different variants for loading fonts it looks like I don't even need to use typescripts. \definefontfamily works just as good:
>
> \definefontfamily[mainface][rm][Noto Serif]
> \definefontfamily[mainface-semicond][rm][Noto Serif]
>    [tf=file:NotoSerif-SemiCondensed.ttf,
>    it=file:NotoSerif-SemiCondensedItalic.ttf,
>    bf=file:NotoSerif-SemiCondensedBold.ttf,
>    bi=file:NotoSerif-SemiCondensedBoldItalic.ttf]
>
> But, do typescripts have any advantages over that approach?

Even when you use \definefontfamily the internal font handling relies on 
the typescripts.

The advantage of hand written (or generated) typescripts is better 
reliability, most of the time you pass just a name to \definefontfamily 
and some font is chosen for each style but this can fail because all 
depends on the information in the font files. When you use a typescript 
each alternative is associated with a certain font file and almost no 
guess work is required.

> Then, for fonts used only in specific contexts, you can also do something like
>   
> \definefont [TitleFont] [notoserifsemicondensedextrabold]
> and use that with \TitleFont
> But you will then also need \TitleMonoFont etc, whereas it seems easier to keep things consistent with \definefontfamily...
>
> One thing I'm wondering about: Would it be possible to add a easy mechanism to switch to different variants of a font, say, to use the SemiCondensed variant or the ExtraCondensed or so? (Or does that already exist?)
> And, what about adding more styles so that you could have Light, Medium, SemiBold, Bold, ExtraBold, Black etc. all defined in a single fontfamily? If that was available each font family would then define all the styles for one variant (SemiCondensed, ExtraCondensed, Condensed, each with 18 styles!)

You can add more alternatives (\it, \bf ...) to the font mechanism but 
this requires additional settings (\definebodyfont ...) to get it 
working. A limiting factor is that you have to stick to two-letter names 
for each alternative and the easier solution is to create additional 
typefaces.

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] 9+ messages in thread

* Re: typescripts and variants
  2021-06-23  6:43 ` Henning Hraban Ramm
  2021-06-23  6:53   ` Henning Hraban Ramm
@ 2021-06-23 19:42   ` Bruce Horrocks
  2021-06-23 20:32     ` Henning Hraban Ramm
  1 sibling, 1 reply; 9+ messages in thread
From: Bruce Horrocks @ 2021-06-23 19:42 UTC (permalink / raw)
  To: ntg-context


> On 23 Jun 2021, at 07:43, Henning Hraban Ramm <texml@fiee.net> wrote:
> 
> You can combine whatever you like in one typescript, but you’re restricted to six styles (regular, italic, slanted, bold, bold italic, bold slanted). You can just “abuse” the italic or slanted styles for your other weights.

If we're restricted to six styles why does this Wiki page show seven?

<https://wiki.contextgarden.net/Simple_Typescript_Example>

Not meant as a criticism - just a naive question from someone who is puzzled.
—
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
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] 9+ messages in thread

* Re: typescripts and variants
  2021-06-23 19:42   ` Bruce Horrocks
@ 2021-06-23 20:32     ` Henning Hraban Ramm
  2021-06-23 21:01       ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2021-06-23 20:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Am 23.06.2021 um 21:42 schrieb Bruce Horrocks <ntg@scorecrow.com>:
> 
> 
>> On 23 Jun 2021, at 07:43, Henning Hraban Ramm <texml@fiee.net> wrote:
>> 
>> You can combine whatever you like in one typescript, but you’re restricted to six styles (regular, italic, slanted, bold, bold italic, bold slanted). You can just “abuse” the italic or slanted styles for your other weights.
> 
> If we're restricted to six styles why does this Wiki page show seven?
> 
> <https://wiki.contextgarden.net/Simple_Typescript_Example>
> 
> Not meant as a criticism - just a naive question from someone who is puzzled.

Yes, you could also abuse \sc for another style.

Small caps are a bit special though, nowadays they’re often contained in fonts and you address them via OpenType features.

Hraban
___________________________________________________________________________________
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] 9+ messages in thread

* Re: typescripts and variants
  2021-06-23 20:32     ` Henning Hraban Ramm
@ 2021-06-23 21:01       ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2021-06-23 21:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henning Hraban Ramm

On 6/23/2021 10:32 PM, Henning Hraban Ramm wrote:
> 
>> Am 23.06.2021 um 21:42 schrieb Bruce Horrocks <ntg@scorecrow.com>:
>>
>>
>>> On 23 Jun 2021, at 07:43, Henning Hraban Ramm <texml@fiee.net> wrote:
>>>
>>> You can combine whatever you like in one typescript, but you’re restricted to six styles (regular, italic, slanted, bold, bold italic, bold slanted). You can just “abuse” the italic or slanted styles for your other weights.
>>
>> If we're restricted to six styles why does this Wiki page show seven?

in principle one can define as many new ones as one wants ... it doesn't 
happen in practice

>> <https://wiki.contextgarden.net/Simple_Typescript_Example>
>>
>> Not meant as a criticism - just a naive question from someone who is puzzled.
> 
> Yes, you could also abuse \sc for another style.
> 
> Small caps are a bit special though, nowadays they’re often contained in fonts and you address them via OpenType features.
> 
> Hraban
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
> 


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 9+ messages in thread

* Re: typescripts and variants
  2021-06-23 16:22       ` Wolfgang Schuster
@ 2021-06-24 14:53         ` BPJ
  0 siblings, 0 replies; 9+ messages in thread
From: BPJ @ 2021-06-24 14:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1370 bytes --]

> > And, what about adding more styles so that you could have Light, Medium,
> SemiBold, Bold, ExtraBold, Black etc. all defined in a single fontfamily?
> If that was available each font family would then define all the styles for
> one variant (SemiCondensed, ExtraCondensed, Condensed, each with 18 styles!)
>
> You can add more alternatives (\it, \bf ...) to the font mechanism but
> this requires additional settings (\definebodyfont ...) to get it
> working. A limiting factor is that you have to stick to two-letter names
> for each alternative


If you don't mind a question from a lapsed user: what is the reason for
this restriction? It seems arbitrary but I have a feeling it's some
vanilla-TeX thing which I have forgotten.


and the easier solution is to create additional
> typefaces.
>

Also most likely sanity preserving!


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

[-- Attachment #1.2: Type: text/html, Size: 2674 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-06-24 14:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22 22:17 typescripts and variants denis.maier
2021-06-23  6:43 ` Henning Hraban Ramm
2021-06-23  6:53   ` Henning Hraban Ramm
2021-06-23  9:05     ` denis.maier
2021-06-23 16:22       ` Wolfgang Schuster
2021-06-24 14:53         ` BPJ
2021-06-23 19:42   ` Bruce Horrocks
2021-06-23 20:32     ` Henning Hraban Ramm
2021-06-23 21:01       ` Hans Hagen

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).