diff options
author | hobbs <hobbs@noemail.net> | 2000-05-13 00:02:25 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2000-05-13 00:02:25 (GMT) |
commit | d737ef323388d05dc37fb06e524d282c2e635372 (patch) | |
tree | 71b406d32317fe026dc65a9bcba4101ca0a3a293 /win/tkWinFont.c | |
parent | ec4c9011437ac33accd97cf591e5c2ddca8f782b (diff) | |
download | tk-d737ef323388d05dc37fb06e524d282c2e635372.zip tk-d737ef323388d05dc37fb06e524d282c2e635372.tar.gz tk-d737ef323388d05dc37fb06e524d282c2e635372.tar.bz2 |
* 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]
FossilOrigin-Name: 98d9aa794b91185874a1b5bd0778436502a4ccba
Diffstat (limited to 'win/tkWinFont.c')
-rw-r--r-- | win/tkWinFont.c | 13 |
1 files changed, 12 insertions, 1 deletions
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); |