World outlines ?

This commit is contained in:
bingus_violet 2024-06-25 13:39:56 -05:00
parent df19fcfebb
commit e3dcd08714
2 changed files with 13 additions and 0 deletions

View file

@ -254,6 +254,12 @@
"bold": true, "bold": true,
"italicized": true, "italicized": true,
"caseInsensitive": true "caseInsensitive": true
},
"Pokerogue": {
"caseInsensitive": true,
"color": "#366383",
"outline": "#d43131",
"bold": true
} }
} }
} }

View file

@ -120,6 +120,13 @@ function highlighter(json, full = true) {
style += "font-style: italic;" style += "font-style: italic;"
} }
if (termProps.outline) {
var width = 2
style += `text-shadow: -1px -1px 0 ${termProps.outline}, 1px -1px 0 ${termProps.outline}, -1px 1px 0 ${termProps.outline}, 1px 1px 0 ${termProps.outline};`
// style += `-webkit-text-stroke: 1px ${termProps.outline};`
// ^ Not in use because it looks bad :30
}
if (termProps.bold) { if (termProps.bold) {
classes += "bold" classes += "bold"
} }