<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
</span>You don't need to look into bearings metrics if you want to render<br>
something. And no, they are not offsets.<br>
<br>
HB gives you advances and offset vectors. So what you need to do is:<br>
<br>
(origin) -> (render glyph at origin+offset) -> (move origin by advance)<br>
-> repeat.<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small;display:inline">I guess the point of confusion is what does "render glyph" mean in your flowchart here. I am not able to conceive of any version of "render glyph" whose implementation does not involve adding horiBearingX, which is why I wonder if you guys are thinking about it as calling some API call that people commonly presume but which is not what is going on in my case.</div></div><div><div class="gmail_default" style="font-size:small;display:inline"></div> </div><div><div class="gmail_default" style="font-size:small;display:inline"></div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
</span>Directionality is more complicated than setting a text property<br>
unfortunately. To shape it properly you have to pass segments of text of<br>
same resolved direction to HB, it won't do it for you.<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small;display:inline">I have already implemented this, it's not in question here (in fact the blog posting I linked intentionally uses bidi text in the Arabic example because that is harder than just drawing straight Arabic!)</div></div><div class="gmail_default" style="font-size:small"></div></div></div></div>