diff options
author | Kevin B Kenny <kennykb@acm.org> | 2006-12-01 20:14:22 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2006-12-01 20:14:22 (GMT) |
commit | 10a9bee4327efae24bd3100c99cba0df02a80657 (patch) | |
tree | 489ea29c16233aae8944a6e2c553d6f40503fc20 /macosx | |
parent | e02f33e09fae816619b13acf92deb6b5e0e5c7d6 (diff) | |
download | tk-10a9bee4327efae24bd3100c99cba0df02a80657.zip tk-10a9bee4327efae24bd3100c99cba0df02a80657.tar.gz tk-10a9bee4327efae24bd3100c99cba0df02a80657.tar.bz2 |
TIP 300 IMPLEMENTATION
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXFont.c | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c index 280e649..25689c5 100644 --- a/macosx/tkMacOSXFont.c +++ b/macosx/tkMacOSXFont.c @@ -35,7 +35,7 @@ * that such fonts can not be used for controls, because controls * definitely require a family id (this assertion needs testing). * - * RCS: @(#) $Id: tkMacOSXFont.c,v 1.19 2006/07/20 06:25:19 das Exp $ + * RCS: @(#) $Id: tkMacOSXFont.c,v 1.20 2006/12/01 20:14:23 kennykb Exp $ */ #include "tkMacOSXInt.h" @@ -465,6 +465,38 @@ TkpGetSubFonts( } /* + *---------------------------------------------------------------------- + * + * TkpGetFontAttrsForChar -- + * + * Retrieve the font attributes of the actual font used to render + * a given character. + * + * Results: + * None. + * + * Side effects: + * The font attributes are stored in *faPtr. + * + *---------------------------------------------------------------------- + */ + +void +TkpGetFontAttrsForChar( + Tk_Window tkwin, /* Window on the font's display */ + Tk_Font tkfont, /* Font to query */ + Tcl_UniChar c, /* Character of interest */ + TkFontAttributes* faPtr) /* Output: Font attributes */ +{ + /* + * Once again, we don't know what ATSU is doing for us. Simply + * return the attributes of the base font. + */ + TkMacOSXFont* fontPtr = (TkMacOSXFont*) tkfont; + *faPtr = fontPtr->font.fa; +} + +/* *--------------------------------------------------------------------------- * * Tk_MeasureChars -- |