We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9fed073 + 8ae5a13 commit 86c80c6Copy full SHA for 86c80c6
THLabel/THLabel.m
@@ -426,7 +426,7 @@ - (void)drawRect:(CGRect)rect {
426
427
- (CTFrameRef)frameRefFromSize:(CGSize)size textRectOutput:(CGRect *)textRectOutput CF_RETURNS_RETAINED {
428
// Set up font.
429
- CTFontRef fontRef = CTFontCreateWithName((__bridge CFStringRef)self.font.fontName, self.font.pointSize, NULL);
+ CTFontRef fontRef = CTFontCreateWithFontDescriptor((__bridge CTFontDescriptorRef)self.font.fontDescriptor, self.font.pointSize, NULL);
430
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_6_0
431
CTTextAlignment alignment = NSTextAlignmentToCTTextAlignment(self.textAlignment);
432
#else
0 commit comments