diff options
author | rmax <rmax> | 2006-03-23 22:08:51 (GMT) |
---|---|---|
committer | rmax <rmax> | 2006-03-23 22:08:51 (GMT) |
commit | 489d54fcecc142a1feb7d87c793d721875294291 (patch) | |
tree | 4e1ab7a142939c414bc8c061e3143453f6130001 /unix/tkUnixRFont.c | |
parent | 974ca423b7a97eedb0a45b650854594838358b84 (diff) | |
download | tk-489d54fcecc142a1feb7d87c793d721875294291.zip tk-489d54fcecc142a1feb7d87c793d721875294291.tar.gz tk-489d54fcecc142a1feb7d87c793d721875294291.tar.bz2 |
* unix/tkUnixRFont.c (TkpMeasureCharsInContext): Copied over from
tkUnixFont.c to fix compiling with --enable-xft .
Diffstat (limited to 'unix/tkUnixRFont.c')
-rw-r--r-- | unix/tkUnixRFont.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c index 0421573..407bcf6 100644 --- a/unix/tkUnixRFont.c +++ b/unix/tkUnixRFont.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkUnixRFont.c,v 1.12 2006/02/07 11:33:18 dkf Exp $ + * RCS: @(#) $Id: tkUnixRFont.c,v 1.13 2006/03/23 22:08:51 rmax Exp $ */ #include "tkUnixInt.h" @@ -567,6 +567,16 @@ Tk_MeasureChars( return curByte; } +int +TkpMeasureCharsInContext(Tk_Font tkfont, CONST char * source, int numBytes, + int rangeStart, int rangeLength, int maxLength, + int flags, int * lengthPtr) +{ + (void) numBytes; /*unused*/ + return Tk_MeasureChars(tkfont, source + rangeStart, rangeLength, + maxLength, flags, lengthPtr); +} + #define NUM_SPEC 1024 void |