Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Try to solve the problem that the icon position of DingTalk App #119

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -22,7 +22,7 @@ Using from CLI
Install:

``` bash
npm install -g svg2ttf
npm install -g svg2ttf-new
```

Usage example:
Expand Down
2 changes: 1 addition & 1 deletion lib/ttf/tables/hhea.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/ttf/tables/os2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down