<div>
                    Hi Behdad,
                </div><div><br></div><div>Thanks for the quick response. We were also considering using emscripten, but with FreeType it looked too slow. With only HarfBuzz it might just work, though. Will look into this.</div><div><br></div><div>Having the UCDN project is really cool. When do you plan to integrate it with HarfBuzz? Is there a way I can make HarfBuzz use it already?</div><div><br></div><div>I have a few other questions about how to use HarfBuzz for our needs:</div><div><ul><li>Are there best practices to layout rich text, where fonts/colors/underlines/etc. can mix?</li><li>Is HarfBuzz capable of breaking lines at a certain width? Or is this something that I would have to do?</li><li>Does it support OpenType features like Optical Bounds that work with line bounds?</li><li>Is there a list of features/languages/scripts supported by HarfBuzz somewhere?</li></ul></div><div><div>-- </div><div>Thanks,</div><div>Lorant</div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">On Tuesday, September 4, 2012 at 2:15 AM, Behdad Esfahbod wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>On 09/03/2012 08:44 AM, Lóránt Pintér wrote:</div><blockquote type="cite"><div>Hi,</div></blockquote><div><br></div><div>Hi,</div><div><br></div><blockquote type="cite"><div><div>The company I work for is developing a multi-platform tool that needs proper</div><div>layout of text for all kinds of scripts and languages. Using HarfBuzz looks</div><div>really promising, but we need to have a solution that works across platforms,</div><div>including browsers and stuff. Do you know of a solution similar to HarfBuzz</div><div>that can do OpenType text layouting that can be used from, say, JavaScript?</div><div><br></div><div>If there is no such solution, we would be willing to port as much of HarfBuzz</div><div>as feasible to JS, and maintain the port further on as an open-source project.</div><div>Would you be interested in helping us create such a port?</div></div></blockquote><div><br></div><div>I've been planning to experiment with this myself, but will be happy to see</div><div>others do instead.  I also think using emscripten makes most sense right now.</div><div> FreeType compiles through emscripten easily.  Before, we didn't have a</div><div>light-weight Unicode-callbacks implementation, but now there is the ucdn [1].</div><div> So, it's a matter of putting the three pieces together and wiring it up to</div><div>HTML5 canvas.  Definitely possible.</div><div><br></div><div>behdad</div><div><br></div><div>[1] <a href="https://github.com/grigorig/ucdn">https://github.com/grigorig/ucdn</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>