]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/output-lib.scm (note-head-style->attachment-coordinates):
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 30 Dec 2003 15:45:42 +0000 (15:45 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 30 Dec 2003 15:45:42 +0000 (15:45 +0000)
change calling convention of stem-attachment function.

* buildscripts/mf-to-table.py: read and dump WX/WY fields

* mf/feta-autometric.mf: dump WX/WY fields too

* mf/parmesan-heads.mf: idem.

* mf/feta-bolletjes.mf (slash_slope): set WX/WY fields for
attachment coordinates.

* lily/note-head.cc (stem_attachment_coordinate): read stem
attachment from the notehead glyphs WX/WY fields.

* lily/include/font-metric.hh (struct Font_metric): add methods
get_indexed_wxwy (), make a distinction between looking up by
index and ASCII

* mf/feta-bolletjes.mf: rewrite note head MF code.
(test_outlines): make heads more rotund for smaller sizes.

lily/note-head.cc
mf/feta-bolletjes.mf

index 012e7051a4430013b5a9d81ff117146f26f1c61c..d40d2fe12f61283c697616e208f740766f00d679 100644 (file)
@@ -293,7 +293,7 @@ Note_head::stem_attachment_coordinate (Grob *me, Axis a)
   if (!gh_procedure_p (v))
     return 0.0;
   
-  SCM result = scm_call_2 (v, me->self_scm(), gh_int2scm (axis));
+  SCM result = scm_call_2 (v, me->self_scm(), gh_int2scm (a));
   if (!gh_pair_p (result))
     return 0.0;
 
@@ -301,6 +301,7 @@ Note_head::stem_attachment_coordinate (Grob *me, Axis a)
   
   return gh_number_p (result) ?  gh_scm2double (result) : 0.0;
 }
+
 int
 Note_head::get_balltype (Grob*me) 
 {
index 0fde3f0f448e6878c0e1efb3442138a54acfb7fb..51712dbc41cf698d8daae103f0ebec647465790e 100644 (file)
@@ -57,7 +57,7 @@ def draw_outside_ellipse (expr ellipsidity, tilt, superness,
 
        % attachment Y
        charwy := ypart (right_point) * scaling#;
-       charwx := xpart (right_point) * scaling#;
+       charwx := width# ;
 
        p := p scaled scaling shifted (width/2, 0) ;
        if test_outlines = 1: