mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-06 13:12:49 +00:00
Fix legacy round font
This commit is contained in:
@@ -116,7 +116,13 @@ UIFont *TGFixedSystemFontOfSize(CGFloat size)
|
||||
|
||||
+ (UIFont *)roundedFontOfSize:(CGFloat)size
|
||||
{
|
||||
return [UIFont fontWithName:@".SFCompactRounded-Semibold" size:size];
|
||||
if (@available(iOSApplicationExtension 13.0, iOS 13.0, *)) {
|
||||
UIFontDescriptor *descriptor = [UIFont systemFontOfSize: size].fontDescriptor;
|
||||
descriptor = [descriptor fontDescriptorWithDesign: UIFontDescriptorSystemDesignRounded];
|
||||
return [UIFont fontWithDescriptor:descriptor size:size];
|
||||
} else {
|
||||
return [UIFont fontWithName:@".SFCompactRounded-Semibold" size:size];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user