Forgot bold

This commit is contained in:
Kylart 2018-03-31 06:08:48 +02:00
parent 39961d371f
commit 13ed585d98
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ export default function (styles, name) {
_.each(styles, (style) => {
const isItalic = +style.Italic ? 'italic' : 'none'
const isUnderline = -+style.Underline ? 'underline' : null
const bold = -+style.Bold ? 'font-weight: bold;' : ''
const fontSize = +style.Fontsize
const strikeOut = +style.Strikeout ? 'line-through' : null
const primaryColor = vbToRGBA(style.PrimaryColour)
@ -41,6 +42,7 @@ export default function (styles, name) {
text-decoration: ${(isUnderline || strikeOut) || 'none'};
color: ${primaryColor};
text-shadow: 1px 1px 2px ${outlineColor}, 1px -1px 2px ${outlineColor}, -1px 1px 2px ${outlineColor}, -1px -1px 2px ${outlineColor};
${bold}
${outline}
-webkit-font-smoothing: antialiased;
${defStyle}