See ?cairo_pdf and then the Cairo Fonts section of ?X11 for details. Carlson on the R mailing list from earlier this year.Īn alternative depending on how your system is set-up is to a Cairo-based PDF device as that will use the functions of your system to identify and load fonts based simply on their name. Paul Murrell and Brian Ripley (2006) Non-standard fonts in PostScript and PDF graphics.Luckily I had made a zip backup of my old Windows font folder, so I was able to install it from there. I think the font is installed in older versions of Windows or MS Office, as it was installed on my Windows 7 PC, but not my new Windows 10 PC. ![]() afm files lying around, but I pieced this together from several sources: I fixed it by installing the font 'Arial Unicode MS' - arialuni.ttf. I haven't tried this as I don't have Arial on my system nor too many. The final step is to use the family argument in pdf() which refers to one of the existing families as defined by pdfFonts(): pdf("testArial.pdf", family = "Arial") Where Arial is the object produced by Type1Font() earlier. The you use the pdfFonts() function to add a mapping to these new fonts pdfFonts(Arial = Arial) afm files, The files should be specified in this order: ![]() ![]() Where the character vector metrics contains the paths to the relevant. afm files for Arial on the interweb if you don't already have them. This requires you to have Adobe Font Metric files ( *.afm files) for the fonts you wish to use. You need to set a new font family for use with pdf().
0 Comments
Leave a Reply. |