Open simonohanlon101 opened 10 years ago
I cannot embed fonts on Windows 7 using gswin64 version 9.10. I am getting an unknown device "pswrite" issue. After googling around it seems that the "pswrite" driver in gswin64c may be deprecated. Here are the command I ran on an eps file:
# embed fonts Sys.setenv(R_GSCMD = "C:/Program Files/gs/gs9.10/bin/gswin64c.exe") loadfonts(device="postscript") setwd( dirname(paste0( drive , "Output Data/Plots/Predictive Maps/Publication Maps/EPS Files/test.eps" ) ) ) embed_fonts( file = "test.eps" , outfile = "test-embed.eps" ) #Unknown device: pswrite #Unrecoverable error: undefined in .uninstallpagedevice #Operand stack: # defaultdevice #Error in embedFonts(file = file, format = format, outfile = outfile, options = paste(paste("-I", : # status 1 in running command 'C:\PROGRA~1\gs\gs9.10\bin\gswin64c.exe -dNOPAUSE -dBATCH -q -dAutoRotatePages=/None -sDEVICE=pswrite -sOutputFile=C:\Users\sohanlon\AppData\Local\Temp\RtmpOokqf0\Rembed128427c8232e "-sFONTPATH=" -I"C:\Dropbox\R\R64_Win_Libs\extrafontdb\fontmap" "test.eps"' # In addition: Warning message: # running command 'C:\PROGRA~1\gs\gs9.10\bin\gswin64c.exe -dNOPAUSE -dBATCH -q -dAutoRotatePages=/None -sDEVICE=pswrite -sOutputFile=C:\Users\sohanlon\AppData\Local\Temp\RtmpOokqf0\Rembed128427c8232e "-sFONTPATH=" -I"C:\Dropbox\R\R64_Win_Libs\extrafontdb\fontmap" "test.eps"' had status 1 sessionInfo() R version 3.0.1 (2013-05-16) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C [5] LC_TIME=English_United Kingdom.1252 attached base packages: [1] grid stats graphics grDevices utils datasets methods base other attached packages: [1] Rttf2pt1_1.2 extrafontdb_1.0 ggmap_2.3 extrafont_0.16 gplots_2.11.3 KernSmooth_2.23-10 caTools_1.14 gdata_2.13.2 [9] mcmcse_1.0-1 spBayes_0.3-7 Formula_1.1-1 magic_1.5-4 abind_1.4-0 gridExtra_0.9.1 gtools_3.0.0 coda_0.16-1 [17] geoRglm_0.9-2 geoR_1.7-4 MASS_7.3-27 rgeos_0.2-19 RColorBrewer_1.0-5 data.table_1.8.11 maptools_0.8-25 lattice_0.20-15 [25] foreign_0.8-54 rgdal_0.8-10 plyr_1.8 reshape2_1.2.2 ggplot2_0.9.3.1 raster_2.1-49 sp_1.0-11 loaded via a namespace (and not attached): [1] bitops_1.0-5 colorspace_1.2-2 dichromat_2.0-0 digest_0.6.3 gtable_0.1.2 labeling_0.2 mapproj_1.2-1 maps_2.3-2 [9] munsell_0.4.2 png_0.1-5 proto_0.3-10 RandomFields_2.0.66 RgoogleMaps_1.2.0.3 rjson_0.2.12 scales_0.2.3 splancs_2.01-33 [17] stringr_0.6.2 tools_3.0.1
I cannot embed fonts on Windows 7 using gswin64 version 9.10. I am getting an unknown device "pswrite" issue. After googling around it seems that the "pswrite" driver in gswin64c may be deprecated. Here are the command I ran on an eps file: