1
0
Fork 0
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:
Vivien Nicolas 2011-06-15 04:46:48 +02:00
parent c8c4326ca8
commit 1dcd42b66c
3 changed files with 246 additions and 9 deletions

View file

@ -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")) {