Displaying 7 results from an estimated 7 matches for "ttf2afm".
2010 Oct 28
2
How to enable Arial font for postcript/pdf figure on Windows?
Hi,
I need to generate some figure using the Arial font as a requirement for
PLoS.
Following their guidelines, I have converted the windows font files
arial.tff files to .afm using tff2afm (exec file from MikTeX), but when I
try to generate a postcript file, the postcript device does not recognize
the .afm files.
The code I use to test the new font is the following:
2011 Jul 03
1
using Arial font
...cle with needs the font to be Arial. I have tried looking around to find
out how to do this with no luck and must help on the topic is geared towards
Linux users - the only help available is from the PLoS ONE site:
Enable the use of Arial in R
First, convert the Arial .ttf files to afm:
ttf2afm /usr/share/fonts/msttcorefonts/arial.ttf > ~/arial.afm
ttf2afm /usr/share/fonts/msttcorefonts/ariali.ttf > ~/ariali.afm
ttf2afm /usr/share/fonts/msttcorefonts/arialbd.ttf > ~/arialbd.afm
ttf2afm /usr/share/fonts/msttcorefonts/arialbi.ttf > ~/arialbi.afm
and then do the foll...
2003 Mar 14
1
Using Arial font in linux
Hi,
Late last year there was a thread on r-help about installing Arial
fonts on linux machines:
http://finzi.psych.upenn.edu/R/Rhelp02/archive/8548.html
I too would like to use Arial fonts in some R plots created on my
redhat machine. I've installed the TrueType fonts from
http://corefonts.sourceforge.net/ -- there is now a directory
/usr/share/fonts/msttcorefonts/ and xlsfonts reports
2011 Jan 15
1
Truetype and Opentype font in pdf device
Deal all,
I want to know if truetype or opentype fonts are available in pdf
device (i.e., pdf() or dev.copy2pdf()), and if so, how to do it?
Now I can do as followings:
1. convert ttf to afm using ttf2afm, e.g.: $ ttf2afm Impact.ttf > Impact.afm
2. put the afm file in $R_HOME/library/grDevices/afm
3. register a new type1 font: pdfFonts(Impact=Type1Font("Impact",
rep("Impact.afm", 4), encoding = "TeXtext.enc"))
4. specify the fontfamily in gpar: grid.text('hello g...
2012 Feb 09
1
Arial font in eps figures in R
...="Arial")
plot(1:10, 1:10)
dev.off()
which resulted in:
Error in postscript("testArial.eps", horizontal = F, onefile = F, width = 4, :
Failed to initialise default PostScript font
The *.afm files were downloaded from http://www.koders.com/, since I wasn't able to run ttf2afm or ttf2pt1 on my computer. The files are saved under ../R/library/grDevices/afm. I have also tried saving the files with LF line endings (instead of CRLF) as indicated in README under /grDevices/afm, and zipping them. That didn't make a difference.
I am currently running R-2.14.1 on Windows7....
2006 Jul 21
1
: Arial font for text in lattice plots under Linux
Hi,
I have been asked by a publisher to change the font style of a lattice
plot in my manuscript. I have consulted documentation on trellis
graphics and the excellent book "R graphics", but am still not sure how
I could create plots with Arial as the font style for text in the plot.
I am running R (Version 2.3.1 (2006-06-01)) under debian Linux. I have
msttcorefonts installed.
2010 Dec 11
0
is there a packge or code to generate markov chains in R
...imperial.ac.uk>
To: r-help at r-project.org
Subject: Re: [R] How to enable Arial font for postcript/pdf figure on
Windows?
Message-ID: <1291980023177-3081774.post at n4.nabble.com>
Content-Type: text/plain; charset=UTF-8
Hi Agnes,
I converted the Arial font files from ttf to afm using ttf2afm from MikTex
complete installation.
When used in R with the line recommended by Plos, they seem to give correct
Arial font graphics: I checked by opening the ps file with a viewer
(gsview), a text editor (notepad++) and Adobe illustrator.
However I did not try (but hopefully will do soon) the ultim...