diff --git a/submodules/LegacyComponents/LegacyComponents/TGFont.mm b/submodules/LegacyComponents/LegacyComponents/TGFont.mm index 0475373bbb..446a717b0b 100644 --- a/submodules/LegacyComponents/LegacyComponents/TGFont.mm +++ b/submodules/LegacyComponents/LegacyComponents/TGFont.mm @@ -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