(getNSFont): Set the explicit-size bit in the role correctly.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17631 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-09-06 20:54:34 +00:00
parent 3d78b963f9
commit c4788b1aa9
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2003-09-06 22:53 Alexander Malmberg <alexander@malmberg.org>
* Source/NSFont.m (getNSFont): Set the explicit-size bit in the
role correctly.
2003-09-06 Gregory John Casamento <greg_casamento@yahoo.com>
* Images/common_Printer.tiff

View file

@ -280,8 +280,6 @@ static NSFont *getNSFont(float fontSize, int role)
defaultSize = (fontSize == 0.0);
if (defaultSize)
{
font_role |= 1;
if (font_roles[role].cachedFont)
return AUTORELEASE(RETAIN(font_roles[role].cachedFont));
@ -291,6 +289,10 @@ static NSFont *getNSFont(float fontSize, int role)
if (!fontSize)
fontSize = [NSFont systemFontSize];
}
else
{
font_role |= 1;
}
fontName = fontNameForRole(role, &i);
font = [NSFontClass _fontWithName: fontName