Fix a regression on the application of the textMatrix extracted from a CFF font

This commit is contained in:
Vivien Nicolas 2011-07-19 14:29:05 +02:00
parent 913504a937
commit 776c10d4e6

View File

@ -375,7 +375,6 @@ function getUnicodeRangeFor(value) {
var Font = (function Font() {
var constructor = function font_constructor(name, file, properties) {
this.name = name;
this.textMatrix = properties.textMatrix || IDENTITY_MATRIX;
this.encoding = properties.encoding;
// If the font is to be ignored, register it like an already loaded font
@ -411,6 +410,7 @@ var Font = (function Font() {
break;
}
this.data = data;
this.textMatrix = properties.textMatrix || IDENTITY_MATRIX;
this.type = properties.type;
this.id = Fonts.registerFont(name, data, properties);
this.loadedName = 'pdfFont' + this.id;