Hi,
Am 23.06.2021 um 08:43 schrieb Henning Hraban Ramm
: 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 ________________________________________________________________ ___________________