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) { if ('string' == typeof val) {
var font; var font;
if (font = cache[val] || parseFont(val)) { if (font = cache[val] || parseFont(val)) {
// TODO: dpi
this.lastFontString = val; this.lastFontString = val;
// TODO: dpi
// TODO: remaining unit conversion
switch (font.unit) { switch (font.unit) {
case 'pt': case 'pt':
font.size /= .75; font.size /= .75;

Loading…
Cancel
Save