Displaying all grob properties and their actual values: Difference between revisions
Import snippet from LSR |
mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Sometimes you may want to know all properties and their values for a certain grob. The here provided function is a possibility. ''Afaict, following comment is not true (any more?), will delete soon --Harm:'' Known limitation: it doesn't work for NoteHead. The output is like | Sometimes you may want to know all properties and their values for a certain grob. The here provided function is a possibility. ''Afaict, following comment is not true (any more?), will delete soon --Harm:'' Known limitation: it doesn't work for NoteHead. The output (written to stdout) is something like the following. | ||
< | #<Grob ChordName >: | ||
Grob ChordName: | GROB-INTERFACE | ||
GROB-INTERFACE | X-extent: | ||
(0.0 . 5.087352755905512) | |||
... | ... | ||
CHORD-NAME-INTERFACE | ... | ||
begin-of-line-visible: | CHORD-NAME-INTERFACE | ||
() | begin-of-line-visible: | ||
() | |||
FONT-INTERFACE | |||
FONT-INTERFACE | |||
font: | |||
font: | |||
((typewriter . LilyPond Monospace) (sans . LilyPond Sans Serif) ...) | |||
font-encoding: | |||
() | |||
... | |||
... | |||
( | |||
( | |||
( | |||
() | |||
... | |||
for | for the example below. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
#(define (supported-properties iface) | #(define (supported-properties iface) | ||
(let ((iface-info (hashq-get-handle (ly:all-grob-interfaces) iface))) | (let ((iface-info (hashq-get-handle (ly:all-grob-interfaces) iface))) | ||
| Line 128: | Line 67: | ||
[[Category:Scheme]] | [[Category:Scheme]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Snippet]] | |||