- commit
- d45753825c66a8059bc5a85b17fa60b30ab5d568
- parent
- 0e2ccb2e2b3ae289ab2c330e23a2780908a3fbcc
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-08-09 18:58
set pixel font size based on pxsize
Diffstat
| M | js/frame.js | 1 | + |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/frame.js b/js/frame.js
@@ -28,6 +28,7 @@ export class Frame {
28 28 );
29 29 if (color !== this.image.data[i]) {
30 30 this.ctx.fillStyle = this.image.contrasts[color];
-1 31 this.ctx.font = `${this.pxsize * 0.8}px sans-serif`;
31 32 this.ctx.fillText(
32 33 this.image.data[i],
33 34 (x + 0.5) * this.pxsize,