]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/open-type-font.hh
Run `make grand-replace'.
[lilypond.git] / lily / include / open-type-font.hh
index e1d798611bb6d84c36ff48703074a782c28d9ea4..f79e4c07bad2857d252be697c278a5764485e1f5 100644 (file)
@@ -3,20 +3,18 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2004--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #ifndef OPEN_TYPE_FONT_HH
 #define OPEN_TYPE_FONT_HH
 
-#include <map>
-using namespace std;
 
-#include "freetype.hh"
 #include "font-metric.hh"
 
-typedef map<FT_UInt, FT_ULong> Index_to_charcode_map;
 Index_to_charcode_map make_index_to_charcode_map (FT_Face face);
+void get_unicode_name (char*s, FT_ULong code);
+void get_glyph_index_name (char*s, FT_ULong code);
 
 class Open_type_font : public Font_metric
 {
@@ -43,11 +41,11 @@ public:
   string font_name () const;
   ~Open_type_font ();
   Offset attachment_point (string) const;
-  vsize count () const;
-  Box get_indexed_char (vsize) const;
-  vsize name_to_index (string) const;
-  //vsize glyph_name_to_charcode (string) const;
-  vsize index_to_charcode (vsize) const;
+  size_t count () const;
+  Box get_indexed_char (size_t) const;
+  size_t name_to_index (string) const;
+  //size_t glyph_name_to_charcode (string) const;
+  size_t index_to_charcode (size_t) const;
   void derived_mark () const;
   SCM sub_fonts () const;
   Real design_size () const;
@@ -56,4 +54,5 @@ public:
 string get_otf_table (FT_Face face, string tag);
 FT_Face open_ft_face (string str);
 
+
 #endif /* OPEN_TYPE_FONT_HH */