cdelker / schemdraw

MIT License
107 stars 20 forks source link

Unable to specify fonts but only when using ziamath #37

Closed Stephenmccaul closed 1 day ago

Stephenmccaul commented 4 months ago

This is on MacOS using python 3.11 schemdraw 0.18 rendering to svg files.

For labels I would like to specify a particular font for both style sake and because of the need of a few esoteric unicode characters. This works fine if I do not have ziamath installed. Once I install ziamath my font name choices no longer work. I'm using system installed TTFs.

Of course I would like to have LaTeX rendering but this breaks many of our labels. Sadly the label text font requirements are more important to us than pretty math so our current workaround is to have ugly math :(

cdelker commented 4 months ago

Ziamath isn't currently able to locate a system-installed font by name, it only takes a full path to the ttf/otf file. This would be a good feature to have, so I opened https://github.com/cdelker/ziafont/issues/3.

cdelker commented 1 day ago

Enabled with ziamath 0.11.