Skip to content

Commit c90f098

Browse files
committed
add descriptions
1 parent 369c95d commit c90f098

File tree

2 files changed

+971
-960
lines changed

2 files changed

+971
-960
lines changed

src/plots/font_attributes.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ module.exports = function(opts) {
5656
extras: ['normal', 'bold'],
5757
dflt: 'normal',
5858
description: [
59+
'Sets the weight (or boldness) of the font.',
5960
'See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight',
6061
].join(' ')
6162
},
@@ -70,6 +71,7 @@ module.exports = function(opts) {
7071
],
7172
dflt: 'normal',
7273
description: [
74+
'Sets whether a font should be styled with a normal, italic, or oblique face from its family.',
7375
'See https://developer.mozilla.org/en-US/docs/Web/CSS/font-style',
7476
].join(' ')
7577
},
@@ -79,6 +81,15 @@ module.exports = function(opts) {
7981
valType: 'string',
8082
dflt: 'normal',
8183
description: [
84+
'Set all the font variants for a font including but not limited to',
85+
'*small-caps*, *all-small-caps*, *petite-caps*, *all-petite-caps*, *unicase*, *titling-caps*,',
86+
'*sub*, *super*, *text*, *emoji*, *unicode*,',
87+
'*ordinal*, *slashed-zero*, *ruby*',
88+
'*contextual*, *no-contextual*,',
89+
'*common-ligatures*, *no-common-ligatures*,',
90+
'*discretionary-ligatures*, *no-discretionary-ligatures*,',
91+
'*historical-ligatures*, *no-historical-ligatures*,',
92+
'*historical-forms*.',
8293
'See https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant',
8394
].join(' ')
8495
},

0 commit comments

Comments
 (0)