font actualfontDesc [-displayof window] [option]
Returns actual value for option used by fontDesc on window`s display.
If option is not given, the complete option/actual value list is returned.
font configurefontname [option [valueoptionvalue ...]]
Query/set font options for application created font fontname.
font create
[fontname [optionvalue ...]]
Create new application font fontname with given font options.
font deletefontname [fontname ...]
Delete given application created fonts.
font families
[-displayof window]
Returns list of know font families defined on window`s display.
font measurefontDesc [-displayof window] text
Returns width in pixels used by text when rendered in fontDesc
on window.
font metricsfontDesc [-displayof window] [metric]
Query font metrics of fontDesc on window`s display where metric
maybe be one of -ascent, -descent, -linespace, or -fixed. If
metric is not given, the complete metric/value list is returned.
font names
Returns list of application created fonts.
vskip6pt
Font Description:
1. fontname
Name of font created by the application with font create
.
2. systemfont
Name of platform-specific font interpreted by graphics server.
3. family [size [style ...]]
A Tcl list with first element the name of a font family, the
optional second element is desired size, and additional elements
chosen from normal or bold, roman or italic, underline
and overstrike.
4. optionvalue [optionvalue ...]
A Tcl list of option/values as valid for font create
.
Font Options:
[-family name]
Font family (e.g. Courier, Times, Helvetica).
[-size size]
Size in points (or pixels if negative).
[-weight weight]
Either normal (default) or bold.
[-slant slant]
Either roman (default) or italic.
[-underline boolean]
Whether or not font is underlined.
[-overstrike boolean]
Whether or not font is overstriked.