forked from Blendman974/faceclaw
Performance optimizations; add TerminusV variable-width font
This commit is contained in:
1 parent
ff447d5161
commit
b2c90bc043
16 files changed
+4267
-217
No files matched your search
@@ -129,7 +129,7 @@ export class GrayImage {
|
||||
text: string;
|
||||
value: number;
|
||||
}): void {
|
||||
const lines = wrapText(font, text, this.width);
|
||||
const lines = wrapText(font, text, width);
|
||||
for (let i = 0; i < lines.length; i++) {
|
||||
this.drawText(font, x, y + i * font.lineHeight, lines[i]!, value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user