From 776c10d4e61fb8ce5103c235afaba4becdd66975 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Tue, 19 Jul 2011 14:29:05 +0200 Subject: [PATCH] Fix a regression on the application of the textMatrix extracted from a CFF font --- fonts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fonts.js b/fonts.js index 9a064f4c5..d08d43a7c 100755 --- a/fonts.js +++ b/fonts.js @@ -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;