]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/font-metric.hh
Run `make grand-replace'.
[lilypond.git] / lily / include / font-metric.hh
index f5d036f972ea63fd6e01efa2bd053004ba40f231..2efea228e2fa9597f93d95c3ef119003b3d0928e 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1999--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 1999--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #ifndef FONT_METRIC_HH
 #include "lily-proto.hh"
 #include "smobs.hh"
 #include "virtual-methods.hh"
+#include "freetype.hh"
+
+#include <map>
+using namespace std;
+
+typedef map<FT_UInt, FT_ULong> Index_to_charcode_map;
 
 class Font_metric
 {
@@ -22,9 +28,12 @@ public:
   SCM description_;
   string file_name_;
 
-
   virtual Stencil text_stencil (string) const;
+  virtual Stencil word_stencil (string) const;
+
+  // ugh.
   virtual Box text_dimension (string) const;
+
   virtual string font_name () const;
   virtual size_t count () const;
   virtual Offset attachment_point (string) const;
@@ -46,7 +55,7 @@ public:
   virtual Stencil get_ascii_char_stencil (size_t k) const;
   virtual SCM sub_fonts () const;
   virtual SCM font_file_name () const;
-  DECLARE_SMOBS (Font_metric,);
+  DECLARE_SMOBS (Font_metric);
 
 private:
   /* No copying, no implicit copy constructor.  */
@@ -70,4 +79,6 @@ DECLARE_UNSMOB (Font_metric, metrics);
 
 Box lookup_tex_text_dimension (Font_metric *font, SCM text);
 
+char *pfb2pfa (Byte const *pfb, int length);
+
 #endif /* FONT_METRIC_HH */