[darwin, macos] Rename Info.plist key for consistency
Also removes related dead code in macos MGLMapView.mm
This commit is contained in:
committed by
Chris Loer
parent
155804be4d
commit
4418edbfcd
@@ -31,8 +31,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
Currently only used for CJK glyphs. Changing this at run time is not currently
|
||||
supported. Enable client-side rendering of CJK glyphs by setting
|
||||
`MGLIdeographicFontFamilyName` in your containing app's Info.plist to a value
|
||||
which will be available at runtime, i.e. "Arial Unicode MS". */
|
||||
`MGLIdeographFontFamilyName` in your containing app's Info.plist to a value
|
||||
which will be available at run time, i.e. "Arial Unicode MS". */
|
||||
@property (nonatomic, readonly) mbgl::optional<std::string> localFontFamilyName;
|
||||
|
||||
@end
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
|
||||
- (mbgl::optional<std::string>)localFontFamilyName {
|
||||
NSString *fontFamilyName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MGLIdeographicFontFamilyName"];
|
||||
NSString *fontFamilyName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MGLIdeographFontFamilyName"];
|
||||
|
||||
return fontFamilyName ? std::string([fontFamilyName UTF8String]) : mbgl::optional<std::string>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user