mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 22:27:44 +02:00
Fix lint
This commit is contained in:
+2
-2
@@ -31,8 +31,8 @@ module.exports = class Font {
|
|||||||
return registerFont(this.path, { family: this.filenameNoExt, style: this.style, weight: this.weight });
|
return registerFont(this.path, { family: this.filenameNoExt, style: this.style, weight: this.weight });
|
||||||
}
|
}
|
||||||
|
|
||||||
toCanvasString(size, fallbacks = true) {
|
toCanvasString(size, shouldDoFallbacks = true) {
|
||||||
const shouldFall = fallbacks ? `, ${this.fallbacks.join(', ')}` : '';
|
const shouldFall = shouldDoFallbacks ? `, ${this.fallbacks.join(', ')}` : '';
|
||||||
return `${this.style} ${this.weight} ${size}px ${this.filenameNoExt}${shouldFall}`;
|
return `${this.style} ${this.weight} ${size}px ${this.filenameNoExt}${shouldFall}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user