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 support for multiple font styles #212

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

LitoMore
Copy link
Member

@LitoMore LitoMore commented Sep 11, 2024

Related to #222
Resolves #211

Get a preview build

Download it from: simple-icons-font-multi-styles.zip

Changes

  • This changed the default font style to the same aspect ratio as the icon. Users still can use the squared version with the SimpleIcons-Squared.[ext] font file
  • Re-organized the font file locations since we added a new style
  • Specify the font-style in the font SVG template

Web browser preview

Typeface preview

Before After

File tree

font
├── simple-icons.css
├── simple-icons.min.css
├── eot
│   ├── SimpleIcons-Regular.eot
│   └── SimpleIcons-Squared.eot
├── otf
│   ├── SimpleIcons-Regular.otf
│   └── SimpleIcons-Squared.otf
├── svg
│   ├── SimpleIcons-Regular.svg
│   └── SimpleIcons-Squared.svg
├── ttf
│   ├── SimpleIcons-Regular.ttf
│   └── SimpleIcons-Squared.ttf
├── woff
│   ├── SimpleIcons-Regular.woff
│   └── SimpleIcons-Squared.woff
└── woff2
    ├── SimpleIcons-Regular.woff2
    └── SimpleIcons-Squared.woff2

@LitoMore LitoMore force-pushed the aspect-ratio-viewbox branch 2 times, most recently from a873aae to 1d8c5e4 Compare December 28, 2024 14:34
@LitoMore LitoMore changed the title Use a viewbox with the same aspect ratio as the icon entity Add support for multiple font styles Dec 28, 2024
@LitoMore LitoMore marked this pull request as ready for review December 28, 2024 15:04
@LitoMore LitoMore requested a review from mondeja December 28, 2024 15:04
@LitoMore LitoMore added the enhancement New feature or request label Dec 28, 2024
@LitoMore LitoMore force-pushed the aspect-ratio-viewbox branch 3 times, most recently from 94cf17f to 9d85bcd Compare December 28, 2024 16:10
@LitoMore LitoMore force-pushed the aspect-ratio-viewbox branch from 9d85bcd to a32ed69 Compare December 29, 2024 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use a viewbox with the same aspect ratio as the icon entity
1 participant