@nativescript-community/text 1.6.17 → 1.6.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/text",
3
- "version": "1.6.17",
3
+ "version": "1.6.18",
4
4
  "description": "Expands the capabilities of NativeScript's text property.",
5
5
  "main": "./index",
6
6
  "sideEffects": false,
@@ -37,5 +37,5 @@
37
37
  },
38
38
  "license": "Apache-2.0",
39
39
  "readmeFilename": "README.md",
40
- "gitHead": "3d6261e9efb0b434d93debc0a71811eb890c0b45"
40
+ "gitHead": "e4d59e57add4fa4250c9f8808f07609231721212"
41
41
  }
@@ -336,7 +336,7 @@ public class Font {
336
336
  fontFamily = parentFontFamily;
337
337
  }
338
338
  Typeface typeface = null;
339
- if (fontFamily != null) {
339
+ if (fontFamily != null || (!bold && fontWeight != null)) {
340
340
  String fontVariationSettings = span.optString("fontVariationSettings", null);
341
341
  typeface = createTypeface(context, fontFolder, fontFamily,fontWeight, bold, italic, fontVariationSettings);
342
342
  TypefaceSpan typefaceSpan = new CustomTypefaceSpan(fontFamily, typeface);