mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 09:21:26 +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
02b66faa63
commit
4f6e790477
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>
|
2004-09-28 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/x11/XGServerEvent.m (initialize_keyboard): Corrected typo
|
* Source/x11/XGServerEvent.m (initialize_keyboard): Corrected typo
|
||||||
|
|
|
@ -61,10 +61,11 @@
|
||||||
<desc>
|
<desc>
|
||||||
<p>
|
<p>
|
||||||
With the xlib backend, this is a boolean value which
|
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
|
<code>YES</code> and X Windows system has the XFT
|
||||||
extension, then the application will use anti-aliased fonts
|
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>
|
||||||
<p> With the art backend, A boolean value which defaults to
|
<p> With the art backend, A boolean value which defaults to
|
||||||
YES. If YES, text is anti-aliased at small sizes (9-16
|
YES. If YES, text is anti-aliased at small sizes (9-16
|
||||||
|
|
|
@ -73,13 +73,15 @@
|
||||||
Class fontClass = Nil;
|
Class fontClass = Nil;
|
||||||
Class fontEnumerator = Nil;
|
Class fontEnumerator = Nil;
|
||||||
BOOL enableFontSet;
|
BOOL enableFontSet;
|
||||||
|
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
|
||||||
|
|
||||||
NSDebugLog(@"Initializing GNUstep xlib backend.\n");
|
NSDebugLog(@"Initializing GNUstep xlib backend.\n");
|
||||||
|
|
||||||
[NSGraphicsContext setDefaultContextClass: [XGContext class]];
|
[NSGraphicsContext setDefaultContextClass: [XGContext class]];
|
||||||
|
|
||||||
#ifdef HAVE_XFT
|
#ifdef HAVE_XFT
|
||||||
if ([[NSUserDefaults standardUserDefaults] boolForKey: @"GSFontAntiAlias"])
|
if (([ud objectForKey: @"GSFontAntiAlias"] == nil) ||
|
||||||
|
([ud boolForKey: @"GSFontAntiAlias"]))
|
||||||
{
|
{
|
||||||
fontClass = [GSXftFontInfo class];
|
fontClass = [GSXftFontInfo class];
|
||||||
#ifdef HAVE_FC
|
#ifdef HAVE_FC
|
||||||
|
@ -87,8 +89,7 @@
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
enableFontSet = [[NSUserDefaults standardUserDefaults] boolForKey:
|
enableFontSet = [ud boolForKey: @"GSXEnableFontSet"];
|
||||||
@"GSXEnableFontSet"];
|
|
||||||
if (fontClass == Nil)
|
if (fontClass == Nil)
|
||||||
{
|
{
|
||||||
if (enableFontSet == NO)
|
if (enableFontSet == NO)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue