<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Actually, HarfBuzz *is* the logical place where the MATH table parser and layout engine should reside. With MATH nearing standardization in OFF (the ISO version of OpenType), it would be logical to make a first attempt. </div><div><br></div><div>Jonathan Kew has written some code to parse the MATH tanle as part of his XeTeX project, but I presume that his code relies on bits of TeX to do the layout, so it's nit self-sufficient.</div><div><br></div><div>I know that Jonathan does collaborate on HarfBuzz and he'd probably be the best person to say how feasible adding MATH to HB would be (because it's not done now). </div><div><br></div><div>At this point, I guess your best bet would be to look at XeTeX, though it may to be a bit heavy on dependancies. </div><div><br></div><div>On the other hand, XeTeX has been ported to JavaScript via emscripten as part of texlive.js, so it may nit be that beastly after all.</div><div><br></div><div>A.<br><br>Sent from my mobile phone.</div><div><br>On 03.03.2015, at 21:46, Elliot Potts <<a href="mailto:elliotpotts@gmail.com">elliotpotts@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
I'm planning on writing a scientific calculator application - this
involves laying out maths in a way similar to TeX (XeTeX, LaTeX,
etc.) and mathml in Mozilla Firefox.<br>
<br>
Initially I looked towards FreeType to render the glyphs in the
Mathematical Operators unicode block - but this is not enough to
provide good looking typography because some glyphs need to be
altered - e.g. the line on a square root sign must extend over it's
operands. I then learned that I could use the MATH Advanced
Typographic Tables found in the OpenType format (section 6.3.6.2 of
the spec - found <a href="http://mpeg.chiariglione.org/standards/mpeg-4/open-font-format/text-isoiec-cd-14496-22-3rd-edition">here</a>)
to draw mathematical glyphs correctly. As far as I can tell,
FreeType does not support reading the MATH tables of OpenType fonts.<br>
<br>
Is there any way that HarfBuzz can help me in laying out maths? My
expectation is no - because my understanding is that harfbuzz is for
layout (or "shaping"?) and not for loading glyphs.<br>
<br>
If I am correct in saying HarfBuzz cannot help, then do you have any
advice in where I should look to next?<br>
<br>
Thanks in advance,<br>
Elliot Potts.<br>
<br>
(PS this is the second time I've sent this in because now I'm a
member of the mailing list)<br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>HarfBuzz mailing list</span><br><span><a href="mailto:HarfBuzz@lists.freedesktop.org">HarfBuzz@lists.freedesktop.org</a></span><br><span><a href="http://lists.freedesktop.org/mailman/listinfo/harfbuzz">http://lists.freedesktop.org/mailman/listinfo/harfbuzz</a></span><br></div></blockquote></body></html>