mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 13:10:52 +00:00
(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:
parent
3d78b963f9
commit
c4788b1aa9
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue