Skip to content

Commit 2115745

Browse files
authored
Merge pull request #282 from paulkaplan/font-bubble
Actually fix the font in the say bubbles
2 parents eab4ad9 + d35a320 commit 2115745

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/svg-text-bubble.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ class SVGTextBubble {
149149
}
150150

151151
_textFragment () {
152-
return `<text fill="#575E75">${xmlescape(this.lines.join('\n'))}</text>`;
152+
const attrs = `font-family="Helvetica, Arial, sans-serif" font-size="14px" fill="#575E75"`;
153+
return `<text ${attrs}>${xmlescape(this.lines.join('\n'))}</text>`;
153154
}
154155

155156
buildString (type, text, pointsLeft) {

0 commit comments

Comments
 (0)