On 2010-01-30, Patrick McCarty wrote:
> On Sat, Jan 30, 2010 at 2:16 PM, Carl Sorensen <c_soren...@byu.edu> wrote:
> > When trying to display harmonics in tablatures, I get a font error:
> >

[snip]

> > Any clues on how to solve this?
> 
> I added a tracker issue for this after a long discussion I had with
> James Bailey:
> 
> http://code.google.com/p/lilypond/issues/detail?id=976

One possibility is shown in the attached patch.  The PNG shows the
rendering of the tablature-harmonic.ly regression test with this
patch.

It's not a final solution by any means, because all of the values are
hardcoded, and you would probably like to have configurable thickness,
slope, etc.

But this would eliminate the errors you are currently seeing.

Hope this helps,
-Patrick
diff --git a/scm/output-lib.scm b/scm/output-lib.scm
index 128ab5f..ca927a1 100644
--- a/scm/output-lib.scm
+++ b/scm/output-lib.scm
@@ -461,15 +461,23 @@ and duration-log @var{log}."
 (define-public (parentheses-item::calc-angled-bracket-stencils grob)
   (let* ((font (ly:grob-default-font grob))
         (lp (ly:stencil-aligned-to (ly:stencil-aligned-to
-                                    (grob-interpret-markup
-                                     grob
-                                     (ly:wide-char->utf-8 #x2329))
+                                     (ly:make-stencil
+                                       `(path 0.1
+                                              `(moveto 0 0
+                                                rlineto -0.6 0.8
+                                                rlineto 0.6 0.8))
+                                        (cons -0.7 0)
+                                        (cons 0 1.6))
                                     Y CENTER)
                                    X RIGHT))
         (rp (ly:stencil-aligned-to (ly:stencil-aligned-to
-                                    (grob-interpret-markup
-                                     grob
-                                     (ly:wide-char->utf-8 #x232A))
+                                     (ly:make-stencil
+                                       `(path 0.1
+                                              `(moveto 0 0
+                                                rlineto 0.6 0.8
+                                                rlineto -0.6 0.8))
+                                        (cons 0 0.7)
+                                        (cons 0 1.6))
                                     Y CENTER)
                                    X LEFT)))
 

<<attachment: tablature-harmonic.png>>

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to