diff --git a/README.md b/README.md index d88d58b..e8c0df0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -svg2ttf +svg2ttf-new ======= [![CI](https://github.com/fontello/svg2ttf/actions/workflows/ci.yml/badge.svg)](https://github.com/fontello/svg2ttf/actions/workflows/ci.yml) @@ -22,7 +22,7 @@ Using from CLI Install: ``` bash -npm install -g svg2ttf +npm install -g svg2ttf-new ``` Usage example: diff --git a/lib/ttf/tables/hhea.js b/lib/ttf/tables/hhea.js index d3cd585..d32cc15 100644 --- a/lib/ttf/tables/hhea.js +++ b/lib/ttf/tables/hhea.js @@ -12,7 +12,7 @@ function createHHeadTable(font) { buf.writeInt16(font.ascent); // ascent buf.writeInt16(font.descent); // descend // Non zero lineGap causes offset in IE, https://github.com/fontello/svg2ttf/issues/37 - buf.writeInt16(0); // lineGap + buf.writeInt16(font.lineGap); // lineGap buf.writeUint16(font.maxWidth); // advanceWidthMax buf.writeInt16(font.minLsb); // minLeftSideBearing buf.writeInt16(font.minRsb); // minRightSideBearing diff --git a/lib/ttf/tables/os2.js b/lib/ttf/tables/os2.js index 197d4cf..9a1be6e 100644 --- a/lib/ttf/tables/os2.js +++ b/lib/ttf/tables/os2.js @@ -70,7 +70,7 @@ function createOS2Table(font) { buf.writeUint16(getLastCharIndex(font)); // usLastCharIndex buf.writeInt16(font.ascent); // sTypoAscender buf.writeInt16(font.descent); // sTypoDescender - buf.writeInt16(font.lineGap); // lineGap + buf.writeInt16(0); // lineGap // Enlarge win acscent/descent to avoid clipping // WinAscent - WinDecent should at least be equal to TypoAscender - TypoDescender + TypoLineGap: // https://www.high-logic.com/font-editor/fontcreator/tutorials/font-metrics-vertical-line-spacing diff --git a/package.json b/package.json index 80492ce..39ab404 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "svg2ttf", - "version": "6.0.2", + "name": "svg2ttf-new", + "version": "6.1.0-beta.3", "description": "Converts SVG font to TTF font", "keywords": [ "font",