summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Expand)AuthorAgeFilesLines
* * generic/tclCmdIL.c (TclLindex*): Rewrites to make efficient pr...dgp2007-03-071-180/+66
* various "const" additions in implementationnijtmans2007-03-071-22/+22
* * generic/tclObj.c (Tcl_AppendAllObjTypes): Converted to simplerdgp2007-03-071-4/+3
* Make [regexp -about] produce its result using Tcl_Objs instead of strings.dkf2007-03-071-31/+31
* Minor comment cleaning updkf2007-03-071-42/+41
* Added macro to conceal at least some of the pointer hackery.dkf2007-03-031-56/+64
* * generic/tclCmdIL.c (Tcl_LreverseObjCmd): Added missingdgp2007-03-021-1/+2
* Added comments warning against certain optimizationsdgp2007-03-022-2/+19
* * generic/tclCmdIL.c (Tcl_JoinObjCmd): Revised [join] implementationdgp2007-03-021-20/+11
* * generic/tclCmdIL.c (Info*Cmd): Code simplifications anddgp2007-03-021-28/+20
* Added a scheme to allow aux-data to be printed out for debugging. For this to...dkf2007-03-024-71/+271
* * generic/tclCmdIL.c (Tcl_LinsertObjCmd): Code simplificationsdgp2007-03-011-15/+6
* * generic/tclCmdIL.c (Tcl_LreplaceObjCmd): Code simplificationsdgp2007-03-011-19/+5
* Remove line with no effectdgp2007-03-011-2/+1
* * generic/tclCmdIL.c (Tcl_LrangeObjCmd): Rewrite in the samedgp2007-03-011-47/+24
* * generic/tclCmdAH.c (Tcl_ForeachObjCmd): Stop throwing awaydgp2007-03-011-5/+5
* * generic/tclCmdIL.c (Tcl_LassignObjCmd): Rewrite to make andgp2007-03-011-63/+28
* * generic/tclCmdAH.c (Tcl_ForeachObjCmd): Rewrite to makedgp2007-03-011-26/+28
* Fix [Bug 1671138]dkf2007-03-011-1/+14
* A few more very minor changesdkf2007-02-271-20/+11
* Assorted cleanup, mostly of comments.dkf2007-02-271-195/+227
* Stop using C++ keywords...dkf2007-02-271-25/+25
* * generic/tclIORChan.c (FreeReflectedChannel): Added the missingandreas_kupries2007-02-261-1/+10
* * generic/tclCmdAH.c (Tcl_ForeachObjCmd): Removed surplus copyingdgp2007-02-261-33/+6
* * generic/tclBasic.c: Use new interface in Tcl_EvalObjEx so thatdgp2007-02-243-31/+53
* various "const" additions, in line with TIP #27nijtmans2007-02-233-122/+123
* various "const" additions, in line with TIP #27nijtmans2007-02-2023-626/+630
* Bug #1479814. Handle extended paths on Windows NT and above.patthoyts2007-02-202-6/+63
* (Tcl_FSEvalFileEx): safe incr of objPtr refhobbs2007-02-191-1/+2
* 2007-02-13 Kevin Kenny <kennykb@acm.org>Kevin B Kenny2007-02-141-4/+4
* * tools/fix_tommath_h.tcl: Added code to patch out a check forKevin B Kenny2007-02-131-15/+5
* * generic/tclNamesp.c: Corrected broken logic in Tcl_DeleteNamespace()dgp2007-02-081-4/+4
* Minor syntax/efficiency stuffdkf2007-02-061-22/+35
* Silence a trivial warningdkf2007-02-061-2/+3
* Function header/whitespace police/general format fixesdkf2007-02-063-847/+893
* * generic/tclNamesp.c: Corrected broken implementation of thedgp2007-02-061-2/+6
* * generic/tclResult.c: Added optimization case to TclTransferResultdgp2007-01-291-5/+17
* * generic/tclLink.c: Broken linked float logic corrected. Thanksdgp2007-01-291-2/+2
* * macosx/Tcl.xcodeproj/project.pbxproj: extract build settings thatdas2007-01-281-4/+3
* More efficient issuing of INST_START_CMD instructions. See ChangeLog for disc...dkf2007-01-192-9/+21
* Code style improvementsdkf2007-01-182-133/+148
* Fix minor fault (made by aku, caught by aku)dkf2007-01-181-2/+2
* Whitespace policing, and adding comments so that it is clearer what TclMarkList dkf2007-01-181-30/+61
* Minor fix to make bytecodes print out properlydkf2007-01-181-2/+2
* Fix [Bug 1638414] and make bytecode of expansion betterdkf2007-01-181-71/+103
* Missed a spot; thanks to Andreas Kupries for spotting this one.dkf2007-01-171-5/+10
* Added macros to make usage of ChannelBuffers clearer.dkf2007-01-171-81/+128
* Arrange for RE engine workspace to be held in TSD. This is safe, lessdkf2007-01-104-8/+49
* Fix [lindex] argument ordering. [bug 1631364]dkf2007-01-091-9/+13
* Regenerated tclDate.cKevin B Kenny2007-01-031-18/+18
span class="hl str">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-dependant default font is chosen. If the font description does not match any of the above patterns, an error is generated. .SH "FONT METRICS" . 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" 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-dependant 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" .LP 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 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