Open heindel opened 1 year ago
Thanks for reporting this, sorry it'll take me a while to fix this. It looks correct on my system (MacOS with different browsers) and I don't have easy access to other systems at the moment. Have you checked how it looks for you in other browsers?
It looks correct on my system (Win11 with Firefox).
The SVG in question has element <font-face>
:
According to MDN doc, the SVG element <font>
and <font-face>
is Deprecated.
Converting embedded SVG fonts to TTF will increase the file size.
We could keep SVG in src
in CSS @font-face, like:
@font-face {
font-family: "nf0"
src: url(data:image/svg+xml;charset=utf-8, ... ),
font-weight: normal;
font-style: normal;
}
for purpose of clarification, the issue seems to be related to (my) firefox on ubuntu (and unfortunately I have not yet gotten around to look into this in more detail ...) as all is showing fine on, e.g., chromium
Describe the bug All svgs on https://tikz.dev/tikz-animations seem to have missing font options. For example, in the first picture, the two os in Moon are overlapping.
Screenshots
Device / OS / Browser Ubuntu firefox
remedy proposed here's what an expected svg would look like
it is obtain by using the following command to process the source below
dvilualatex animationTest.tex; ./dvisvgm --font-format=ttf,ah animationTest.dvi
this uses a self-compiled dvisvgm with autohinting, but even the -n option instead of --font-format=ttf,a should produce better results
happy bug fixing !