mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22:00:46 +00:00
Implement [reloadDefaultFontFamilies] and use it in [init].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10634 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
da2fb3ab34
commit
2ac11ba36f
1 changed files with 7 additions and 2 deletions
|
@ -130,8 +130,7 @@ float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0,
|
||||||
// if (![NSBundle loadNibNamed: @"FontPanel" owner: self]);
|
// if (![NSBundle loadNibNamed: @"FontPanel" owner: self]);
|
||||||
[self _initWithoutGModel];
|
[self _initWithoutGModel];
|
||||||
|
|
||||||
ASSIGN(_familyList, [[NSFontManager sharedFontManager]
|
[self reloadDefaultFontFamilies];
|
||||||
availableFontFamilies]);
|
|
||||||
ASSIGN(_faceList, [NSArray array]);
|
ASSIGN(_faceList, [NSArray array]);
|
||||||
_face = -1;
|
_face = -1;
|
||||||
_family = -1;
|
_family = -1;
|
||||||
|
@ -167,6 +166,12 @@ float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0,
|
||||||
[setButton setEnabled: flag];
|
[setButton setEnabled: flag];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) reloadDefaultFontFamilies
|
||||||
|
{
|
||||||
|
ASSIGN(_familyList, [[NSFontManager sharedFontManager]
|
||||||
|
availableFontFamilies]);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Setting the Font
|
* Setting the Font
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue