Skip to content

Commit

Permalink
embedded droid font
Browse files Browse the repository at this point in the history
  • Loading branch information
shatting committed Jun 10, 2011
1 parent e658a47 commit 9282005
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Binary file added fonts/DroidSansMono.woff
Binary file not shown.
6 changes: 3 additions & 3 deletions javascripts/popup.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var background;
var popup = this; var popup = this;


// amount of vertical viewport size to add for preloading notes in index // amount of vertical viewport size to add for preloading notes in index
var preLoadFactor = 1/4; var preLoadFactor = 1/2;
var currentView = "index"; var currentView = "index";
var slideEasing = "swing"; // swing or linear var slideEasing = "swing"; // swing or linear
var slideDuration = 200; var slideDuration = 200;
Expand All @@ -13,7 +13,7 @@ var snIndex;


// --------------------------------------- // ---------------------------------------
var fontUrls = { var fontUrls = {
"Droid Sans Mono" : '<link href="http://fonts.googleapis.com/css?family=Droid+Sans+Mono:regular" rel="stylesheet" type="text/css" >', "Droid Sans Mono" : '<link href="stylesheets/fonts.css" rel="stylesheet" type="text/css" >',
"Walter Turncoat" : '<link href="http://fonts.googleapis.com/css?family=Walter+Turncoat:regular" rel="stylesheet" type="text/css" >', "Walter Turncoat" : '<link href="http://fonts.googleapis.com/css?family=Walter+Turncoat:regular" rel="stylesheet" type="text/css" >',
"Inconsolata" : '<link href="http://fonts.googleapis.com/css?family=Inconsolata:regular" rel="stylesheet" type="text/css" >', "Inconsolata" : '<link href="http://fonts.googleapis.com/css?family=Inconsolata:regular" rel="stylesheet" type="text/css" >',
"Lekton" : '<link href="http://fonts.googleapis.com/css?family=Lekton" rel="stylesheet" type="text/css">', "Lekton" : '<link href="http://fonts.googleapis.com/css?family=Lekton" rel="stylesheet" type="text/css">',
Expand Down Expand Up @@ -839,7 +839,7 @@ function indexFillNoteReqComplete(note) {
$('#' + note.key + 'loader').remove(); $('#' + note.key + 'loader').remove();
$noteheading.removeAttr("align"); // from loader $noteheading.removeAttr("align"); // from loader
// set actual heading // set actual heading
$noteheading.html(htmlEncode(lines[0],100)); // dont need more than 100 chars $noteheading.html(htmlEncode(lines[0].trim(),100)); // dont need more than 100 chars
// deleted note css style // deleted note css style
if (note.deleted == 1) { if (note.deleted == 1) {
$noteheading.addClass("noteheadingdeleted"); // for text color $noteheading.addClass("noteheadingdeleted"); // for text color
Expand Down
8 changes: 8 additions & 0 deletions stylesheets/fonts.css
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,8 @@
@media screen {
@font-face {
font-family: 'Droid Sans Mono';
font-style: normal;
font-weight: normal;
src: local('Droid Sans Mono'), local('DroidSansMono'), url('../fonts/DroidSansMono.woff') format('woff');
}
}

0 comments on commit 9282005

Please sign in to comment.