From 3945e4e9386958bc772af2fb05d3e867eca4a66d Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 17 Jan 2024 22:40:07 +1100 Subject: [PATCH] iOS: Again try to improve older version compatibility --- ios/Info.plist | 2 +- src/interop_ios.m | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ios/Info.plist b/ios/Info.plist index 5d38abd0e..a4b063668 100644 --- a/ios/Info.plist +++ b/ios/Info.plist @@ -19,7 +19,7 @@ CFBundleVersion 1 LSRequiresIPhoneOS - + NSPhotoLibraryAddUsageDescription Saving screenshot UILaunchStoryboardName diff --git a/src/interop_ios.m b/src/interop_ios.m index f85a120ef..c2de2bf0e 100644 --- a/src/interop_ios.m +++ b/src/interop_ios.m @@ -1267,8 +1267,9 @@ void LBackend_DrawTitle(struct Context2D* ctx, const char* title) { // bitmapped fonts don't need to be freed return; } - // systemFontOfSize:weight: - iOS 8.2 - UIFont* font = [UIFont systemFontOfSize:42 weight:0.2f]; //UIFontWeightSemibold + + // systemFontOfSize: - iOS 2.0 + UIFont* font = [UIFont systemFontOfSize:42]; NSString* text = [NSString stringWithCString:title encoding:NSASCIIStringEncoding]; NSDictionary* attrs_bg =