Increase minimum font size to 16px to avoid conflict with browser's minimum font size settings

This commit is contained in:
vyv03354 2013-04-17 00:18:07 +09:00
parent 369b81b63f
commit 0ee757e22d

View File

@ -36,7 +36,7 @@ var TextRenderingMode = {
};
// Minimal font size that would be used during canvas fillText operations.
var MIN_FONT_SIZE = 1;
var MIN_FONT_SIZE = 16;
function createScratchCanvas(width, height) {
var canvas = document.createElement('canvas');