mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 01:11:00 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fi->displayName = [[family stringByAppendingString: @" "]
|
fi->displayName = [[NSString stringWithFormat: @"%@ %@", family, faceName] retain];
|
||||||
stringByAppendingString: faceName];
|
|
||||||
|
|
||||||
|
|
||||||
weight = family_weight;
|
weight = family_weight;
|
||||||
|
|
|
@ -352,6 +352,11 @@ static FT_Error ft_get_face(FTC_FaceID fid, FT_Library lib,
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSString*) displayName
|
||||||
|
{
|
||||||
|
return face_info->displayName;
|
||||||
|
}
|
||||||
|
|
||||||
- (void) set
|
- (void) set
|
||||||
{
|
{
|
||||||
NSLog(@"ignore -set method of font '%@'", fontName);
|
NSLog(@"ignore -set method of font '%@'", fontName);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue