|
|
@ -3230,6 +3230,9 @@ var Font = (function FontClosure() { |
|
|
|
var requiredTables = ['OS/2', 'cmap', 'head', 'hhea', |
|
|
|
var requiredTables = ['OS/2', 'cmap', 'head', 'hhea', |
|
|
|
'hmtx', 'maxp', 'name', 'post']; |
|
|
|
'hmtx', 'maxp', 'name', 'post']; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var optionalTables = ['cvt ', 'fpgm', 'glyf', 'loca', 'prep', |
|
|
|
|
|
|
|
'CFF ', 'VORG', 'vhea', 'vmtx']; |
|
|
|
|
|
|
|
|
|
|
|
var header = readOpenTypeHeader(font); |
|
|
|
var header = readOpenTypeHeader(font); |
|
|
|
var numTables = header.numTables; |
|
|
|
var numTables = header.numTables; |
|
|
|
|
|
|
|
|
|
|
@ -3255,6 +3258,9 @@ var Font = (function FontClosure() { |
|
|
|
os2 = table; |
|
|
|
os2 = table; |
|
|
|
|
|
|
|
|
|
|
|
requiredTables.splice(index, 1); |
|
|
|
requiredTables.splice(index, 1); |
|
|
|
|
|
|
|
} else if (optionalTables.indexOf(table.tag) < 0) { |
|
|
|
|
|
|
|
// skipping table if it's not a required or optional table
|
|
|
|
|
|
|
|
continue; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (table.tag == 'vmtx') |
|
|
|
if (table.tag == 'vmtx') |
|
|
|
vmtx = table; |
|
|
|
vmtx = table; |
|
|
|