]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/open-type-font.cc
* The grand 2005-2006 replace.
[lilypond.git] / lily / open-type-font.cc
index 5ac1c9c73551920caab09a1a037349a2d6442106..aa7291dd70162cbb115bd2b1b3798490cfd059a2 100644 (file)
@@ -3,13 +3,16 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "open-type-font.hh"
 
+#include <cstdio>
+
+using namespace std;
+
 #include <freetype/tttables.h>
-#include <stdio.h>
 
 #include "dimensions.hh"
 #include "modified-font-metric.hh"
@@ -35,14 +38,11 @@ load_table (char const *tag_str, FT_Face face, FT_ULong *length)
       return buffer;
     }
   else
-    {
-      programming_error ("Cannot find OpenType table.");
-    }
-  
+    programming_error ("Cannot find OpenType table.");
+
   return 0;
 }
 
-
 String
 Open_type_font::get_otf_table (String tag) const
 {
@@ -85,7 +85,6 @@ Open_type_font::~Open_type_font ()
   FT_Done_Face (face_);
 }
 
-
 /*
   UGH fix naming
 */
@@ -93,7 +92,7 @@ String
 get_otf_table (FT_Face face, String tag)
 {
   FT_ULong len;
-  FT_Byte *tab = load_table (tag.to_str0 (), face,  &len);
+  FT_Byte *tab = load_table (tag.to_str0 (), face, &len);
 
   return String (tab, len);
 }
@@ -128,7 +127,7 @@ Open_type_font::Open_type_font (FT_Face face)
   lily_global_table_ = SCM_EOL;
   lily_subfonts_ = SCM_EOL;
   lily_index_to_bbox_table_ = SCM_EOL;
-  
+
   lily_character_table_ = alist_to_hashq (load_scheme_table ("LILC", face_));
   lily_global_table_ = alist_to_hashq (load_scheme_table ("LILY", face_));
   lily_subfonts_ = load_scheme_table ("LILF", face_);
@@ -168,7 +167,7 @@ Open_type_font::get_indexed_char (int signed_idx) const
   if (SCM_HASHTABLE_P (lily_index_to_bbox_table_))
     {
       SCM box = scm_hashq_ref (lily_index_to_bbox_table_, scm_from_int (signed_idx), SCM_BOOL_F);
-      Box * box_ptr = Box::unsmob (box);
+      Box *box_ptr = Box::unsmob (box);
       if (box_ptr)
        return *box_ptr;
     }