Currently, the following code is used for setting the font:
context.font=`${fontSize}px '${fontFamily}'`;
This might break when a font family name contains a '. I need to figure out what the correct way is to escape such names when dealing with a Canvas context.
Currently, the following code is used for setting the `font`:
```js
context.font = `${fontSize}px '${fontFamily}'`;
```
This might break when a font family name contains a `'`. I need to figure out what the correct way is to escape such names when dealing with a Canvas `context`.
Currently, the following code is used for setting the
font
:This might break when a font family name contains a
'
. I need to figure out what the correct way is to escape such names when dealing with a Canvascontext
.