Skip to content

update icon: vscode (plain, plain-wordmark) - #2922

Closed
JagguDada01 wants to merge 1 commit into
devicons:developfrom
JagguDada01:fix/vscode-plain-wordmark-winding
Closed

JagguDada01 wants to merge 1 commit into
devicons:developfrom
JagguDada01:fix/vscode-plain-wordmark-winding

Conversation

@JagguDada01

Copy link
Copy Markdown

Double check these details before you open a PR

  • PR does not match another non-stale PR currently opened
  • PR name matches the format update icon: Icon name (versions separated by comma). More details here
  • PR's base is the develop branch.
  • Your icons are inside a folder as seen here
  • SVG matches the standards laid out here

Summary

Reorients subpath winding directions and removes fill-rule="evenodd" and clip-rule="evenodd" from icons/vscode/vscode-plain-wordmark.svg and icons/vscode/vscode-plain.svg so that all inner counter holes render properly under the nonzero fill rule used by icon fonts.

Problem

In the generated icon font (fonts/devicon.svg), vscode-plain-wordmark has the inner counters of "d" (in "Studio") and "e" (in "Code") filled in solid instead of hollow. Additionally, both vscode-plain-wordmark.svg and vscode-plain.svg fail check_icon.js and validate.js due to disallowed fill-rule="evenodd" and clip-rule="evenodd" attributes on font-version <path> elements.

Root Cause

Both icons/vscode/vscode-plain-wordmark.svg and icons/vscode/vscode-plain.svg relied on fill-rule="evenodd" and clip-rule="evenodd" with inconsistent subpath winding directions (e.g., outer contours and inner holes sharing the same winding direction in the emblem, and mixed orientations across the wordmark glyphs). Icon fonts use the nonzero winding rule rather than evenodd, causing the font build to fill inner counters in "d" and "e" in vscode-plain-wordmark and the inner triangle in vscode-plain when evenodd is not honored.

Solution

  • Reoriented all subpaths in icons/vscode/vscode-plain-wordmark.svg (19 outer contours clockwise, 7 inner holes counter-clockwise) and icons/vscode/vscode-plain.svg (1 outer contour clockwise, 1 inner hole counter-clockwise) using paper.js (reorient(false, true)).
  • Removed fill-rule="evenodd" and clip-rule="evenodd" from both <path> elements so both SVGs conform to <svg xmlns viewBox> + <path d> and render identically under nonzero fill rules.
  • Optimized both SVGs with SVGO (.claude/skills/svg-icons/scripts/svgo.config.js, multipass, precision 3) with trailing newlines. Kept the existing monochrome fill unchanged to preserve exact visual appearance.

Testing

  • node .claude/skills/devicon-icon-review/scripts/check_icon.js vscode --repo . -> 0 errors (vscode: 0 errors, 8 warnings, 0 notes; remaining warnings are pre-existing on vscode-original*.svg and missing explicit fill="#3C99D4").
  • node .claude/skills/svg-icons/scripts/validate.js icons/vscode/vscode-plain-wordmark.svg icons/vscode/vscode-plain.svg -> 2 files, 0 failing.
  • node .claude/skills/svg-icons/scripts/optimize.js --check icons/vscode/vscode-plain-wordmark.svg icons/vscode/vscode-plain.svg -> ok (0 bytes (0%) savings).
  • python3 ./.github/scripts/check_icon_pr.py "update icon: vscode (plain, plain-wordmark)" ./icons ./devicon.json -> Task completed., err_messages.txt empty (0 bytes).
  • Rendered both SVGs via .claude/skills/svg-icons/scripts/render.js (including zoomed wordmark at --zoom 0,115,128,13) and verified visually on light and dark backgrounds at 128px, 32px, and 16px, and checked pixel diffs with pixdiff.js (16 / 3 anti-aliasing channel diffs out of 262,144 from arc-to-cubic conversion).

This PR closes #2329

Closes #2329

Link to prove your SVG is correct and up-to-date.

Official Visual Studio Code icon geometry is unchanged from the existing SVGs in icons/vscode/ (originally updated in #1524); only subpath winding and fill-rule/clip-rule attributes were fixed for font compatibility.

Notes

@JagguDada01

Copy link
Copy Markdown
Author

Closing PR as requested (prepared by an AI assistant on behalf of @JagguDada01).

@JagguDada01
JagguDada01 deleted the fix/vscode-plain-wordmark-winding branch November 27, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant