mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Include and use the 14 standard fonts files.
This commit is contained in:
parent
3456ed271b
commit
4c1dd47e65
36 changed files with 463 additions and 80 deletions
|
@ -74,7 +74,10 @@ class CFFFont {
|
|||
return charCodeToGlyphId;
|
||||
}
|
||||
|
||||
const encoding = cff.encoding ? cff.encoding.encoding : null;
|
||||
let encoding = cff.encoding ? cff.encoding.encoding : null;
|
||||
if (properties.isInternalFont) {
|
||||
encoding = properties.defaultEncoding;
|
||||
}
|
||||
charCodeToGlyphId = type1FontGlyphMapping(properties, encoding, charsets);
|
||||
return charCodeToGlyphId;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue