ios: apply clang-format to Objective-C++ sources (#4060)
This commit is contained in:
@@ -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"];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user