Hi List, I would like to embed some fonts (AFM format) on 324 eps files
produced by a R loop, I’m able to do so one-by-one with the following
command:

 

embedFonts('C:/Users/Rodrigo/Documents/UFPR/Micropaleontologia/Potiguar/Cata
logo/Mapas/EPS/Example.eps',

outfile='C:/Users/Rodrigo/Documents/UFPR/Micropaleontologia/Potiguar/Catalog
o/Mapas/EPS/Example2.eps',

fontpaths="C:/Users/Rodrigo/Documents/UFPR/Micropaleontologia/Potiguar/Catal
ogo/ArialNarrow")

 

But, I would like to do that for the entire EPS directory at once. How can I
do so? Another issue is the fact that GhostScript 8.64 seems not to be able
of dealing with filenames larger than 8 character (the older Windows format,
error: no such file or directory), or with files inside folders with names
containing some types of characters (e.g.: ç, á, é, etc, non ASII, I
guess…). Well I fixed the directory name issue, but my 324 eps files have
species names, so they are pretty large names.

 

Well, if you have any ideas about the embed at once processes it may be
enough, I’ll try to figure out a way through the filename issue (which is
probably an GhostScript, not R, issue. But interestingly, when GIMP is using
GhostScript to render eps files, there aren’t problems with the files or
directories names!?!). GIMP 2.6.7 uses the GS_PROG environmental variable,
which leads to the same exe file of the R_GSCMD variable (gswin32c.exe)

 

Thank you for your attention, I hope you may help me.

 

Below are my session details:

I execute R as admin on a Windows Vista Home Premium SP2

I’ve set up the R_GSCMD environment variable accordingly

 

R version 2.10.1 (2009-12-14) 

i386-pc-mingw32 

 

locale:

[1] LC_COLLATE=Portuguese_Brazil.1252  LC_CTYPE=Portuguese_Brazil.1252   

[3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C                      

[5] LC_TIME=Portuguese_Brazil.1252    

 

attached base packages:

[1] grDevices datasets  splines   graphics  stats     tcltk     utils    

[8] methods   base     

 

other attached packages:

[1] svSocket_0.9-48 TinnR_1.0.3     R2HTML_1.59-1   Hmisc_3.7-0    

[5] survival_2.35-8

 

loaded via a namespace (and not attached):

[1] cluster_1.12.1  grid_2.10.1     lattice_0.17-26 svMisc_0.9-56  

[5] tools_2.10.1   

 

-------------------------------------------------------------

MSc.  <mailto:r.aluizio@gmail.com> Rodrigo Aluizio

Centro de Estudos do Mar/UFPR
Laboratório de Micropaleontologia


	[[alternative HTML version deleted]]


