Fontello : How to load and use fonts?
Problem :
You have downloaded the Fontello fonts that you wanted and now you want to get the fonts to display on your webpage. How to call the fonts?
Solution :
A typical Fontello font zip file should have directory structure that look like this :
Load the CSS file for the pages you want to use the fonts. For example, on this website. I would load the CSS file on the header section like this :
<link rel="stylesheet" type="text/css" media="screen" href="https://www.socketloop.com/public/assets/fonts/fontello/css/fontello.css">
The fontello.css file should be the default CSS file to load and it handles everything from there.
NOTE : adjust the include path(
href
) to suit your website structure.To invoke the font, you can use
class="fontello-icon-NAME"
in the place where you want the font to appear. For example, in this page Like Us On Facebook widget, the Facebook Fontello font is called by :<i class="fontello-icon-facebook></i>
Hope this simple tutorial can be useful to you.
Reference :
https://github.com/fontello/fontello/wiki/How-to-use-fontello-fonts-in-your-project
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+10.5k How to tell if a binary(executable) file or web application is built with Golang?
+17.4k Golang : Get path name to current directory or folder
+16.4k Golang : [json: cannot unmarshal object into Go value of type]
+5.5k Golang : Convert an executable file into []byte example
+7.6k Golang : How to capture return values from goroutines?
+5.8k Default cipher that OpenSSL used to encrypt a PEM file
+6.1k Ubuntu : connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream
+5.5k Unix/Linux : Use netstat to find out IP addresses served by your website server
+16.4k Golang : Login and logout a user after password verification and redirect example
+9.5k Golang : Underscore string example
+8k Golang : Go as a script or running go with shebang/hashbang style
+34.2k Golang : How to split or chunking a file to smaller pieces?