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

how to use SVG attributes? #425

Open
tbenst opened this issue Jul 7, 2021 · 0 comments
Open

how to use SVG attributes? #425

tbenst opened this issue Jul 7, 2021 · 0 comments

Comments

@tbenst
Copy link
Contributor

tbenst commented Jul 7, 2021

I would like to underline some text. From Text documentation, this would seem possible:

More general formatting for the SVG backend is documented here

which in turn describes the text-decoration="underline" property. However, I'm not sure how to do this syntactically.

pseudo-code:

fig = compose(context(), Compose.text(0,font_size,"example text"),
            Compose.fill("black"), fontsize(18pt), textdecoration("underline"))
fig |> SVG(joinpath(@__DIR__, "text_example.svg"))

Is this possible? Happy to help update Compose.jl documentation if so! Thank you

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

No branches or pull requests

1 participant