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

Improved rendering of Seti icons #22667

Closed
gmckeown opened this issue Mar 15, 2017 · 15 comments
Closed

Improved rendering of Seti icons #22667

gmckeown opened this issue Mar 15, 2017 · 15 comments
Assignees
Labels
feature-request Request for new features or functionality themes Color theme issues
Milestone

Comments

@gmckeown
Copy link

  • VSCode Version: 1.10.2 and 1.11.0 Insider build (b9857a)
  • OS Version: Windows 10 Build 14393.693

Steps to Reproduce:

  1. Enable vs-seti icon set
  2. Create a file with .sh extension (for example)

Icon is simply a grey square; the Seti icon set for Atom suggests there should be some detail displayed.

Here's an enlarged comparison with VSCode on top and the version from the Seti summary below:

comparison

And here's a rendering of the original Seti shell.svg using Inkscape:

2017-03-15 12_44_45-shell svg - inkscape

Loading the seti.woff file (in eval version of FontCreator) shows the icons to be poorly rendered at larger sizes as well, which I assume is due to a problem converting from the SVGs to WOFF?

A selection of the icons as viewed in FontCreator:
2017-03-15 13_09_54-fontcreator 10 1 unregistered - seti woff - seti

Here's the C# Icon from the WOFF:
2017-03-15 13_11_04-fontcreator 10 1 unregistered - seti woff - seti

And here's the same icon from the original SVG (viewed in Inkscape):
2017-03-15 13_12_39-c-sharp svg - inkscape

@gmckeown gmckeown changed the title Seti Shell Icons seem badly rendered Seti Icons seem badly rendered Mar 15, 2017
@gmckeown
Copy link
Author

Digging a bit further, I assume you've used the seti.woff file from the atom-seti-icons project, which in turn takes them from the seti-ui project.

Seti UI uses a script that converts the good-looking SVG icons into font files, and it appears to be there that the problem occurs. This combines the icons and outputs them into five font files (seti.eot, seti.svg, seti.ttf, seti.woff, and seti.woff2).

Both the TTF and WOFF files have the disfigured glyphs. I don't have tools to open the WOFF2 and EOT formats directly. The seti.svg font file opens in FontForge and shows most of the icons correctly -- CSV and Shell are still missing their detail.

So, ultimately, this seems to be an issue with the conversion of the source SVG icons into a font-file.

@aeschli
Copy link
Contributor

aeschli commented Mar 15, 2017

@gmckeown Thanks for the analysis. We're take the font directly from the seti-ui project.
I move the issue there in the hope they can improve the SVG to font conversion.

@aeschli
Copy link
Contributor

aeschli commented Mar 15, 2017

This issue was moved to jesseweed/seti-ui#401

@aeschli aeschli closed this as completed Mar 15, 2017
@gmckeown
Copy link
Author

I've got a pull request in with Seti UI to resolve this issue -- fix for VS Code I expect will be an updated seti.woff and changes to vs-seti-icon-theme.json to account for some additional icons. With Atom, I was able to just drop the new fonts into the theme's package folder and everything seems to work, but with VSCode, I get this strangeness:
vscode_updated_font
Any idea how I might correct this?

Updated font can be found in the pull request if you wish to test for yourself: jesseweed/seti-ui#406

@gmckeown
Copy link
Author

Ignore the above. The mis-alignment was due to an error in one of the source icons that was throwing off the font size normalisation. Seems to all be working in Atom now, and initial tests with VSCode look promising. My assumption is that you'll pull the updated WOFF from the Seti UI project once it's merged. A small preview below :)

vs code updated seti font

@aeschli
Copy link
Contributor

aeschli commented Mar 26, 2017

@gmckeown Looks great, thanks for your work! I hope your changes get adopted soon so I can pick them up.

aeschli added a commit that referenced this issue Apr 12, 2017
@aeschli
Copy link
Contributor

aeschli commented Apr 12, 2017

@gmckeown I updated the Seti font containing your fixes. Thanks a lot!

@TheFluffyOne
Copy link

Good stuff! If you do see any vertical alignment issues with the updated font -- per #22667 (comment) above -- there's a separate pull request to address this: jesseweed/seti-ui#409. When the Insiders build updates to include your commit I'll test on the machine that had the issue before.

@aeschli
Copy link
Contributor

aeschli commented Apr 12, 2017

Yes, I had to manually patch seti-ui to get the vertical alignment correct on windows. Thanks for creating a pull request for that!

@TheFluffyOne
Copy link

@aeschli Today's Insider build is looking great on the Win10 notebook on which I previously saw the alignment issues :). I'll add a comment here if/when my fix is pulled into Seti-UI.

@gmckeown
Copy link
Author

Sorry, just realised I left myself logged in to an old account I was in the process of retiring! Previous comments were from me :)

@gmckeown
Copy link
Author

gmckeown commented May 4, 2017

@aeschli, I don't see mention of the updated icons in current Insiders release notes -- will this make it into 1.12.0?

@aeschli
Copy link
Contributor

aeschli commented May 4, 2017

It's in there, sorry. I'll add a note.

@aeschli aeschli changed the title Seti Icons seem badly rendered Improved rendering of Seti icons May 4, 2017
@aeschli aeschli added this to the April 2017 milestone May 4, 2017
@aeschli aeschli added feature-request Request for new features or functionality themes Color theme issues labels May 4, 2017
@aeschli
Copy link
Contributor

aeschli commented May 4, 2017

I added a thank you note to the release notes! Thanks again @gmckeown !

@gmckeown
Copy link
Author

gmckeown commented May 4, 2017

Awesome, cheers!

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality themes Color theme issues
Projects
None yet
Development

No branches or pull requests

3 participants