Don't know if this is a bug or how it should work. But the fontawesome.css in the vendor folder has no font-face for the font files loaded.
Guess because brands.scss, regular.scss and solid.scss is not compiled into it.
Is this vendor library only supposed to be compiled into your own library or be able to used as standalone?
Font awesome icons are loaded when using the CSS.
The font files are not loaded.
Joomla 5.2.1
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
Information Required
|
In my component I'm building I want to use the vanilla fontawsome.css from the media/vendor folder. And right now it cannot be used as there is no font files loaded in it.
That is why I am questioning if it is meant to be used as standalone or should be compiled from the scss files.
After installation of Joomla the fonts (ttf, woff2) can be found in media/vendor/font-awesome-free/webfonts.
If they are not present in yours, then there might be an issue with your installation
Labels |
Added:
bug
|
Note: you can use
joomla-cms/templates/cassiopeia/joomla.asset.json
Lines 104 to 108 in e6518fb
In your template, the same as joomla cassiopeia do, which also includes some classes for core icon-
.
I think, the proper way here would be to build what you need based on the supplied scss files:
https://docs.fontawesome.com/web/use-with/scss
According to templates/cassiopeia/joomla.asset.json the file system/joomla-fontawesome.min.css is loaded
https://github.com/joomla/joomla-cms/blob/816cd8013012aa5faf21c53636a0a14f17caa64b/templates/cassiopeia/joomla.asset.json#L104C1-L108C6
The compiled file can be found in /media/system/css/joomla-fontawesome.min.css
in this file I can find a reference to the font-face... at least on my machine.
this is what I see on my machine.