Skip to content

Commit 6b54a52

Browse files
author
farfromrefug
committed
fix(android): missing fontVariationSettings support
1 parent 387c606 commit 6b54a52

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"devDependencies": {
5050
"@commitlint/cli": "^17.4.4",
5151
"@commitlint/config-conventional": "^17.4.4",
52-
"@nativescript-community/text": "^1.5.45",
52+
"@nativescript-community/text": "^1.6.0",
5353
"@nativescript/core": "8.4.7",
5454
"@nativescript/types-android": "8.4.0",
5555
"@nativescript/types-ios": "8.4.0",

plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"license": "Apache-2.0",
3333
"readmeFilename": "README.md",
3434
"dependencies": {
35-
"@nativescript-community/text": "^1.5.47"
35+
"@nativescript-community/text": "^1.6.0"
3636
},
3737
"gitHead": "a08eb50756c9a5d16fc8aa6ff7fba0051c71d1e0"
3838
}

src/label.android.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
} from '@nativescript/core';
2424
import { Color } from '@nativescript/core/color';
2525
import { CSSShadow } from '@nativescript/core/ui/styling/css-shadow';
26-
import { Font, FontStyleType, FontWeightType } from '@nativescript/core/ui/styling/font';
26+
import { Font, FontStyleType, FontVariationSettingsType, FontWeightType } from '@nativescript/core/ui/styling/font';
2727
import {
2828
Length,
2929
colorProperty,
@@ -107,6 +107,7 @@ abstract class LabelBase extends View implements LabelViewDefinition {
107107
_setTappableState(value: boolean) {}
108108

109109
@cssProperty fontFamily: string;
110+
@cssProperty fontVariationSettings: FontVariationSettingsType[];
110111
@cssProperty fontSize: number;
111112
@cssProperty fontStyle: FontStyleType;
112113
@cssProperty fontWeight: FontWeightType;

0 commit comments

Comments
 (0)