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

Empty glyph when icon is made of strokes #60

Open
elrumordelaluz opened this issue Sep 2, 2016 · 5 comments
Open

Empty glyph when icon is made of strokes #60

elrumordelaluz opened this issue Sep 2, 2016 · 5 comments

Comments

@elrumordelaluz
Copy link

Just trying to create an svgfont from icons with paths something like:

<svg ...>
  <polygon fill="none" stroke="#202020" stroke-width="4" stroke-linejoin="round" stroke-miterlimit="10" points="61,53.5 38.6,31.1 50.5,19.2 3,3 19.2,50.4 31.1,38.6 53.5,61"/>
</svg>

which result in something like:

<font ...>
  <glyph glyph-name="arrow"
      unicode="&#xE001;&#xE002;"
      horiz-adv-x="64" d="" />
</font>
@elrumordelaluz elrumordelaluz changed the title Empty glyph when icon is made of _strokes_ Empty glyph when icon is made of strokes Sep 2, 2016
@nfroidure
Copy link
Owner

This is currently unsupported. I would need some tranformations on the fly. Feasible but i probably won't have time to do this.

Feel free to PR, such improvement would be merged.

Otherwise, you still can convert your icons to plain path data.

@elrumordelaluz
Copy link
Author

thank you!

@nfroidure
Copy link
Owner

For information: Temporary workaround here:
feathericons/feather#135 (comment)

@elrumordelaluz
Copy link
Author

elrumordelaluz commented Apr 20, 2018

In case could be useful for someone, there is svg-outline-stroke, you can play online here

@xiangst0816
Copy link

I use this tool to solve my problem: https://docs.oslllo.com/svg-fixer/master/#/getting-started/introduction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants