The R Project SVN R

Rev

Rev 68948 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68948 Rev 81602
Line 1... Line 1...
1
% File src/library/graphics/man/strwidth.Rd
1
% File src/library/graphics/man/strwidth.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-2011 R Core Team
3
% Copyright 1995-2022 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{strwidth}
6
\name{strwidth}
7
\title{Plotting Dimensions of Character Strings and Math Expressions}
7
\title{Plotting Dimensions of Character Strings and Math Expressions}
8
\description{
8
\description{
Line 31... Line 31...
31
    possibly including the graphics parameter \code{"family"}:
31
    possibly including the graphics parameter \code{"family"}:
32
    see \code{\link{text}}.}
32
    see \code{\link{text}}.}
33
}
33
}
34
\details{
34
\details{
35
  Note that the \sQuote{height} of a string is determined only by the
35
  Note that the \sQuote{height} of a string is determined only by the
36
  number of linefeeds (\code{"\n"}) it contains: it is the (number of
36
  number of linefeeds (\code{"\n"}, aka \dQuote{newline}s) it contains: it is the (number of
37
  linefeeds - 1) times the line spacing plus the height of \code{"M"} in
37
  linefeeds - 1) times the line spacing plus the height of \code{"M"} in
38
  the selected font.  For an expression it is the height of the
38
  the selected font.  For an expression it is the height of the
39
  bounding box as computed by \link{plotmath}.  Thus in both cases it is
39
  bounding box as computed by \link{plotmath}.  Thus in both cases it is
40
  an estimate of how far \bold{above} the final baseline the typeset
40
  an estimate of how far \bold{above} the final baseline the typeset
41
  object extends.  (It may also extend below the baseline.)  The
41
  object extends.  (It may also extend below the baseline.)  The