makeOS2Table function
dynamic
makeOS2Table(
- dynamic options
Implementation
makeOS2Table(options) {
return new Table('OS/2', [
{"name": 'version', "type": 'USHORT', "value": 0x0003},
{"name": 'xAvgCharWidth', "type": 'SHORT', "value": 0},
{"name": 'usWeightClass', "type": 'USHORT', "value": 0},
{"name": 'usWidthClass', "type": 'USHORT', "value": 0},
{"name": 'fsType', "type": 'USHORT', "value": 0},
{"name": 'ySubscriptXSize', "type": 'SHORT', "value": 650},
{"name": 'ySubscriptYSize', "type": 'SHORT', "value": 699},
{"name": 'ySubscriptXOffset', "type": 'SHORT', "value": 0},
{"name": 'ySubscriptYOffset', "type": 'SHORT', "value": 140},
{"name": 'ySuperscriptXSize', "type": 'SHORT', "value": 650},
{"name": 'ySuperscriptYSize', "type": 'SHORT', "value": 699},
{"name": 'ySuperscriptXOffset', "type": 'SHORT', "value": 0},
{"name": 'ySuperscriptYOffset', "type": 'SHORT', "value": 479},
{"name": 'yStrikeoutSize', "type": 'SHORT', "value": 49},
{"name": 'yStrikeoutPosition', "type": 'SHORT', "value": 258},
{"name": 'sFamilyClass', "type": 'SHORT', "value": 0},
{"name": 'bFamilyType', "type": 'BYTE', "value": 0},
{"name": 'bSerifStyle', "type": 'BYTE', "value": 0},
{"name": 'bWeight', "type": 'BYTE', "value": 0},
{"name": 'bProportion', "type": 'BYTE', "value": 0},
{"name": 'bContrast', "type": 'BYTE', "value": 0},
{"name": 'bStrokeVariation', "type": 'BYTE', "value": 0},
{"name": 'bArmStyle', "type": 'BYTE', "value": 0},
{"name": 'bLetterform', "type": 'BYTE', "value": 0},
{"name": 'bMidline', "type": 'BYTE', "value": 0},
{"name": 'bXHeight', "type": 'BYTE', "value": 0},
{"name": 'ulUnicodeRange1', "type": 'ULONG', "value": 0},
{"name": 'ulUnicodeRange2', "type": 'ULONG', "value": 0},
{"name": 'ulUnicodeRange3', "type": 'ULONG', "value": 0},
{"name": 'ulUnicodeRange4', "type": 'ULONG', "value": 0},
{"name": 'achVendID', "type": 'CHARARRAY', "value": 'XXXX'},
{"name": 'fsSelection', "type": 'USHORT', "value": 0},
{"name": 'usFirstCharIndex', "type": 'USHORT', "value": 0},
{"name": 'usLastCharIndex', "type": 'USHORT', "value": 0},
{"name": 'sTypoAscender', "type": 'SHORT', "value": 0},
{"name": 'sTypoDescender', "type": 'SHORT', "value": 0},
{"name": 'sTypoLineGap', "type": 'SHORT', "value": 0},
{"name": 'usWinAscent', "type": 'USHORT', "value": 0},
{"name": 'usWinDescent', "type": 'USHORT', "value": 0},
{"name": 'ulCodePageRange1', "type": 'ULONG', "value": 0},
{"name": 'ulCodePageRange2', "type": 'ULONG', "value": 0},
{"name": 'sxHeight', "type": 'SHORT', "value": 0},
{"name": 'sCapHeight', "type": 'SHORT', "value": 0},
{"name": 'usDefaultChar', "type": 'USHORT', "value": 0},
{"name": 'usBreakChar', "type": 'USHORT', "value": 0},
{"name": 'usMaxContext', "type": 'USHORT', "value": 0}
], options);
}