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' }
signature.asc
Description: This is a digitally signed message part