Fix a regression on the application of the textMatrix extracted from a CFF font
This commit is contained in:
parent
913504a937
commit
776c10d4e6
2
fonts.js
2
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user