In this recipe, we are going create an LED scoreboard similar to the ones used in basketball games by making a clever use of HTML web fonts. The main goal of the recipe is to get introduced to web fonts and the features they offer.
Tip
The full specification on web fonts can be found on W3C at http://www.w3.org/TR/css3-webfonts/.
Before staring, you need to get the font we are going to use in this example. The files can be retrieved from the examples code, and they all have a RADIOLAND
prefix.
To create the scoreboard, we will create an HTML page, a backing JavaScript code that will update the timers, and related data, as well as a CSS file that will use web fonts:
First, we will start with creation of the HTML page; in the
head
section, includestylesheet.css
and a dependency to jQuery<link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1...