mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
avoid font lookup by id in showText
This commit is contained in:
parent
d3979e4ac2
commit
f6eb9cecd3
2 changed files with 13 additions and 12 deletions
1
fonts.js
1
fonts.js
|
@ -413,6 +413,7 @@ function getUnicodeRangeFor(value) {
|
|||
var Font = (function() {
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue