lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arbitrary accidental glyphs


From: Han-Wen Nienhuys
Subject: Re: Arbitrary accidental glyphs
Date: Sat, 19 Jul 2008 16:38:11 -0300

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 <address@hidden> 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 - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]