The same happens if you use the "new" way to use CM fonts:
http://cran.r-project.org/doc/Rnews/Rnews_2006-2.pdf

Theoretically, you could do:

CM <- Type1Font("CM",
  c(paste("cm-lgc/fonts/afm/public/cm-lgc/",
          c("fcmr8a.afm", "fcmb8a.afm",
            "fcmri8a.afm", "fcmbi8a.afm"),
          sep=""),
    "cmsyase/cmsyase.afm"))

However, since cmsyase is not available in Ubuntu, you need to do:

CM <- Type1Font("CM",
  c(paste("cm-lgc/fonts/afm/public/cm-lgc/",
          c("fcmr8a.afm", "fcmb8a.afm",
            "fcmri8a.afm", "fcmbi8a.afm"),
          sep=""))

which is expected to give bad results for symbols. But this doesn't even
work. If you try to open the resulting postscript file, ghostview eats
1GB in less than 2 seconds. Now, if you use also the embedFonts()
function in R:

> embedFonts("cm.pdf",
    outfile="cmembed.pdf",
    fontpaths=
      c("cm-lgc/fonts/type1/public/cm-lgc",
        "cmsyase"))

then, R eats 1GB in less that 2 seconds. I guess it is calling
ghostscript internally.

I haven't found anyone that has been able to get CM fonts working in R
in Ubuntu.

-- 
postcript with family = "ComputerModern", encoding = "TeXtext.enc" produces 
broken file
https://bugs.launchpad.net/bugs/137030
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to