diff --git a/ChangeLog b/ChangeLog index b96d9b6f8..a90d6d474 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-04-06 Adam Fedor + + * Source/GSFontInfo.m: allFonts returns GSFontInfo objects. + [-pointSize]: Implement. + 2000-04-01 18:00 Fred Kiefer * Source/NSText.m: Now really uses a text storage instead of an diff --git a/Headers/gnustep/gui/GSFontInfo.h b/Headers/gnustep/gui/GSFontInfo.h index aef55b0ee..298a8ca2d 100644 --- a/Headers/gnustep/gui/GSFontInfo.h +++ b/Headers/gnustep/gui/GSFontInfo.h @@ -79,9 +79,6 @@ + (GSFontInfo*) fontInfoForFontName: (NSString*)fontName matrix: (const float *)fmatrix; -- (GSFontInfo*) newTransformedFontInfoForMatrix: (const float*)fmatrix; -- (void) transformUsingMatrix: (const float*)fmatrix; - - (NSDictionary *)afmDictionary; - (NSString *)afmFileContents; - (NSRect)boundingRectForFont; diff --git a/Source/GSFontInfo.m b/Source/GSFontInfo.m index d9d3e2705..a6fedf792 100644 --- a/Source/GSFontInfo.m +++ b/Source/GSFontInfo.m @@ -80,8 +80,8 @@ static GSFontEnumerator *sharedEnumerator = nil; for (i = 0; i < [fontsList count]; i++) { - NSFont *font = (NSFont*)[fontsList objectAtIndex: i]; - NSString *name = [font fontName]; + GSFontInfo *font = (GSFontInfo*)[fontsList objectAtIndex: i]; + NSString *name = [font fontName]; if ([fontManager _includeFont: name]) [fontNames addObject: name]; @@ -100,7 +100,7 @@ static GSFontEnumerator *sharedEnumerator = nil; fontFamilies = [NSMutableSet setWithCapacity: [fontsList count]]; for (i = 0; i < [fontsList count]; i++) { - NSFont *font = (NSFont*)[fontsList objectAtIndex: i]; + GSFontInfo *font = (GSFontInfo*)[fontsList objectAtIndex: i]; [fontFamilies addObject: [font familyName]]; } @@ -201,19 +201,6 @@ static GSFontEnumerator *sharedEnumerator = nil; [self subclassResponsibility: _cmd]; } -- (GSFontInfo*) newTransformedFontInfoForMatrix: (const float*)fmatrix -{ - GSFontInfo* new = NSCopyObject(self, 0, [self zone]); - - [new transformUsingMatrix: fmatrix]; - return AUTORELEASE(new); -} - -- (void) transformUsingMatrix: (const float*)matrix -{ - [self subclassResponsibility: _cmd]; -} - - (NSDictionary*) afmDictionary { return fontDictionary; @@ -244,6 +231,11 @@ static GSFontEnumerator *sharedEnumerator = nil; return familyName; } +- (float) pointSize +{ + return matrix[0]; +} + - (NSString*) fontName { return fontName;