german sharp s in Metapost Labels
Hi all, if i use another Font as cmr to typeset labels in MetaPost the german sharp s is typeset with wrong width. The same text direct typeset by tex (pdfetex) without MetaPost looks right. Is this a bug in tex or in metapost (i dont believe) or is it a font problem? Greetings Lutz My File: \setupoutput[pdftex] \setuppagenumbering[state=stop] \useencoding[win] \mainlanguage[de] \starttext \startMPgraphic verbatimtex \useencoding[win] \mainlanguage[de] etex; draw fullcircle scaled 4cm; label(btex Hans Maaß, Berlin etex(center currentpicture)); \stopMPgraphic \loadcurrentMPgraphic \placeMPgraphic Hans Maaß, Berlin \startMPgraphic verbatimtex \usetypescript [berry][ec] \definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec] \definetypeface [palatino] [mm] [math] [palatino] [default] [encoding=ec] \setupbodyfont [palatino, 10pt, rm] \useencoding[win] \mainlanguage[de] etex; draw fullcircle scaled 4cm; label(btex Hans Maaß, Berlin etex(center currentpicture)); \stopMPgraphic \loadcurrentMPgraphic \placeMPgraphic \usetypescript [berry][ec] \definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec] \definetypeface [palatino] [mm] [math] [palatino] [default] [encoding=ec] \setupbodyfont [palatino, 10pt, rm] Hans Maaß, Berlin \startMPgraphic verbatimtex \setupencoding [default=ec] \usetypescript[berry][ec] \definetypeface [postscript] [rm] [serif] [times] [default] \definetypeface [postscript] [ss] [sans] [helvetica] [default] [rscale=..9] \definetypeface [postscript] [tt] [mono] [courier] [default] [rscale=1.1] \setupbodyfont [postscript, 11pt] \useencoding[win] \mainlanguage[de] etex; draw fullcircle scaled 4cm; label(btex Hans Maaß, Berlin etex(center currentpicture)); \stopMPgraphic \loadcurrentMPgraphic \placeMPgraphic \setupencoding [default=ec] \usetypescript[berry][ec] \definetypeface [postscript] [rm] [serif] [times] [default] \definetypeface [postscript] [ss] [sans] [helvetica] [default] [rscale=..9] \definetypeface [postscript] [tt] [mono] [courier] [default] [rscale=1.1] \setupbodyfont [postscript, 11pt] Hans Maaß, Berlin \stoptext
On Fri, 9 Jan 2004, Lutz Haseloff wrote:
if i use another Font as cmr to typeset labels in MetaPost the german sharp s is typeset with wrong width.
Same problem has been mentioned in tex-k by Reinhard Kotucha, 5.1.2004. Maybe you can combine efforts... (no idea by me) Regards, Hartmut
At 18:50 09/01/2004, Hartmut Henkel wrote:
On Fri, 9 Jan 2004, Lutz Haseloff wrote:
if i use another Font as cmr to typeset labels in MetaPost the german sharp s is typeset with wrong width.
Same problem has been mentioned in tex-k by Reinhard Kotucha, 5.1.2004. Maybe you can combine efforts... (no idea by me)
only sharp s? are the same metrics used in the mp run? \starttext \startMPenvironment \setupbodyfont[pos] \stopMPenvironment \startMPpage draw btex te\SS t etex ; \stopMPpage \stoptext comes out ok here Hans
Hi, The following works ok here (see previous mail for example of MPenvironment) label(btex Hans Maaß, Berlin etex, center currentpicture); ^^^ , needed, else wrong mp run! ===== changed code ===== \setupoutput[pdftex] \setuppagenumbering[state=stop] \useencoding[win] \mainlanguage[de] \starttext \startMPcode verbatimtex \useencoding[win] \mainlanguage[de] etex; draw fullcircle scaled 4cm; label(btex Hans Maaß, Berlin etex, center currentpicture); \stopMPcode \startMPcode verbatimtex \usetypescript [berry][ec] \definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec] \definetypeface [palatino] [mm] [math] [palatino] [default] [encoding=ec] \setupbodyfont [palatino, 10pt, rm] \useencoding[win] \mainlanguage[de] etex; draw fullcircle scaled 4cm; label(btex Hans Maaß, Berlin etex, center currentpicture); \stopMPcode \startMPcode verbatimtex \setupencoding [default=ec] \usetypescript[berry][ec] \definetypeface [postscript] [rm] [serif] [times] [default] \definetypeface [postscript] [ss] [sans] [helvetica] [default] [rscale=..9] \definetypeface [postscript] [tt] [mono] [courier] [default] [rscale=1.1] \setupbodyfont [postscript, 11pt] \useencoding[win] \mainlanguage[de] etex; draw fullcircle scaled 4cm; label(btex Hans Maaß, Berlin etex, center currentpicture); \stopMPcode \stoptext
Hi all,
if i use another Font as cmr to typeset labels in MetaPost the german sharp s is typeset with wrong width.
The same text direct typeset by tex (pdfetex) without MetaPost looks right.
Is this a bug in tex or in metapost (i dont believe) or is it a font problem?
Greetings Lutz
My File:
\setupoutput[pdftex] \setuppagenumbering[state=stop] \useencoding[win] \mainlanguage[de] \starttext \startMPgraphic verbatimtex \useencoding[win] \mainlanguage[de] etex; draw fullcircle scaled 4cm; label(btex Hans Maaß, Berlin etex(center currentpicture)); \stopMPgraphic \loadcurrentMPgraphic \placeMPgraphic
Hans Maaß, Berlin
\startMPgraphic verbatimtex \usetypescript [berry][ec] \definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec] \definetypeface [palatino] [mm] [math] [palatino] [default] [encoding=ec] \setupbodyfont [palatino, 10pt, rm] \useencoding[win] \mainlanguage[de] etex; draw fullcircle scaled 4cm; label(btex Hans Maaß, Berlin etex(center currentpicture)); \stopMPgraphic \loadcurrentMPgraphic \placeMPgraphic \usetypescript [berry][ec] \definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec] \definetypeface [palatino] [mm] [math] [palatino] [default] [encoding=ec] \setupbodyfont [palatino, 10pt, rm]
Hans Maaß, Berlin
\startMPgraphic verbatimtex \setupencoding [default=ec] \usetypescript[berry][ec] \definetypeface [postscript] [rm] [serif] [times] [default] \definetypeface [postscript] [ss] [sans] [helvetica] [default] [rscale=..9] \definetypeface [postscript] [tt] [mono] [courier] [default] [rscale=1.1] \setupbodyfont [postscript, 11pt] \useencoding[win] \mainlanguage[de] etex; draw fullcircle scaled 4cm; label(btex Hans Maaß, Berlin etex(center currentpicture)); \stopMPgraphic \loadcurrentMPgraphic \placeMPgraphic \setupencoding [default=ec] \usetypescript[berry][ec] \definetypeface [postscript] [rm] [serif] [times] [default] \definetypeface [postscript] [ss] [sans] [helvetica] [default] [rscale=..9] \definetypeface [postscript] [tt] [mono] [courier] [default] [rscale=1.1] \setupbodyfont [postscript, 11pt]
Hans Maaß, Berlin \stoptext _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Deze e-mail is door E-mail VirusScanner van Planet Internet gecontroleerd op virussen. Op http://www.planet.nl/evs staat een verwijzing naar de actuele lijst waar op wordt gecontroleerd.
------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hans Hagen schrieb:
Hi,
The following works ok here (see previous mail for example of MPenvironment)
label(btex Hans Maaß, Berlin etex, center currentpicture);
^^^ , needed, else wrong mp run!
My stupid error.
===== changed code =====
\setupoutput[pdftex]
\setuppagenumbering[state=stop]
.... Your changed Code shows the same Error, only the cmr12-part looks right. Greetings Lutz
participants (3)
-
Hans Hagen
-
Hartmut Henkel
-
Lutz Haseloff