lilypond-user
[Top][All Lists]
Advanced

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

Re: Using a custom bitmap as a character?


From: Jean Abou Samra
Subject: Re: Using a custom bitmap as a character?
Date: Wed, 23 Aug 2023 13:57:47 +0200
User-agent: Evolution 3.48.4 (3.48.4-1.fc38)

Le mercredi 23 août 2023 à 11:40 +0000, Werner LEMBERG a écrit :
> > I am slowly creating a font to be used for tablature ... so far I
> > have bitmaps of a couple of characters.  I'd like to try them out
> > and get an idea how they look.  Is there any way I can replace a
> > character with a small scaled bitmap?
> 
> Not directly.  You would have to convert the bitmap to an EPS file,
> say.  You might try potrace to do such a conversion.
> 
>   https://potrace.sourceforge.net/
> 
> The FontForge font editor comes with native support for potrace, BTW.


The tool looks quite impressive. OTOH, in 2.25, there's \image to use
a PNG file, so you don't necessarily need to convert the bitmap to a
vector graphics form.

If the goal is just to test the glyphs (and not to automate the use of
these bitmaps in a large tablature score), I'd just get them in PNG
format if not already the case, and do something like

\version "2.25.7"

\new TabStaff {
  \once \override TabNoteHead.stencil =
    #(lambda (grob)
       (grob-interpret-markup
        grob
        #{ \markup \image #X #2 "/path/to/image.png" #}))
  c'
}

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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