Skip to content

Commit a631894

Browse files
committed
fix mapbox font
1 parent 0d38a5d commit a631894

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/plots/mapbox/layout_defaults.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ function handleLayerDefaults(layerIn, layerOut) {
104104

105105
coerce('symbol.text');
106106
Lib.coerceFont(coerce, 'symbol.textfont', undefined, {
107-
noWeight: true,
108-
noStyle: true,
109107
noVariant: true
110108
});
111109
coerce('symbol.textposition');

src/traces/scatter/text_defaults.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ module.exports = function(traceIn, traceOut, layout, coerce, opts) {
1010
opts = opts || {};
1111

1212
coerce('textposition');
13-
Lib.coerceFont(coerce, 'textfont', opts.font || layout.font, {
14-
noVariant: opts.noFontVariant
15-
});
13+
Lib.coerceFont(coerce, 'textfont', opts.font || layout.font, opts);
1614

1715
if(!opts.noSelect) {
1816
coerce('selected.textfont.color');

src/traces/scattermapbox/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
107107
handleTextDefaults(traceIn, traceOut, layout, coerce,
108108
{
109109
noSelect: true,
110-
noFontVariant: true,
110+
noVariant: true,
111111
font: {
112112
family: supportedFonts.indexOf(layout.font.family) !== -1 ? layout.font.family : 'Open Sans Regular',
113113
weight: layout.font.weight,

0 commit comments

Comments
 (0)