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

no glow in CairoMakie #4625

Open
3 tasks done
aplavin opened this issue Nov 25, 2024 · 3 comments
Open
3 tasks done

no glow in CairoMakie #4625

aplavin opened this issue Nov 25, 2024 · 3 comments
Labels
bug CairoMakie This relates to CairoMakie, the vector backend for Makie based on Cairo.

Comments

@aplavin
Copy link
Contributor

aplavin commented Nov 25, 2024

Running text((0,0), text="abc", glowwidth=5, glowcolor=:red) shows glow with the GLMakie backend, but just shows the raw text (without glow) with CairoMakie.
Would be nice to support it for Cairo as well, including pdf exports :)

  • what version of Makie are you running? (]st -m Makie) latest, 0.21.16
  • can you reproduce the bug with a fresh environment ? (]activate --temp; add Makie) yes
  • What platform + GPU are you on? any
@aplavin aplavin added the bug label Nov 25, 2024
@asinghvi17
Copy link
Member

Is there a way to do that in base Cairo? A quick google reveals https://stackoverflow.com/questions/9630008/how-can-i-create-a-glow-around-a-rectangle-with-svg, but those are all SVG filters, which Cairo doesn't provide access to :(

@aplavin
Copy link
Contributor Author

aplavin commented Nov 27, 2024

I'm not very familiar with Cairo, but they seem to have the ability to blur an object after rendering. And "text with glow" is basically "blurred text + regular text on top".

@asinghvi17
Copy link
Member

That looks like it's only when rendering to image surfaces though, so for things like SVG output it would either fail or trigger rasterization. Not what one wants!

One more reason to build an SVGMakie I guess :D

@t-bltg t-bltg added the CairoMakie This relates to CairoMakie, the vector backend for Makie based on Cairo. label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug CairoMakie This relates to CairoMakie, the vector backend for Makie based on Cairo.
Projects
None yet
Development

No branches or pull requests

3 participants