From 39af61f56cd2013861853dd736c0764c3737f865 Mon Sep 17 00:00:00 2001 From: hobbs Date: Sat, 13 May 2000 00:02:25 +0000 Subject: * win/tkWinFont.c (LoadFontRanges): improved support for all chars in 0-255 range for bitmap ANSI fonts. May be improved to handle bitmap non-ANSI fonts in the future. [Bug: 2172] --- win/tkWinFont.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/win/tkWinFont.c b/win/tkWinFont.c index 84867ad..a99d965 100644 --- a/win/tkWinFont.c +++ b/win/tkWinFont.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinFont.c,v 1.10 2000/04/07 20:57:10 hobbs Exp $ + * RCS: @(#) $Id: tkWinFont.c,v 1.11 2000/05/13 00:02:25 hobbs Exp $ */ #include "tkWinInt.h" @@ -2314,6 +2314,17 @@ LoadFontRanges( } } } + } else if (GetTextCharset(hdc) == ANSI_CHARSET) { + /* + * Bitmap font. We should also support ranges for the other + * *_CHARSET values. + */ + segCount = 1; + cbData = segCount * sizeof(USHORT); + startCount = (USHORT *) ckalloc(cbData); + endCount = (USHORT *) ckalloc(cbData); + startCount[0] = 0x0000; + endCount[0] = 0x00ff; } SelectObject(hdc, hFont); -- cgit v0.12