Skip to content

Instantly share code, notes, and snippets.

@mattwiebe
Created September 11, 2010 20:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattwiebe/575532 to your computer and use it in GitHub Desktop.
Save mattwiebe/575532 to your computer and use it in GitHub Desktop.
/**
* Lucida Grande doesn't have italics, but is preferable for its small size awesomeness.
* Lucida Sans has lovely italics.
* Let's use @font-face to combine them
*/
body {
font-family:'Lucida Improved','Lucida Grande','Lucida Sans','Lucida Sans Unicode',Verdana,sans-serif;
}
@font-face {
font-family:'Lucida Improved';
src: local('LucidaSans-DemiItalic'), local('Lucida Sans Demibold Italic');
font-weight:bold;
font-weight:italic;
}
@font-face {
font-family:'Lucida Improved';
src: local('LucidaGrande-Bold'), local('Lucida Grande Bold'), local('LucidaSans-Demi'), local('Lucida Sans Demibold Roman');
font-weight:bold;
font-style:normal;
}
@font-face {
font-family:'Lucida Improved';
src: local('LucidaSans-Italic'), local('Lucida Sans Italic'), local('LucidaGrande'), local('Lucida Grande');
font-style:italic;
font-weight:normal;
}
@font-face {
font-family:'Lucida Improved';
src: local('LucidaGrande'), local('Lucida Grande');
font-style:normal;
font-weight:normal;
}
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Lucida Improved Font Stack</title>
<link rel="stylesheet" href="lucida-improved.css" />
<style type="text/css">
body {margin:1em auto 2em; width:67%; background-color:#fff; font-size:16px; line-height:1.4;}
h1 {margin:0;}
h2 {margin:0 0 1em;}
a {color:#900;}
.italic {font-style:italic;}
.bold {font-weight:bold;}
</style>
</head>
<body>
<h1>Lucida Improved</h1>
<h2 class="italic">Because Italics are Better than Oblique</h2>
<p>Pellentesque habitant <em>morbi</em> tristique senectus et netus et <strong>malesuada fames</strong> ac turpis egestas. Vestibulum tortor quam, feugiat vitae, <strong><em>ultricies eget</em></strong>, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p class="italic">Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p class="bold">Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<p class="bold italic">Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>
<br />
<p>Brought to you by <a href="http://somadesign.ca/">Matt Wiebe</a>. View source on <a href="http://gist.github.com/575532">gist.github</a></p>
</body>
</html>
@mattwiebe
Copy link
Author

I haven't tested this on Windows yet. Probably lots of breakage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment