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

chore: replace text paths with text element #14

Merged
merged 2 commits into from
May 20, 2024

Conversation

SethFalco
Copy link
Member

@SethFalco SethFalco commented May 20, 2024

Makes two minor changes:

  • In the Open Graph tags, the description now specifies "vector images" rather than just "vectors", which should be clearer.
  • In svgo_hackerman.svg, Inkscape converted the text svgo --help to paths. This makes sense in most cases, so clients don't have the specific font installed that was used during the SVGs creation. However, for us the literal text with a font stack specified in CSS is perfectly acceptable. This reduces the filesize by 4.1 KB or around 13%.
    • This works as expected when standalone, inline an HTML document, and when used as a data URI in an <img> tag.

Before

After

@SethFalco SethFalco merged commit 2b0793d into svg:main May 20, 2024
1 check passed
@SethFalco SethFalco deleted the chore/text branch May 20, 2024 10:05
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.

None yet

1 participant