CSS3 Web Fonts Primer Tutorial

CSS3 Web Fonts Primer Tutorial

CSS3 Web Fonts Primer Tutorial

CSS3 brought with it more possibilities regarding the use of Web Fonts (separate to your default fonts (or “web safe” fonts, that are usually installed)), and the use of …

  1. CSS3 @font-face rule
  2. linking of that @font-face rule to a “class definition”

… as per … this code snippet from within today’s HTML within its <head> and </head> and within that <style> and </style>…


@font-face {
font-family: dashiconsFont;
src: url(//www.rjmprogramming.com.au/ITblog/wp-includes/fonts/dashicons.woff);
}

.dashicons {
font-family: dashiconsFont;
}

So what’s the deal today? Well, we thought we’d show you some CSS3 Web Fonts in action, those being the ones that happen to be hanging around our (Apache hosting PHP and MySql) web server … minding their own business … but happening during installs of CMS products like WordPress or Joomla.

But how do you search for a CSS3 Web Font on your web server?

we hear you say … plaintively.

Well, the CSS3 Web Fonts are represented by files with the .woff extension … no, not .woof Nala.

So, on our Linux box (ie. our Linux web server computer) we gain access via sshas you would … and issue the command (bold bits optional) …


find / -name '*.woff' 2> /dev/null | grep -v '.woof'

… to help you (ie. your job here is to substitute your domain’s document root web server path for domain landing page URL) determine URL values you can place into the CSS3 @font-face rule src property. If this is not making sense, take some time to read Cassini++ WebServer Primer Tutorial.

If the web server is Windows, and you’ve ssh‘ed to it, try the (DOS) command …


dir c:\*.woff /s /e | find /V '.woof'

To read more about ssh access to web servers, at this blog, please read Web Server Access Primer Tutorial.

Yes … we are behoven … here is the behoved HTML and Javascript and CSS(3) programming source you could call css3_webfonts_rjm.html with this live run link.

If this was interesting you may be interested in this too.

This entry was posted in eLearning, Operating System, Tutorials and tagged , , , , , , , . Bookmark the permalink.

4 Responses to CSS3 Web Fonts Primer Tutorial

  1. I am just writing to let you know what a cool experience my child went through studying your web page. She came to find a lot of pieces, which included what it is like to have an amazing giving spirit to let the rest clearly comprehend several tricky things. You truly exceeded our own desires. I appreciate you for supplying the necessary, trusted, informative and in addition unique guidance on that topic to Sandra.

  2. Full File says:

    If you desire to take a great deal from this paragraph then you have to apply these techniques to your won web site.|

  3. There several intriguing factors on time on this page but I don’t identify if these center to heart. It is possible to discover some validity but I most surely will take hold opinion till I look into it additional. Great post , thanks so we want extra! Integrated with FeedBurner also

  4. Vernie Gola says:

    you are truly a excellent webmaster. The web site loading pace is amazing. It seems that you’re doing any unique trick. Moreover, The contents are masterpiece. you’ve done a great process on this subject!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>