Looking a bit more into this, the memories of why this is so
complicated come back.

In paper.scm, the default fonts are setup in

(define-public (layout-set-absolute-staff-size-in-module module staff-height)

this sets a variable 'fonts, which is a Font-tree-element (see
scm/font.scm), a tree defining how to select a font using font-shape,
font-family, etc.

When font-encoding is fetaMusic, the result is that one of the
emmentaler OTF files is selected.  If you want to override this, you
would have to add your font similar to the mechanism for emmentaler,
but using a different value for font-encoding.  You should probably do
this first inside font.scm, and if you can get this working, you can
select your custom font by doing

  \override Accidental #'font-encoding = #'Sagitarius

When it works, try moving the function you added to a .ly, doing

 \paper {
  #(add-music-font 'Sagitarius (ly:font-load "sagitarius")  fonts)
 }

and export enough variables to make it work in the .ly version too.

Good luck.


On Sat, Jul 19, 2008 at 4:01 PM, Graham Breed <[EMAIL PROTECTED]> wrote:
>> Ah, ok.  The problem is that the Pango font is 'virtual': pango
>> decomposes the string into sections each of which can use a different
>> font.
>
> Oh, it is?  What do we do about it?

-- 
Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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

Reply via email to