From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/7095 Path: main.gmane.org!not-for-mail From: Oliver Mihatsch Newsgroups: gmane.comp.tex.context Subject: Re: Multiple Problems with font handling Date: Fri, 1 Mar 2002 10:35:28 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <200203010935.g219ZS8E013945@zaire.mchp.siemens.de> References: <5.1.0.14.1.20020227204629.02b2ca48@server-1> <5.1.0.14.1.20020301011839.03572f60@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035397585 16437 80.91.224.250 (23 Oct 2002 18:26:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:26:25 +0000 (UTC) Original-To: ntg-context@ntg.nl In-Reply-To: <5.1.0.14.1.20020301011839.03572f60@server-1> Xref: main.gmane.org gmane.comp.tex.context:7095 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:7095 On Friday 01 March 2002 01:19, Hans Hagen wrote: > At 05:38 PM 2/28/2002 +0100, Oliver Mihatsch wrote: > >The minimal example I provided works perfectly now. However, when using > > \tfa the hanging puntuation breakes. E.g. > > ... > >Interestingly, \tfx does not switch off the hanging puntuation. > >Also, \switchtobodyfont[...] seems to be ok. > >(Btw. Is it normal that neither \tfa nor \tfx adapt the interline spaces?) > > i tracked down the problem and repaired it (trivial patch actually but it > took me a while to locate it); has to do with taking care of persistent > font assignments and preventing duplicate defs > > I'll send you the patch for testing > Thank you, Hans, for your quick and helpful answer. With your patch all my problematic examples do work now. Unfortunately, I have got a new one :-( It concernes hanging punctuation when \tfx or \switchtobodyfont[small] are present. Under normal circumstances there is no problem. However, a preceeding \switchtobodyfont[big]\switchtobodyfont[big] leads to an unexpected side effect. Hanging punctuation in all subsequent paragraphs with \tfx or \switchtobodyfont[small] fails. See the following example. \setupoutput[pdftex] \usetypescript[serif][hanging][pure] \setupalign [hanging] \definetypeface[modern][rm][serif][computer-modern][default][handling=pure] \showframe \starttext \modern % Hanging punctuation whith \tfx or \switchtobodyfont[small] works {\tfx\setupinterlinespace\input tufte \par} % ok {\switchtobodyfont[small]\input tufte \par} % ok % Hanging punctuation in the following paragraph works. % However, it has side effects on the subsequent paragraphs. {\switchtobodyfont[big]\switchtobodyfont[big]\input tufte \par} % ok % For some reason hanging punctuation is switched off now. {\tfx\setupinterlinespace\input tufte \par} % no hanging :-( {\switchtobodyfont[small]\input tufte \par} % no hanging :-( \stoptext Oliver