|
@ -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; |
|
|