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 styles in FontAwesome 6.7 #38

Open
RentecTravis opened this issue Dec 11, 2024 · 0 comments · May be fixed by #39
Open

Support new font styles in FontAwesome 6.7 #38

RentecTravis opened this issue Dec 11, 2024 · 0 comments · May be fixed by #39

Comments

@RentecTravis
Copy link

These font files currently cannot be subsetted by this tool

  • fa-sharp-thin-100
  • fa-duotone-regular-400
  • fa-duotone-light-300
  • fa-duotone-thin-100
  • fa-sharp-duotone-solid-900
  • fa-sharp-duotone-regular-400
  • fa-sharp-duotone-light-300
  • fa-sharp-duotone-thin-100

Test script

import { fontawesomeSubset } from "fontawesome-subset"
import { rmSync } from "fs"

const outDir = "./fontsdir"

rmSync(outDir, { recursive: true, force: true })

fontawesomeSubset(
  {
      "sharp-thin": ["cog"],
      "duotone-regular": ["cog"],
      "duotone-light": ["cog"],
      "duotone-thin": ["cog"],
      "sharp-duotone-solid": ["cog"],
      "sharp-duotone-regular": ["cog"],
      "sharp-duotone-light": ["cog"],
      "sharp-duotone-thin": ["cog"],
  },
  outDir,
  { package: "pro", targetFormats: ["woff2"] }
)
  .then((success) => console.log(success))
  .catch((e) => console.error(e))

expected result

After running the test script ./fontsdir should have 8 woff2 files

actual result

After running the test script ./fontsdir has zero font files

@RentecTravis RentecTravis linked a pull request Dec 11, 2024 that will close this issue
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 a pull request may close this issue.

1 participant