font-awesome

Is it actually possible to make Detox/Jest tests pass with a React Native app running with Expo?

我们两清 提交于 2020-01-03 16:53:18
问题 I'm attempting to create an automated UI test suite for my React Native app with Expo. I have looked everywhere for good tutorials but when I get to the actual test writing portion, my tests never even run because of environment issues such as "Unexpected Identifier/Token" on import Icon from... or other stupid issues that I cannot find any tutorials on how to fix them. I literally have spent a week trying to resolve these issues. I am new to React Native and new to Jest/Detox/Expo Here's my

Handle dependent files with Grunt and rewrite paths

邮差的信 提交于 2020-01-03 05:55:06
问题 This is my Gruntfile.js ( assets is the Bower folder): module.exports = function(grunt) { grunt.initConfig({ distFolder: 'dist', pkg: grunt.file.readJSON('package.json'), concat: { options: { separator: ';', }, dist: { src: [ 'assets/jquery/dist/jquery.js', 'assets/jquery-ui/ui/jquery-ui.js', 'assets/jsplumb/dist/js/jquery.jsPlumb-1.5.5.js' ], dest: '<%= distFolder %>/main.js', }, }, uglify: { dist: { src: 'dist/main.js', dest: 'dist/main.min.js', }, }, cssmin: { combine: { files: { 'dist

Font awesome icon button with label below

橙三吉。 提交于 2020-01-03 03:40:06
问题 I need to create a button with a font awesome icon and a text below that icon for a navigation menu. The result should look like i.e. the icons in the MS ribbon: I also need the arrow below of that (ie. "new"-button) for more options... This is how I would create the button: JSFiddle: http://jsfiddle.net/3GMjp/77/ .my-fancy-container { display: inline-block; border: 1px solid #ccc; border-radius: 6px; margin: 60px; padding: 10px; } .my-text { font-family: "Courier-new"; } .my-icon { vertical

FontAwesome SVG icons with Vuetify - how to use within v-icon/prepend-icon?

痴心易碎 提交于 2020-01-02 13:15:19
问题 I'm new to Vue, can't find the exact answer how to use FA SVG icons in v-icon and prepend-icon. If i use: <font-awesome-icon :icon="dekstop" color="gray"></font-awesome-icon> Icons are displayed, but how i can use FA SVG icons in v-icon and prepend-icon? Sample: <v-autocomplete v-model="replUser" :items="users" color="accent white--text" label="User" prepend-icon="dekstop></i>" // i can use material font icons here, but FA SVG not worked > </v-autocomplete> my main.js: import Vue from 'vue'

Using FontAwesome 5.x with PrimeFaces 6.2+

自作多情 提交于 2020-01-02 11:05:14
问题 I was checking this question: How to use Font Awesome from webjars.org with JSF ant this question: FontAwesome with PrimeFaces with its answer https://stackoverflow.com/a/33070133/5113188 Hi I want to use the new icons of https://fontawesome.com/changelog/latest 5.5 version In my pom.xml file project... <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <version>6.2</version> </dependency> <dependency> <groupId>org.primefaces.extensions</groupId> <artifactId

Custom font not replicating font awesome in website

回眸只為那壹抹淺笑 提交于 2020-01-02 09:13:18
问题 I created a custom vector font and trying to use it in some places that font awesome doesnt fit. However the font icons dont display property like the font awesome ones do. The CSS seems to be exact but I cant tell what is causing the issue. Below you will see the custom icon circled, while the others are font awesome. The icon just wont center like the font awesome icons. You can find this markup on this page: Vegas Finals The HTML <i> looks centered, but the :before pushes the actual icon

Font awesome icons becomes invisible in IE after refresh

别来无恙 提交于 2020-01-02 05:34:08
问题 I am facing the issue with IE browser.It is loading the icons for first time load. but if i refresh the page the icons are not visible. Can you please tell me how to fix this from server side? This is related to Font-awesome disappears after refresh for all ie browsers ie11,ie10,ie9 . but it does nt have the complete solution 回答1: We had this same problem because we were storing the FA CSS file locally. The font @import 's would fail on refreshes, probably because it does a different HTTP

i3blocks battery script, using font awesome doesn't work with some unicodes

给你一囗甜甜゛ 提交于 2020-01-02 03:40:08
问题 I use font-awesome 4.4.0 and have extended the default i3blocks battery script with the new battery icons. All seem to work correctly but the fa-battery-half Unicode: f242 , which renders the script useless. The unicode also seems to refer to the character  . In the terminal it crashes with: $ perl /usr/share/i3blocks/battery Wide character in print at /usr/share/i3blocks/battery line 65. 28%  (01:02) Wide character in print at /usr/share/i3blocks/battery line 66. 28%  #000000 The script

Add icons to JButton using custom font from AwesomeFont and unicode characters in Java Swing?

与世无争的帅哥 提交于 2020-01-02 00:53:19
问题 I have a JButton and I want to add an icon to it. I would like to use the font based icons from FontAwesome which provides a TrueType font file. The icon I am trying to add is the play button icon. The play button icon in the css file for FontAwesome is \f04b which I beleive translates to \uf04b in Java. This is how I am loading the font in the constructor of by IconButton base class. public class IconButton extends JButton { public IconButton() { try { InputStream in = this.getClass()

Font-Awesome for android

陌路散爱 提交于 2020-01-01 23:49:33
Font-Awesome 是为 Bootstrap 设计 的一个图标集合字体,里面包含了300多个常用图标。使用Font-Awesome还具有如下优点: 1. 减少了图标的绘制工作 2. 可以设置图标的颜色和大小 3. 减少了图标的大小并且可以减少apk的大小,只需要一个图标字体文件即可,不需要各种尺寸的图标文件了,比如 HDPI、XHDPI等各种尺寸的图标。 Font-Awesome的使用方式 到Font-Awesome 主页 下载Font-Awesome字体(fontawesome-webfont.ttf)文件并放到项目的assets目录下,找到需要用的图标对应的字符串( font-awsome-for-android 包含了一份图标和字符串的对应文件,最新的对应关系在下载的Font-Awesome字体中的css目录中的font-awesome.css文件中查找),在TextView中设置需要使用的图标文字,然后设置TextView的字体为自定义的Font-Awesome字体。 例如: 帮助 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 //在XML中使用 <TextView android:id= "@+id/textView1" android:layout_width= "wrap_content" android