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

Support new font families #39

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

Conversation

RentecTravis
Copy link

@RentecTravis RentecTravis commented Dec 11, 2024

Support 8 new font families added since 6.4 (changelog):

  • sharp-thin
  • duotone-light
  • duotone-regular
  • duotone-thin
  • sharp-duotone-light
  • sharp-duotone-regular
  • sharp-duotone-solid
  • sharp-duotone-thin

Fixes #38

Copy link
Owner

@omacranger omacranger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Just a few comments. I would also recommend updating the devdeps with the newer dependency version but I can do that too once it's merged if that's easier.

{
"sharp-duotone-solid": ["star"],
},
[{ family: "fa-sharp-duotone-solid-900.woff2", icon: "star" }]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need .woff2 here since the font file should be handled by the helper

Comment on lines +196 to +201
{ family: "fa-duotone-regular-400.woff2", icon: "star" },
{ family: "fa-duotone-light-300.woff2", icon: "star" },
{ family: "fa-duotone-thin-100.woff2", icon: "star" },
{ family: "fa-sharp-duotone-regular-400.woff2", icon: "star" },
{ family: "fa-sharp-duotone-light-300.woff2", icon: "star" },
{ family: "fa-sharp-duotone-thin-100.woff2", icon: "star" },
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with .woff2 file extensions here

itGTE("6.7.0", "pro")(
"should add requested glyphs for new font styles in duotone-(regular|light|thin) and sharp-duotone-(regular|light|thin)",
async () => {
expect.assertions(1);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expect.assertions(6);

This will create 6 dynamic assertions so this expect should reflect that

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.

Support new font styles in FontAwesome 6.7
2 participants