Font Awesome 5 font-family issue

Your Unicode is wrong f107 a::after { content: “\f007″; font-family: ‘Font Awesome\ 5 Free’; } <link href=”https://use.fontawesome.com/releases/v5.0.1/css/all.css” rel=”stylesheet”> <a>User</a> <i class=”fas fa-shopping-basket”></i> Or in other case, font-weight: 900; will save you. Some icons in font awesome 5 not working without font-weight: 900;. a::after { content: “\f007”; font-family: ‘Font Awesome\ 5 Free’; font-weight: 900; }

How do I set ‘semi-bold’ font via CSS? Font-weight of 600 doesn’t make it look like the semi-bold I see in my Photoshop file

In CSS, for the font-weight property, the value: normal defaults to the numeric value 400, and bold to 700. If you want to specify other weights, you need to give the number value. That number value needs to be supported for the font family that you are using. For example you would define semi-bold like … Read more

How do I set the colour of a label (coloured text) in Java?

For single color foreground color label.setForeground(Color.RED) For multiple foreground colors in the same label: (I would probably put two labels next to each other using a GridLayout or something, but here goes…) You could use html in your label text as follows: frame.add(new JLabel(“<html>Text color: <font color=”red”>red</font></html>”)); which produces:

Finding out what characters a given font supports

Here is a method using the fontTools Python library (which you can install with something like pip install fonttools): #!/usr/bin/env python from itertools import chain import sys from fontTools.ttLib import TTFont from fontTools.unicode import Unicode with TTFont( sys.argv[1], 0, allowVID=0, ignoreDecompileErrors=True, fontNumber=-1 ) as ttf: chars = chain.from_iterable( [y + (Unicode[y[0]],) for y in x.cmap.items()] … Read more

Font-Awesome error 404 on fonts

Better yet, add this section to your web.config and then those mime types will be automatically added to IIS on any server you deploy to. (The remove is to avoid a duplicate mime type error in case they are already there) <system.webServer> <staticContent> <remove fileExtension=”.woff” /> <mimeMap fileExtension=”.woff” mimeType=”application/font-woff” /> <remove fileExtension=”.woff2″ /> <mimeMap fileExtension=”.woff2″ … Read more

WPF global font size

I’d do it this way: <Window.Resources> <Style TargetType=”{x:Type Control}” x:Key=”baseStyle”> <Setter Property=”FontSize” Value=”100″ /> </Style> <Style TargetType=”{x:Type Button}” BasedOn=”{StaticResource baseStyle}”></Style> <Style TargetType=”{x:Type Label}” BasedOn=”{StaticResource baseStyle}”></Style> <Style TargetType=”{x:Type TextBox}” BasedOn=”{StaticResource baseStyle}”></Style> <Style TargetType=”{x:Type ListView}” BasedOn=”{StaticResource baseStyle}”></Style> <!– ComboBox, RadioButton, CheckBox, etc… –> </Window.Resources> That way, if I want to change ALL the controls, I’d just have … Read more

How can I use custom fonts in an HTML5 Canvas element?

I’ve thrown together a simple demo on jsfiddle here showing how to do this with @font-face: http://jsfiddle.net/zMKge/ Opera also has a simple tutorial on using <canvas>, including the text API. CSS: @font-face { font-family: ‘KulminoituvaRegular’; src: url(‘http://www.miketaylr.com/f/kulminoituva.ttf’); } Javascript: var ctx = document.getElementById(‘c’).getContext(‘2d’); var kitty = new Image(); kitty.src=”http://i954.photobucket.com/albums/ae30/rte148/891blog_keyboard_cat.gif”; kitty.onload = function(){ ctx.drawImage(this, 0,0,this.width, this.height); … Read more

Languages supported by “latin” vs “latin-extended” glyphs in fonts on Google Web Fonts?

Latin aka Unicode Latin1-Supplement (U+0080 to U+00FF) is meant to support primarily Western European languages (as you mentioned French, German, Spanish, also Portuguese, Italian, Irish, Icelandic, languages of Scandinavian countries and unintentionally also other languages mentioned in the list below). English is supported by standard ASCII. ASCII (first 127 chars, 95 of them are graphemes … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)