ios: apply clang-format to Objective-C++ sources (#4060)

This commit is contained in:
Bart Louwers
2026-02-24 14:37:35 +01:00
committed by GitHub
parent 41832b518d
commit 5787f9cc38
134 changed files with 29751 additions and 27896 deletions

View File

@@ -2,10 +2,9 @@
// Called early in GLFW initialization so that the local glyph rasterizer
// can find a suitable CJK font via NSUserDefaults.
__attribute__((constructor))
static void setDefaultIdeographicFont() {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
if (![defaults objectForKey:@"MLNIdeographicFontFamilyName"]) {
[defaults setObject:@[@"PingFang TC"] forKey:@"MLNIdeographicFontFamilyName"];
}
__attribute__((constructor)) static void setDefaultIdeographicFont() {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
if (![defaults objectForKey:@"MLNIdeographicFontFamilyName"]) {
[defaults setObject:@[ @"PingFang TC" ] forKey:@"MLNIdeographicFontFamilyName"];
}
}