Add config items for bold, italic, and bold italic fonts

This commit is contained in:
Sasha Koshka 2022-11-29 01:38:42 -05:00
parent f51f9ae5c5
commit e4c7dcb2e1

View File

@ -51,6 +51,9 @@ func (public *Config) load () {
public.private = config.Config { public.private = config.Config {
LegalParameters: map[string] config.Type { LegalParameters: map[string] config.Type {
"fontNormal": config.TypeString, "fontNormal": config.TypeString,
"fontBold": config.TypeString,
"fontItalic": config.TypeString,
"fontBoldItalic": config.TypeString,
"fontSize": config.TypeInteger, "fontSize": config.TypeInteger,
"padding": config.TypeInteger, "padding": config.TypeInteger,
"center": config.TypeBoolean, "center": config.TypeBoolean,
@ -65,10 +68,13 @@ func (public *Config) load () {
}, },
Parameters: map[string] any { Parameters: map[string] any {
"fontNormal": "", "fontNormal": "",
"fontSize": 11, "fontBold": "",
"padding": 2, "fontItalic": "",
"center": false, "fontBoldItalic": "",
"fontSize": 11,
"padding": 2,
"center": false,
"colorBackground": "colorBackground":
color.RGBA { R: 0, G: 0, B: 0, A: 0 }, color.RGBA { R: 0, G: 0, B: 0, A: 0 },
"colorForeground": "colorForeground":