using font flags to recognize the symbol and serif fonts; using the encoding instead of predefined MacRoman in TrueType fonts

This commit is contained in:
notmasteryet 2012-01-09 19:36:24 -06:00
parent cf00831a00
commit a84fa13189
2 changed files with 7 additions and 53 deletions

View file

@ -557,7 +557,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
(fontObj.bold ? 'bold' : 'normal');
var italic = fontObj.italic ? 'italic' : 'normal';
var serif = fontObj.serif ? 'serif' : 'sans-serif';
var serif = fontObj.isSerifFont ? 'serif' : 'sans-serif';
var typeface = '"' + name + '", ' + serif;
var rule = italic + ' ' + bold + ' ' + size + 'px ' + typeface;
this.ctx.font = rule;