() => is not the same as function() {} smh

Fixed a few of the text rendering issues
This commit is contained in:
chris moran
2020-07-01 04:34:29 -04:00
parent 174b098724
commit cbb69bd3cb
9 changed files with 26358 additions and 2262 deletions

View File

@@ -305,28 +305,25 @@ const config = {
* **Default value 20.
*/
labelBoxHeight: 20,
messageFont: () => {
const c = getConfig().sequence;
messageFont: function() {
return {
fontFamily: c.messageFontFamily,
fontSize: c.messageFontSize,
fontWeight: c.messageFontWeight
fontFamily: this.messageFontFamily,
fontSize: this.messageFontSize,
fontWeight: this.messageFontWeight
};
},
noteFont: () => {
const c = getConfig().sequence;
noteFont: function() {
return {
fontFamily: c.noteFontFamily,
fontSize: c.noteFontSize,
fontWeight: c.noteFontWeight
fontFamily: this.noteFontFamily,
fontSize: this.noteFontSize,
fontWeight: this.noteFontWeight
};
},
actorFont: () => {
const c = getConfig().sequence;
actorFont: function() {
return {
fontFamily: c.actorFontFamily,
fontSize: c.actorFontSize,
fontWeight: c.actorFontWeight
fontFamily: this.actorFontFamily,
fontSize: this.actorFontSize,
fontWeight: this.actorFontWeight
};
}
},