8000 Add `shadow`, `lineposition` and `textcase` options to SVG fonts by archmoj · Pull Request #6983 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Add shadow, lineposition and textcase options to SVG fonts #6983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 62 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
e9b2efd
test container-legend
archmoj Apr 24, 2024
698b010
test contour_constraints_equal_boundary_minmax
archmoj Apr 24, 2024
faae542
test font-variant-bar
archmoj Apr 24, 2024
5bd8a2d
test funnel_axis_textangle_outside
archmoj Apr 24, 2024
628b0aa
test funnel_horizontal_group_basic
archmoj Apr 24, 2024
a9479f5
test geo_africa-insets
archmoj Apr 24, 2024
625c3c1
test geo_canadian-cities
archmoj Apr 24, 2024
20cace9
test geo_country-names-text-chart
archmoj Apr 24, 2024
034f446
test geo_text_chart_arrays
archmoj Apr 24, 2024
1f044fe
test geo_text_chart_arrays custom title shadow
archmoj Apr 24, 2024
0a7e182
test heatmap_brick_padding
archmoj Apr 24, 2024
974a30e
test heatmap-text-color-on-missing-data
archmoj Apr 24, 2024
cff115c
test indicator_attrs
archmoj Apr 24, 2024
5b2e77a
test indicator_scatter
archmoj Apr 24, 2024
5709630
test insiderange
archmoj Apr 24, 2024
0044abf
test pie_legend_line_color_array
archmoj Apr 24, 2024
1fc4a5a
test polar_bar-overlay
archmoj Apr 24, 2024
70fec4b
test sankey_messy
archmoj Apr 24, 2024
67bbbb1
test text_on_shapes_basic
archmoj Apr 24, 2024
65586cd
test texttemplate
archmoj Apr 24, 2024
b8b8d0a
test texttemplate_scatter
archmoj Apr 24, 2024
647895a
test ticklabelposition-5
archmoj Apr 24, 2024
d39fe8b
test treemap_multi-line_headers
archmoj Apr 24, 2024
58cfeb3
Merge remote-tracking branch 'origin/master' into font-shadow-stridin…
archmoj Apr 25, 2024
150f0c8
introduce overrideDflt option for coerceFont
archmoj May 3, 2024
e79ce86
refactor src/components/fx/hover.js
archmoj May 3, 2024
d7c6f8f
fix colorbar.title.font default
archmoj May 3, 2024
55f27fc
capitalize none > normal
archmoj May 3, 2024
0c91191
lowercase > lower, uppercase > upper
archmoj May 3, 2024
b0977dd
replace case options with object
archmoj May 3, 2024
581b2fc
striding > decorline
archmoj May 3, 2024
c8fe2fc
Merge remote-tracking branch 'origin/master' into font-shadow-stridin…
archmoj May 8, 2024
a3ad2e8
rename keys
archmoj May 9, 2024
47ebc09
correct schema
archmoj May 10, 2024
042b2ad
capitalize > textcase
archmoj May 10, 2024
4bbe9a2
textcase: word > headline
archmoj May 10, 2024
70f3370
textcase: headline > caps - Capitalizing Every Word Is NOT headline case
archmoj May 10, 2024
6f20c25
use new options in trace_metatext mock
archmoj May 10, 2024
84bc75c
test new options
archmoj May 10, 2024
cff60fb
use Drawing.font to style titles
archmoj May 13, 2024
3ff255f
caps > word caps
archmoj May 14, 2024
a344464
decorline > lineposition
archmoj May 14, 2024
9416441
clear none text font styles instead of setting to none
archmoj May 15, 2024
e60123f
Merge remote-tracking branch 'origin/master' into font-shadow-stridin…
archmoj May 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
capitalize > textcase
  • Loading branch information
archmoj committed May 10, 2024
commit 042b2ad7b0e0d7d6212faea0d500251014b27f1d
2 changes: 1 addition & 1 deletion src/components/annotations/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function drawRaw(gd, options, index, subplotId, xa, ya) {
fontVariant: hoverFont.variant,
fontShadow: hoverFont.fontShadow,
fontDecorline: hoverFont.fontDecorline,
fontCapitalize: hoverFont.fontCapitalize,
fontTextcase: hoverFont.fontTextcase,
}, {
container: fullLayout._hoverlayer.node(),
outerContainer: fullLayout._paper.node(),
Expand Down
14 changes: 7 additions & 7 deletions src/components/drawing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ drawing.font = function(s, font) {
var family = font.family;
var shadow = font.shadow;
var decorline = font.decorline;
var capitalize = font.capitalize;
var textcase = font.textcase;

if(family) s.style('font-family', family);
if(size + 1) s.style('font-size', size + 'px');
Expand All @@ -46,22 +46,22 @@ drawing.font = function(s, font) {
if(style) s.style('font-style', style);
if(variant) s.style('font-variant', variant);

if(capitalize) s.style('text-transform', capitalize2transform(capitalize));
if(textcase) s.style('text-transform', textcase2transform(textcase));
if(shadow) s.style('text-shadow', shadow === 'auto' ? svgTextUtils.makeTextShadow(Color.contrast(color)) : shadow);
if(decorline) s.style('text-decoration-line', decorline2decorationLine(decorline));
};

var capitalize2transformOptions = {
var textcase2transformOptions = {
normal: 'none',
word: 'capitalize',
lower: 'lowercase',
upper: 'uppercase'
};

function capitalize2transform(capitalize) {
return capitalize2transformOptions[capitalize];
function textcase2transform(textcase) {
return textcase2transformOptions[textcase];
}
drawing.capitalize2transform = capitalize2transform;
drawing.textcase2transform = textcase2transform;

function decorline2decorationLine(decorline) {
return (
Expand Down Expand Up @@ -1167,7 +1167,7 @@ drawing.textPointStyle = function(s, trace, gd) {
weight: d.tw || trace.textfont.weight,
style: d.ty || trace.textfont.style,
variant: d.tv || trace.textfont.variant,
capitalize: d.tC || trace.textfont.capitalize,
textcase: d.tC || trace.textfont.textcase,
decorline: d.tE || trace.textfont.decorline,
shadow: d.tS || trace.textfont.shadow,
size: fontSize,
Expand Down
10 changes: 5 additions & 5 deletions src/components/fx/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ function createHoverText(hoverData, opts) {
var fontWeight = opts.fontWeight || fullLayout.font.weight;
var fontStyle = opts.fontStyle || fullLayout.font.style;
var fontVariant = opts.fontVariant || fullLayout.font.variant;
var fontCapitalize = opts.fontCapitalize || fullLayout.font.capitalize;
var fontTextcase = opts.fontTextcase || fullLayout.font.textcase;
var fontDecorline = opts.fontDecorline || fullLayout.font.decorline;
var fontShadow = opts.fontShadow || fullLayout.font.shadow;

Expand Down Expand Up @@ -1049,7 +1049,7 @@ function createHoverText(hoverData, opts) {
weight: commonLabelOptsFont.weight || fontWeight,
style: commonLabelOptsFont.style || fontStyle,
variant: commonLabelOptsFont.variant || fontVariant,
capitalize: commonLabelOptsFont.capitalize || fontCapitalize,
textcase: commonLabelOptsFont.textcase || fontTextcase,
decorline: commonLabelOptsFont.decorline || fontDecorline,
shadow: commonLabelOptsFont.shadow || fontShadow,
family: commonLabelOptsFont.family || fontFamily,
Expand Down Expand Up @@ -1377,7 +1377,7 @@ function createHoverText(hoverData, opts) {
weight: fontWeight,
style: fontStyle,
variant: fontVariant,
capitalize: fontCapitalize,
textcase: fontTextcase,
decorline: fontDecorline,
shadow: fontShadow,
family: fontFamily,
Expand Down Expand Up @@ -1424,7 +1424,7 @@ function createHoverText(hoverData, opts) {
weight: d.fontWeight || fontWeight,
style: d.fontStyle || fontStyle,
variant: d.fontVariant || fontVariant,
capitalize: d.fontCapitalize || fontCapitalize,
textcase: d.fontTextcase || fontTextcase,
decorline: d.fontDecorline || fontDecorline,
shadow: d.fontShadow || fontShadow,
})
Expand All @@ -1446,7 +1446,7 @@ function createHoverText(hoverData, opts) {
weight: d.fontWeight || fontWeight,
style: d.fontStyle || fontStyle,
variant: d.fontVariant || fontVariant,
capitalize: d.fontCapitalize || fontCapitalize,
textcase: d.fontTextcase || fontTextcase,
decorline: d.fontDecorline || fontDecorline,
shadow: d.fontShadow || fontShadow,
}).text(name)
Expand Down
2 changes: 1 addition & 1 deletion src/components/legend/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ module.exports = function style(s, gd, legend) {
dEdit.tw = boundVal('textfont.weight', pickFirst);
dEdit.ty = boundVal('textfont.style', pickFirst);
dEdit.tv = boundVal('textfont.variant', pickFirst);
dEdit.tC = boundVal('textfont.capitalize', pickFirst);
dEdit.tC = boundVal('textfont.textcase', pickFirst);
dEdit.tE = boundVal('textfont.decorline', pickFirst);
dEdit.tS = boundVal('textfont.shadow', pickFirst);
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/titles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function draw(gd, titleClass, options) {
var fontWeight = font.weight;
var fontStyle = font.style;
var fontVariant = font.variant;
var fontCapitalize = font.capitalize;
var fontTextcase = font.textcase;
var fontDecorline = font.decorline;
var fontShadow = font.shadow;

Expand Down Expand Up @@ -155,7 +155,7 @@ function draw(gd, titleClass, options) {
'font-weight': fontWeight,
'font-style': fontStyle,
'font-variant': fontVariant,
'text-transform': Drawing.capitalize2transform(fontCapitalize),
'text-transform': Drawing.textcase2transform(fontTextcase),
'text-shadow': fontShadow === 'auto' ? svgTextUtils.makeTextShadow(Color.contrast(fontColor)) : fontShadow,
'text-decoration-line': Drawing.decorline2decorationLine(fontDecorline),
})
Expand Down
2 changes: 1 addition & 1 deletion src/lib/coerce.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ exports.coerceFont = function(coerce, attr, dfltObj, opts) {

if(!opts.noFontVariant) out.variant = coerce(attr + '.variant', dfltObj.variant);
if(!opts.noFontDecorline) out.decorline = coerce(attr + '.decorline', dfltObj.decorline);
if(!opts.noFontCapitalize) out.capitalize = coerce(attr + '.capitalize', dfltObj.capitalize);
if(!opts.noFontTextcase) out.textcase = coerce(attr + '.textcase', dfltObj.textcase);
if(!opts.noFontShadow) {
var dfltShadow = dfltObj.shadow;
if(dfltShadow === 'none' && opts.autoShadowDflt) {
Expand Down
4 changes: 2 additions & 2 deletions src/plots/cartesian/axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1740,7 +1740,7 @@ function tickTextObj(ax, x, text) {
fontWeight: tf.weight,
fontStyle: tf.style,
fontVariant: tf.variant,
fontCapitalize: tf.capitalize,
fontTextcase: tf.textcase,
fontDecorline: tf.decorline,
fontShadow: tf.shadow,
fontColor: tf.color
Expand Down Expand Up @@ -3511,7 +3511,7 @@ axes.drawLabels = function(gd, ax, opts) {
weight: d.fontWeight,
style: d.fontStyle,
variant: d.fontVariant,
capitalize: d.fontCapitalize,
textcase: d.fontTextcase,
decorline: d.fontDecorline,
shadow: d.fontShadow,
})
Expand Down
6 changes: 3 additions & 3 deletions src/plots/font_attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ module.exports = function(opts) {
].join(' ')
},

capitalize: opts.noFontCapitalize ? undefined : {
textcase: opts.noFontTextcase ? undefined : {
editType: editType,
valType: 'enumerated',
values: ['normal', 'word', 'upper', 'lower'],
Expand Down Expand Up @@ -151,8 +151,8 @@ module.exports = function(opts) {
if(!opts.noFontVariant) {
attrs.variant.arrayOk = true;
}
if(!opts.noFontCapitalize) {
attrs.capitalize.arrayOk = true;
if(!opts.noFontTextcase) {
attrs.textcase.arrayOk = true;
}
if(!opts.noFontDecorline) {
attrs.decorline.arrayOk = true;
Expand Down
2 changes: 1 addition & 1 deletion src/plots/mapbox/layout_attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var fontAttr = fontAttrs({
noFontVariant: true,
noFontShadow: true,
noFontDecorline: true,
noFontCapitalize: true,
noFontTextcase: true,
description: [
'Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size).',
'Has an effect only when `type` is set to *symbol*.'
Expand Down
2 changes: 1 addition & 1 deletion src/plots/mapbox/layout_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function handleLayerDefaults(layerIn, layerOut) {
noFontVariant: true,
noFontShadow: true,
noFontDecorline: true,
noFontCapitalize: true,
noFontTextcase: true,
});
coerce('symbol.textposition');
coerce('symbol.placement');
Expand Down
8 changes: 4 additions & 4 deletions src/plots/polar/layout_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function handleDefaults(contIn, contOut, coerce, opts) {
var dfltFontWeight;
var dfltFontStyle;
var dfltFontVariant;
var dfltFontCapitalize;
var dfltFontTextcase;
var dfltFontDecorline;
var dfltFontShadow;
var font = opts.font || {};
Expand All @@ -169,7 +169,7 @@ function handleDefaults(contIn, contOut, coerce, opts) {
dfltFontWeight = font.weight;
dfltFontStyle = font.style;
dfltFontVariant = font.variant;
dfltFontCapitalize = font.capitalize;
dfltFontTextcase = font.textcase;
dfltFontDecorline = font.decorline;
dfltFontShadow = font.shadow;

Expand All @@ -179,7 +179,7 @@ function handleDefaults(contIn, contOut, coerce, opts) {
weight: dfltFontWeight,
style: dfltFontStyle,
variant: dfltFontVariant,
capitalize: dfltFontCapitalize,
textcase: dfltFontTextcase,
decorline: dfltFontDecorline,
shadow: dfltFontShadow,
color: dfltFontColor,
Expand Down Expand Up @@ -214,7 +214,7 @@ function handleDefaults(contIn, contOut, coerce, opts) {
weight: dfltFontWeight,
style: dfltFontStyle,
variant: dfltFontVariant,
capitalize: dfltFontCapitalize,
textcase: dfltFontTextcase,
decorline: dfltFontDecorline,
shadow: dfltFontShadow,
color: dfltFontColor,
Expand Down
8 changes: 4 additions & 4 deletions src/traces/bar/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function getInsideTextFont(trace, index, layoutFont, barColor) {
weight: defaultFont.weight,
style: defaultFont.style,
variant: defaultFont.variant,
capitalize: defaultFont.capitalize,
textcase: defaultFont.textcase,
decorline: defaultFont.decorline,
shadow: defaultFont.shadow,
};
Expand All @@ -152,7 +152,7 @@ function getFontValue(attributeDefinition, attributeValue, index, defaultValue)
var weightValue = helpers.getValue(attributeValue.weight, index);
var styleValue = helpers.getValue(attributeValue.style, index);
var variantValue = helpers.getValue(attributeValue.variant, index);
var capitalizeValue = helpers.getValue(attributeValue.capitalize, index);
var textcaseValue = helpers.getValue(attributeValue.textcase, index);
var decorlineValue = helpers.getValue(attributeValue.decorline, index);
var shadowValue = helpers.getValue(attributeValue.shadow, index);

Expand All @@ -169,8 +169,8 @@ function getFontValue(attributeDefinition, attributeValue, index, defaultValue)
attributeDefinition.style, styleValue, defaultValue.style),
variant: helpers.coerceString(
attributeDefinition.variant, variantValue, defaultValue.variant),
capitalize: helpers.coerceString(
attributeDefinition.variant, capitalizeValue, defaultValue.capitalize),
textcase: helpers.coerceString(
attributeDefinition.variant, textcaseValue, defaultValue.textcase),
decorline: helpers.coerceString(
attributeDefinition.variant, decorlineValue, defaultValue.decorline),
shadow: helpers.coerceString(
Expand Down
2 changes: 1 addition & 1 deletion src/traces/contour/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = function style(gd) {
weight: labelFont.weight,
style: labelFont.style,
variant: labelFont.variant,
capitalize: labelFont.capitalize,
textcase: labelFont.textcase,
decorline: labelFont.decorline,
shadow: labelFont.shadow,
family: labelFont.family,
Expand Down
2 changes: 1 addition & 1 deletion src/traces/heatmap/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
weight: font.weight,
style: font.style,
variant: font.variant,
capitalize: font.capitalize,
textcase: font.textcase,
decorline: font.decorline,
shadow: font.shadow,
})
Expand Down
20 changes: 10 additions & 10 deletions src/traces/pie/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,10 @@ function determineOutsideTextFont(trace, pt, layoutFont) {
helpers.castOption(trace.textfont.variant, pt.pts) ||
layoutFont.variant;

var capitalize =
helpers.castOption(trace.outsidetextfont.capitalize, pt.pts) ||
helpers.castOption(trace.textfont.capitalize, pt.pts) ||
layoutFont.capitalize;
var textcase =
helpers.castOption(trace.outsidetextfont.textcase, pt.pts) ||
helpers.castOption(trace.textfont.textcase, pt.pts) ||
layoutFont.textcase;

var decorline =
helpers.castOption(trace.outsidetextfont.decorline, pt.pts) ||
Expand All @@ -537,7 +537,7 @@ function determineOutsideTextFont(trace, pt, layoutFont) {
weight: weight,
style: style,
variant: variant,
capitalize: capitalize,
textcase: textcase,
decorline: decorline,
shadow: shadow,
};
Expand Down Expand Up @@ -578,10 +578,10 @@ function determineInsideTextFont(trace, pt, layoutFont) {
helpers.castOption(trace.textfont.variant, pt.pts) ||
layoutFont.variant;

var capitalize =
helpers.castOption(trace.insidetextfont.capitalize, pt.pts) ||
helpers.castOption(trace.textfont.capitalize, pt.pts) ||
layoutFont.capitalize;
var textcase =
helpers.castOption(trace.insidetextfont.textcase, pt.pts) ||
helpers.castOption(trace.textfont.textcase, pt.pts) ||
layoutFont.textcase;

var decorline =
helpers.castOption(trace.insidetextfont.decorline, pt.pts) ||
Expand All @@ -600,7 +600,7 @@ function determineInsideTextFont(trace, pt, layoutFont) {
weight: weight,
style: style,
variant: variant,
capitalize: capitalize,
textcase: textcase,
decorline: decorline,
shadow: shadow,
};
Expand Down
4 changes: 2 additions & 2 deletions src/traces/sankey/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ module.exports = function plot(gd, calcData) {
fontWeight: castHoverOption(obj, 'font.weight'),
fontStyle: castHoverOption(obj, 'font.style'),
fontVariant: castHoverOption(obj, 'font.variant'),
fontCapitalize: castHoverOption(obj, 'font.capitalize'),
fontTextcase: castHoverOption(obj, 'font.textcase'),
fontDecorline: castHoverOption(obj, 'font.decorline'),
fontShadow: castHoverOption(obj, 'font.shadow'),
nameLength: castHoverOption(obj, 'namelength'),
Expand Down Expand Up @@ -329,7 +329,7 @@ module.exports = function plot(gd, calcData) {
fontWeight: castHoverOption(obj, 'font.weight'),
fontStyle: castHoverOption(obj, 'font.style'),
fontVariant: castHoverOption(obj, 'font.variant'),
fontCapitalize: castHoverOption(obj, 'font.capitalize'),
fontTextcase: castHoverOption(obj, 'font.textcase'),
fontDecorline: castHoverOption(obj, 'font.decorline'),
fontShadow: castHoverOption(obj, 'font.shadow'),
nameLength: castHoverOption(obj, 'namelength'),
Expand Down
2 changes: 1 addition & 1 deletion src/traces/scatter/arrays_to_calcdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = function arraysToCalcdata(cd, trace) {
Lib.mergeArray(trace.textfont.weight, cd, 'tw');
Lib.mergeArray(trace.textfont.style, cd, 'ty');
Lib.mergeArray(trace.textfont.variant, cd, 'tv');
Lib.mergeArray(trace.textfont.capitalize, cd, 'tC');
Lib.mergeArray(trace.textfont.textcase, cd, 'tC');
Lib.mergeArray(trace.textfont.decorline, cd, 'tE');
Lib.mergeArray(trace.textfont.shadow, cd, 'tS');
}
Expand Down
2 changes: 1 addition & 1 deletion src/traces/scatter3d/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ var attrs = module.exports = overrideAll({
textfont: fontAttrs({
noFontShadow: true,
noFontDecorline: true,
noFontCapitalize: true,
noFontTextcase: true,
editType: 'calc',
colorEditType: 'style',
arrayOk: true,
Expand Down
2 changes: 1 addition & 1 deletion src/traces/scatter3d/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
noSelect: true,
noFontShadow: true,
noFontDecorline: true,
noFontCapitalize: true,
noFontTextcase: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/traces/scattergl/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var attrs = module.exports = overrideAll({
textfont: fontAttrs({
noFontShadow: true,
noFontDecorline: true,
noFontCapitalize: true,
noFontTextcase: true,
editType: 'calc',
colorEditType: 'style',
arrayOk: true,
Expand Down
2 changes: 1 addition & 1 deletion src/traces/scattergl/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
handleTextDefaults(traceIn, traceOut, layout, coerce, {
noFontShadow: true,
noFontDecorline: true,
noFontCapitalize: true,
noFontTextcase: true,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/traces/scattermapbox/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
noFontVariant: true,
noFontShadow: true,
noFontDecorline: true,
noFontCapitalize: true,
noFontTextcase: true,
font: {
family: isSupportedFont(layoutFontFamily) ? layoutFontFamily : 'Open Sans Regular',
weight: layout.font.weight,
Expand Down
Loading
0