Skip to content

Greek font lost

3 messages · Simon Urbanek, David Winsemius

#
Dear MacRs;

I have been having this problem for a while, but thought that when I  
updated to 2.11.1 that it might get fixed, but just did that and it  
persists. When I use plotmath functions, I see little empty boxes  
where I should be seeing theta's and phi's:

require(graphics)  # the first plotmath example
x <- seq(-4, 4, len = 101)
y <- cbind(sin(x), cos(x))
matplot(x, y, type = "l", xaxt = "n",
         main = expression(paste(plain(sin) * phi, "  and  ",
                                 plain(cos) * phi)),
         ylab = expression("sin" * phi, "cos" * phi), # only 1st is  
taken
         xlab = expression(paste("Phase Angle ", phi)),
         col.main = "blue")
axis(1, at = c(-pi, -pi/2, 0, pi/2, pi),
      labels = expression(-pi, -pi/2, 0, pi/2, pi))
# -- no phi's or pi's or warnings ---

How do I identify which library should be replaced or repaired or  
added to my PATH or which option set?

Have searched archives and FAQs, but maybe I'm not using same terms or  
understanding what I am being told.
#
David,

which graphics device and which OS are you talking about? For Quartz it is the Symbol font that is used (if I remember correctly) - please check your Font Book and make sure it's not disabled.

Cheers,
Simon
On Jun 15, 2010, at 5:17 PM, David Winsemius wrote:

            
#
I am on 10.5.8 using the default Quartz screen device. When I followed  
your advice I found that there were two listings for Symbol/Regular  
and that one of them was displaying a blank page within Font Book.app.  
I remove that one, restarted R (after getting pages full of warnings  
in my first re-test) and now I am seeing Greeks again. Somehow a blank  
Symbol font got installed/corrupted or something. Thanks.