We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dd061b8 + fa0d149 commit c087cc5Copy full SHA for c087cc5
Core/Source/UIFont+DTCoreText.m
@@ -14,7 +14,7 @@ @implementation UIFont (DTCoreText)
14
15
+ (UIFont *)fontWithCTFont:(CTFontRef)ctFont
16
{
17
- NSString *fontName = (__bridge_transfer NSString *)CTFontCopyName(ctFont, kCTFontPostScriptNameKey);
+ NSString *fontName = (__bridge_transfer NSString *)CTFontCopyName(ctFont, kCTFontFullNameKey);
18
19
CGFloat fontSize = CTFontGetSize(ctFont);
20
UIFont *font = [UIFont fontWithName:fontName size:fontSize];
0 commit comments