Beginning Android Web Apps Development: Develop for Android using HTML5, CSS#, and Javascript by Jon Westfall Rocco Augusto Grant Allen

Beginning Android Web Apps Development: Develop for Android using HTML5, CSS#, and Javascript by Jon Westfall Rocco Augusto Grant Allen

Author:Jon Westfall, Rocco Augusto, Grant Allen
Language: eng
Format: epub, mobi
Publisher: Apress®
Published: 2012-04-28T16:00:00+00:00


Web Fonts

You might have remembered that we briefly touched base on working with web fonts in Chapter 2 when building our “Who’s That Tweet?” application. Over the past year and a half, all of the most popular Desktop browsers have rolled out updates and can now use web fonts in their markup. Almost all of Android’s mobile browsers can use them as well.

Adding web fonts to your web site or application is easy as pie, as seen in Listing 8–1.

Listing 8–1. Loading the Droid Sans font into our web browser with a little CSS magic.

<style type="text/css">

@font-face {

font-family: 'Droid Sans';

font-style: normal;

font-weight: normal;

src: local('Droid Sans'), local('DroidSans'), url('droidsans.woff') format('woff');

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.