From ripley at stats.ox.ac.uk  Wed Mar 19 16:27:12 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 19 Mar 2008 15:27:12 +0000 (GMT)
Subject: [Rd] pdf device problem (PR#10995)
In-Reply-To: <20080319145004.72996282EFF6@mail.pubhealth.ku.dk>
References: <20080319145004.72996282EFF6@mail.pubhealth.ku.dk>
Message-ID: <alpine.LFD.1.00.0803191525320.9859@gannet.stats.ox.ac.uk>

On Wed, 19 Mar 2008, prokaj at cs.elte.hu wrote:

> Full_Name: Vilmos Prokaj
> Version: 2.6.2
> OS: windows
> Submission from: (NULL) (157.181.227.218)
>
>
> I dont know wether my problem is specific to R or not. Using the pdf and
> postscript device I realized that the spacing around  some accented letter
> letter is not correct.
> The same problem does not occur with the eps device. For testing I have used the
> following simple code.
>
> str<-"-|&#337;|-|&#336;|-|&#369;|-|&#368;|-"

And what is that is a reproducible form, in what locale?

> pdf()
> plot(0:1,0:1,main=str,sub=str,xlab=str,ylab=str)
> text(0.5,0.5,str)
> dev.off()
>
>
> postscript()
> plot(0:1,0:1,main=str,sub=str,xlab=str,ylab=str)
> text(0.5,0.5,str)
> dev.off()
>
> Here str contains some hungarian umlaut. The result in the case of pdf device
> looks
> like as if the letters were crossing with a vertical lines. So my suspect is,
> that somethings is worng in the font metrics files.

What viewer are you using?

Hint: Acrobat does not use the specified fonts unless embedded -- see ?pdf

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] pdf device problem (PR#10995)
Prof Brian Ripley