iOS: Again try to improve older version compatibility

This commit is contained in:
UnknownShadow200 2024-01-17 22:40:07 +11:00
parent 67adc43433
commit 3945e4e938
2 changed files with 4 additions and 3 deletions

View File

@ -19,7 +19,7 @@
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<false/>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Saving screenshot</string>
<key>UILaunchStoryboardName</key>

View File

@ -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 =