-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Fontawesome Pro v6 is not working #12834
Comments
Me too. |
Mee too. Need to use FontAwesome Pro v6 asap with Amazing Quasar ! ;) |
ping @hawkeye64 |
@VictorLNoCapInc <q-icon name="far fa-bell" /> Can you tell me if that also works or does not? |
I don't have the issue too with FontAwesome V6 regular. I only have it with FA v6 PRO. |
And old way is working well. |
Yes, thank you. That would be helpful to me. Just ping me on Discord. |
<div class="full-width row justify-evenly items-center q-pa-md q-gutter-sm">
<div class="column items-center">
fa-regular fa-bell
<q-icon name="fa-regular fa-bell" size="lg" />
</div>
<div class="column items-center">
fa-brands fa-twitter
<q-icon name="fa-brands fa-twitter" size="lg" />
</div>
<div class="column items-center">
fa-regular fa-bridge-suspension
<q-icon name="fa-regular fa-bridge-suspension" size="lg" />
</div>
<div class="column items-center">
fa-solid fa-bridge-suspension
<q-icon name="fa-solid fa-bridge-suspension" size="lg" />
</div>
<div class="column items-center">
fa-light fa-bridge-suspension
<q-icon name="fa-light fa-bridge-suspension" size="lg" />
</div>
<div class="column items-center">
fa-thin fa-bridge-suspension
<q-icon name="fa-thin fa-bridge-suspension" size="lg" />
</div>
<div class="column items-center">
fa-duotone fa-bridge-suspension
<q-icon name="fa-duotone fa-bridge-suspension" size="lg" />
</div>
</div>
``` |
I have pushed the commit and will be in the next Quasar release. |
@VictorLNoCapInc Also, please update your @quasar/cli
|
Here is my boot file if anyone is interested: import { boot } from 'quasar/wrappers'
import '@fortawesome/fontawesome-pro/css/fontawesome.css'
import '@fortawesome/fontawesome-pro/css/light.css'
import '@fortawesome/fontawesome-pro/css/brands.css'
import '@fortawesome/fontawesome-pro/css/solid.css'
import '@fortawesome/fontawesome-pro/css/regular.css'
import '@fortawesome/fontawesome-pro/css/thin.css'
import '@fortawesome/fontawesome-pro/css/duotone.css'
// "async" is optional;
// more info on params: https://v2.quasar.dev/quasar-cli/boot-files
export default boot(async (/* { app, router, ... } */) => {
// something to do
}) And, you have to do this before adding the package to your package.json:
As specified here: https://fontawesome.com/docs/web/setup/packages#set-up-npm-token-for-all-projects |
Fix will be available in Quasar v2.6.2 |
@hawkeye64 I need tree shaking, the assets for Font-Awesome are huge for the entire pro set, considering there are 26k icons and more coming. How is this doable with SVGs? I've managed to pull out the code and related utils from https://github.com/quasarframework/quasar/blob/dev/extras/build/fontawesome-v6.js and have successfully generated the equivalent files of https://github.com/quasarframework/quasar/tree/dev/extras/fontawesome-v6 (minus font assets that I don't want/need), e.g: I'm importing these into my project and my duotone items are not showing as duotone:
Expected output is: It seems that the SVG extraction process simply grabs the PATH of the SVG image and assigns it to the const variable. I can't see how font-awesome utilities such as changing opacity via I've no idea where I go from here - I need font awesome duotone icons. The only thing I can think of is to ditch |
What happened?
I tried to install fontawesome-pro v6 following that guide :
https://quasar.dev/options/installing-icon-libraries#using-fontawesome-pro
But when I try to display simple icon such as :
<q-icon name="fa-regular fa-bell" />
The icon shows a small cube.
What did you expect to happen?
I expect to get fontawesome v6 pro icons
Reproduction URL
https://codesandbox.io/s/fontawesome-v6-pro-r41uce
But I didn't added my private token for fontawesome pro... So Reproduction project is just to see other files.
How to reproduce?
Just create from scratch a new Quasar project,
Then Follow https://quasar.dev/options/installing-icon-libraries#using-fontawesome-pro steps with your pro token.
Then add icon on from page:
<q-icon name="fa-regular fa-bell" />
And see result.
Flavour
Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)
Areas
Quasar Extras (@quasar/extras)
Platforms/Browsers
Chrome
Quasar info output
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: