* fontdimen trickery
@ 2004-11-01 15:49 Adam Lindsay
2004-11-01 16:04 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Adam Lindsay @ 2004-11-01 15:49 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 978 bytes --]
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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #2: fontdimen.tex --]
[-- Type: application/x-tex, Size: 892 bytes --]
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: fontdimen trickery
2004-11-01 15:49 fontdimen trickery Adam Lindsay
@ 2004-11-01 16:04 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2004-11-01 16:04 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-01 16:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-01 15:49 fontdimen trickery Adam Lindsay
2004-11-01 16:04 ` 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).