<div dir="ltr">Hey all,<div><br></div><div>I'm running HarfBuzz 1.2.4 with a modified <font face="monospace, monospace">hb_font</font> implementation based on the FreeType implementation in the vanilla version.</div><div><br></div><div>One of the differences is that I pass through the FreeType scale as user-data and apply it when getting the metrics from FreeType (via <font face="monospace, monospace">FT_Set_Transform</font>).</div><div><br></div><div>We've been running with this for a while, and haven't noticed any issues until today when we tried it with some Thai text and found that the <font face="monospace, monospace">hb_glyph_position_t::x_offset</font> was coming back wrong once the text was scaled (weirdly this same issue doesn't seem to affect <font face="monospace, monospace">hb_glyph_position_t::y_offset</font>).</div><div><br></div><div>When the scale is 1, everything is fine, but when the scale is <1 the glyph is too far right (suggesting that the offset is too large), and when the scale is >1 the glyph is too far left (suggesting that the offset is too small).</div><div><br></div><div>That would suggest to me that the value I'm getting back hasn't been scaled appropriately for the actual FreeType glyph. Unfortunately I'm not familiar enough with how HarfBuzz calculates that value to know where that lack of scale is happening.</div><div><br></div><div>I do notice that there's no FreeType override for the <font face="monospace, monospace">set_glyph_h_origin_func</font> from <font face="monospace, monospace">hb_font</font>. Could that be the issue?</div><div><br></div><div>The Thai text being used is ฝึ (U+0E1D, U+0E36) and the font is Tahoma (available in Windows).</div><div><br></div><div>Has anyone else attempted something like this?</div><div><br></div><div>Thanks,</div><div>Jamie.</div></div>