text font fix. close #910

This commit is contained in:
Anton Lavrenov
2020-05-14 11:25:27 -05:00
parent ee99044baa
commit d96e7d9ede
4 changed files with 1327 additions and 55 deletions

View File

@@ -366,10 +366,9 @@ export class Text extends Shape<TextConfig> {
SPACE +
this.fontVariant() +
SPACE +
this.fontSize() +
PX_SPACE +
(this.fontSize() + PX_SPACE) +
// wrap font family into " so font families with spaces works ok
+'"' +
'"' +
this.fontFamily() +
'"'
);