font-awesome-5

Why font awesome icon shows empty squares?

為{幸葍}努か 提交于 2020-05-23 21:10:51
问题 I would like to make a combination of icons via FA stack but it does not work. I have pure example from documentation and it shows me only empty squares. Code looks like: <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> <span class="fa-stack" style="vertical-align: top;"> <i class="far fa-circle fa-stack-2x"></i> <i class="fas fa-flag fa-stack-1x"></i> </span> and the result looks like on the picture below (last icon on the line). What

Multiple font-awesome icons sharing a background gradient

大兔子大兔子 提交于 2020-05-17 03:12:25
问题 I've been crawling the web for about 2 hours now, trying to find a solution. So I apologise, my starting code isn't overly helpful. I've tried using background-clip, multiple.js, fill, and just can't get the effect I'm looking for. In fact, I currently can't even replicate: https://stackoverflow.com/a/56916981 with Font Awesome 5 and the pesky SVGs. Here's where I'm currently at: body{ font-size:150px; } svg { background: -webkit-linear-gradient(225deg, rgb(251, 175, 21), rgb(251, 21, 242),

Multiple font-awesome icons sharing a background gradient

给你一囗甜甜゛ 提交于 2020-05-17 03:11:08
问题 I've been crawling the web for about 2 hours now, trying to find a solution. So I apologise, my starting code isn't overly helpful. I've tried using background-clip, multiple.js, fill, and just can't get the effect I'm looking for. In fact, I currently can't even replicate: https://stackoverflow.com/a/56916981 with Font Awesome 5 and the pesky SVGs. Here's where I'm currently at: body{ font-size:150px; } svg { background: -webkit-linear-gradient(225deg, rgb(251, 175, 21), rgb(251, 21, 242),

Font Awesome in CSS pseudo elements not showing [duplicate]

大憨熊 提交于 2020-04-16 04:26:06
问题 This question already has answers here : Font Awesome 5 on pseudo elements shows square instead of icon (1 answer) Font Awesome 5 Choosing the correct font-family in pseudo-elements (1 answer) Closed 2 years ago . I have the font-awesome free version css linked in my html/php index, so if I call any FA icons on that page directly they work fine. However, I'm trying to apply some to pseudo elements in my css and I can't get it to work. It only shows an empty square/box. I've looked at the docs

Use font awesome 5 on angular material 7

和自甴很熟 提交于 2020-04-08 01:53:03
问题 I'm using angular 7.0.1 and angular material 7.0.2, I want to add the font awesome 5.4.2 icons and I'm trying to follow the steps on fontawesome web but I can't get the font awesome icon font. first: npm install --save-dev @fortawesome/fontawesome-free then in styles.scss add: @import '~@fortawesome/fontawesome-free/scss/fontawesome.scss'; and in _variables.scss add: $fa-font-path: '~@fortawesome/fontawesome-free/webfonts'; now in app.component.ts add: import { MatIconRegistry } from "

Use font awesome 5 on angular material 7

纵饮孤独 提交于 2020-04-08 01:51:47
问题 I'm using angular 7.0.1 and angular material 7.0.2, I want to add the font awesome 5.4.2 icons and I'm trying to follow the steps on fontawesome web but I can't get the font awesome icon font. first: npm install --save-dev @fortawesome/fontawesome-free then in styles.scss add: @import '~@fortawesome/fontawesome-free/scss/fontawesome.scss'; and in _variables.scss add: $fa-font-path: '~@fortawesome/fontawesome-free/webfonts'; now in app.component.ts add: import { MatIconRegistry } from "

Use font awesome 5 on angular material 7

邮差的信 提交于 2020-04-08 01:51:18
问题 I'm using angular 7.0.1 and angular material 7.0.2, I want to add the font awesome 5.4.2 icons and I'm trying to follow the steps on fontawesome web but I can't get the font awesome icon font. first: npm install --save-dev @fortawesome/fontawesome-free then in styles.scss add: @import '~@fortawesome/fontawesome-free/scss/fontawesome.scss'; and in _variables.scss add: $fa-font-path: '~@fortawesome/fontawesome-free/webfonts'; now in app.component.ts add: import { MatIconRegistry } from "

Use font awesome 5 on angular material 7

五迷三道 提交于 2020-04-08 01:49:01
问题 I'm using angular 7.0.1 and angular material 7.0.2, I want to add the font awesome 5.4.2 icons and I'm trying to follow the steps on fontawesome web but I can't get the font awesome icon font. first: npm install --save-dev @fortawesome/fontawesome-free then in styles.scss add: @import '~@fortawesome/fontawesome-free/scss/fontawesome.scss'; and in _variables.scss add: $fa-font-path: '~@fortawesome/fontawesome-free/webfonts'; now in app.component.ts add: import { MatIconRegistry } from "

fontawesome with vue do not work

怎甘沉沦 提交于 2020-03-22 03:46:07
问题 Is there a way to install fontawesome in Vue? I tried few tutorials but they are all useless and do not work or icons are empty or plugin does not render at all!!!! I don't want to import the font by script, I want to install it in my application. I tried this tutorial (https://github.com/FortAwesome/vue-fontawesome) but whatever I did the icons do not render, maybe someone can point me to the solution? Here is my code but the icons even do not render: import FontAwesomeIcon from '

How to use Font Awesome 5 icons in Laravel 6

浪尽此生 提交于 2020-03-19 06:37:51
问题 I already installed Fontawesome in my package.json . "devDependencies": { "@fortawesome/fontawesome-free": "^5.11.2" , //etc. }, "dependencies": { "font-awesome": "^4.7.0" } and import it to my app.scss @import "~font-awesome/scss/font-awesome.scss"; I tried <i class="fa fa-edit"></i> and <i class="fas fa-edit"></i> but it just shows like this below, someone knows how to do this correctly? 回答1: Firstly import all fontawesome-icons in your app.scss @import '~@fortawesome/fontawesome-free/scss