[R] unicode&pdf font problem

David Winsemius dwinsemius at comcast.net
Thu Jan 13 06:13:13 CET 2011

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:

text(1,1,"print ü")

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  

> I found an earlier post at
> http://www.mail-archive.com/r-help@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

More information about the R-help mailing list