diff options
author | Fabian Guerra <fabian.guerra@mapbox.com> | 2019-03-21 16:15:14 -0700 |
---|---|---|
committer | Fabian Guerra <fabian.guerra@mapbox.com> | 2019-03-21 16:15:14 -0700 |
commit | d6727c0bb9e888d4cdf72a09143e3fb2354d04dd (patch) | |
tree | 55b718e70e9a7ef0a1b8fd20fc18b39b592548f4 /platform/darwin/src/MGLAttributedExpression.m | |
parent | 07845b1208030b5920e73d04afeb5ecf7da903d6 (diff) | |
download | qtlocation-mapboxgl-d6727c0bb9e888d4cdf72a09143e3fb2354d04dd.tar.gz |
[ios, macos] Rename MGLFontSizeAttribute to MGLFontScaleAttribute.
Diffstat (limited to 'platform/darwin/src/MGLAttributedExpression.m')
-rw-r--r-- | platform/darwin/src/MGLAttributedExpression.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/darwin/src/MGLAttributedExpression.m b/platform/darwin/src/MGLAttributedExpression.m index 000701f7cf..4283e98b94 100644 --- a/platform/darwin/src/MGLAttributedExpression.m +++ b/platform/darwin/src/MGLAttributedExpression.m @@ -2,7 +2,7 @@ #import "MGLLoggingConfiguration_Private.h" const MGLAttributedExpressionKey MGLFontNamesAttribute = @"text-font"; -const MGLAttributedExpressionKey MGLFontSizeAttribute = @"font-scale"; +const MGLAttributedExpressionKey MGLFontScaleAttribute = @"font-scale"; const MGLAttributedExpressionKey MGLFontColorAttribute = @"text-color"; @implementation MGLAttributedExpression @@ -12,7 +12,7 @@ const MGLAttributedExpressionKey MGLFontColorAttribute = @"text-color"; return self; } -+ (instancetype)attributedExpression:(NSExpression *)expression fontNames:(nullable NSArray<NSString *> *)fontNames fontSize:(nullable NSNumber *)fontSize { ++ (instancetype)attributedExpression:(NSExpression *)expression fontNames:(nullable NSArray<NSString *> *)fontNames fontScale:(nullable NSNumber *)fontScale { MGLAttributedExpression *attributedExpression; NSMutableDictionary *attrs = [NSMutableDictionary dictionary]; @@ -21,8 +21,8 @@ const MGLAttributedExpressionKey MGLFontColorAttribute = @"text-color"; attrs[MGLFontNamesAttribute] = fontNames; } - if (fontSize) { - attrs[MGLFontSizeAttribute] = fontSize; + if (fontScale) { + attrs[MGLFontScaleAttribute] = fontScale; } attributedExpression = [[self alloc] initWithExpression:expression attributes:attrs]; |