<div dir="ltr">Hi All ,<div><br></div><div>After shaping and rendering latin and CJK script in TTB vertical direction using harfbuzz shaping , now i want to render devnagri script , where multiple glyphs  , most of the time , form a cluster . If i send devnagari text via harfbuzz and set direction "TTB" then advances ( see the highlighted portion in output ) returned by harfbuzz for all glyphs in a cluster indicate that harfbuzz is shaping each glyph for standalone rendering  and ignoring the fact that glyph could form a cluster with another .</div><div><br></div><div>See the output of devnagri script codepoints in TTB direction .</div><div>Input command : </div><div><br></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">./hb-shape --font-file="/Users/vgautam/Downloads/DevanagariMT.ttc"<span class="gmail-Apple-converted-space" style="">  </span>--unicodes="&#x0939;&#x093F;&#x0902;&#x0926;&#x0940; &#x091F;&#x093E;&#x092F;&#x092A;&#x093F;&#x0902;&#x0917;" --direction=ttb --show-unicode --no-glyph-names</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Output Value :</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font size="4"><U+0939,U+093F,U+0902,U+0926,U+0940,U+091F,U+093E,U+092F,U+092A,U+093F,U+0902,U+0917><br>[398=0@-327,-2547+0,<b style="background-color:rgb(255,0,0)">-3293</b>|99=0@-558,-2026+0,<b style="background-color:rgb(255,0,0)">-3293</b>|83=3@-545,-2255+0,<b style="background-color:rgb(255,0,0)">-3293</b>|102=3@-327,-2543+0,<b style="background-color:rgb(255,0,0)">-3293</b>|76=5@-514,-2309+0,-3293|100=5@-327,-2252+0,-3293|91=7@-599,-2252+0,-3293|398=8@-327,-2547+0,-3293|86=8@-578,-2252+0,-3293|68=11@-607,-2254+0,-3293]</font><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p></div><div><br></div><div>How should I shape indic text with harfbuzz for TTB direction . Should i shape devnagri as LTR text and then render cluster after cluster in vertical .  <br clear="all"><div><br></div>Thanks</div><div>Vishal Gautam</div></div>