Tj Holowaychuk 14 years ago
parent
commit
857d44bc97
  1. 3
      lib/canvas.js

3
lib/canvas.js

@ -480,9 +480,10 @@ Context2d.prototype.__defineSetter__('font', function(val){
if ('string' == typeof val) {
var font;
if (font = cache[val] || parseFont(val)) {
// TODO: dpi
this.lastFontString = val;
// TODO: dpi
// TODO: remaining unit conversion
switch (font.unit) {
case 'pt':
font.size /= .75;

Loading…
Cancel
Save