From 6b979cbfb4d83bf11d3215c357018d2369db2020 Mon Sep 17 00:00:00 2001 From: DD Liu <liudi@media.mit.edu> Date: Tue, 13 Oct 2020 21:02:35 -0400 Subject: [PATCH] Pass svg-renderer function to Paint --- src/containers/paint-editor-wrapper.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/containers/paint-editor-wrapper.jsx b/src/containers/paint-editor-wrapper.jsx index dc78c1bdb..c90f5e6f2 100644 --- a/src/containers/paint-editor-wrapper.jsx +++ b/src/containers/paint-editor-wrapper.jsx @@ -3,6 +3,7 @@ import React from 'react'; import bindAll from 'lodash.bindall'; import VM from 'scratch-vm'; import PaintEditor from 'scratch-paint'; +import {inlineSvgFonts} from 'scratch-svg-renderer'; import {connect} from 'react-redux'; @@ -52,6 +53,7 @@ class PaintEditorWrapper extends React.Component { image={vm.getCostume(selectedCostumeIndex)} onUpdateImage={this.handleUpdateImage} onUpdateName={this.handleUpdateName} + fontInlineFn={inlineSvgFonts} /> ); } -- GitLab