Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow adding heading text to the fretboard diagram #6

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

FUSAKLA
Copy link

@FUSAKLA FUSAKLA commented Jan 9, 2021

Hi @dmpayton, I really like the library, thanks!

I was just missing the possibility to add heading to the diagram.
I want to add it to a songbook, so it can be printed out.

Example result:

from fretboard import Chord
style = {
    "drawing": {
        "font_size": 8,
        "height": 150,
        "width": 100,
        "spacing": 15,
    },
    "marker": {
        "radius": 5,
        "stroke_width": 1,
    },
    "heading": {
        "height": 15
    }
}
chord = Chord(positions='xx0232', fingers='---132', name="D", style=style)
chord.save("D.svg")

image

So if you are willing to accept this I'd be glad to avoid maintaining own fork :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant