Displaying 20 results from an estimated 30 matches for "postscriptfont".
Did you mean:
postscriptfonts
2012 Feb 09
1
Arial font in eps figures in R
...l posts in R-help on this topic, as wells as R-news 2006.
The code I have been trying is following:
Arial <- Type1Font(family="Arial",
metrics=c("ArialMT.afm", "arial-BoldMT.afm", "Arial-ItalicMT.afm", "Arial-BoldItalicMT.afm"))
postscriptFonts(Arial=Arial)
postscript("testArial.eps", horizontal=F, onefile=F, width=4, height=4)
par(family="Arial")
plot(1:10, 1:10)
dev.off()
but getting the following error message:
Error in axis(side = side, at = at, labels = labels, ...) :
family 'Arial' not included in P...
2005 Nov 10
0
Fonts, Plus
Dear R Wizards:
sorry, I need more help. hopefully, it will help others in the future.
I am using R 2.2.0 Patched (2005-11-07 r36217).
[a]
# copy from the postscriptFont documentation
CMitalic <- postscriptFont("ComputerModern",
c("CM_regular_10.afm", "CM_boldx_10.afm",
"cmti10.afm", "cmbxti10.afm",
"CM_symbol_10.afm"))
postscriptFonts(CMitalic=CMitalic)...
2005 Nov 07
1
pdf device and TeXencoding?
...o use an arbitrary postscript font and position it into a ps or pdf graphic (i.e., without it being in the family {5 fonts} that I am using for the main drawing)? in a weird latex/R mix, my intent is something like
pdf(file="test.pdf");
plot( c(0,1),c(0,1) );
test.font = fontis("postscriptfont.pfb"); # may need a tfm specification, too?
text( 0.5, 0.5, fontobject("some text", test.font));
dev.off();
help would be highly appreciated, as always.
sincerely,
/ivo welch
2009 May 12
1
times family unavailable in postscript device (Ubuntu Linux)
..., but postscript refuses. It says:
> plot(rnorm(10),rnorm(10), family="Times")
Error in axis(side = side, at = at, labels = labels, ...) :
family 'Times' not included in PostScript device
This happens even though Times *appears* to be listed as a valid family :
> names(postscriptFonts())
[1] "serif" "sans" "mono"
[4] "AvantGarde" "Bookman" "Courier"
[7] "Helvetica" "Helvetica-Narrow" "NewCenturySchoolbook"
[10] "P...
2005 Dec 04
1
font inclusions in pdf files
...ts/afm/yandy/lubright/lbi.afm",
"/usr/share/texmf/fonts/afm/yandy/lucida/lbc.afm",
#
"/usr/share/texmf/fonts/afm/yandy/lumath/lbms.afm",
"/usr/share/texmf/fonts/afm/yandy/lubright/lbr.afm")
grDevices::postscriptFonts(lucida=grDevices::postscriptFont("Lucida",
metrics=luafmfiles));
pdf(file="testincfonts.pdf");
par(family="lucida");
plot( c(0,0), c(1,1) );
dev.off();
# pdffonts testincfonts.pdf
name type emb sub uni object ID
---------------...
2005 Aug 30
0
TeXtext font encoding?
Dear R wizards:
Has anyone gotten the TeXtext font encoding to work? If I execute:
if (is.null(postscriptFonts()$lucida)) {
luafmfiles <- c("/usr/share/texmf/fonts/afm/yandy/lubright/lbr.afm",
"/usr/share/texmf/fonts/afm/yandy/lubright/lbd.afm",
"/usr/share/texmf/fonts/afm/yandy/lubright/lbi.afm",
"/usr/share/texm...
2008 Sep 18
1
PDF fonts problem
...ducible):
Sys.setlocale(category="LC_CTYPE", locale="hungarian")
LM <- Type1Font("LM", paste("lm/fonts/afm/public/lm/", c("lmb10.afm",
"lmbx10.afm", "lmbo10.afm", "lmbxo10.afm"), sep=""))
pdfFonts(LM=LM)
postscriptFonts(LM=LM)
CMS <- Type1Font("CMS", paste("cm-super/afm/", c("sfrm1000.afm",
"sfrb1000.afm", "sfti1000.afm", "sfsl1000.afm"), sep=""))
pdfFonts(CMS=CMS)
postscriptFonts(CMS=CMS)
#Default
pdf("tryfont-default.pdf")
gri...
2011 Feb 15
2
Sweave doesn't hand on width of special characters of Computer Modern fonts to LaTeX
...= hide>>=
CM <- Type1Font("CM",
c(file.path("C:/texlive/2009/texmf-dist/fonts/afm/public/cm-lgc",
c("fcmr8a.afm", "fcmb8a.afm", "fcmri8a.afm", "fcmbi8a.afm")),
"./cmsyase.afm"))
pdfFonts(CM = CM)
postscriptFonts(CM = CM)
pdf.options(family = "CM", pointsize = 11)
ps.options(family = "CM", pointsize = 11)
@
<<fig = true, echo = false, include = true>>=
x <- c(1,2,3)
y <- c(1,2,1)
plot(y~x, xlab = "1 - 3 units") # The "-" sign here is
@...
2007 Dec 11
1
Mono in postscript device
Hi,
Plotting a graphic into a postscript device using family="mono" returns the
following error message:
>> family 'mono' not included in PostScript device
Looking at postscriptFonts() however lists the "Courier" font as availeable
mono font. So where is the problem?
Thanks guys for your help.
Best regards
Benjamin
sessionInfo()
R version 2.5.0 (2007-04-23)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_...
2008 Jan 24
1
R CMD check and postscript fonts
...ex = seqcex, family="mono",font=2)
Which results in the error:
Error in text.default(1:10, 2, c("a", "b"), cex = seqcex, family = "mono", :
family 'mono' not included in PostScript device
'mono' is perfectly fine for my x11 device and
# postscriptFonts()$mono
gives me:
$family
[1] "Courier"
$metrics
[1] "Courier.afm" "Courier-Bold.afm"
[3] "Courier-Oblique.afm" "Courier-BoldOblique.afm"
[5] "Symbol.afm"
$encoding
[1] "default"
attr(,&quo...
2010 Sep 06
1
PostScript/PDF graphics with another font
...n: Warning messages:
1: font family not found in PostScript font database
[...]
And this when I try to save as .pdf:
Error: Invalid font type
In addition: Warning messages:
1: font family not found in PostScript font database
[...]
I have tried various applications of the functions postscript(),
postscriptFonts(), pdf(), but I only get error messages when I try to tell
it to make use of the Doulos SIL font. I've searched for answers in Nabble
and google as well, but haven't found a solution (at least not one I
understand).
I'm using R 2.11 for Windows.
Thank you
--
View this message in con...
2007 Aug 22
1
Sweave(), pdf(), and fonts
...yone know if Sweave() has a way to "swap out" the call to
pdf() with another device, say Cairo()? I think this would be the
easiest way to solve her problem.
2) Does anyone know how to do this with pdf()? I suspect that the font
databases can be updated via the commands pdfFonts() or
postscriptFonts(), but are there suitable debian font packages that
contain font information that can be supplied to these functions? Are
any font packages needed at all?
The pdf plots don't necessarily need to embed the fonts, but they need
enough info in them to say "Use the Arial font" to the...
2009 Aug 30
3
Computer Modern Fonts in R graphic
..."cm-lgc/fonts/afm/public/cm-lgc/fcmb8a.afm",
> "cm-lgc/fonts/afm/public/cm-lgc/fcmri8a.afm",
> "cm-lgc/fonts/afm/public/cm-lgc/fcmbi8a.afm",
> "cmsyase.afm"))
> postscriptFonts(CM=CM)
> pdf("snxsm.pdf")
> par(family="CM")
> persp(sn,sm,z,xlab="SN", ylab="SM",zlab="VI",theta=-20,phi=20,r=5,shade=0.01,col=color[facetcol])
> dev.off()
It works fine, until the persp() function, there I get:
> persp(sn,sm,z,xl...
2005 Aug 22
2
pdf font embedding --- again
dear R wizards--- I would like to do some book-on-demand printing at a
popular printer named lulu, but lulu requires inclusion even of the
basic postscript fonts. Interestingly, my book itself does not need
the 14 base acrobat fonts, only the embedded R figures do. Of course,
I really would like to get pdftex to embed the fonts, but how to do
this is not obvious either. [This method seems
2006 Sep 18
2
problem in font
Hi,
after a debian upgrade my dev.copy2eps dont work anymore. I have this message:
Error in matchFont(postscriptFonts(family)[[1]], old$encoding) :
unknown font
I try to change the font family in my .Rprofile:
setHook(packageEvent("graphics", "onLoad"),
function(...) {
grDevices::ps.options(family="ComputerModern")
} )
But it no fix the error.
How to f...
2007 Feb 25
0
dev.print and postscript device problem
...t.ps")
I get the following outcome
Error in dev.copy(device = function (file = ifelse(onefile, "Rplots.ps", :
family 'sans' not included in PostScript device
However family sans is already declared as in pdf (nothing changed to the
original configuration of R)
names(postscriptFonts()) and names(pdfFonts()) give:
[1] "serif" "sans" "mono"
[4] "symbol" "AvantGarde" "Bookman"
[7] "Courier" "Helvetica" "Helvetica-N...
2007 Nov 18
1
Exporting a plot with the LaTeX font lmodern
Dear All,
I would like to export, as a pdf file, a plot with the LaTeX font
lmodern as the font of my graph. Could somebody please help me?
Thanks in advance,
Paul
2011 Aug 10
1
font (charter)
dear R-experts---can someone please refer me to the latest
installation instructions for graphics fonts in R (the pdf device)?
(I would like to install the Charter font from the texlive 2011
distribution under OSX.)
sincerely,
/iaw
----
Ivo Welch (ivo.welch at gmail.com)
2011 Apr 21
0
automatic font selection, please help
Hi there,
With the helps from this list, I can set specific CJK fonts for
character string using text() function. for example:
song <- CIDFont("SimSun", "GBK-EUC-H", "GBK", "")
postscriptFonts(song = song)
postscript("test.ps", height = 7, width =7, family = "Times", fonts =
c("song"), horizontal = FALSE, onefile = FALSE, paper = "special")
plot(1:10, xlab = "")
mtext("\u4F60\u597D", family="song", font = 1, side =...
2008 Aug 18
2
changing plot font for Times new roman
Dear all,
I know that it is a know issue, but I would like to change
the type of font on my plot, and I am not sure the
rigth way. I would like to use Times New Roman font,
but according to the "par()" help, some device allow
we choose an family of fonts. I tryed par(family="times")
without success.
Surfing on R archieve I got an suggestion of
use par(font.lab=6), but when I