description:nls.localize('schema.font-weight','The weight of the font.')
description:nls.localize('schema.font-weight','The weight of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight for valid values.'),
pattern:fontWeightRegex
},
},
style:{
style:{
type:'string',
type:'string',
description:nls.localize('schema.font-sstyle','The style of the font.')
description:nls.localize('schema.font-style','The style of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-style for valid values.'),
pattern:fontStyleRegex
},
},
size:{
size:{
type:'string',
type:'string',
description:nls.localize('schema.font-size','The default size of the font.')
description:nls.localize('schema.font-size','The default size of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-size for valid values.'),
pattern:fontSizeRegex
}
}
},
},
required:[
required:[
...
@@ -174,7 +181,8 @@ const schema: IJSONSchema = {
...
@@ -174,7 +181,8 @@ const schema: IJSONSchema = {
},
},
fontSize:{
fontSize:{
type:'string',
type:'string',
description:nls.localize('schema.fontSize','When using a font: The font size in percentage to the text font. If not set, defaults to the size in the font definition.')
description:nls.localize('schema.fontSize','When using a font: The font size in percentage to the text font. If not set, defaults to the size in the font definition.'),
description:nls.localize('schema.font-weight','The weight of the font.')
description:nls.localize('schema.font-weight','The weight of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight for valid values.'),
pattern:fontWeightRegex
},
},
style:{
style:{
type:'string',
type:'string',
description:nls.localize('schema.font-sstyle','The style of the font.')
description:nls.localize('schema.font-style','The style of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-style for valid values.'),
},
pattern:fontStyleRegex
size:{
type:'string',
description:nls.localize('schema.font-size','The default size of the font.')