Skip to content
Browse files

embedded droid font

  • Loading branch information...
1 parent e658a47 commit 928200572db94fd807825807df0f4d559e95c0e0 @shatting committed Jun 10, 2011
Showing with 11 additions and 3 deletions.
  1. BIN fonts/DroidSansMono.woff
  2. +3 −3 javascripts/popup.js
  3. +8 −0 stylesheets/fonts.css
View
BIN fonts/DroidSansMono.woff
Binary file not shown.
View
6 javascripts/popup.js
@@ -2,7 +2,7 @@ var background;
var popup = this;
// amount of vertical viewport size to add for preloading notes in index
-var preLoadFactor = 1/4;
+var preLoadFactor = 1/2;
var currentView = "index";
var slideEasing = "swing"; // swing or linear
var slideDuration = 200;
@@ -13,7 +13,7 @@ var snIndex;
// ---------------------------------------
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" >',
"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">',
@@ -839,7 +839,7 @@ function indexFillNoteReqComplete(note) {
$('#' + note.key + 'loader').remove();
$noteheading.removeAttr("align"); // from loader
// 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
if (note.deleted == 1) {
$noteheading.addClass("noteheadingdeleted"); // for text color
View
8 stylesheets/fonts.css
@@ -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.
Something went wrong with that request. Please try again.