Comparing version 6.0.0 to 6.0.1
@@ -0,1 +1,7 @@ | ||
6.0.1 / 2021-06-17 | ||
------------------ | ||
- `OS/2` table version reduced (5 => 4), #110. | ||
6.0.0 / 2021-05-27 | ||
@@ -2,0 +8,0 @@ ------------------ |
@@ -23,2 +23,3 @@ 'use strict'; | ||
// OpenType spec: https://docs.microsoft.com/en-us/typography/opentype/spec/os2 | ||
function createOS2Table(font) { | ||
@@ -33,5 +34,6 @@ | ||
var buf = new ByteBuffer(100); | ||
var buf = new ByteBuffer(96); | ||
buf.writeUint16(5); //version | ||
// Version 5 is not supported in the Android 5 browser. | ||
buf.writeUint16(4); // version | ||
buf.writeInt16(font.avgWidth); // xAvgCharWidth | ||
@@ -86,6 +88,2 @@ buf.writeUint16(font.weightClass); // usWeightClass | ||
buf.writeUint16(maxContext); // usMaxContext, use at least 2 for ligatures and kerning | ||
// if font isn't designed for multiple optical-sized variants, | ||
// following fields should be 0x0000-0xFFFF | ||
buf.writeUint16(0); // usLowerOpticalPointSize | ||
buf.writeUint16(0xFFFF); // usUpperOpticalPointSize | ||
@@ -92,0 +90,0 @@ return buf; |
{ | ||
"name": "svg2ttf", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Converts SVG font to TTF font", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82118
2154