Skip to content

Commit 5a2de12

Browse files
committed
Font style naming bug
1 parent 9a07e75 commit 5a2de12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

presenter/demo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"background": "black"
99
},
1010
"defaults": {
11-
"fontFace": "Times New Roman,serif",
11+
"fontFamily": "Times New Roman,serif",
1212
"fontSize": 40,
1313
"fontWeight": "normal",
1414
"fontStyle": "normal",
@@ -52,7 +52,7 @@
5252
"blockHeight": 800,
5353
"blockPaddingLeft": 80,
5454
"blockPaddingTop": 40,
55-
"fontFace": "Helvetica,sans-serif",
55+
"fontFamily": "Helvetica,sans-serif",
5656
"fontColor": "#00ffff"
5757
}
5858
}

presenter/jsonPresenter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const JSON_Presenter = {
143143
element.appendChild(inner);
144144
element.inner = inner;
145145
const text = document.createElement(`div`);
146-
text.style[`font-face`] = properties.fontFace;
146+
text.style[`font-family`] = properties.fontFamily;
147147
text.style[`font-size`] = `${properties.fontSize * h / 1000}px`;
148148
text.style[`font-weight`] = properties.fontWeight;
149149
text.style[`font-style`] = properties.fontStyle;

0 commit comments

Comments
 (0)