Skip to content

Commit 0ee757e

Browse files
committed
Increase minimum font size to 16px to avoid conflict with browser's minimum font size settings
1 parent 369b81b commit 0ee757e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/canvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var TextRenderingMode = {
3636
};
3737

3838
// Minimal font size that would be used during canvas fillText operations.
39-
var MIN_FONT_SIZE = 1;
39+
var MIN_FONT_SIZE = 16;
4040

4141
function createScratchCanvas(width, height) {
4242
var canvas = document.createElement('canvas');

0 commit comments

Comments
 (0)