* TODO Add the standard fourteen Type1 fonts list by default
* http://cgit.freedesktop.org/poppler/poppler/tree/poppler/GfxFont.cc#n65
*/
- var kScalePrecision = 100;
+
++var kScalePrecision = 40;
var Fonts = {
_active: null,
var pixBytes = this.pixBytes = (colors * bits + 7) >> 3;
// add an extra pixByte to represent the pixel left of column 0
var rowBytes = this.rowBytes = (columns * colors * bits + 7) >> 3;
--
++
DecodeStream.call(this);
return this;
}
return;
}
+ this.current.fontName = fontName;
this.current.fontSize = size;
- this.ctx.font = this.current.fontSize + 'px "' + this.current.fontName + '"';
- this.ctx.font = this.current.fontSize +'px "' + fontName + '", Symbol';
++
++ this.ctx.font = this.current.fontSize + 'px "' + fontName + '"';
+ if (this.ctx.$setFont) {
+ this.ctx.$setFont(fontName);
+ }
},
setTextRenderingMode: function(mode) {
TODO("text rendering mode");