head	1.24;
access;
symbols
	core-8-5-9:1.22
	core-8-5-8:1.22
	macosx-cocoa-merge:1.24
	macosx-cocoa-premerge:1.24
	macosx-carbon-freeze:1.24
	core-8-5-7:1.22
	core-8-5-6:1.22
	core-8-6-b1:1.24
	core-8-6-a3:1.24
	core-8-5-5:1.22
	core-8-6-a2:1.23
	core-8-5-4:1.22
	core-8-5-3:1.22
	core-8-6-a1:1.22
	core-8-4-19:1.3.8.3
	core-8-5-branch:1.22.0.2
	core-8-5-2:1.22
	core-8-4-18:1.3.8.3
	core-8-5-1:1.22
	core-8-4-17:1.3.8.3
	core-8-5-0:1.22
	core-8-5-b3:1.21
	core-8-5-b2:1.17
	core-8-4-16:1.3.8.2
	core-8-5-b1:1.11
	core-stablilizer-merge:1.11
	core-stabilizer-branch:1.11.0.2
	core-stabilizer-merge:1.22
	core-8-4-15:1.3.8.2
	core-8-5-a6:1.10
	core-8-5-a5:1.8
	core-8-4-14:1.3.8.1
	core-8-5-a4:1.8
	core-8-4-13:1.3.8.1
	core-8-4-12:1.3.8.1
	core-8-4-11:1.3.8.1
	core-8-5-a3:1.8
	core-8-4-10:1.3.8.1
	core-8-4-9-branch:1.3.8.1.0.2
	core-8-5-a2:1.7
	core-8-4-9:1.3.8.1
	core-8-4-8:1.3.8.1
	core-8-4-7:1.3
	core-8-5-a1:1.3
	core-8-4-6:1.3
	core-8-4-5:1.3
	mistachkin-dev-branch:1.3.0.10
	core-8-4-4:1.3
	core-8-4-3:1.3
	core-8-4-branch:1.3.0.8
	core-8-4-2:1.3
	core-8-4-1:1.3
	core-8-3-5:1.2.18.1
	core-8-4-0:1.3
	macosx-8-4-merge-2002-08-31-trunk:1.3
	macosx-8-4-premerge-2002-08-31-branch:1.3
	macosx-8-4-premerge-2002-08-31-trunk:1.3
	macosx-8-4-merge-2002-08-30-branch:1.3
	macosx-8-4-merge-2002-08-30-trunk:1.3
	macosx-8-4-merge-2002-08-20-branch:1.3
	macosx-8-4-merge-2002-08-20-trunk:1.3
	core-8-4-b2:1.3
	core-8-4-b1:1.3
	macosx-premerge-6-9-02:1.3
	core-8-4-a4:1.3
	core-8-3-4:1.2.18.1
	macosx-8-4-branch:1.3.0.6
	macosx-8-4-branchpoint:1.3
	core-8-4-a3:1.3
	core-8-3-3:1.2.18.1
	dgp-privates-into-namespace:1.3.0.4
	tclpro-1-5-0:1.2
	core-8-4-win-speedup:1.3.0.2
	core-8-4-a2:1.3
	tclpro-1-4-1:1.2
	tclpro-1-4-0:1.2
	core-8-3-2:1.2
	ajuba-ajuba2-2-1-base:1.2
	ajuba-ajuba2-2-0:1.2
	core-8-4-a1:1.2
	core-8-3-1-branch:1.2.0.18
	core-8-3-1:1.2
	scriptics-sc-2-0-b5:1.2
	scriptics-sc-2-0-fixed:1.2
	scriptics-sc-2-0-b2:1.2
	scriptics-sc-2-0-b1:1.2
	core-8-3-0:1.2
	core-8-3-b2:1.2
	core-8-3-b1:1.2
	scriptics-sc-1-1:1.2
	scriptics-sc-1-1-b1:1.2
	core-8-2-3:1.2
	scriptics-sc-1-1-branch:1.2.0.16
	scriptics-sc-1-1-base:1.2
	scriptics-sc-1-0:1.2
	scriptics-sc-1-0-branch:1.2.0.14
	scriptics-sc-1-0-base:1.2
	core-8-2-2:1.2
	core-8-2-1:1.2
	scriptics-bc-1-0-b1:1.2
	core-8-2-1-branch:1.2.0.12
	scriptics-tclpro-1-3-0:1.2
	core-8-2-0:1.2
	core-8-2-b3-branch:1.2.0.10
	core-8-2-b3-base:1.2
	scriptics-tclpro-1-3-b4:1.2
	core-8-2-b2:1.2
	scriptics-tclpro-1-3-b3:1.2
	core-8-2-b1:1.2
	scriptics-tclpro-1-3-b2:1.2
	merge-to-mainline-5/21/99:1.2
	scriptics-tclpro-1-3-b2-branch:1.2.0.8
	core-8-1-1:1.2
	scriptics-tclpro-1-3-b1:1.2
	core-8-1-1-base:1.2
	core-8-1-0:1.2
	merge-to-mainline-4-29-99:1.2
	merge-to-mainline-4-23-99:1.2
	core-8-1-branch-old:1.1.0.4
	core-8-0-6-branch:1.2.0.6
	core-8-0-6-base:1.2
	core-8-0-5:1.2
	core-8-1-b3:1.1.4.1
	core-8-1-b2:1.1.4.1
	dev-8-1-stubs-branch:1.1.4.1.0.2
	dev-stubs-branch:1.2.0.4
	scriptics-tclpro-1-2:1.2
	scriptics-tclpro-1-2-b2:1.2
	core-8-1-merge-2/10/99:1.2
	core-8-0-5-branch:1.2.0.2
	core-8-0-5-base:1.2
	scriptics-tclpro-1-2-b1:1.2
	scriptics-tclpro-1-2-a1:1.2
	core-8-1-b1:1.1.4.1
	core-8-0-4:1.2
	core-8-1-a2:1.1
	core-8-0-2:1.1
	core-8-0-3:1.2;
locks; strict;
comment	@# @;


1.24
date	2008.09.23.13.36.39;	author dkf;	state Exp;
branches;
next	1.23;

1.23
date	2008.06.30.22.57.02;	author dkf;	state Exp;
branches;
next	1.22;

1.22
date	2007.12.13.15.23.43;	author dgp;	state Exp;
branches;
next	1.21;

1.21
date	2007.11.05.17.22.44;	author dgp;	state Exp;
branches;
next	1.20;

1.20
date	2007.11.01.23.03.54;	author dkf;	state Exp;
branches;
next	1.19;

1.19
date	2007.10.30.01.26.11;	author das;	state Exp;
branches;
next	1.18;

1.18
date	2007.10.29.16.04.13;	author dkf;	state Exp;
branches;
next	1.17;

1.17
date	2007.10.26.20.13.23;	author dgp;	state Exp;
branches;
next	1.16;

1.16
date	2007.10.24.14.32.58;	author dkf;	state Exp;
branches;
next	1.15;

1.15
date	2007.10.23.14.07.44;	author das;	state Exp;
branches;
next	1.14;

1.14
date	2007.10.23.12.47.06;	author das;	state Exp;
branches;
next	1.13;

1.13
date	2007.10.23.10.51.47;	author dkf;	state Exp;
branches;
next	1.12;

1.12
date	2007.10.22.14.33.13;	author dkf;	state Exp;
branches;
next	1.11;

1.11
date	2007.05.03.23.55.29;	author dkf;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	2007.04.23.21.19.51;	author das;	state Exp;
branches;
next	1.9;

1.9
date	2006.12.01.20.14.23;	author kennykb;	state Exp;
branches;
next	1.8;

1.8
date	2005.04.06.21.11.54;	author dkf;	state Exp;
branches;
next	1.7;

1.7
date	2004.10.28.10.22.51;	author dkf;	state Exp;
branches;
next	1.6;

1.6
date	2004.08.20.14.15.29;	author dkf;	state Exp;
branches;
next	1.5;

1.5
date	2004.06.18.21.42.16;	author dkf;	state Exp;
branches;
next	1.4;

1.4
date	2004.03.25.12.12.36;	author vincentdarley;	state Exp;
branches;
next	1.3;

1.3
date	2000.07.25.21.14.35;	author jenglish;	state Exp;
branches
	1.3.8.1;
next	1.2;

1.2
date	98.09.14.18.22.56;	author stanton;	state Exp;
branches
	1.2.18.1;
next	1.1;

1.1
date	98.04.01.09.39.51;	author rjohnson;	state Exp;
branches
	1.1.4.1;
next	;

1.1.4.1
date	98.09.30.02.16.18;	author stanton;	state Exp;
branches;
next	;

1.2.18.1
date	2001.04.04.07.23.48;	author hobbs;	state Exp;
branches;
next	;

1.3.8.1
date	2004.10.28.10.19.29;	author dkf;	state Exp;
branches;
next	1.3.8.2;

1.3.8.2
date	2007.04.29.02.25.54;	author das;	state Exp;
branches;
next	1.3.8.3;

1.3.8.3
date	2007.11.05.17.21.58;	author dgp;	state Exp;
branches;
next	;

1.11.2.1
date	2007.10.24.12.59.30;	author dgp;	state Exp;
branches;
next	1.11.2.2;

1.11.2.2
date	2007.10.27.04.23.14;	author dgp;	state Exp;
branches;
next	1.11.2.3;

1.11.2.3
date	2007.11.01.16.37.14;	author dgp;	state Exp;
branches;
next	1.11.2.4;

1.11.2.4
date	2007.11.02.14.51.39;	author dgp;	state Exp;
branches;
next	1.11.2.5;

1.11.2.5
date	2007.11.12.19.22.37;	author dgp;	state Exp;
branches;
next	;


desc
@@


1.24
log
@Fix [Bug 2118116]
@
text
@'\"
'\" Copyright (c) 1996 Sun Microsystems, Inc.
'\" Copyright (c) 2006-2007 Daniel A. Steffen <das@@users.sourceforge.net>
'\"
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\" 
'\" RCS: @@(#) $Id: font.n,v 1.23 2008/06/30 22:57:02 dkf Exp $
'\" 
.so man.macros
.TH font n 8.0 Tk "Tk Built-In Commands"
.BS
'\" Note:  do not modify the .SH NAME line immediately below!
.SH NAME
font \- Create and inspect fonts.
.SH SYNOPSIS
\fBfont\fI option \fR?\fIarg arg ...\fR?
.BE
.SH DESCRIPTION
.PP
The \fBfont\fR command provides several facilities for dealing with
fonts, such as defining named fonts and inspecting the actual attributes of
a font.  The command has several different forms, determined by the
first argument.  The following forms are currently supported:
.TP
\fBfont actual \fIfont\fR ?\fB\-displayof \fIwindow\fR? ?\fIoption\fR? ?\fB\-\|\-\fR? ?\fIchar\fR?
.
Returns information about the actual attributes that are obtained when
\fIfont\fR is used on \fIwindow\fR's display; the actual attributes obtained
may differ from the attributes requested due to platform-dependent
limitations, such as the availability of font families and pointsizes.
\fIfont\fR is a font description; see \fBFONT DESCRIPTIONS\fR below.  If the
\fIwindow\fR argument is omitted, it defaults to the main window.  If
\fIoption\fR is specified, returns the value of that attribute; if it is
omitted, the return value is a list of all the attributes and their values.
See \fBFONT OPTIONS\fR below for a list of the possible attributes.  If the
\fIchar\fR argument is supplied, it must be a single character. The font
attributes returned will be those of the specific font used to render
that character, which will be different from the base font if the base
font does not contain the given character.  If \fIchar\fR may be a hyphen, it
should be preceded by \fB\-\|\-\fR to distinguish it from a misspelled
\fIoption\fR.
.TP 
\fBfont configure \fIfontname\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
.
Query or modify the desired attributes for the named font called
\fIfontname\fR.  If no \fIoption\fR is specified, returns a list describing
all the options and their values for \fIfontname\fR.  If a single \fIoption\fR
is specified with no \fIvalue\fR, then returns the current value of that
attribute.  If one or more \fIoption\fR\-\fIvalue\fR pairs are specified,
then the command modifies the given named font to have the given values; in
this case, all widgets using that font will redisplay themselves using the
new attributes for the font.  See \fBFONT OPTIONS\fR below for a list of the
possible attributes.
.TP
\fBfont create\fR ?\fIfontname\fR? ?\fIoption value ...\fR?
.
Creates a new named font and returns its name.  \fIfontname\fR specifies the
name for the font; if it is omitted, then Tk generates a new name of the
form \fBfont\fIx\fR, where \fIx\fR is an integer.  There may be any number
of \fIoption\fR\-\fIvalue\fR pairs, which provide the desired attributes for
the new named font.  See \fBFONT OPTIONS\fR below for a list of the possible
attributes.
.TP
\fBfont delete\fR \fIfontname\fR ?\fIfontname ...\fR?
.
Delete the specified named fonts.  If there are widgets using the named font,
the named font will not actually be deleted until all the instances are
released.  Those widgets will continue to display using the last known values
for the named font.  If a deleted named font is subsequently recreated with
another call to \fBfont create\fR, the widgets will use the new named font
and redisplay themselves using the new attributes of that font.
.TP
\fBfont families\fR ?\fB\-displayof \fIwindow\fR?
.
The return value is a list of the case-insensitive names of all font families
that exist on \fIwindow\fR's display.  If the \fIwindow\fR argument is
omitted, it defaults to the main window.
.TP
\fBfont measure \fIfont\fR ?\fB\-displayof \fIwindow\fR? \fItext\fR
.
Measures the amount of space the string \fItext\fR would use in the given
\fIfont\fR when displayed in \fIwindow\fR.  \fIfont\fR is a font description;
see \fBFONT DESCRIPTIONS\fR below.  If the \fIwindow\fR argument is
omitted, it 
defaults to the main window.  The return value is the total width in pixels
of \fItext\fR, not including the extra pixels used by highly exaggerated
characters such as cursive
.QW f .
If the string contains newlines or tabs,
those characters are not expanded or treated specially when measuring the
string.
.TP
\fBfont metrics \fIfont\fR ?\fB\-displayof \fIwindow\fR? ?\fIoption\fR?
.
Returns information about the metrics (the font-specific data), for
\fIfont\fR when it is used on \fIwindow\fR's display.  \fIfont\fR is a font
description; see \fBFONT DESCRIPTIONS\fR below.  If the \fIwindow\fR
argument is
omitted, it defaults to the main window.  If \fIoption\fR is specified,
returns the value of that metric; if it is omitted, the return value is a
list of all the metrics and their values.  See \fBFONT METRICS\fR
below for a list of the possible metrics.
.TP
\fBfont names\fR
The return value is a list of all the named fonts that are currently defined.
.SH "FONT DESCRIPTION"
.PP
The following formats are accepted as a font description anywhere
\fIfont\fR is specified as an argument above; these same forms are also
permitted when specifying the \fB\-font\fR option for widgets.
.TP
[1] \fIfontname\fR
.
The name of a named font, created using the \fBfont create\fR command.  When
a widget uses a named font, it is guaranteed that this will never cause an
error, as long as the named font exists, no matter what potentially invalid
or meaningless set of attributes the named font has.  If the named font
cannot be displayed with exactly the specified attributes, some other close
font will be substituted automatically.
.TP
[2] \fIsystemfont\fR
.
The platform-specific name of a font, interpreted by the graphics server.
This also includes, under X, an XLFD (see [4]) for which a single
.QW \fB*\fR
character was used to elide more than one field in the middle of the
name.  See \fBPLATFORM-SPECIFIC\fR issues for a list of the system fonts.
.TP
[3] \fIfamily \fR?\fIsize\fR? ?\fIstyle\fR? ?\fIstyle ...\fR?
.
A properly formed list whose first element is the desired font
\fIfamily\fR and whose optional second element is the desired \fIsize\fR.
The interpretation of the \fIsize\fR attribute follows the same rules
described for \fB\-size\fR in \fBFONT OPTIONS\fR below.  Any
additional optional
arguments following the \fIsize\fR are font \fIstyle\fRs.  Possible values
for the \fIstyle\fR arguments are as follows:
.RS
.DS
.ta 3c 6c 9c
\fBnormal\fR	\fBbold\fR	\fBroman\fR	\fBitalic\fR
\fBunderline\fR	\fBoverstrike\fR
.DE
.RE
.TP
[4] X-font names (XLFD)
.
A Unix-centric font name of the form
\fI\-foundry\-family\-weight\-slant\-setwidth\-addstyle\-pixel\-point\-resx\-resy\-spacing\-width\-charset\-encoding\fR.
The
.QW \fB*\fR
character may be used to skip individual fields that the
user does not care about.  There must be exactly one
.QW \fB*\fR
for each field skipped, except that a
.QW \fB*\fR
at the end of the XLFD skips any
remaining fields; the shortest valid XLFD is simply
.QW \fB*\fR ,
signifying all fields as defaults.  Any fields that were skipped are
given default
values.  For compatibility, an XLFD always chooses a font of the specified
pixel size (not point size); although this interpretation is not strictly
correct, all existing applications using XLFDs assumed that one
.QW point
was in fact one pixel and would display incorrectly (generally larger) if
the correct size font were actually used.
.TP
[5] \fIoption value \fR?\fIoption value ...\fR?
.
A properly formed list of \fIoption\fR\-\fIvalue\fR pairs that specify
the desired attributes of the font, in the same format used when defining
a named font; see \fBFONT OPTIONS\fR below.
.LP
When font description \fIfont\fR is used, the system attempts to parse the
description according to each of the above five rules, in the order specified.
Cases [1] and [2] must match the name of an existing named font or of a
system font.  Cases [3], [4], and [5] are accepted on all
platforms and the closest available font will be used.  In some situations
it may not be possible to find any close font (e.g., the font family was
a garbage value); in that case, some system-dependent default font is
chosen.  If the font description does not match any of the above patterns,
an error is generated.
.SH "FONT METRICS"
.PP
The following options are used by the \fBfont metrics\fR command to query
font-specific data determined when the font was created.  These properties are
for the whole font itself and not for individual characters drawn in that
font.  In the following definitions, the
.QW baseline
of a font is the
horizontal line where the bottom of most letters line up; certain letters,
such as lower-case
.QW g
stick below the baseline.
.TP
\fB\-ascent        \0\fR
.
The amount in pixels that the tallest letter sticks up above the baseline of
the font, plus any extra blank space added by the designer of the font.
.TP
\fB\-descent       \0\fR
.
The largest amount in pixels that any letter sticks down below the baseline
of the font, plus any extra blank space added by the designer of the font.
.TP
\fB\-linespace\fR
.
Returns how far apart vertically in pixels two lines of text using the same
font should be placed so that none of the characters in one line overlap any
of the characters in the other line.  This is generally the sum of the ascent
above the baseline line plus the descent below the baseline.
.TP
\fB\-fixed          \0\fR
.
Returns a boolean flag that is
.QW \fB1\fR
if this is a fixed-width font,
where each normal character is the same width as all the other
characters, or is
.QW \fB0\fR
if this is a proportionally-spaced font, where
individual characters have different widths.  The widths of control
characters, tab characters, and other non-printing characters are not
included when calculating this value.
.SH "FONT OPTIONS"
.PP
The following options are supported on all platforms, and are used when
constructing a named font or when specifying a font using style [5] as
above:
.TP
\fB\-family \fIname\fR
.
The case-insensitive font family name.  Tk guarantees to support the font
families named \fBCourier\fR (a monospaced
.QW typewriter
font), \fBTimes\fR (a serifed
.QW newspaper
font), and \fBHelvetica\fR (a sans-serif
.QW European
font).  The most closely matching native font family will
automatically be substituted when one of the above font families is used.
The \fIname\fR may also be the name of a native, platform-specific font
family; in that case it will work as desired on one platform but may not
display correctly on other platforms.  If the family is unspecified or
unrecognized, a platform-specific default font will be chosen.
.TP
\fB\-size \fIsize\fR
.
The desired size of the font.  If the \fIsize\fR argument is a positive
number, it is interpreted as a size in points.  If \fIsize\fR is a negative
number, its absolute value is interpreted as a size in pixels.  If a
font cannot be displayed at the specified size, a nearby size will be
chosen.  If \fIsize\fR is unspecified or zero, a platform-dependent default
size will be chosen.
.RS
.PP
Sizes should normally be specified in points so the application will remain
the same ruler size on the screen, even when changing screen resolutions or
moving scripts across platforms.  However, specifying pixels is useful in
certain circumstances such as when a piece of text must line up with respect
to a fixed-size bitmap.  The mapping between points and pixels is set when
the application starts, based on properties of the installed monitor, but it
can be overridden by calling the \fBtk scaling\fR command.
.RE
.TP
\fB\-weight \fIweight\fR
.
The nominal thickness of the characters in the font.  The value
\fBnormal\fR specifies a normal weight font, while \fBbold\fR specifies a
bold font.  The closest available weight to the one specified will
be chosen.  The default weight is \fBnormal\fR.
.TP
\fB\-slant \fIslant\fR
The amount the characters in the font are slanted away from the
vertical.  Valid values for slant are \fBroman\fR and \fBitalic\fR.
A roman font is the normal, upright appearance of a font, while
an italic font is one that is tilted some number of degrees from upright.
The closest available slant to the one specified will be chosen.
The default slant is \fBroman\fR.
.TP
\fB\-underline \fIboolean\fR
The value is a boolean flag that specifies whether characters in this
font should be underlined.  The default value for underline is \fBfalse\fR.
.TP
\fB\-overstrike \fIboolean\fR
The value is a boolean flag that specifies whether a horizontal line should
be drawn through the middle of characters in this font.  The default value
for overstrike is \fBfalse\fR.
.SH "STANDARD FONTS"
.PP
The following named fonts are supported on all systems, and default to values
that match appropriate system defaults.
.TP
\fBTkDefaultFont\fR
.
This font is the default for all GUI items not otherwise specified.
.TP
\fBTkTextFont\fR
.
This font should be used for user text in entry widgets, listboxes etc.
.TP
\fBTkFixedFont\fR
.
This font is the standard fixed-width font.
.TP
\fBTkMenuFont\fR
.
This font is used for menu items.
.TP
\fBTkHeadingFont\fR
.
This font should be used for column headings in lists and tables.
.TP
\fBTkCaptionFont\fR
.
This font should be used for window and dialog caption bars.
.TP
\fBTkSmallCaptionFont\fR
.
This font should be used for captions on contained windows or tool dialogs.
.TP
\fBTkIconFont\fR
.
This font should be used for icon captions.
.TP
\fBTkTooltipFont\fR
.
This font should be used for tooltip windows (transient information windows).
.LP
It is \fInot\fR advised to change these fonts, as they may be modified by Tk
itself in response to system changes. Instead, make a copy of the font and
modify that.
.SH "PLATFORM-SPECIFIC FONTS"
.PP
The following system fonts are supported:
.TP
\fBX Windows\fR
All valid X font names, including those listed by xlsfonts(1), are available.
.TP
\fBMS Windows\fR
The following fonts are supported, and are mapped to the user's
style defaults.
.RS
.DS
.ta 3c 6c
\fBsystem\fR	\fBansi\fR	\fBdevice\fR
\fBsystemfixed\fR	\fBansifixed\fR	\fBoemfixed\fR
.DE
.RE
.TP
\fBMac OS X\fR
The following fonts are supported, and are mapped to the user's
style defaults.
.RS
.DS
.ta 3c 6c
\fBsystem\fR	\fBapplication\fR	\fBmenu\fR
.DE
.PP
Additionally, the following named fonts provide access to the Aqua
theme fonts:
.DS
.ta 5c
\fBsystemSystemFont\fR	\fBsystemEmphasizedSystemFont\fR
\fBsystemSmallSystemFont\fR	\fBsystemSmallEmphasizedSystemFont\fR
\fBsystemApplicationFont\fR	\fBsystemLabelFont\fR
\fBsystemViewsFont\fR	\fBsystemMenuTitleFont\fR
\fBsystemMenuItemFont\fR	\fBsystemMenuItemMarkFont\fR
\fBsystemMenuItemCmdKeyFont\fR	\fBsystemWindowTitleFont\fR
\fBsystemPushButtonFont\fR	\fBsystemUtilityWindowTitleFont\fR
\fBsystemAlertHeaderFont\fR	\fBsystemToolbarFont\fR
\fBsystemMiniSystemFont\fR	\fBsystemDetailSystemFont\fR
\fBsystemDetailEmphasizedSystemFont\fR
.DE
.RE
.SH EXAMPLE
.PP
Fill a text widget with lots of font demonstrators, one for every font
family installed on your system:
.CS
pack [text .t \-wrap none] \-fill both \-expand 1
set count 0
set tabwidth 0
foreach family [lsort \-dictionary [\fBfont families\fR]] {
    .t tag configure f[incr count] \-font [list $family 10]
    .t insert end ${family}:\\t {} \e
            "This is a simple sampler\en" f$count
    set w [\fBfont measure\fR [.t cget \-font] ${family}:]
    if {$w+5 > $tabwidth} {
        set tabwidth [expr {$w+5}]
        .t configure \-tabs $tabwidth
    }
}
.CE
.SH "SEE ALSO"
options(n)
.SH KEYWORDS
font
'\" Local Variables:
'\" mode: nroff
'\" End:
@


1.23
log
@Minor doc updates (removing out of date changebars, improving typedef formatting,
 etc.)
@
text
@a0 1
'\" -*- nroff -*-
d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.22 2007/12/13 15:23:43 dgp Exp $
d401 3
@


1.22
log
@merge stable branch onto HEAD
@
text
@d1 1
d9 1
a9 1
'\" RCS: @@(#) $Id: font.n,v 1.11.2.5 2007/11/12 19:22:37 dgp Exp $
d187 1
a187 1
.
d229 1
d293 1
a293 1
.LP
d380 1
a397 1

a399 1

@


1.21
log
@spelling corrections
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.20 2007/11/01 23:03:54 dkf Exp $
@


1.20
log
@Fix .DS/.DE to work better when transformed to a table
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.19 2007/10/30 01:26:11 das Exp $
d30 1
a30 1
may differ from the attributes requested due to platform-dependant
d182 1
a182 1
a garbage value); in that case, some system-dependant default font is
d254 1
a254 1
chosen.  If \fIsize\fR is unspecified or zero, a platform-dependant default
@


1.19
log
@restored TIP#145 and Aqua improvements that got lost in the 8.5b2 release revert
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.18 2007/10/29 16:04:13 dkf Exp $
d142 2
a143 2
\fBnormal	bold	roman	italic
underline	overstrike\fR
d335 1
a335 1
.LP
a336 1
.RS
d342 3
d347 2
a348 2
\fBsystem	ansi	device
systemfixed	ansifixed	oemfixed\fR
d350 1
d353 3
d358 1
a358 1
\fBsystem	application	menu\fR
d360 3
a362 1
Additionally, the following named fonts provide access to the Aqua theme fonts:
d364 11
a374 19
\fBsystemSystemFont
systemEmphasizedSystemFont
systemSmallSystemFont
systemSmallEmphasizedSystemFont
systemApplicationFont
systemLabelFont
systemViewsFont
systemMenuTitleFont
systemMenuItemFont
systemMenuItemMarkFont
systemMenuItemCmdKeyFont
systemWindowTitleFont
systemPushButtonFont
systemUtilityWindowTitleFont
systemAlertHeaderFont
systemToolbarFont
systemMiniSystemFont
systemDetailSystemFont
systemDetailEmphasizedSystemFont\fR
@


1.18
log
@Lots more GOOBE stuff. Now works with 'make html'!
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.17 2007/10/26 20:13:23 dgp Exp $
d290 1
a290 1
.SH "PLATFORM-SPECIFIC ISSUES"
d292 45
a336 1
The following named system fonts are supported:
d339 1
a339 1
X Windows:
d342 1
a342 1
MS Windows:
d349 1
a349 1
Mac OS X:
d354 22
@


1.17
log
@        * doc/*.1:              Revert doc changes that broke
        * doc/*.3:              `make html` so we can get the release
        * doc/*.n:              out the door.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.11 2007/05/03 23:55:29 dkf Exp $
d26 1
a26 1
\fBfont actual \fIfont\fR ?\fB\-displayof \fIwindow\fR? ?\fIoption\fR? ?\fB--\fR? ?\fIchar\fR?
d32 1
a32 1
\fIfont\fR is a font description; see FONT DESCRIPTIONS below.  If the
d36 1
a36 1
See FONT OPTIONS below for a list of the possible attributes.  If the
d41 1
a41 1
should be preceded by \fB--\fR to distinguish it from a misspelled
d53 1
a53 1
new attributes for the font.  See FONT OPTIONS below for a list of the
d62 1
a62 1
the new named font.  See FONT OPTIONS below for a list of the possible
d68 1
a68 1
the named font won't actually be deleted until all the instances are
d84 2
a85 1
see FONT DESCRIPTIONS below.  If the \fIwindow\fR argument is omitted, it
d88 3
a90 1
characters such as cursive ``f''.  If the string contains newlines or tabs,
d98 2
a99 1
description; see FONT DESCRIPTIONS below.  If the \fIwindow\fR argument is
d102 2
a103 2
list of all the metrics and their values.  See FONT METRICS below for a list
of the possible metrics.
d125 2
a126 1
This also includes, under X, an XLFD (see [4]) for which a single ``\fB*\fR''
d128 1
a128 1
name.  See PLATFORM-SPECIFIC issues for a list of the system fonts.
d135 2
a136 1
described for \fB\-size\fR in FONT OPTIONS below.  Any additional optional
d150 13
a162 6
\fI-foundry-family-weight-slant-setwidth-addstyle-pixel-point-resx-resy-spacing-width-charset-encoding\fR.
The ``\fB*\fR'' character may be used to skip individual fields that the
user does not care about.  There must be exactly one ``\fB*\fR'' for each
field skipped, except that a ``\fB*\fR'' at the end of the XLFD skips any
remaining fields; the shortest valid XLFD is simply ``\fB*\fR'', signifying
all fields as defaults.  Any fields that were skipped are given default
d165 2
a166 1
correct, all existing applications using XLFDs assumed that one ``point''
d174 1
a174 1
a named font; see FONT OPTIONS below.
d190 3
a192 1
font.  In the following definitions, the ``baseline'' of a font is the
d194 3
a196 1
such as lower-case ``g'' stick below the baseline.
d217 3
a219 1
Returns a boolean flag that is ``\fB1\fR'' if this is a fixed-width font,
d221 3
a223 1
characters, or is ``\fB0\fR'' if this is a proportionally-spaced font, where
d235 7
a241 3
families named \fBCourier\fR (a monospaced ``typewriter'' font), \fBTimes\fR
(a serifed ``newspaper'' font), and \fBHelvetica\fR (a sans-serif
``European'' font).  The most closely matching native font family will
d315 1
a315 1
pack [text .t -wrap none] -fill both -expand 1
d318 5
a322 5
foreach family [lsort -dictionary [\fBfont families\fR]] {
    .t tag configure f[incr count] -font [list $family 10]
    .t insert end ${family}:\\t {} \\
            "This is a simple sampler\\n" f$count
    set w [\fBfont measure\fR [.t cget -font] ${family}:]
d325 1
a325 1
        .t configure -tabs $tabwidth
@


1.16
log
@Lots of improvements to look and feel of manual pages
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.15 2007/10/23 14:07:44 das Exp $
d87 1
a87 3
characters such as cursive
.QW f .
If the string contains newlines or tabs,
d121 1
a121 2
This also includes, under X, an XLFD (see [4]) for which a single
.QW \fB*\fR
d123 1
a123 1
name.  See \fBPLATFORM-SPECIFIC\fR issues for a list of the system fonts.
d145 4
a148 11
The
.QW \fB*\fR
character may be used to skip individual fields that the
user does not care about.  There must be exactly one
.QW \fB*\fR
for each field skipped, except that a
.QW \fB*\fR
at the end of the XLFD skips any
remaining fields; the shortest valid XLFD is simply
.QW \fB*\fR ,
signifying
d152 1
a152 2
correct, all existing applications using XLFDs assumed that one
.QW point
d176 1
a176 3
font.  In the following definitions, the
.QW baseline
of a font is the
d178 1
a178 3
such as lower-case
.QW g
stick below the baseline.
d199 1
a199 3
Returns a boolean flag that is
.QW \fB1\fR
if this is a fixed-width font,
d201 1
a201 3
characters, or is
.QW \fB0\fR
if this is a proportionally-spaced font, where
d213 3
a215 7
families named \fBCourier\fR (a monospaced
.QW typewriter
font), \fBTimes\fR (a serifed
.QW newspaper
font), and \fBHelvetica\fR (a sans-serif
.QW European
font).  The most closely matching native font family will
d264 1
a264 1
.SH "STANDARD FONTS"
d266 1
a266 45
The following named fonts are supported on all systems, and default to values
that match appropriate system defaults.
.TP
\fBTkDefaultFont\fR
.
This font is the default for all GUI items not otherwise specified.
.TP
\fBTkTextFont\fR
.
This font should be used for user text in entry widgets, listboxes etc.
.TP
\fBTkFixedFont\fR
.
This font is the standard fixed-width font.
.TP
\fBTkMenuFont\fR
.
This font is used for menu items.
.TP
\fBTkHeadingFont\fR
.
This font should be used for column headings in lists and tables.
.TP
\fBTkCaptionFont\fR
.
This font should be used for window and dialog caption bars.
.TP
\fBTkSmallCaptionFont\fR
.
This font should be used for captions on contained windows or tool dialogs.
.TP
\fBTkIconFont\fR
.
This font should be used for icon captions.
.TP
\fBTkTooltipFont\fR
.
This font should be used for tooltip windows (transient information windows).
.LP
It is \fInot\fR advised to change these fonts, as they may be modified by Tk
itself in response to system changes. Instead, make a copy of the font and
modify that.
.SS "PLATFORM-SPECIFIC FONTS"
.LP
The following system fonts are supported:
d269 1
a269 1
\fBX Windows\fR
d272 1
a272 1
\fBMS Windows\fR
d279 1
a279 1
\fBMac OS X\fR
a283 22
Additionally, the following named fonts provide access to the Aqua theme fonts:
.DS
\fBsystemSystemFont
systemEmphasizedSystemFont
systemSmallSystemFont
systemSmallEmphasizedSystemFont
systemApplicationFont
systemLabelFont
systemViewsFont
systemMenuTitleFont
systemMenuItemFont
systemMenuItemMarkFont
systemMenuItemCmdKeyFont
systemWindowTitleFont
systemPushButtonFont
systemUtilityWindowTitleFont
systemAlertHeaderFont
systemToolbarFont
systemMiniSystemFont
systemDetailSystemFont
systemDetailEmphasizedSystemFont\fR
.DE
d294 1
a294 1
    .t insert end ${family}:\\t {} \e
@


1.15
log
@improve look of HTML rendered version
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.14 2007/10/23 12:47:06 das Exp $
d87 3
a89 1
characters such as cursive ``f''.  If the string contains newlines or tabs,
d123 2
a124 1
This also includes, under X, an XLFD (see [4]) for which a single ``\fB*\fR''
d126 1
a126 1
name.  See PLATFORM-SPECIFIC issues for a list of the system fonts.
d148 11
a158 4
The ``\fB*\fR'' character may be used to skip individual fields that the
user does not care about.  There must be exactly one ``\fB*\fR'' for each
field skipped, except that a ``\fB*\fR'' at the end of the XLFD skips any
remaining fields; the shortest valid XLFD is simply ``\fB*\fR'', signifying
d162 2
a163 1
correct, all existing applications using XLFDs assumed that one ``point''
d187 3
a189 1
font.  In the following definitions, the ``baseline'' of a font is the
d191 3
a193 1
such as lower-case ``g'' stick below the baseline.
d214 3
a216 1
Returns a boolean flag that is ``\fB1\fR'' if this is a fixed-width font,
d218 3
a220 1
characters, or is ``\fB0\fR'' if this is a proportionally-spaced font, where
d232 7
a238 3
families named \fBCourier\fR (a monospaced ``typewriter'' font), \fBTimes\fR
(a serifed ``newspaper'' font), and \fBHelvetica\fR (a sans-serif
``European'' font).  The most closely matching native font family will
@


1.14
log
@document missing named Tk* fonts, and named Aqua theme fonts.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.13 2007/10/23 10:51:47 dkf Exp $
d313 1
a313 1
X Windows:
d316 1
a316 1
MS Windows:
d323 1
a323 1
Mac OS X:
a327 1
.RS
a350 1
.RE
@


1.13
log
@Added TIP#145 documentation.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.12 2007/10/22 14:33:13 dkf Exp $
d273 4
d285 4
d310 1
a310 1
The following named system fonts are supported:
d328 24
@


1.12
log
@Documentation improvements, all minor.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.11 2007/05/03 23:55:29 dkf Exp $
d264 37
a300 1
.SH "PLATFORM-SPECIFIC ISSUES"
@


1.11
log
@Spelling fixes. [Bug 1686210]
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.10 2007/04/23 21:19:51 das Exp $
d294 1
a294 1
    .t insert end ${family}:\\t {} \\
@


1.11.2.1
log
@merge updates from HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.11 2007/05/03 23:55:29 dkf Exp $
d264 1
a264 1
.SH "STANDARD FONTS"
d266 1
a266 45
The following named fonts are supported on all systems, and default to values
that match appropriate system defaults.
.TP
\fBTkDefaultFont\fR
.
This font is the default for all GUI items not otherwise specified.
.TP
\fBTkTextFont\fR
.
This font should be used for user text in entry widgets, listboxes etc.
.TP
\fBTkFixedFont\fR
.
This font is the standard fixed-width font.
.TP
\fBTkMenuFont\fR
.
This font is used for menu items.
.TP
\fBTkHeadingFont\fR
.
This font should be used for column headings in lists and tables.
.TP
\fBTkCaptionFont\fR
.
This font should be used for window and dialog caption bars.
.TP
\fBTkSmallCaptionFont\fR
.
This font should be used for captions on contained windows or tool dialogs.
.TP
\fBTkIconFont\fR
.
This font should be used for icon captions.
.TP
\fBTkTooltipFont\fR
.
This font should be used for tooltip windows (transient information windows).
.LP
It is \fInot\fR advised to change these fonts, as they may be modified by Tk
itself in response to system changes. Instead, make a copy of the font and
modify that.
.SS "PLATFORM-SPECIFIC FONTS"
.LP
The following system fonts are supported:
d269 1
a269 1
\fBX Windows\fR
d272 1
a272 1
\fBMS Windows\fR
d279 1
a279 1
\fBMac OS X\fR
a283 22
Additionally, the following named fonts provide access to the Aqua theme fonts:
.DS
\fBsystemSystemFont
systemEmphasizedSystemFont
systemSmallSystemFont
systemSmallEmphasizedSystemFont
systemApplicationFont
systemLabelFont
systemViewsFont
systemMenuTitleFont
systemMenuItemFont
systemMenuItemMarkFont
systemMenuItemCmdKeyFont
systemWindowTitleFont
systemPushButtonFont
systemUtilityWindowTitleFont
systemAlertHeaderFont
systemToolbarFont
systemMiniSystemFont
systemDetailSystemFont
systemDetailEmphasizedSystemFont\fR
.DE
d294 1
a294 1
    .t insert end ${family}:\\t {} \e
@


1.11.2.2
log
@merge updates from HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.11.2.1 2007/10/24 12:59:30 dgp Exp $
d264 1
a264 1
.SH "PLATFORM-SPECIFIC ISSUES"
d266 45
a310 1
The following named system fonts are supported:
d313 1
a313 1
X Windows:
d316 1
a316 1
MS Windows:
d323 1
a323 1
Mac OS X:
d328 22
d360 1
a360 1
    .t insert end ${family}:\\t {} \\
@


1.11.2.3
log
@merge updates from HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id$
d26 1
a26 1
\fBfont actual \fIfont\fR ?\fB\-displayof \fIwindow\fR? ?\fIoption\fR? ?\fB\-\|\-\fR? ?\fIchar\fR?
d32 1
a32 1
\fIfont\fR is a font description; see \fBFONT DESCRIPTIONS\fR below.  If the
d36 1
a36 1
See \fBFONT OPTIONS\fR below for a list of the possible attributes.  If the
d41 1
a41 1
should be preceded by \fB\-\|\-\fR to distinguish it from a misspelled
d53 1
a53 1
new attributes for the font.  See \fBFONT OPTIONS\fR below for a list of the
d62 1
a62 1
the new named font.  See \fBFONT OPTIONS\fR below for a list of the possible
d68 1
a68 1
the named font will not actually be deleted until all the instances are
d84 1
a84 2
see \fBFONT DESCRIPTIONS\fR below.  If the \fIwindow\fR argument is
omitted, it 
d87 1
a87 3
characters such as cursive
.QW f .
If the string contains newlines or tabs,
d95 1
a95 2
description; see \fBFONT DESCRIPTIONS\fR below.  If the \fIwindow\fR
argument is
d98 2
a99 2
list of all the metrics and their values.  See \fBFONT METRICS\fR
below for a list of the possible metrics.
d121 1
a121 2
This also includes, under X, an XLFD (see [4]) for which a single
.QW \fB*\fR
d123 1
a123 1
name.  See \fBPLATFORM-SPECIFIC\fR issues for a list of the system fonts.
d130 1
a130 2
described for \fB\-size\fR in \fBFONT OPTIONS\fR below.  Any
additional optional
d144 6
a149 13
\fI\-foundry\-family\-weight\-slant\-setwidth\-addstyle\-pixel\-point\-resx\-resy\-spacing\-width\-charset\-encoding\fR.
The
.QW \fB*\fR
character may be used to skip individual fields that the
user does not care about.  There must be exactly one
.QW \fB*\fR
for each field skipped, except that a
.QW \fB*\fR
at the end of the XLFD skips any
remaining fields; the shortest valid XLFD is simply
.QW \fB*\fR ,
signifying all fields as defaults.  Any fields that were skipped are
given default
d152 1
a152 2
correct, all existing applications using XLFDs assumed that one
.QW point
d160 1
a160 1
a named font; see \fBFONT OPTIONS\fR below.
d176 1
a176 3
font.  In the following definitions, the
.QW baseline
of a font is the
d178 1
a178 3
such as lower-case
.QW g
stick below the baseline.
d199 1
a199 3
Returns a boolean flag that is
.QW \fB1\fR
if this is a fixed-width font,
d201 1
a201 3
characters, or is
.QW \fB0\fR
if this is a proportionally-spaced font, where
d213 3
a215 7
families named \fBCourier\fR (a monospaced
.QW typewriter
font), \fBTimes\fR (a serifed
.QW newspaper
font), and \fBHelvetica\fR (a sans-serif
.QW European
font).  The most closely matching native font family will
d264 1
a264 1
.SH "STANDARD FONTS"
d266 1
a266 45
The following named fonts are supported on all systems, and default to values
that match appropriate system defaults.
.TP
\fBTkDefaultFont\fR
.
This font is the default for all GUI items not otherwise specified.
.TP
\fBTkTextFont\fR
.
This font should be used for user text in entry widgets, listboxes etc.
.TP
\fBTkFixedFont\fR
.
This font is the standard fixed-width font.
.TP
\fBTkMenuFont\fR
.
This font is used for menu items.
.TP
\fBTkHeadingFont\fR
.
This font should be used for column headings in lists and tables.
.TP
\fBTkCaptionFont\fR
.
This font should be used for window and dialog caption bars.
.TP
\fBTkSmallCaptionFont\fR
.
This font should be used for captions on contained windows or tool dialogs.
.TP
\fBTkIconFont\fR
.
This font should be used for icon captions.
.TP
\fBTkTooltipFont\fR
.
This font should be used for tooltip windows (transient information windows).
.LP
It is \fInot\fR advised to change these fonts, as they may be modified by Tk
itself in response to system changes. Instead, make a copy of the font and
modify that.
.SH "PLATFORM-SPECIFIC FONTS"
.LP
The following system fonts are supported:
d269 1
a269 1
\fBX Windows\fR
d272 1
a272 1
\fBMS Windows\fR
d279 1
a279 1
\fBMac OS X\fR
a283 22
Additionally, the following named fonts provide access to the Aqua theme fonts:
.DS
\fBsystemSystemFont
systemEmphasizedSystemFont
systemSmallSystemFont
systemSmallEmphasizedSystemFont
systemApplicationFont
systemLabelFont
systemViewsFont
systemMenuTitleFont
systemMenuItemFont
systemMenuItemMarkFont
systemMenuItemCmdKeyFont
systemWindowTitleFont
systemPushButtonFont
systemUtilityWindowTitleFont
systemAlertHeaderFont
systemToolbarFont
systemMiniSystemFont
systemDetailSystemFont
systemDetailEmphasizedSystemFont\fR
.DE
d289 1
a289 1
pack [text .t \-wrap none] \-fill both \-expand 1
d292 5
a296 5
foreach family [lsort \-dictionary [\fBfont families\fR]] {
    .t tag configure f[incr count] \-font [list $family 10]
    .t insert end ${family}:\\t {} \e
            "This is a simple sampler\en" f$count
    set w [\fBfont measure\fR [.t cget \-font] ${family}:]
d299 1
a299 1
        .t configure \-tabs $tabwidth
@


1.11.2.4
log
@merge updates from HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.11.2.3 2007/11/01 16:37:14 dgp Exp $
d142 2
a143 2
\fBnormal\fR	\fBbold\fR	\fBroman\fR	\fBitalic\fR
\fBunderline\fR	\fBoverstrike\fR
d335 1
a335 1
.PP
d337 1
a342 3
The following fonts are supported, and are mapped to the user's
style defaults.
.RS
d345 2
a346 2
\fBsystem\fR	\fBansi\fR	\fBdevice\fR
\fBsystemfixed\fR	\fBansifixed\fR	\fBoemfixed\fR
a347 1
.RE
a349 3
The following fonts are supported, and are mapped to the user's
style defaults.
.RS
d352 1
a352 1
\fBsystem\fR	\fBapplication\fR	\fBmenu\fR
d354 1
a354 3
.PP
Additionally, the following named fonts provide access to the Aqua
theme fonts:
d356 19
a374 11
.ta 5c
\fBsystemSystemFont\fR	\fBsystemEmphasizedSystemFont\fR
\fBsystemSmallSystemFont\fR	\fBsystemSmallEmphasizedSystemFont\fR
\fBsystemApplicationFont\fR	\fBsystemLabelFont\fR
\fBsystemViewsFont\fR	\fBsystemMenuTitleFont\fR
\fBsystemMenuItemFont\fR	\fBsystemMenuItemMarkFont\fR
\fBsystemMenuItemCmdKeyFont\fR	\fBsystemWindowTitleFont\fR
\fBsystemPushButtonFont\fR	\fBsystemUtilityWindowTitleFont\fR
\fBsystemAlertHeaderFont\fR	\fBsystemToolbarFont\fR
\fBsystemMiniSystemFont\fR	\fBsystemDetailSystemFont\fR
\fBsystemDetailEmphasizedSystemFont\fR
@


1.11.2.5
log
@merge updates from HEAD
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.11.2.4 2007/11/02 14:51:39 dgp Exp $
d30 1
a30 1
may differ from the attributes requested due to platform-dependent
d182 1
a182 1
a garbage value); in that case, some system-dependent default font is
d254 1
a254 1
chosen.  If \fIsize\fR is unspecified or zero, a platform-dependent default
@


1.10
log
@	* doc/colors.n:		document new Mac OS X system colors.
	* doc/cursors.n:	document new Mac OS X native cursors.
	* doc/font.n:		document new Mac OS X 'menu' system font.
	* doc/wm.n:		document new Mac OS X [wm attributes].
	* doc/ttk_image.n:	fix 'make html' warning.
	* doc/canvas.n:		fix nroff typo.
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.9 2006/12/01 20:14:23 kennykb Exp $
d41 2
a42 1
should be preceded by \fB--\fR to distinguish it from a misspelt \fIoption\fR.
d44 1
a44 1
\fBfont configure \fIfontname\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?  
d48 1
a48 1
all the options and their values for \fIfontname\fR.  If a single \fIoption\fR 
d76 1
a76 1
The return value is a list of the case-insensitive names of all font families 
d80 1
a80 1
\fBfont measure \fIfont\fR ?\fB\-displayof \fIwindow\fR? \fItext\fR 
d97 1
a97 1
returns the value of that metric; if it is omitted, the return value is a 
d109 1
a109 1
[1] \fIfontname\fR 
d136 1
a136 1
\fBnormal	bold	roman	italic	
d140 1
a140 1
.TP 
d170 1
a170 1
an error is generated.  
d176 2
a177 2
font.  In the following definitions, the ``baseline'' of a font is the 
horizontal line where the bottom of most letters line up; certain letters, 
d185 1
a185 1
\fB\-descent       \0\fR 
d201 3
a203 3
characters, or is ``\fB0\fR'' if this is a proportionally-spaced font, where 
individual characters have different widths.  The widths of control 
characters, tab characters, and other non-printing characters are not 
d210 1
a210 1
\fB\-family \fIname\fR 
d219 1
a219 1
display correctly on other platforms.  If the family is unspecified or 
d228 2
a229 2
chosen.  If \fIsize\fR is unspecified or zero, a platform-dependent default
size will be chosen.  
d241 1
a241 1
\fB\-weight \fIweight\fR 
d251 1
a251 1
A roman font is the normal, upright appearance of a font, while 
d260 1
a260 1
\fB\-overstrike \fIboolean\fR 
d268 1
a268 1
.TP 
@


1.9
log
@TIP 300 IMPLEMENTATION
@
text
@d3 1
d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.8 2005/04/06 21:11:54 dkf Exp $
d278 1
a278 1
Macintosh:
d281 1
a281 1
\fBsystem	application\fR
@


1.8
log
@Purge old and inaccurate .VS/.VE macros.
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: font.n,v 1.7 2004/10/28 10:22:51 dkf Exp $
d25 1
a25 1
\fBfont actual \fIfont\fR ?\fB\-displayof \fIwindow\fR? ?\fIoption\fR?  
d35 6
a40 1
See FONT OPTIONS below for a list of the possible attributes.
@


1.7
log
@Assorted minor documentation fixes
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: font.n,v 1.6 2004/08/20 14:15:29 dkf Exp $
a116 1
.VS 8.0 br
a147 1
.VE
a213 1
.VS
a232 1
.VE
@


1.6
log
@More doc fixes. [Patch 1012837]
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: font.n,v 1.5 2004/06/18 21:42:16 dkf Exp $
d289 1
a289 1
foreach family [lsort -dictionary [\fBfont\fR families]] {
d293 1
a293 1
    set w [\fBfont\fR measure [.t cget -font] ${family}:]
@


1.5
log
@Added example.
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: font.n,v 1.4 2004/03/25 12:12:36 vincentdarley Exp $
d79 1
a79 1
of \fItext\fR, not including the extra pixels used by highly exagerrated
@


1.4
log
@Fix typos in documentation
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: font.n,v 1.3 2000/07/25 21:14:35 jenglish Exp $
a260 1

d282 19
d302 1
a302 1
options
@


1.3
log
@CanvPsY.3, ConfigWidg.3, CrtImgType.3, CrtItemType.3,
FontId.3, GetFont.3, canvas.n, font.n, options.n, text.n:
Documentation fix: Replaced references to XFontStruct *
and Tk_FontStruct with Tk_Font.
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: font.n,v 1.2 1998/09/14 18:22:56 stanton Exp $
d27 1
a27 1
Returns information about the the actual attributes that are obtained when
d195 1
a195 1
where each normal character is the the same width as all the other
@


1.3.8.1
log
@Backport of documentation fixes
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: font.n,v 1.3 2000/07/25 21:14:35 jenglish Exp $
d27 1
a27 1
Returns information about the actual attributes that are obtained when
d79 1
a79 1
of \fItext\fR, not including the extra pixels used by highly exaggerated
d195 1
a195 1
where each normal character is the same width as all the other
d261 1
a282 19
.SH EXAMPLE
Fill a text widget with lots of font demonstrators, one for every font
family installed on your system:
.CS
pack [text .t -wrap none] -fill both -expand 1
set count 0
set tabwidth 0
foreach family [lsort -dictionary [\fBfont families\fR]] {
    .t tag configure f[incr count] -font [list $family 10]
    .t insert end ${family}:\\t {} \\
            "This is a simple sampler\\n" f$count
    set w [\fBfont measure\fR [.t cget -font] ${family}:]
    if {$w+5 > $tabwidth} {
        set tabwidth [expr {$w+5}]
        .t configure -tabs $tabwidth
    }
}
.CE

d284 1
a284 1
options(n)
@


1.3.8.2
log
@	* doc/colors.n:		document new Mac OS X system colors.
	* doc/cursors.n:	document new Mac OS X native cursors.
	* doc/font.n:		document new Mac OS X 'menu' system font.
	* doc/wm.n:		document new Mac OS X [wm attributes].
@
text
@a2 1
'\" Copyright (c) 2006-2007 Daniel A. Steffen <das@@users.sourceforge.net>
d7 1
a7 1
'\" RCS: @@(#) $Id: font.n,v 1.3.8.1 2004/10/28 10:19:29 dkf Exp $
d276 1
a276 1
Mac OS X:
d279 1
a279 1
\fBsystem	application	menu\fR
@


1.3.8.3
log
@Spelling corrections
@
text
@d8 1
a8 1
'\" RCS: @@(#) $Id: font.n,v 1.3.8.2 2007/04/29 02:25:54 das Exp $
d30 1
a30 1
may differ from the attributes requested due to platform-dependent
d164 1
a164 1
a garbage value); in that case, some system-dependent default font is
@


1.2
log
@Replaced SCCS strings, fixed binary files
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id$
d272 1
d279 1
@


1.2.18.1
log
@doc cleanup and clarifications from 8.4aCVS backport
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: font.n,v 1.3 2000/07/25 21:14:35 jenglish Exp $
a271 1
.ta 3c 6c
a277 1
.ta 3c 6c
@


1.1
log
@Initial revision
@
text
@d7 1
a7 1
'\" SCCS: @@(#) font.n 1.10 97/08/22 18:52:18
@


1.1.4.1
log
@Merged 8.0.3 changes into 8.1
@
text
@d7 1
a7 1
'\" RCS: @@(#) $Id: font.n,v 1.2 1998/09/14 18:22:56 stanton Exp $
@


