rougier / svg-lib

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

Text in svg no more displayed #26

Open deb75 opened 1 year ago

deb75 commented 1 year ago

Hi

My configuration is emacs 29.0.60 updated in windows 11.

When I try to run :

(dotimes (i 5)
  (insert-image (svg-lib-tag "TODO" nil
                             :font-weight (* (+ i 2) 100))))

I get

cap

you can see all letters are replaced by squares.

It happens even with the same emacs that is working well on another windows (10 here) laptop.

What can cause this ?

deb75 commented 1 year ago

I found the culprit, odd enough it is the font family.

It used to work well with font "iosevka term extended".

If I switch to "iosevka term", it works again well.

I wonder what property between both font makes the difference.

I let this issue open at the moment, willing to dig a little this.

Regards

rougier commented 1 year ago

I think this is related to the underlying svg library that may or may not know how to find a specific font.