Merge pull request #282 from paulkaplan/font-bubble

Actually fix the font in the say bubbles
This commit is contained in:
Paul Kaplan 2018-05-11 14:42:42 -04:00 committed by GitHub
commit 21157455cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,8 @@ class SVGTextBubble {
}
_textFragment () {
return `<text fill="#575E75">${xmlescape(this.lines.join('\n'))}</text>`;
const attrs = `font-family="Helvetica, Arial, sans-serif" font-size="14px" fill="#575E75"`;
return `<text ${attrs}>${xmlescape(this.lines.join('\n'))}</text>`;
}
buildString (type, text, pointsLeft) {