mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
Made anti-aliased fonts the default for the xlib backend.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@20271 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e9a6af10d5
commit
96a3253131
3 changed files with 14 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-10-30 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/xlib/XGContext.m (+initializeBackend): Use anti-aliaesd
|
||||
fonts when available and not specified otherwise.
|
||||
* Documentation/Back/DefaultsSummary.gsdoc: Document that AA fonts
|
||||
are now the default for xlib.
|
||||
|
||||
2004-09-28 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/x11/XGServerEvent.m (initialize_keyboard): Corrected typo
|
||||
|
|
|
@ -61,10 +61,11 @@
|
|||
<desc>
|
||||
<p>
|
||||
With the xlib backend, this is a boolean value which
|
||||
defaults to <code>NO</code>. If set to
|
||||
defaults to <code>YES</code>. If set to
|
||||
<code>YES</code> and X Windows system has the XFT
|
||||
extension, then the application will use anti-aliased fonts
|
||||
as provided by XFT..
|
||||
as provided by XFT. If set to <code>NO</code> anti-aliased fonts
|
||||
will not be used even when available.
|
||||
</p>
|
||||
<p> With the art backend, A boolean value which defaults to
|
||||
YES. If YES, text is anti-aliased at small sizes (9-16
|
||||
|
|
|
@ -73,13 +73,15 @@
|
|||
Class fontClass = Nil;
|
||||
Class fontEnumerator = Nil;
|
||||
BOOL enableFontSet;
|
||||
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
NSDebugLog(@"Initializing GNUstep xlib backend.\n");
|
||||
|
||||
[NSGraphicsContext setDefaultContextClass: [XGContext class]];
|
||||
|
||||
#ifdef HAVE_XFT
|
||||
if ([[NSUserDefaults standardUserDefaults] boolForKey: @"GSFontAntiAlias"])
|
||||
if (([ud objectForKey: @"GSFontAntiAlias"] == nil) ||
|
||||
([ud boolForKey: @"GSFontAntiAlias"]))
|
||||
{
|
||||
fontClass = [GSXftFontInfo class];
|
||||
#ifdef HAVE_FC
|
||||
|
@ -87,8 +89,7 @@
|
|||
#endif
|
||||
}
|
||||
#endif
|
||||
enableFontSet = [[NSUserDefaults standardUserDefaults] boolForKey:
|
||||
@"GSXEnableFontSet"];
|
||||
enableFontSet = [ud boolForKey: @"GSXEnableFontSet"];
|
||||
if (fontClass == Nil)
|
||||
{
|
||||
if (enableFontSet == NO)
|
||||
|
|
Loading…
Reference in a new issue