![](https://secure.gravatar.com/avatar/a5d42c1ccacf33c72fd502fe1bb5ffa9.jpg?s=120&d=mm&r=g)
Hans, Taco, all, Parallel to Taco's mathfontdump, this morning I ran into a problem trying to reassign a fontdimen of a font invoked using ConTeXt's typescript system. If I try it before a \setupbodyfont, it doesn't recognise the font identifier, and if I try it afterwards, I run into a \reactivatefont mess. The key line in the attached file appears commented out twice: \fontdimen7\csname*new12ptmmmi*\endcsname=0pt (I'm trying to work on some better math support for some other fonts, and trying it this way first, before hacking into a tfm.) The prime question is, is there something higher-level and "obvious" that I'm missing, or does it mean tearing into font-ini? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Adam Lindsay wrote:
Hans, Taco, all,
Parallel to Taco's mathfontdump, this morning I ran into a problem trying to reassign a fontdimen of a font invoked using ConTeXt's typescript system. If I try it before a \setupbodyfont, it doesn't recognise the font identifier, and if I try it afterwards, I run into a \reactivatefont mess.
The key line in the attached file appears commented out twice: \fontdimen7\csname*new12ptmmmi*\endcsname=0pt
(I'm trying to work on some better math support for some other fonts, and trying it this way first, before hacking into a tfm.)
The prime question is, is there something higher-level and "obvious" that I'm missing, or does it mean tearing into font-ini?
we can consider to add 'improvements' to math dimensions in a similar way as protruding and hz, i.e. as a handling; that way they get set at definition time automatically anyhow, the solution for your hackery is: \definetypeface[new][rm][serif][times][default][encoding=texnansi] \definetypeface[new][mm][math][times][default] \setupbodyfont[new] {\csname*new12ptmmmi*\endcsname \fontdimen7\font=1pt} \starttext 7=\the\fontdimen7\csname*new12ptmmmi*\endcsname\par \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Adam Lindsay
-
Hans Hagen