mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Remove the first empty character of charset
This commit is contained in:
parent
e448dce42b
commit
2e71f79865
2 changed files with 4 additions and 1 deletions
3
pdf.js
3
pdf.js
|
@ -3440,6 +3440,7 @@ var CanvasGraphics = (function() {
|
|||
if (charset) {
|
||||
assertWellFormed(IsString(charset), "invalid charset");
|
||||
charset = charset.split("/");
|
||||
charset.shift();
|
||||
}
|
||||
} else if (IsName(encoding)) {
|
||||
var encoding = Encodings[encoding.name];
|
||||
|
@ -3534,6 +3535,8 @@ var CanvasGraphics = (function() {
|
|||
type: subType.name,
|
||||
encoding: encodingMap,
|
||||
charset: charset,
|
||||
firstChar: fontDict.get("FirstChar"),
|
||||
lastChar: fontDict.get("LastChar"),
|
||||
bbox: descriptor.get("FontBBox"),
|
||||
ascent: descriptor.get("Ascent"),
|
||||
descent: descriptor.get("Descent"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue