Peter Münster wrote:
Hello,
finally I got bold small caps with the attached module. It's certainly a bad hack, but unfortunately I don't know nothing about typescripts, variants and other details about fonts in ConTeXt (it looks too complicated to me...). If somebody knows a cleaner way, feel free to update the wiki.
I doubt there's a cleaner way (except that it's polite to start the definitions with something like \starttypescript [..?..] [computer-modern] [size]), but I noticed something else when I looked into your other file with support for bold typewriter: Hans, wouldn't it be time to do some clean-up on type-siz.tex? Why do all these definitions still refer to cmr? (I understand that cmr synonyms have to stay for backward compatibility, but not that their leftovers have to be used in the distribution source.) \definebodyfont [12pt] [rm] [tf=cmr12, bf=cmbx12, it=cmti12, sl=cmsl12, bi=cmbxti10 at 12pt, bs=cmbxsl10 at 12pt, sc=cmcsc10 at 12pt] OK, I know that they map further to lmr, but not all of them do (bold typewriter font doesn't for example). Why not using lmr names directly? Now I also finally understand why \bi never worked when trying to use it with \setupbodyfont[ss] or [tt]: \definebodyfont [12pt] [ss] [tf=cmss12, bf=cmssbx10 at 12pt, it=cmssi12, sl=cmssi12, bi=cmssbx10 at 12pt, bs=cmssbx10 at 12pt, sc=cmss10 at 12pt] bi= refers to cmssbx for example, which is only bold, not bold italic as it is supposed to be ("bi=LMSans10-BoldOblique at 12pt" or something similar, I guess?), probably because there was no bold italic sans available under cmr. Even worse situation with typewritter, where most switches aren't defined at all. Since there exists a bold and bold italic variant of typewritter, why not defining it, so that there would be no need to write additional modules for it? Bold small caps (for which Peter's module was written) don't exist in lmr (yet), so the module is still of interest, but I would be very grateful if these files could be completed to reflect the current state of lmr. I'm willing to help of nobody else is willing to fix that (I'm slow & not that I know much about fonts, but it seems that I'll have to learn more about typescripts anyway). I have no idea about how to scale the fonts properly and which design sizes to use for which font size, but if that can be copied from the current definitions ... Mojca PS to Peter: I would suggest you to write "author=Peter M\udiaeresis nster" instead of \enableregime[utf] in the header of your modules