> \include "predefined-guitar-fretboards.ly"
> 
> \new FretBoards {
>   \chordmode {d}
>   \override FretBoard #'(fret-diagram-details orientation) = #'landscape
>   \chordmode {d}
> }
> 
> fails with this message:
> 
> Layout output to 
> `test-capo-fretboards.ps'.../Users/Carl/lilypond-working/out/share/lilypond/
> current/scm/framework-ps.scm:365:36: In procedure list-ref in expression
> (list-ref psname-filename-fontindex 1):
> /Users/Carl/lilypond-working/out/share/lilypond/current/scm/framework-ps.scm
> :365:36: Wrong type argument in position 1: ("BitstreamVeraSans-Roman" .
> "/usr/X11R6/lib/X11/fonts/TTF/Vera.ttf")

For me it works just fine.  Are you sure that your lilypond source
files are up to date?  Function ly:pango-font-physical-fonts, which is
compiled into the lilypond binary, now returns an alist of lists (with
three elements each), but the above error message indicates that you
get an alist of pairs.  Please apply the patch below temporarily and
send me the logging output.  I get this on my GNU/Linux box, for
example:

  (DejaVuSans /usr/share/fonts/truetype/DejaVuSans.ttf 0)

  (DejaVuSans /usr/share/fonts/truetype/DejaVuSans.ttf 0)

  (CenturySchL-Roma 
/usr/local/share/lilypond/2.12.1/fonts/otf/CenturySchL-Roma.otf 0)


    Werner


--- framework-ps.scm.old        2008-12-27 09:49:20.000000000 +0100
+++ framework-ps.scm    2008-12-30 16:13:54.000000000 +0100
@@ -360,6 +360,9 @@
                                  #f)))
                     ((ly:pango-font? font)
                      (map (lambda (psname-filename-fontindex)
+                            (newline)
+                            (display psname-filename-fontindex)
+                            (newline)
                             (list #f
                                   (list-ref psname-filename-fontindex 0)
                                   (list-ref psname-filename-fontindex 1)


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

Reply via email to