Displaying 1 result from an estimated 1 matches for "familyset_hook".
2008 May 23
0
A problem about the Japanese font of OSX
...grDevices::quartz.options(family="sans")
)
However, it was not reflected in family of the default.
If I appoint it with `quartz(family="sans")', which was able to use Japanese.
Therefore I added hook.
attach(NULL, name = "MacJapanEnv")
assign("familyset_hook",
function() { if(names(dev.cur())=="quartz") par(family="sans")},
pos="MacJapanEnv")
setHook("plot.new", get("familyset_hook", pos="MacJapanEnv"))
However, the following practice caused a problem.
> plot(1:5,1:5)...