Skip to content
Back to formatted view

Raw Message

Message-ID: <252CD8C3-2685-4282-AFA8-40AEBF99244A@comcast.net>
Date: 2011-01-13T05:13:13Z
From: David Winsemius
Subject: unicode&pdf font problem
In-Reply-To: <0038c01aa778802349ed402249ac51c7.squirrel@webmail.cogpsyphy.hu>

On Jan 12, 2011, at 11:11 PM, tdenes at cogpsyphy.hu wrote:

>
> Dear List,
>
> I would like to print a plot into pdf. The problem is that the  
> character
> \U0171 is replaced by a simple 'u' (i.e. without accents) in the pdf  
> file.
>
> Example:
> # this works fine
> plot(1,type="n")
> text(1,1,"print \U0171")
>
> # this fails
> pdf("trial.pdf")
> plot(1,type="n")
> text(1,1,"print \U0171")
> dev.off()

Have you tried:

pdf("trial.pdf")
plot(1,type="n")
text(1,1,"print ?")
dev.off()

Your default screen fonts may not be the same as your default pdf  
fonts. A lot depends on system specifics, none of which have you  
provided.


>
> I found an earlier post at
> http://www.mail-archive.com/r-help at r-project.org/msg65541.html, but  
> it is
> too hard to understand at my R-level. Any help is appreciated.



David Winsemius, MD
West Hartford, CT