Dear Dr. Murrel,

Thank you for all the clarifications!

Paul Murrell írta:
Hi



#CMS
pdf("tryfont-cms.pdf", family="CMS")
grid.text("gg\u151hh\uF6ii\uF3jj kk\u171ll\uFCmm\uFAnn")
dev.off()
#u151 and u171 doesn't show, though the other accented ones do

embedFonts("tryfont-cms.pdf",
outfile="tryfont-cms-embed.pdf",
fontpaths="/cm-super/afm/")
#after embedding the same "slipping" occurs


The 'fontpaths' argument describes where the PFB files are, not where the AFM files are. So this is probably failing to embed the fonts because it can't find the fonts. Does it work if you change to something like ...

 embedFonts("tryfont-cms.pdf",
           outfile="tryfont-cms-embed.pdf",
           fontpaths="cm-super/pfb/")

Paul


This solved my problem, so I am really very grateful! I am not too familiar with font protocols. Just for the sake of knowledge: if my embedFonts specification should not have made any difference, why did the output pdf differed from the one before embedding?

Thanks again,
Peter



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to