<div dir="ltr"><span style="font-size:12.8000001907349px">I'd guess descriptions </span><a href="https://codereview.chromium.org/130433006#msg8" style="font-size:12.8000001907349px" target="_blank">here</a><span style="font-size:12.8000001907349px"> would make that clear for you. For disabling ligature, you should find which OpenType tag your font use for that ligature and tell HarfBuzz to disable that tag on shaping if it is enabled by default, for example </span><a href="http://www.microsoft.com/typography/OpenTypeDev/standard/intro.htm" style="font-size:12.8000001907349px" target="_blank">opentype specification</a><span style="font-size:12.8000001907349px"> suggests 'liga' for "fi" ligature but that may differs on the font you use.</span><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 6:50 PM, Diederick Huijbers <span dir="ltr"><<a href="mailto:diederickh@gmail.com" target="_blank">diederickh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I'm working on a C/C++/OpenGL text input field and wondering if someone can give </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">me some advise on how to deal with ligatures and text input. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Lets say I have a input field and I type "fi". Now, harfbuzz will replace these two </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">characters by the "fi" ligature. To be honest, I've no idea if the ligature "fi" makes </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">the text more readable, but I assume it does. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">But if I use ligatures (because of the reasons harfbuzz uses them), how would I </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">deal with e.g. the placement of the caret in the text input field. I should allow the user</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">to move the caret between the "f" and "i" for example. Though how would I know the</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">correct (visual) x position ? </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">And lets say I use the input field so a user can register him/herself and the value is </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">stored in a database. Would I store the "fi" ligature or both characters separately? </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Currently I think disabling ligatures is my best option, but I'm not sure how I can disable</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">this with harfbuzz. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">roxlu</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div>
<br>_______________________________________________<br>
HarfBuzz mailing list<br>
<a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/harfbuzz" target="_blank">http://lists.freedesktop.org/mailman/listinfo/harfbuzz</a><br>
<br></blockquote></div><br></div></div>