]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/tfm.hh
(do_alignment): don't translate if
[lilypond.git] / lily / include / tfm.hh
index 7c37eb5326a5daee1c251997b839e6c138e8a038..32f1222589475a09b36ae0ab3ed274d95e26cf79 100644 (file)
@@ -1,14 +1,13 @@
-/*   
+/*
   tfm.hh -- declare Tex_font_metric
-  
+
   source file of the GNU LilyPond music typesetter
-  
-  (c) 1999--2004 Jan Nieuwenhuizen <janneke@gnu.org>
 
+  (c) 1999--2005 Jan Nieuwenhuizen <janneke@gnu.org>
 
-  revamped code from GNU Fontutils-0.6
 
- */
+  revamped code from GNU Fontutils-0.6
+*/
 
 /*
   TODO: aren't there standard libs?  Ideally it is better to just link
@@ -138,33 +137,34 @@ struct Tex_font_char_metric
 
   Tex_font_char_metric ();
 
-  Box dimensions () const; 
+  Box dimensions () const;
 };
 
-
 class Tex_font_metric : public Simple_font_metric
 {
 public:
-  static  SCM make_tfm (String file_name);
+  static SCM make_tfm (String file_name);
 
   virtual int count () const;
   virtual Box get_ascii_char (int) const;
   virtual Real design_size () const;
   virtual void derived_mark () const;
   virtual int name_to_index (String) const;
-  
-  
+  virtual String font_name () const;
+
+  Tfm_info const &info () const;
+
+protected:
   Tfm_info info_;
   Tfm_header header_;
   Array<Tex_font_char_metric> char_metrics_;
   Array<int> ascii_to_metric_idx_;
   SCM encoding_table_;
-  
+  String font_name_;
 private:
   Tex_font_char_metric const *find_ascii (int ascii, bool warn = true) const;
   Tex_font_metric ();
 };
 
-
 #endif /* TFM_HH */