First, I added a caption to the original example:
\begin{figure}[h]
\begin{tikzpicture}
\draw[thick] (0,0) -- ++(4,0);
\end{tikzpicture}
\caption{Try \textbf{bold} here.}
\end{figure}
Looking at the generated HTML, the font styling changes from span to tspan immediately after the svg dance:
<!--l. 5--><p class="noindent" ><span
class="cmbx-10">this is bold</span>
<!--l. 7--><p class="indent" > <hr class="figure"><div class="figure"
>
<a
id="x1-21"></a>
<!--l. 10--><p class="noindent" ><object data="font_issue-1.svg" width="153.81403 " height="2.33333 " type="image/svg+xml"><p>SVG-Viewer needed.</p></object>
<br /> <div class="caption"
><span class="id">Figure 1: </span><span
class="content">Try <tspan font-family="cmbx" font-size="10">bold </tspan>here.</span></div><!--tex4ht:label?: x1-21 -->
<!--l. 12--><p class="indent" > </div><hr class="endfigure">
<!--l. 14--><p class="indent" > <tspan font-family="cmbx" font-size="10">this should be bold, but isn’t </tspan>
Changing the tspan code to the appropriate span code fixes things, but the problem should be fixed at a more fundamental level.
figureenvironment, I do not get the image, I get a weird little square with some scroll bars and and error message about an error at "line 5" which doesn't correspond to any line in a file of mine. Since I am getting the image I'm not sure exactly how to proceed? – Nat Kuhn Sep 01 '14 at 11:52