Displaying 20 results from an estimated 1000 matches similar to: "automatic font selection, please help"
2009 May 12
1
times family unavailable in postscript device (Ubuntu Linux)
I'm running Ubuntu 9.04. I could use some advice about fonts in
postscript devices.
> sessionInfo()
R version 2.9.0 (2009-04-17)
i486-pc-linux-gnu
locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C
attached base
2010 Jun 30
2
plain text in Chinese can not be set
Hi there,
According to ?par, 'font' is an integer which specifies which font to
use for text, that 1 corresponds to plain text (the default), 2 to bold
face, 3 to italic and 4 to bold italic.
When I test Chinese character in pdf(), I found that 1 to bold face, 2
to italic, 3 to bold italic, 4 to symbol. and I don't find how to set
plain text. In the following code, the font to use
2006 Feb 09
1
How to set the default font set ?
my user.reg contains the following external fonts
Software\\Wine\\Fonts\\External Fonts] 1139540729
"Bitstream Vera Sans Bold (TrueType)"="VeraBd.ttf"
"Bitstream Vera Sans Bold Oblique (TrueType)"="VeraBI.ttf"
"Bitstream Vera Sans Mono Bold (TrueType)"="VeraMoBd.ttf"
"Bitstream Vera Sans Mono Bold Oblique
2006 Feb 09
0
How to set the default font set from the fonts of system.reg?
my system.reg contains the following fonts
[Software\\Microsoft\\Windows\\CurrentVersion\\Fonts] 1139543017
"Bitstream Vera Sans Bold (TrueType)"="VeraBd.ttf"
"Bitstream Vera Sans Bold Oblique (TrueType)"="VeraBI.ttf"
"Bitstream Vera Sans Mono Bold (TrueType)"="VeraMoBd.ttf"
"Bitstream Vera Sans Mono Bold Oblique
2010 Jun 29
5
More than two font in a plot
Hi there,
I am a Chinese R user. I hope to display Chinese character in a plot,
and than save it in PostScript format. I have read the article titled
"Non-Standard Fonts in PostScript and PDF Graphics", especially the
section about CJK fonts. I also tried the code:
> pdf("chinese.pdf", width=3, height=1)
> grid.text("\u4F60\u597D", y=2/3,
2018 Apr 05
0
[Bug report] Chinese characters are not handled correctly in Rterm for Windows
Thank you for the report and initial debugging. I am not sure what is
going wrong, we may have to rely on your help to debug this (I do not
have a system to reproduce on). A user-targeted advice would be to use
RGui (Rgui.exe).
Does the problem also exist in R-devel?
https://cran.r-project.org/bin/windows/base/rdevel.html
Your example? print("ABC\u4f60\u597dDEF") is printing two
2013 Jan 17
0
How do I get Garamond font in R?
Folks,
I run R on a early 2009 MacBook Pro running Mountain Lion.
I have a bunch of fonts in my user Library one of which is Garamond.
I have tried the ttf_import function to no avail. I played with this for a couple of hours at least and I have gotten nowhere.
Here is a bit of one of my sessions (note that I used file.choose to get down to the Font level)
> require(extrafont)
Loading
2018 Mar 08
2
[Bug report] Chinese characters are not handled correctly in Rterm for Windows
Hello everyone,
I am new to R and I have experienced some bugs when using Rterm on Windows.
Chinese characters in the console output are discarded by Rterm, and trying
to type them into the console will crash the Rterm application.
---ENVIRONMENT---
Platform = x86_64-w64-mingw32
OS = Windows 10 Pro 1709 chs
R version = 3.4.3
Active code page = 936 (Simplified Chinese)
---STEPS TO
2006 May 09
1
A question about encoding
I use R 2.3.0 under windows.
> Sys.getlocale()
[1] "LC_COLLATE=Chinese_People's Republic of
China.936;LC_CTYPE=Chinese_People's Republic of
China.936;LC_MONETARY=Chinese_People's Republic of
China.936;LC_NUMERIC=C;LC_TIME=Chinese_People's Republic of China.936"
> localeToCharset()
[1] "CP936"
Now I want to use JGR,which uses UTF-8 encoding.
So when I use
2009 Nov 09
1
deparse() and the 'else' statement
Hi all,
It is recommended in ?'if' that we use 'else' right after '}' instead
of starting a new line, but I noticed deparse() will separate '}' and
'else' when the 'if...else' clause is used inside {...} (e.g. function
body). Here is an example:
## if/else inside {}
> cat(deparse(parse(text='function(){if (TRUE) {1} else {2}}')),
2005 Apr 19
3
error due to locales again
>example(lm)
Error in switch(x[2], "1250" = return("ISO 8859-2"), "1251" = return("KOI8-U"), :
argument is missing, with no default
> Sys.getlocale(category = "LC_ALL")
[1] "LC_COLLATE=Chinese_People's Republic of China.936;LC_CTYPE=Chinese_People's Republic of China.936;LC_MONETARY=Chinese_People's Republic of
2009 Mar 23
2
How to get commands history as a character vector instead of displaying them?
Hi Everyone,
I want to get the commands history as a character vector instead of
just displaying them, but the function history() just returns NULL. I
checked the source code of 'history' and could not find a solution.
Anybody has an idea? Thanks!
P. S. My original problem is, when a user opens a graphics device like
png() or pdf(), I want to know the file name used by this device. I
2011 Nov 14
1
Error .jcall(mxe, "S", "fit", c("autorun", "-e", afn, "-o", dirout, : java.lang.NoSuchMethodError: density.Params.readFromArgs([Ljava/lang/String; )Ljava/lang/String;
Dear all,
I get the error when I use maxent.jar:
Error .jcall(mxe, "S", "fit", c("autorun", "-e", afn, "-o", dirout, :
java.lang.NoSuchMethodError: density.Params.readFromArgs([Ljava/lang/String;)Ljava/lang/String;
sessionInfo() result:
R version 2.14.0 (2011-10-31)Platform: i386-pc-mingw32/i386 (32-bit)locale:[1]
2005 Apr 21
0
error reports
Dear John Fox,
these is still error in Rcmdr package when locale is cp936.
> Loading required package: tcltk
> Loading Tcl/Tk interface ... done
> Error in parse(file, n, text, prompt) : syntax error on line 5090
> Error: unable to load R code in package 'Rcmdr'
> Error: package/namespace load failed for 'Rcmdr'
> version
_
platform
2009 Oct 04
1
Modify base R functions in Rprofile.site
Hi everyone,
I want to modify two base R functions 'parse' and 'deparse'
immediately after R has started, so I added some code in the file
'Rprofile.site' under the 'etc' directory. Here is a simple example:
parse=function(...){
base::parse(...)
}
I'll get an error when I start R as follows:
Error: cannot change value of locked binding for
2009 Oct 06
2
Help file doesn't display correctly
Dear R Developer,
It seems to be a problem with help file. Not sure if it is related to
the new format of Rd parser. Multiple lines are joined together
without proper line break.
> ?mean
There were 14 warnings (use warnings() to see them)
## All lines are joined together and not easy to read.
> warnings()
Warning messages:
1: In grepl("^[[:blank:]]*$", buffer[length(buffer)]) :
2010 Nov 25
0
[libsvm] predict function error
Dear R users,
There is a error message when I run the following code. It is used to load
microarray data and use the top 1000 genes for training svm to classify test
set .
> library(e1071)
Loading required package: class
> f=read.table("F:\\lab\\
microarray analysis\\VEH LPS\\exprs.txt",
2007 May 23
0
How to set default font and the replacement font?
There are three fonts in c:\windows\fonts:
stxingkai.ttf simsun.ttf and simyou.ttf
If an application does not specify a font, then
stxingkai.ttf is loaded in it to show the text. If
I remove the stxingkai.ttf from c:\windows\fonts
then it use simyou.ttf to show text. If I remove
simyou.ttf again then it use simsun.ttf. But you
know, I hope the simsun.ttf is the first choice.
Then the first
2003 Nov 04
2
4-STABLE b0rked in share/locale/zh_CN.GBK
Murray,
Your commits earlier this evening to zh_CN.GB18030 fixed that -STABLE
breakage, but zh_CN.GBK appears still to be missing, which causes
'make installworld' to fail. Can you please fix this as well?
install -m 644 -o root -g wheel uk_UA.KOI8-U.out /usr/share/locale/uk_UA.KOI8-U/LC_CTYPE
install -m 644 -o root -g wheel zh_CN.eucCN.out /usr/share/locale/zh_CN.eucCN/LC_CTYPE
2018 May 04
0
[Bug report] Chinese characters are not handled correctly in Rterm for Windows
Thanks for the update. I believe I've fixed a part of the problem you
have reported, the crash while entering Chinese characters to the
console (e.g. via Pinyin, the error message about invalid multibyte
character in mbcs_get_next). The fix is in R-devel 74693 - Windows
function ReadConsoleInputA no longer works with multibyte characters (it
is not documented, probably a Windows bug,