mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 11:23:48 +00:00
Fix legacy round font
This commit is contained in:
parent
15174de11b
commit
a484281304
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user