font-awesome

How do I add font-awsome to Ionic 4 project?

我的梦境 提交于 2019-12-13 00:44:45
问题 Does anyone knows the way of adding font-awsome to new Ionic 4 project (currently I'm using 4.0.0-beta.15 ). Adding it to v3 is nicely explained here: https://charlouze.github.io/ionic/2017/05/31/Ionic-3-and-Font-Awesome.html and it works great for Ionic V3, but unfortunatelly not V4. 回答1: install font-awesome npm install font-awesome --save --save-exact copy.config.js copyFonts: { src: [ '{{ROOT}}/node_modules/ionicons/dist/fonts/**/*', '{{ROOT}}/node_modules/ionic-angular/fonts/**/*', '{

Attemping to change attributes of $(this) inside success function

五迷三道 提交于 2019-12-12 19:13:48
问题 I'm attempting to change an icon based on a result from clicking on the previous icon. Here is my code: $(document).on('click','.switchButton', function(){ $(this).attr('data-prefix', 'fas').attr('data-icon', 'spinner').addClass('fa-pulse'); $.ajax({ url: 'tasks/update_table.php', type: 'post', data: { "uid": $(this).attr('data-uid')}, success: function(response) { if(response == 1) { $(this).attr('data-prefix', 'far').attr('data-icon', 'check-square'); } else { $(this).attr('data-prefix',

Use Glyphicons or Font-Awesome in pdfmake prints

坚强是说给别人听的谎言 提交于 2019-12-12 09:57:20
问题 I am developing a webapp using pdfmake for the printing. In more recent days I started using Glyphicons and Font-Awesome-Icons in my project, now I need those in the printout as well. But I can't really imagine what would be the best way to achieve this. I see two possibilities: Include the respective Font in pdfmake and create something like a map which determines the Icons font-representation by it's class name (because this is what is used in the app). In this case I could still use the

Font Awesome icons disappear after refresh of browser

拟墨画扇 提交于 2019-12-12 09:40:48
问题 My glyphicons disappear from the Internet Explorer 11 webpage after refreshing the page (F5). But when I open the webpage (after first refreshing it)by clicking on its menu link, the page is displayed correctly . . . In chrome this works just fine even after pressing F5. I'm running Bootstrap v3.3.1. I've taken sample code from http://fortawesome.github.io/Font-Awesome/examples/ but even this simple code does not work after pressing F5 <div class="row"> <class ="col-lg-12"> <div class="list

Rails compiler error with fontawesome when deploy to heroku

老子叫甜甜 提交于 2019-12-12 09:14:22
问题 I got an error message when I try to push my Rails project to Heroku. I am using Fontawesome, it works prefectly in local environment but just won't push to Heroku. Running: rake assets:precompile I, [2016-03-22T05:59:25.096354 #366] INFO -- : Writing /tmp/build_3e31f1bb8b828cb787890706e9ec589b/public/assets/FontAwesome-0d34da07e5cbcb4ff087b397966a9f9ffb4d6ed7c7060568565203c02f3fee11.otf I, [2016-03-22T05:59:25.099701 #366] INFO -- : Writing /tmp/build_3e31f1bb8b828cb787890706e9ec589b/public

Font awesome icon showing as square in chrome?

送分小仙女□ 提交于 2019-12-12 08:28:54
问题 I am trying to use a font-awsome icon within a button. The icon works fine in firefox but when I use it in chrome it appears as a square. I have looked around and the only thing that I found was that the paths to the fonts may not be right however I have since tried the cdn version here and it is still working in firefox but not in chrome. Also I have tried the same stylesheets in a static html file on my computer it is working fine. Here is an example of the html being used: <a id="btnLogin"

Include @fortawesome/fontawesome to angular-cli project

扶醉桌前 提交于 2019-12-12 07:26:15
问题 I'm trying to include font awesome 5 to my angular-cli project (1.6.0) running Angular >5.0.0. I used (as described): yarn config set @fortawesome:registry https://npm.fontawesome.com/xxxxx-xxxx-xxx-xxx-xxxxxxx yarn add @fortawesome/fontawesome yarn add @fortawesome/fontawesome-pro-light It gets the packages successfully. Now I want to include the package to my angular-cli. In my app.component.ts I tried to do (as described at: https://www.npmjs.com/package/@fortawesome/fontawesome): import

How to use Font Awesome in QML

梦想的初衷 提交于 2019-12-12 06:46:27
问题 Does anyone knows how to use Font Awesome in QML? I couldn't find any document or any information how to use Font Awesome in QML. 回答1: What I like to do is use fontello to create a minimal set of icons, rather than downloading the whole set from FontAwesome. Using the texteditor example as a reference: Download the font and store it somewhere in your project directory. In the example, it's in the fonts folder. If you're using .qrc files in your project, add it to one of those. There are two

Font Awesome icons disappeared. Strange characters (Big Commerce)

我只是一个虾纸丫 提交于 2019-12-12 05:38:08
问题 After doing a few and simple css edits on a Big Commerce site, the search and cart icons suddenly disappeared. They are now displayed as strange characters. I went into the Big Commerce design backend and did not find anything strange into the code. When inspect the html and css code in the browser the icons are called properly: <i class="fa fa-search"></i> What could be wrong? Url to the site is Url template demo url is enter link description here Any help is much appreciated, new to Big

How can I display a font awesome glyph in XAML/C#

大兔子大兔子 提交于 2019-12-12 04:37:57
问题 I have tried many things in Visual Studio, but I still can not display a glyph. Do I need to add a NuGet package? Which? Do I need a 'using ...;' in C#? Do I need a 'xmlns:...' in XAML? Should I display it with a "Label"? I know in HTML, you just add a class to your element. But I am stumped in XAML. (It's cross-platform, right?) This should a simple thing but I can not get any answers to function. Please provide an answer if you can do this and answer all points. 回答1: There is a correct