The R Project SVN R

Rev

Rev 68948 | Rev 85935 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68948 Rev 75103
Line 1... Line 1...
1
% File src/library/grDevices/man/windows/windowsFonts.Rd
1
% File src/library/grDevices/man/windowsFonts.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2007 R Core Team
3
% Copyright 1995-2007, 2018 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{windowsFonts}
6
\name{windowsFonts}
7
\alias{windowsFont}
7
\alias{windowsFont}
8
\alias{windowsFonts}
8
\alias{windowsFonts}
9
\concept{fonts}
9
\concept{fonts}
10
\title{Windows Fonts}
10
\title{Windows Fonts}
11
\description{
11
\description{
12
  These functions handle the translation of a device-independent R graphics
12
  These functions handle the translation of a device-independent R graphics
13
  font family name to a windows font description.
13
  font family name to a windows font description  and are available only
-
 
14
  on Windows.
14
}
15
}
15
\usage{
16
\usage{
16
windowsFont(family)
17
windowsFont(family)
17
 
18
 
18
windowsFonts(...)
19
windowsFonts(...)
Line 48... Line 49...
48
}
49
}
49
\seealso{
50
\seealso{
50
  \code{\link{windows}}
51
  \code{\link{windows}}
51
}
52
}
52
\examples{
53
\examples{
-
 
54
if(.Platform$OS.type == "windows") withAutoprint({
53
windowsFonts()
55
  windowsFonts()
54
windowsFonts("mono")
56
  windowsFonts("mono")
55
 
57
})
56
\dontrun{## set up for Japanese: needs the fonts installed
58
\dontrun{## set up for Japanese: needs the fonts installed
57
windows()  # make sure we have the right device type
59
windows()  # make sure we have the right device type (available on Windows only)
58
Sys.setlocale("LC_ALL", "ja")
60
Sys.setlocale("LC_ALL", "ja")
59
windowsFonts(JP1 = windowsFont("MS Mincho"),
61
windowsFonts(JP1 = windowsFont("MS Mincho"),
60
             JP2 = windowsFont("MS Gothic"),
62
             JP2 = windowsFont("MS Gothic"),
61
             JP3 = windowsFont("Arial Unicode MS"))
63
             JP3 = windowsFont("Arial Unicode MS"))
62
plot(1:10)
64
plot(1:10)