From 4418edbfcd68dacecb525d0344a25204e80e17ce Mon Sep 17 00:00:00 2001 From: Andrew Kitchen Date: Fri, 8 Dec 2017 10:49:39 -0500 Subject: [darwin, macos] Rename Info.plist key for consistency Also removes related dead code in macos MGLMapView.mm --- platform/darwin/src/MGLRendererConfiguration.h | 4 ++-- platform/darwin/src/MGLRendererConfiguration.mm | 2 +- platform/macos/src/MGLMapView.mm | 8 -------- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/platform/darwin/src/MGLRendererConfiguration.h b/platform/darwin/src/MGLRendererConfiguration.h index 35cf828536..676cc91719 100644 --- a/platform/darwin/src/MGLRendererConfiguration.h +++ b/platform/darwin/src/MGLRendererConfiguration.h @@ -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 localFontFamilyName; @end diff --git a/platform/darwin/src/MGLRendererConfiguration.mm b/platform/darwin/src/MGLRendererConfiguration.mm index ae7d7dd9fe..be60c3c787 100644 --- a/platform/darwin/src/MGLRendererConfiguration.mm +++ b/platform/darwin/src/MGLRendererConfiguration.mm @@ -35,7 +35,7 @@ } - (mbgl::optional)localFontFamilyName { - NSString *fontFamilyName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MGLIdeographicFontFamilyName"]; + NSString *fontFamilyName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MGLIdeographFontFamilyName"]; return fontFamilyName ? std::string([fontFamilyName UTF8String]) : mbgl::optional(); } diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm index 78a6d0bfae..b32edffd43 100644 --- a/platform/macos/src/MGLMapView.mm +++ b/platform/macos/src/MGLMapView.mm @@ -144,8 +144,6 @@ public: @property (nonatomic, readwrite) NSView *attributionView; @property (nonatomic, readwrite) MGLStyle *style; -@property (nonatomic, readonly) NSString *ideographicFontFamilyName; - /// Mapping from reusable identifiers to annotation images. @property (nonatomic) NS_MUTABLE_DICTIONARY_OF(NSString *, MGLAnnotationImage *) *annotationImagesByIdentifier; @@ -654,12 +652,6 @@ public: return _rendererFrontend->getRenderer(); } -#pragma mark Ideographic Font Info - -- (NSString *)ideographicFontFamilyName { - return [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MGLIdeographicFontFamilyName"]; -} - #pragma mark View hierarchy and drawing - (void)viewWillMoveToWindow:(NSWindow *)newWindow { -- cgit v1.2.1