mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Add a basic support for TrueType (generate fonts with OS/2 table)
This commit is contained in:
parent
c8c4326ca8
commit
1dcd42b66c
3 changed files with 246 additions and 9 deletions
4
test.js
4
test.js
|
@ -85,7 +85,9 @@ function displayPage(num) {
|
|||
// Check if the font has been loaded or is still loading
|
||||
var font = Fonts[fontName];
|
||||
if (!font) {
|
||||
var fontFile = xref.fetchIfRef(descriptor.get2("FontFile", "FontFile2"));
|
||||
var fontFile = descriptor.get2("FontFile", "FontFile2");
|
||||
fontFile = xref.fetchIfRef(fontFile);
|
||||
|
||||
// Generate the custom cmap of the font if needed
|
||||
var encodingMap = {};
|
||||
if (fontDict.has("Encoding")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue