From 4911fe25f4ba081f70a9871d6eafc4735f7685f3 Mon Sep 17 00:00:00 2001 From: James Addison Date: Wed, 15 Apr 2020 09:21:19 +0100 Subject: [PATCH] Revert "Merge remote-tracking branch 'grahamkane/master' into issue-1948-test-coverage" This reverts commit 5211ab4065f675d6b3a0896eaabef45fdca4f29f, reversing changes made to ae0bd29d37109023897514ef854cc54452f39eed. --- src/render/canvas/canvas-renderer.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/render/canvas/canvas-renderer.ts b/src/render/canvas/canvas-renderer.ts index eda01de..93ca923 100644 --- a/src/render/canvas/canvas-renderer.ts +++ b/src/render/canvas/canvas-renderer.ts @@ -157,9 +157,7 @@ export class CanvasRenderer { const fontVariant = styles.fontVariant .filter(variant => variant === 'normal' || variant === 'small-caps') .join(''); - const fontFamily = styles.fontFamily.map(fontName => { - return fontName.indexOf(' ') === -1 ? fontName : `"${fontName}"`; - }).join(', '); + const fontFamily = styles.fontFamily.join(', '); const fontSize = isDimensionToken(styles.fontSize) ? `${styles.fontSize.number}${styles.fontSize.unit}` : `${styles.fontSize.number}px`;