rougier / svg-lib

Emacs SVG libraries for creatings tags, icons and bars
GNU General Public License v3.0
339 stars 30 forks source link

SVG's Not Being Inserted #38

Closed chookity-pokk closed 9 months ago

chookity-pokk commented 9 months ago

I have this and svg-tag-mode installed and when using tag mode I can get SVG's without a problem. But using (insert-image (svg-lib-tag "TODO")) doesn't insert anything. I tried the whole demo and never got anything to insert properly using svg-lib. Below is a screenshot of TODO as an svg tag and the highlighted section is what I get when running the svg lib tag for TODO. I tried several other words and I get the same result every time.

image

I am using Emacs 29.1 on Arch Linux and recently updated the svg packages this week.

Edit: Another example with the pie progress bar.

image

chookity-pokk commented 9 months ago

Okay, I ended up solving this by running (svg-lib-button-mode 1). I'll open a PR shortly that will have that at the top of the demo file.

image

rougier commented 8 months ago

For svg-lib-button-mode I think you only need to extract the line related to font-lock-properties.