<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br class=""><br class=""><blockquote type="cite" class="">On Aug 17, 2019, at 8:38 PM, Eli Zaretskii <<a href="mailto:eliz@gnu.org" class="">eliz@gnu.org</a>> wrote:<br class=""><br class="">We have some strange display problem in Emacs with this sequence:<br class=""><br class=""> u+0097 u+0301 u+0302<br class=""><br class="">The problem seems to happen only with DejaVu Sans Mono font. It looks<br class="">like hb-view also displays the sequence with only one of the two<br class="">combining accents, see the images in<br class=""><br class=""> <a href="https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-08/msg01082.html" class="">https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-08/msg01082.html</a><br class=""><br class="">Is there something wrong with this font when displaying this sequence,<br class="">or is there some kind of bug in Emacs and/or HarfBuzz?<br class=""></blockquote><div class=""><br class=""></div>The second accent is placed next to the glyph, but hb-view is incorrectly clipping the image, as you can see from hb-shape output:<div class=""><br class=""></div><div class="">$ hb-shape DejaVuSansMono.ttf -u '061,301,302'<br class="">[aacute=0+1233|uni0302=0+0]<br class=""><div class=""><br class=""></div><div class="">Adding some margins gives:<div class=""><br class=""></div><div class="">$ hb-view DejaVuSansMono.ttf -u '061,301,302’ --margin=0,150,0,0</div><div class=""><br class=""></div><div class=""><img apple-inline="yes" id="CEBCE7AC-47B1-4C7A-8F86-D2FAEA3767F4" src="cid:A4909258-9AB3-47EF-B17B-D66B5DA19EEC" class=""></div><div class=""><br class=""></div><div class="">HarfBuzz will compose U+0061 + U+0301 to U+00E1 (since it prefers composed form when supported by the font), and that glyph does not have anchors to position any marks above it, so the circumflex ends up with its default position next to the glyph.</div><div class="">Regards,</div><div class="">Khaled</div><div class=""><br class=""></div></div></div></body></html>