Ignore characters below 31 in font substitution.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25404 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2007-08-21 09:04:52 +00:00
parent 92c7d50fe6
commit 5ac3cf358b
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-08-21 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSAttributedString.m (-fixFontAttributeInRange:): Ignore
characters below 31.
Patch by Yen-Ju Chen <yjchenx@gmail.com>
2007-08-20 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSWindow.m (-sendEvent:): For the left mouse down case

View file

@ -1123,7 +1123,8 @@ static NSMutableDictionary *cachedCSets = nil;
charset = [font coveredCharacterSet];
}
if (charset != nil && ![charset characterIsMember: uchar])
if (charset != nil && ![charset characterIsMember: uchar]
&& (uchar > 31))
{
// Find a replacement font
NSFont *subFont;