diff --git a/ChangeLog b/ChangeLog index 4d99726c1..7589afc69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ <<<<<<< ChangeLog +Tues Aug 11 1998 Felipe A. Rodriguez + + * externs.m further defined the NSStringAdditions globals. + Sat Aug 8 1998 Felipe A. Rodriguez * added NSStringDrawing.m and NSStringDrawing.h which implement the diff --git a/Headers/gnustep/gui/NSStringDrawing.h b/Headers/gnustep/gui/NSStringDrawing.h index 45cd84f64..95e5bfab9 100644 --- a/Headers/gnustep/gui/NSStringDrawing.h +++ b/Headers/gnustep/gui/NSStringDrawing.h @@ -37,21 +37,22 @@ // the respective property in a text attributes // dictionary. if the key is not in the dictionary the // default value is assumed -NSString *NSFontAttributeName; // NSFont, defaults to Helvetica 12 -NSString *NSParagraphStyleAttributeName; // NSParagraphStyle, default to - // defaultParagraphStyle -NSString *NSForegroundColorAttributeName; // NSColor, default is blackColor -NSString *NSUnderlineStyleAttributeName; // int, default 0 = no underline -NSString *NSSuperscriptAttributeName; // int, default 0 -NSString *NSBackgroundColorAttributeName; // NSColor,default nil =no back col -NSString *NSAttachmentAttributeName; // NSTextAttachment, default nil -NSString *NSLigatureAttributeName; // int, default 1 - // 1 = default ligatures, - // 0 = no ligatures, - // 2 = all ligatures -NSString *NSBaselineOffsetAttributeName; // float, default 0 in points; - // offset from baseline, -NSString *NSKernAttributeName; // float, amount to modify default +extern NSString *NSFontAttributeName; // NSFont, defaults to Helvetica 12 + // NSParagraphStyle, default is defaultParagraphStyle +extern NSString *NSParagraphStyleAttributeName; + // NSColor, default is blackColor +extern NSString *NSForegroundColorAttributeName; + // int, default 0 = no underline +extern NSString *NSUnderlineStyleAttributeName; +extern NSString *NSSuperscriptAttributeName; // int, default 0 + // NSColor, default nil = no background color +extern NSString *NSBackgroundColorAttributeName; +extern NSString *NSAttachmentAttributeName; // NSTextAttachment, default nil + // int, default 1, 0 = no ligatures, 2 = all ligatures +extern NSString *NSLigatureAttributeName; +extern NSString *NSBaselineOffsetAttributeName; // float, default 0 in points; + // float, offset from baseline, +extern NSString *NSKernAttributeName; // amount to modify default // kerning, if 0 kerning is off enum { // Currently supported values for diff --git a/Source/externs.m b/Source/externs.m index c1a98a755..90dc669b2 100644 --- a/Source/externs.m +++ b/Source/externs.m @@ -7,6 +7,8 @@ Author: Scott Christley Date: August 1997 + Author: Felipe A. Rodriguez + Date: Aug 1998 This file is part of the GNUstep GUI Library. @@ -303,3 +305,16 @@ NSString *NSWorkspaceWillPowerOffNotification = NSString *NSWorkspaceWillUnmountNotification = @"NSWorkspaceWillUnmountNotification"; +// +// NSStringDrawing NSString additions +// +NSString *NSFontAttributeName = @"NSFontAttributeName"; +NSString *NSParagraphStyleAttributeName = @"NSParagraphStyleAttributeName"; +NSString *NSForegroundColorAttributeName = @"NSForegroundColorAttributeName"; +NSString *NSUnderlineStyleAttributeName = @"NSUnderlineStyleAttributeName"; +NSString *NSSuperscriptAttributeName = @"NSSuperscriptAttributeName"; +NSString *NSBackgroundColorAttributeName = @"NSBackgroundColorAttributeName"; +NSString *NSAttachmentAttributeName = @"NSAttachmentAttributeName"; +NSString *NSLigatureAttributeName = @"NSLigatureAttributeName"; +NSString *NSBaselineOffsetAttributeName = @"NSBaselineOffsetAttributeName"; +NSString *NSKernAttributeName = @"NSKernAttributeName";