]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/output-tex.scm (text): remove debugging code.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 7 Apr 2004 12:20:34 +0000 (12:20 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 7 Apr 2004 12:20:34 +0000 (12:20 +0000)
* lily/scaled-font-metric.cc (ly_font_encoding): return vector

* buildscripts/mf-to-table.py (parse_logfile): read EncodingScheme
from infile.

* mf/feta-generic.mf: move fet_beginfont into generic code.
use fetaMusic (without space) as encoding

* mf/feta-autometric.mf: take encoding argument

* lily/afm.cc (read_afm_file): bugfix, read global info too.

* lily/my-lily-lexer.cc (set_identifier): remove gh_scm2newstr
use.

* scm/encoding.scm (read-encoding-file): use symbol for glyph
name.

37 files changed:
ChangeLog
buildscripts/mf-to-table.py
lily/afm.cc
lily/include/scaled-font-metric.hh
lily/my-lily-lexer.cc
lily/scaled-font-metric.cc
lily/tfm.cc
mf/feta-autometric.mf
mf/feta-beugel.mf
mf/feta-din.mf
mf/feta-generic.mf
mf/feta-nummer.mf
mf/feta-test11.mf
mf/feta-test13.mf
mf/feta-test16.mf
mf/feta-test20.mf
mf/feta-test23.mf
mf/feta-test26.mf
mf/feta11.mf
mf/feta13.mf
mf/feta14.mf
mf/feta16.mf
mf/feta18.mf
mf/feta20.mf
mf/feta23.mf
mf/feta26.mf
mf/parmesan-generic.mf
mf/parmesan11.mf
mf/parmesan13.mf
mf/parmesan14.mf
mf/parmesan16.mf
mf/parmesan18.mf
mf/parmesan20.mf
mf/parmesan23.mf
mf/parmesan26.mf
scm/encoding.scm
scm/output-tex.scm

index 61a79062f329d336af3a2e7e274e9cf6da75975e..f45449c554d6ed5941b14a102c558a9eb0429079 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,25 @@
+2004-04-07  Han-Wen Nienhuys   <hanwen@xs4all.nl>
+
+       * scm/output-tex.scm (text): remove debugging code.
+
+       * lily/scaled-font-metric.cc (ly_font_encoding): return vector
+
+       * buildscripts/mf-to-table.py (parse_logfile): read EncodingScheme
+       from infile.
+
+       * mf/feta-generic.mf: move fet_beginfont into generic code.
+       use fetaMusic (without space) as encoding
+
+       * mf/feta-autometric.mf: take encoding argument
+
+       * lily/afm.cc (read_afm_file): bugfix, read global info too. 
+
+       * lily/my-lily-lexer.cc (set_identifier): remove gh_scm2newstr
+       use.
+
+       * scm/encoding.scm (read-encoding-file): use symbol for glyph
+       name.
+
 2004-04-07  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * input/test/title-markup.ly: Set inputencoding.
index a28c745ae14fe5f601f1eee88073248f37703119..36e00febae2f0bc5efb7c1d2f93d4d5dfe8d687f 100644 (file)
@@ -93,7 +93,6 @@ def parse_logfile (fn):
                                tags.append ('Regular')
                        name = tags[1:]
                        global_info['DesignSize'] = string.atof (tags[4])
-                       
                        global_info['FontName'] = string.join (name,'-')
                        global_info['FullName'] = string.join (name,' ')
                        global_info['FamilyName'] = string.join (name[1:-1],
@@ -105,7 +104,7 @@ def parse_logfile (fn):
                        global_info['FontBBox'] = '0 0 1000 1000'
                        global_info['Ascender'] = '0'
                        global_info['Descender'] = '0'
-                       global_info['EncodingScheme'] = 'FontSpecific'
+                       global_info['EncodingScheme'] = tags[5]
        
        return (global_info, charmetrics, deps)
 
index ce93f58345944c8bf23df73222c87aadcbe23c32..ab7e70781188e78af7efa4772b590904fc2a34a0 100644 (file)
@@ -137,7 +137,7 @@ read_afm_file (String nm)
   rewind (f);
     
   AFM_Font_info *fi;
-  int ok = AFM_parseFile (f, &fi, ~1);
+  int ok = AFM_parseFile (f, &fi, ~0);
 
   if (ok)
     {
index 687da0196dbe90c6ec82bc1fca73f5d7d50c4e81..5abddcacd4a75e05418d8d5cb766945390316bc9 100644 (file)
@@ -25,13 +25,15 @@ public:
   virtual int name_to_index (String) const;
   virtual String coding_scheme () const;
 
-  /*should be protected?
-   */
+
+protected:
+  
   SCM coding_vector_;
   SCM coding_table_;
   SCM coding_permutation_;
-  
-protected:
+  SCM coding_description_;
+  friend SCM ly_font_encoding(SCM);
+    
   virtual Real design_size () const;
   virtual void derived_mark (); 
   virtual Box get_indexed_char (int) const;
index 941d150715f024fc9d6dae297aa5586d9ea4b5cb..39ac514f058e6d6e6c99e273efd61aae33233415 100644 (file)
@@ -177,10 +177,7 @@ My_lily_lexer::set_identifier (SCM name, SCM s)
   
   if (lookup_keyword (ly_scm2string (name)) >= 0)
     {
-      size_t sz;
-      char * str = gh_scm2newstr (name, &sz) ;
-      warning (_f ("Identifier name is a keyword: `%s'", str));
-      free  (str);
+      warning (_f ("Identifier name is a keyword: `%s'", SCM_STRING_CHARS (name)));
     }
 
   SCM sym = scm_string_to_symbol (name);
index f46d22bb679910e84d439d4e35eac7b7c1fa2504..8910be1772410ccd535f4e613e3ee257fd4a476b 100644 (file)
@@ -19,7 +19,7 @@ Modified_font_metric::Modified_font_metric (String coding, Font_metric* m, Real
   coding_vector_ = SCM_EOL;
   coding_permutation_ = SCM_EOL;
   coding_table_ = SCM_EOL;
-  
+  coding_permutation_ = SCM_EOL;
   coding_scheme_ = coding;
   magnification_ = magn;
   SCM desc = m->description_;
@@ -29,6 +29,40 @@ Modified_font_metric::Modified_font_metric (String coding, Font_metric* m, Real
   
   description_ = gh_cons (ly_car (desc), gh_double2scm (total_mag));
   orig_ = m;
+
+  if (coding_scheme_ != "TeX"
+      && coding_scheme_ != "ASCII"
+      && coding_scheme_ !=  orig_->coding_scheme ())
+    {
+      coding_vector_ = scm_call_1 (ly_scheme_function ("get-coding-vector"),
+                                  scm_makfrom0str (coding_scheme_.to_str0 ()));
+
+      if (!gh_vector_p (coding_vector_))
+       {
+         programming_error ("get-coding-vector  should return vector");
+         coding_vector_ = scm_c_make_vector (256, ly_symbol2scm (".notdef"));
+       }
+
+      
+      coding_table_ = scm_call_1 (ly_scheme_function ("get-coding-table"),
+                                 scm_makfrom0str (orig_->coding_scheme ().to_str0 ()));
+         
+      coding_permutation_  = scm_call_2 (ly_scheme_function ("make-encoding-permutation"),
+                                        coding_vector_,
+                                        coding_table_);
+
+      coding_description_= scm_list_5 (scm_makfrom0str (coding_scheme_.to_str0 ()),
+                                      coding_vector_,
+                                      scm_makfrom0str (orig_->coding_scheme ().to_str0 ()),
+                                      coding_table_,
+                                      coding_permutation_);
+
+      /*
+       TODO: use alist
+       */
+      coding_permutation_ = scm_vector (coding_description_);
+    } 
+  
 }
 
 SCM
@@ -99,6 +133,7 @@ void
 Modified_font_metric::derived_mark ()
 {
   scm_gc_mark (coding_vector_);
+  scm_gc_mark (coding_description_);
   scm_gc_mark (coding_table_);
   scm_gc_mark (coding_permutation_);
 }
@@ -192,28 +227,6 @@ Modified_font_metric::text_dimension (String text)
     }
   else
     {
-      if (!gh_vector_p (coding_vector_))
-       {
-         coding_vector_
-           = scm_call_1 (ly_scheme_function ("get-coding-vector"),
-                         scm_makfrom0str (coding_scheme_.to_str0 ()));
-
-         if (!gh_vector_p (coding_vector_))
-           {
-             programming_error ("get-coding-vector  should return vector");
-             coding_vector_ = scm_c_make_vector (256,
-                                                 ly_symbol2scm (".notdef"));
-           }
-
-         coding_table_
-           = scm_call_1 (ly_scheme_function ("get-coding-table"),
-                         scm_makfrom0str (orig_->coding_scheme ().to_str0 ()));
-         
-         coding_permutation_
-           = scm_call_2 (ly_scheme_function ("make-encoding-permutation"),
-                         coding_vector_, coding_table_);
-       }
-         
       Interval ydims;
       Real w = 0.0;
 
@@ -224,12 +237,10 @@ Modified_font_metric::text_dimension (String text)
 
          Box char_box;
 
-         if (!gh_symbol_p (sym) && !gh_string_p (sym))
+         if (!gh_symbol_p (sym))
            continue;
 
-         char const * chars = gh_symbol_p (sym)
-           ? SCM_SYMBOL_CHARS(sym) : SCM_STRING_CHARS(sym); 
-           
+         char const * chars =  SCM_SYMBOL_CHARS(sym);
          
          int idx = orig_->name_to_index (chars);
          if (idx >= 0)
@@ -258,15 +269,14 @@ LY_DEFINE (ly_font_encoding, "ly:font-encoding",
           1, 0, 0,
           (SCM font),
           "Given the Modified_font_metric @var{font}, return a "
-          "list containing (input-coding, output-coding, permutation).")
+          "vector containing (input-coding-name, input-coding, "
+          "output-coding-name, output-coding, permutation).")
 {
   Modified_font_metric *fm
     = dynamic_cast<Modified_font_metric*> (unsmob_metrics (font));
   
   SCM_ASSERT_TYPE (fm, font, SCM_ARG1, __FUNCTION__, "Modified_font_metric");
-  return scm_list_3 (fm->coding_vector_,
-                    fm->coding_table_,
-                    fm->coding_permutation_);
+  return fm->coding_description_;
 }
 
 LY_DEFINE (ly_font_coding_name, "ly:font-coding-name",
index 2e0bf25167beca30e08c7dd8822b6c5993c5648e..f5cb273494ebd6e9a4bdaa3258417c0bb5213ac2 100644 (file)
@@ -125,7 +125,7 @@ Tex_font_metric::coding_scheme () const
 int
 Tex_font_metric::name_to_index (String s) const
 {
-  SCM sym = scm_makfrom0str (s.to_str0 ());
+  SCM sym = ly_symbol2scm (s.to_str0 ());
 
   SCM idx = scm_hash_ref (encoding_table_, sym, SCM_BOOL_F);
   if (gh_char_p (idx))
index a7779390349056b2a59697d0cfb068f4bc583f17..eaa80fc5aa3b59d0d18bf9bc8d41977f059b5e94 100644 (file)
@@ -17,16 +17,16 @@ message "Do not worry about the @ signs in the output, they are not errors. ";
 message "******************************************************";
 
 % font or database?
-def fet_beginfont(expr name,size) =
+def fet_beginfont(expr name,size,encod) =
        font_identifier:=name&decimal size;
        font_size size;
-       message "@{font@:GNU@:LilyPond@:"&name&"@:"&decimal size&"@}";
+       font_coding_scheme encod;
+       message "@{font@:GNU@:LilyPond@:"&name&"@:"&decimal size&"@:"&encod&"@}";
        message "";
        enddef;
 
-def fet_endfont(expr name) =
-       message "@{tnof@:"&name&"@}";
-       message "";
+def fet_endfont =
+       message "@{tnof@}";
        enddef;
 
 % group or table?
index aafc1a690ec19a4a2b9da6c5c41d5e3c95122c48..3d6f6b037023f652a207ca6bd53821b0601d0adf 100644 (file)
@@ -8,8 +8,6 @@ staffsize#  := 20 pt#;  %% arbitrary.
 
 input feta-params;
 
-font_coding_scheme "feta braces";
-
 
 def abc_encode_int (expr i) =
        if i > 0:
@@ -22,7 +20,8 @@ enddef ;
 % we must let the design increase for each
 % font to make sure that mftrace doesn't jack up the resolution too highly
 % for the longer braces.
-fet_beginfont("feta-braces-" &char(97 + font_count), (font_count + 1)* 15);
+fet_beginfont("feta-braces-" &char(97 + font_count), (font_count + 1)* 15,
+               "fetaBraces");
 
 mode_setup;
 
index ca5029d2867407d5166e1f63b32fc00a799f48ed..5294f2df7d81ef1e51f22d58f57521ca98d70b5a 100644 (file)
@@ -25,7 +25,7 @@ font_normal_space horizontal_space#;
 
 define_pixels (staffspace, linethickness, stafflinethickness, ex, descender, ascender);
 
-fet_beginfont("feta-din", design_size);
+fet_beginfont("feta-din", design_size, "TeX text");
 
 input feta-din-code;
 
index 767a83d194f13499d49e90c8b95af0b274ac229b..99f02ed528f65f76aef7d4f8541de03bf793dec9 100644 (file)
@@ -13,16 +13,17 @@ if test = -1:
        mode := smoke;
 fi
 
+staffsize# := design_size * pt#;
+
 mode_setup;
-%
 
 input feta-macros;
 
 input feta-params;
 
 font_x_height  staff_space#;
-font_coding_scheme "feta music";
 
+fet_beginfont("feta", design_size, "fetaMusic");
 if test = 0: 
        input feta-eindelijk;
        input feta-toevallig;
@@ -39,3 +40,6 @@ else:
        input feta-test-generic.mf;
 
 fi
+
+fet_endfont;
+
index 7b1778b15b009ebee631edddec30b7571ef48809..07106b6c1db55dac9391d1c86d3eb46497d61e8e 100644 (file)
@@ -15,7 +15,7 @@ input feta-macros;
 
 %blot_diameter# = .4pt#;
 
-fet_beginfont("feta-nummer", design_size);
+fet_beginfont("feta-nummer", design_size, "fetaNumber");
 mode_setup;
 
 height#:=designsize;
@@ -23,7 +23,6 @@ space# := design_size/2;
 
 font_x_height height#;
 font_normal_space space#;
-font_coding_scheme "feta number";
 
 
 %
index 1568c9d5aa57aaa7ff502e335da1ddbab59507e5..66917bb063d3061a5bf5a4f668dae421f21d09ef 100644 (file)
@@ -2,8 +2,7 @@
 % part of LilyPond's pretty-but-neat music font
 
 input feta-autometric;
-fet_beginfont("feta-test", 11);
-staffsize#:=11pt#;
+design_size := 11;
 test:=1;
 
 % smoked cheese
@@ -15,7 +14,5 @@ test:=1;
 
 input feta-generic;
 
-fet_endfont("feta");
-
 end.
 
index fc79ef990c660f0fe085457e2c2de7e8d1eec99b..be8ebb8dae9d85b59210d5a190a878dccf830258 100644 (file)
@@ -2,8 +2,7 @@
 % part of LilyPond's pretty-but-neat music font
 
 input feta-autometric;
-fet_beginfont("feta-test", 13);
-staffsize#:=13pt#;
+design_size := 13;
 test:=1;
 
 % smoked cheese
@@ -15,7 +14,6 @@ test:=1;
 
 input feta-generic;
 
-fet_endfont("feta");
 
 end.
 
index 3d2ed3cea24a5753346a70045d28856d0e9be4d3..8dd1f2da14b80c329306cb90a64ee1262baea607 100644 (file)
@@ -2,8 +2,7 @@
 % part of LilyPond's pretty-but-neat music font
 
 input feta-autometric;
-fet_beginfont("feta-test", 16);
-staffsize#:=16pt#;
+design_size := 16;
 test:=1;
 
 % smoked cheese
@@ -15,7 +14,6 @@ test:=1;
 
 input feta-generic;
 
-fet_endfont("feta");
 
 end.
 
index 72f9a877588dac4f8e082b495ae661e7931c8033..5838201c5a56395ae57aa9b4bd26b9a19683ce19 100644 (file)
@@ -3,8 +3,7 @@
 
 
 input feta-autometric;
-fet_beginfont("feta-test", 20);
-staffsize#:=20pt#;
+design_size := 20;
 test:=1;
 
 % smoked cheese
@@ -16,7 +15,6 @@ test:=1;
 
 input feta-generic;
 
-fet_endfont("feta");
 
 end.
 
index e4656d6d26633132e10918b2b602eba5f64cf063..8dc122b74180bfc51ad952f8578cf82a17797ab1 100644 (file)
@@ -3,8 +3,7 @@
 
 
 input feta-autometric;
-fet_beginfont("feta-test", 23);
-staffsize#:=23pt#;
+design_size := 23;
 test:=1;
 
 % smoked cheese
@@ -16,7 +15,6 @@ test:=1;
 
 input feta-generic;
 
-fet_endfont("feta");
 
 end.
 
index 09f34025bde3a648a64f054aa47fe06312090868..748efb8760b6690c179d33aa4c288d20abab47f4 100644 (file)
@@ -2,8 +2,7 @@
 % part of LilyPond's pretty-but-neat music font
 
 input feta-autometric;
-fet_beginfont("feta-test", 26);
-staffsize#:=26pt#;
+design_size := 26;
 test:=1;
 
 % smoked cheese
@@ -15,7 +14,6 @@ test:=1;
 
 input feta-generic;
 
-fet_endfont("feta");
 
 end.
 
index c0e87d7d8c3e72a009f98c7626d05c78ca41f859..de5e4dfd7c266bb868a7efb642395c0b15d6ca96 100644 (file)
@@ -3,14 +3,12 @@
 
 
 input feta-autometric;
-fet_beginfont("feta", 11);
-staffsize#:=11.22pt#;
+
+design_size:= 11.22;
 test:=0;
 
 
 input feta-generic;
 
-fet_endfont("feta");
-
 end.
 
index 1987d397500c504b62a4e197f2a1c918746d3fe0..66db45b0efd6fd8c09448e79e5040965fa2b9aa7 100644 (file)
@@ -2,14 +2,13 @@
 % part of LilyPond's pretty-but-neat music font
 
 input feta-autometric;
-fet_beginfont("feta", 13);
-staffsize#:=12.60pt#;
+
+design_size := 12.60;
+
 test:=0;
 
 
 input feta-generic;
 
-fet_endfont("feta");
-
 end.
 
index cc8aa4a6fd36368683d24b4f9433f244ea55d6e2..63b71fe2c6f1af7eb2f68a694929e572b4aa3f1e 100644 (file)
@@ -3,14 +3,12 @@
 % part of LilyPond's pretty-but-neat music font
 
 input feta-autometric;
-fet_beginfont("feta", 14);
-staffsize#:=14.14pt#;
+design_size := 14.14;
 test:=0;
 
 
 input feta-generic;
 
-fet_endfont("feta");
 
 end.
 
index 30d7b0a2a22433c731303dd75e58dca8cef8c7b1..251a5c60d3301621c54fdc9f8740dbe257c46dce 100644 (file)
@@ -2,14 +2,11 @@
 % part of LilyPond's pretty-but-neat music font
 
 input feta-autometric;
-fet_beginfont("feta", 16);
-staffsize#:=15.87pt#;
+design_size := 15.87;
 test:=0;
 
 
 input feta-generic;
 
-fet_endfont("feta");
-
 end.
 
index 1fa053e16966a78bea54c472d0c02c9312acf589..4c1de346994ac74dfd82c177464c65955b2933c3 100644 (file)
@@ -4,14 +4,12 @@
 input feta-autometric;
 
 % todo change file name
-fet_beginfont("feta", 18);
-staffsize#:=17.82pt#;
+design_size := 17.82;
 test:=0;
 
 
 input feta-generic;
 
-fet_endfont("feta");
 
 end.
 
index 35190154ff9c3848888ca40f1e6940c5e56f9e01..c49d776ffc54c3712bda4420115953ea31b87a88 100644 (file)
@@ -1,17 +1,15 @@
 % feta20.mf
 % part of LilyPond's pretty-but-neat music font
 
-staffsize#:=20pt#;
+design_size := 20;
 
 input feta-autometric;
-fet_beginfont("feta", 20);
 
 
 % use feta-test for debugging.
 test := 0;
 input feta-generic;
 
-fet_endfont("feta");
 
 end.
 
index 95962446bacff6c5819e60b33500649c954c5305..efb7af8e45fde9c08eaba5a32370be86a4c0d2fc 100644 (file)
@@ -4,14 +4,12 @@
 input feta-autometric;
 
 % todo change file name
-fet_beginfont("feta", 22.5);
-staffsize#:=22.45pt#;
+design_size := 22.45;
 test:=0;
 
 
 input feta-generic;
 
-fet_endfont("feta");
 
 end.
 
index ec85398e995c9bd3d08b9c69de6099717aa8b2af..7df8ac277c5f6a5fbe68f5bff38e3bf44db0029f 100644 (file)
@@ -2,14 +2,12 @@
 % part of LilyPond's pretty-but-neat music font
 
 input feta-autometric;
-fet_beginfont("feta", 26);
-staffsize#:=25.20pt#;
+design_size := 25.20;
 test:=0;
 
 
 input feta-generic;
 
-fet_endfont("feta");
 
 end.
 
index 3b9e69d13d19c96fa914a3fbf5b51adfcca501e8..c0ba15b115c8ce30fe25efb1c92d91b269d23a39 100644 (file)
@@ -15,13 +15,15 @@ fi
 
 mode_setup;
 %
+staffsize# := design_size * pt#;
 
 input feta-macros;
 input feta-params;
 
+
 font_x_height  staff_space#;
-font_coding_scheme "parmesan music";
 
+fet_beginfont("parmesan", design_size, "parmesanMusic")
 if test = 0: 
        input parmesan-rests;
        input parmesan-heads;
@@ -31,7 +33,8 @@ if test = 0:
        input parmesan-flags;
        input parmesan-timesig;
        input parmesan-scripts;
-
 else:
 
 fi
+fet_endfont;
+
index d0877b022d94bfc685e1fe1204337d1e04d6ff49..27ba341437d1952a24bf2aea32069ec0f87d6d04 100644 (file)
@@ -1,16 +1,13 @@
 % parmesan11.mf
 % part of LilyPond's pretty-but-neat music font
 
-staffsize#:=11.22pt#;
+design_size := 11.22;
 
 input feta-autometric;
-fet_beginfont("parmesan", 11);
 
 test := 0;
 
 input parmesan-generic;
 
-fet_endfont("parmesan");
-
 end.
 
index 06878f238881d06738d9c5e5651b558177c2607d..905da48d5d8d73021461d78a0ed9771ef082779f 100644 (file)
@@ -1,16 +1,14 @@
 % parmesan13.mf
 % part of LilyPond's pretty-but-neat music font
 
-staffsize#:=12.60pt#;
+design_size := 12.60;
 
 input feta-autometric;
-fet_beginfont("parmesan", 13);
 
 test := 0;
 
 input parmesan-generic;
 
-fet_endfont("parmesan");
 
 end.
 
index 2e78a737d2d030b5a38fd1b2c232aed07c5ce6d3..a66c841265fc47140944c579427321c8eea8a689 100644 (file)
@@ -1,16 +1,14 @@
 % parmesan13.mf
 % part of LilyPond's pretty-but-neat music font
 
-staffsize#:=14.14pt#;
+design_size := 14.14;
 
 input feta-autometric;
-fet_beginfont("parmesan", 14);
 
 test := 0;
 
 input parmesan-generic;
 
-fet_endfont("parmesan");
 
 end.
 
index 0b6f3220223c48f15a18787a473f22c4c9ddbcd8..19b0516779b768ddf31468905f616d469fefbc84 100644 (file)
@@ -1,16 +1,14 @@
 % parmesan16.mf
 % part of LilyPond's pretty-but-neat music font
 
-staffsize#:=15.87pt#;
+design_size := 15.87;
 
 input feta-autometric;
-fet_beginfont("parmesan", 16);
 
 test := 0;
 
 input parmesan-generic;
 
-fet_endfont("parmesan");
 
 end.
 
index dc87d6eb72dcd616205625a2ff5158450b06a4f8..25238727d3dfd5c41f30222f1246c7b4b75eb8b2 100644 (file)
@@ -1,16 +1,14 @@
 % parmesan13.mf
 % part of LilyPond's pretty-but-neat music font
 
-staffsize#:=17.82pt#;
+design_size := 17.82;
 
 input feta-autometric;
-fet_beginfont("parmesan", 18);
 
 test := 0;
 
 input parmesan-generic;
 
-fet_endfont("parmesan");
 
 end.
 
index 8cda6b2a3aa39836c3cda2c1d8edaca67d5dbd13..d14251edcedf0a0bfdc039b8ffb3bde45c0ffe90 100644 (file)
@@ -1,16 +1,14 @@
 % parmesan20.mf
 % part of LilyPond's pretty-but-neat music font
 
-staffsize#:=20pt#;
+design_size := 20;
 
 input feta-autometric;
-fet_beginfont("parmesan", 20);
 
 test := 0;
 
 input parmesan-generic;
 
-fet_endfont("parmesan");
 
 end.
 
index 4ab3732714e6e18cec3699896371797a41e6c181..39b643732ba8de336441350d1c1331486db98988 100644 (file)
@@ -1,16 +1,14 @@
 % parmesan23.mf
 % part of LilyPond's pretty-but-neat music font
 
-staffsize#:=22.45pt#;
+design_size := 22.45;
 
 input feta-autometric;
-fet_beginfont("parmesan", 23);
 
 test := 0;
 
 input parmesan-generic;
 
-fet_endfont("parmesan");
 
 end.
 
index 3b86b2232db34aac0155bffeeabe4fba62ceb929..1be6fb51914144b15f02dc793f3874cb395329d5 100644 (file)
@@ -1,16 +1,14 @@
 % parmesan26.mf
 % part of LilyPond's pretty-but-neat music font
 
-staffsize#:=25.20pt#;
+design_size := 25.20;
 
 input feta-autometric;
-fet_beginfont("parmesan", 26);
 
 test := 0;
 
 input parmesan-generic;
 
-fet_endfont("parmesan");
 
 end.
 
index 870abe3a420f60dc615d352e5249180482e63a3d..c4d54b3660796bfb81f81b5c997c12f3cc338ebc 100644 (file)
@@ -92,10 +92,10 @@ vector of symbols."
         ("latin1" . "cork.enc")
         
         ;; LilyPond.
-        ("feta braces" . "feta-braces-a.enc")
-        ("feta number" . "feta-nummer10.enc")
-        ("feta music" . "feta20.enc")
-        ("parmesan music" . "parmesan20.enc"))
+        ("fetaBraces" . "feta-braces-a.enc")
+        ("fetaNumber" . "feta-nummer10.enc")
+        ("fetaMusic" . "feta20.enc")
+        ("parmesanMusic" . "parmesan20.enc"))
        ))
 
 (define (get-coding coding-name)
index a9255fb561e2877deaa5008a6040e74d82355986..e42dcc636cf70a976cc7e871b65dfe7dcb15ca0b 100644 (file)
   (embedded-ps (list 'round-filled-box  x y width height blotdiam)))
 
 (define (text font s)
-  (let* ((encoding (ly:font-encoding font))
-        (names (car encoding))
-        (table (cadr encoding))
-        (permutation (caddr encoding)))
-    (if (ly:get-option 'verbose)
-       (begin
-         (format (current-error-port) "TEXT: ~S\n" s)
-         ;;(format (current-error-port) "encoding: ~S\n" encoding)
-         ;;(format (current-error-port) "table: ~S\n" table)
-         ;;(format (current-error-port) "permutation: ~S\n" permutation)
-         (map (lambda (x)
-              (let ((name (vector-ref names x)))
-                (format
-                 (current-error-port)
-                 "number:~S\nname:~S\ntable:~S\npermutation:~S\npnum:~S\n\n"
-                        x name
-                        (hash-ref table x)
-                        (vector-ref permutation x)
-                        (char->integer (vector-ref permutation x)))))
-                 (map char->integer (plain-string->list s)))))
+  (let*
+      ((perm (vector-ref (ly:font-encoding font) 4)))
     
-    (string-append
-     "\\hbox{\\" (font-command font) "{}"
-     (output-tex-string (if (vector? permutation)
-                           (reencode-string permutation s) s))
-     "}")))
+    (string-append "\\hbox{\\" (font-command font) "{}"
+                  (output-tex-string
+                   (if (vector? perm)
+                       (reencode-string perm s)
+                       s))
+                  "}")))
+
 
 (define (tuplet ht gapx dx dy thick dir)
   (embedded-ps (list 'tuplet  ht gapx dx dy thick dir)))