abcjs
abcjs copied to clipboard
CSS Styling Parts of Lyrics
I wish there was a way to put CSS classes around sections of lyrics. I know this is not standardized in the spec, nor can I find anything similar in the spec, so I have no idea how it would be done. But that doesn't stop me from dreaming!
Here is an example. Currently I am doing this with some post modification of the SVG (which happened to have been broken in the last update, so now I have to fix it, anyway...)
Ignore the goofy alignment...that's another issue. But notice the in-line dynamics are made blue and super-scripted.
Other use-cases might be italics, font, etc.
There may be no good way to do this, in which case you can just close this issue, and I'll move on, I won't be offended. (:
In theory, setfont should probably work here. So this doesn't work, but I'll see if I can fix that:
%%setfont-1 Ariel 16 bold
...
(w: la $1la $0la)