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

Add SVG font format #149

Closed
puzrin opened this issue Jun 14, 2015 · 17 comments
Closed

Add SVG font format #149

puzrin opened this issue Jun 14, 2015 · 17 comments

Comments

@puzrin
Copy link

puzrin commented Jun 14, 2015

Please, add SVG font format. Existing TTF/Woff can not be opened in FontForge to convert.

update:

FF from PPA open font, but SVG export produce broken file.

@shyndman
Copy link
Contributor

Hi Vitaly,

Why can't the file be opened?

On Sun, Jun 14, 2015, 7:15 PM Vitaly Puzrin [email protected]
wrote:

Please, add SVG font format. Existing TTF/Woff can not be opened in
FontForge to convert.


Reply to this email directly or view it on GitHub
#149.

@puzrin
Copy link
Author

puzrin commented Jun 14, 2015

Because fontforge shows error instead of open it :( . I don't know why.

@puzrin
Copy link
Author

puzrin commented Jun 15, 2015

I've installed latest FontForge from PPA, and it opens font. But SVG export in fontforge is still broken.

Reported to fontforge/fontforge#2369

Possible solution is:

  • use commercial font editor to convert data
  • write script to fix bad FF output

@puzrin
Copy link
Author

puzrin commented Jun 15, 2015

fontforge/fontforge#2369 (comment)

One more comment. If you are not sure you really need zero descent, set it to ~15% from the bottom.

@kathgironpe
Copy link

@puzrin you are right. I think a commercial font editor is needed. I tried webify and it did not work.

@grimen
Copy link

grimen commented Dec 26, 2015

Any status on this? Out of the list of ~50 icon fonts I summarized "Material Design Icons" is the only icon font library that have no compiled SVG Font (i.e. iconfont/MaterialIcons-Regular.svg).

@grimen
Copy link

grimen commented Dec 31, 2015

Seems to work great to do the conversion: ttf2svg (https://github.com/qdsang/ttf2svg)

@kathgironpe
Copy link

@grimen if it works, test SVG output with fontello and create a pull request. Thank you!

@grimen
Copy link

grimen commented Jan 2, 2016

@katgironpe I actually found a unicode-related bug in the output so ended up writing my own script that works well with Fontello too: https://github.com/grimen/svg-fontglyphs2svg/blob/master/script/ttf2svg. OK, will create a pull request soon then.

@kathgironpe
Copy link

@grimen thank you!

@grimen
Copy link

grimen commented Jan 3, 2016

@katgironpe I could not find any build step for the fonts - are the fonts generated externally? If so should I add the .svg font as pull request, or should I add the build step somewhere?

@kathgironpe
Copy link

@grimen Since Gulp is used on this repo, it might help to add the task for converting the ttf version to svg. That makes most sense although it is not documented.

Everything goes here: https://github.com/google/material-design-icons/tree/master/iconfont

@kathgironpe
Copy link

@grimen And is your update to ttf2svg available through npm? That may be best too.

@grimen
Copy link

grimen commented Jan 4, 2016

@katgironpe

1: OK, then I know - will add a Gulp task then.

2: That is a good idea, I will need to package it and release under another name to avoid clashes with existing one - something like fonteditor-ttf2svg-cli.

@grimen
Copy link

grimen commented Jan 5, 2016

@grimen
Copy link

grimen commented Jan 11, 2016

@katgironpe Any input on the PR?

@kathgironpe
Copy link

@grimen gave one suggestion. I think this is mostly good. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants
@grimen @shyndman @kathgironpe @puzrin and others