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 | 96dd14f8a93c3f9dbccdc44cfaac782b612a6eed (patch) | |
tree | 489ea29c16233aae8944a6e2c553d6f40503fc20 /macosx | |
parent | 24d0506cfd0c1ab9b1867e9276ca7b0b4ccadb95 (diff) | |
download | tk-96dd14f8a93c3f9dbccdc44cfaac782b612a6eed.zip tk-96dd14f8a93c3f9dbccdc44cfaac782b612a6eed.tar.gz tk-96dd14f8a93c3f9dbccdc44cfaac782b612a6eed.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 -- |