Skip to content

Commit bf6cca2

Browse files
authored
including comma
1 parent a4fbdaa commit bf6cca2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type/p5.Font.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ async function create(pInst, name, path, descriptors, rawFont) {
983983

984984
function createFontFace(name, path, descriptors, rawFont) {
985985

986-
if (name.includes(' ')) name = "'" + name + "'"; // NOTE: must be single-quotes
986+
if (name.includes(' ') || name.includes(',')) name = "'" + name + "'"; // NOTE: must be single-quotes
987987

988988
let fontArg = rawFont?._compressedData ?? rawFont?._data;
989989
if (!fontArg) {

0 commit comments

Comments
 (0)