Fix loading of font from preferences.

This commit is contained in:
Riccardo Mottola 2020-03-24 17:24:41 +01:00
parent 0cdbc996a9
commit 5f360ca78b
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2020-03-24 Riccardo Mottola <rm@gnu.org>
* Modules/Preferences/EditorFSC/PCEditorFSCPrefs.m
Fix loading of font from preferences.
2019-12-29 Fred Kiefer <FredKiefer@gmx.de>
* Framework/PCButton.m

View file

@ -1,7 +1,7 @@
//
// GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
//
// Copyright (C) 2001-2015 Free Software Foundation
// Copyright (C) 2001-2020 Free Software Foundation
//
// Authors: Sergii Stoian
// Riccardo Mottola
@ -175,7 +175,7 @@
defaultValue:[consoleFixedFont fontName]];
fontSize = [prefs floatForKey:ConsoleFixedFontSize
defaultValue:[consoleFixedFont pointSize]];
consoleFixedFont = [NSFont fontWithName:fontName size:fontSize];
currentConsoleFixedFont = [NSFont fontWithName:fontName size:fontSize];
[consoleFixedFontField setStringValue:[NSString stringWithFormat:@"%@ %0.1f",
[currentConsoleFixedFont fontName], [currentConsoleFixedFont pointSize]]];
[consoleFixedFontField setFont:currentConsoleFixedFont];