mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-30 00:40:55 +00:00
make displayName work
This commit is contained in:
parent
390be8237c
commit
390f82f064
2 changed files with 6 additions and 2 deletions
|
@ -245,8 +245,7 @@ static void add_face(NSString *family, int family_weight,
|
|||
return;
|
||||
}
|
||||
|
||||
fi->displayName = [[family stringByAppendingString: @" "]
|
||||
stringByAppendingString: faceName];
|
||||
fi->displayName = [[NSString stringWithFormat: @"%@ %@", family, faceName] retain];
|
||||
|
||||
|
||||
weight = family_weight;
|
||||
|
|
|
@ -352,6 +352,11 @@ static FT_Error ft_get_face(FTC_FaceID fid, FT_Library lib,
|
|||
return self;
|
||||
}
|
||||
|
||||
- (NSString*) displayName
|
||||
{
|
||||
return face_info->displayName;
|
||||
}
|
||||
|
||||
- (void) set
|
||||
{
|
||||
NSLog(@"ignore -set method of font '%@'", fontName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue