![](https://secure.gravatar.com/avatar/a5d42c1ccacf33c72fd502fe1bb5ffa9.jpg?s=120&d=mm&r=g)
Hans Hagen said this at Tue, 1 Jun 2004 21:04:49 +0200:
take a look at font-ini and search for the definition of \em; but since you suffered already a lot:
Hey Hans, I like this one a lot. It's more of what I imaged when you mentioned "fonts" and "parameters". (But I managed something interesting there... need to write it up.) I'd prefer (at least a variant) that does it based on fontstyle as well: \unprotect \definesystemvariable{sx} \def\definestylecollection {\dotripleargument\dodefinestylecollection} \def\dodefinestylecollection[#1][#2][#3][#4]% {\unexpanded\setvalue{#1}{\styleinstance[#1]}% \setvalue{\??sx#1:#2:#3}{#4}} \unexpanded\def\styleinstance[#1]% {\executeifdefined{\??sx#1:\fontstyle:\fontalternative}{\getvalue{\? ?sx#1:\fontstyle:\s!default}}} \protect \definestylecollection[caps][ss][default][\sc] \definestylecollection[caps][ss][bf][\bc] \definestylecollection[caps][ss][bi][\bc] \definestylecollection[caps][ss][bs][\bc]
let me know if this works ok, maybe i can add it to the kernel then
Works fine here. So. Now that we can parameterise font alternatives much more easily, can there be some sort of agreement on other, expanded names for font alternatives that go beyond the ones that cmr offers? I'm currently playing with these names (some grabbed from Hans's draft of Utopia support in type-siz). Do any of them look grossly wrong? \definebodyfont [default] [rm] [tf=Serif sa 1, it=SerifItalic sa 1, sl=SerifSlanted sa 1, sc=SerifCaps sa 1, % iy=SerifItalicCaps sa 1, % ?? bf=SerifBold sa 1, bi=SerifBoldItalic sa 1, bs=SerifBoldSlanted sa 1, bc=SerifBoldCaps sa 1, % by=SerifBoldItalicCaps sa 1, % ?? db=SerifSemi sa 1, di=SerifSemiItalic sa 1, ds=SerifSemiSlanted sa 1, dc=SerifSemiCaps sa 1, % dy=SerifSemiItalicCaps sa 1, % ?? eb=SerifBlack sa 1, ei=SerifBlackItalic sa 1, es=SerifBlackSlanted sa 1, ec=SerifBlackCaps sa 1, % ey=SerifBlackItalicCaps sa 1, % ?? lf=SerifLight sa 1, li=SerifLightItalic sa 1, ls=SerifLightSlanted sa 1, lc=SerifLightCaps sa 1, % ly=SerifLightItalicCaps sa 1 % ?? ] -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay atl@comp.lancs.ac.uk Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-