[sushi] font: add a few more mimetypes



commit f2b71616c443d4529f4d96d1ef4b7e45069470f8
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed May 11 01:15:41 2011 -0400

    font: add a few more mimetypes

 src/js/viewers/font.js |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/js/viewers/font.js b/src/js/viewers/font.js
index b3a0200..59c7db8 100644
--- a/src/js/viewers/font.js
+++ b/src/js/viewers/font.js
@@ -40,8 +40,6 @@ FontRenderer.prototype = {
         let size = [ this._fontWidget.get_preferred_size()[1].width,
                      this._fontWidget.get_preferred_size()[1].height ];
 
-        log ("allocation " + allocation[0] + " " + allocation[1] + " size " + size[0] + " " + size[1]);
-
         if (size[0] > allocation[0])
             size[0] = allocation[0];
 
@@ -55,4 +53,12 @@ FontRenderer.prototype = {
 let handler = new MimeHandler.MimeHandler();
 let renderer = new FontRenderer();
 
-handler.registerMime("application/x-font-ttf", renderer);
+let mimeTypes = [
+    "application/x-font-ttf",
+    "application/x-font-otf",
+    "application/x-font-pcf",
+    "application/x-font-type1"
+];
+
+for (idx in mimeTypes)
+    handler.registerMime(mimeTypes[idx], renderer);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]