px scaling support on the way + some styles updates

This commit is contained in:
jean-emmanuel 2016-03-18 12:53:44 +01:00
parent f1e384ecc2
commit 60bd47465d
11 changed files with 50 additions and 35 deletions

View file

@ -50,7 +50,7 @@
if (!self.height || !self.width || (self.height==100 && self.width==100)) return
ctx.clearRect(0,0,self.width,self.height)
ctx.font = '13px Droid Sans'
ctx.font = PXSCALE * 13 + 'px Droid Sans'
ctx.textBaseline = "top"
ctx.fillStyle = self.color