<div dir="ltr">If the font has a GPOS table, we won't do any fallback positioning. As a result, if font has missing data (anchors in this case), you get exposed to that.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 18, 2019 at 4:06 PM Khaled Hosny <<a href="mailto:dr.khaled.hosny@gmail.com">dr.khaled.hosny@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Aug 18, 2019, at 4:40 AM, Eli Zaretskii <<a href="mailto:eliz@gnu.org" target="_blank">eliz@gnu.org</a>> wrote:<br>
> <br>
>> From: Khaled Hosny <<a href="mailto:dr.khaled.hosny@gmail.com" target="_blank">dr.khaled.hosny@gmail.com</a>><br>
>> Date: Sun, 18 Aug 2019 00:48:14 +0200<br>
>> Cc: Harfbuzz <<a href="mailto:harfbuzz@lists.freedesktop.org" target="_blank">harfbuzz@lists.freedesktop.org</a>><br>
>> <br>
>>> <a href="https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-08/msg01082.html" rel="noreferrer" target="_blank">https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-08/msg01082.html</a><br>
>>> <br>
>>> Is there something wrong with this font when displaying this sequence,<br>
>>> or is there some kind of bug in Emacs and/or HarfBuzz?<br>
>> <br>
>> 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:<br>
>> <br>
>> $ hb-shape DejaVuSansMono.ttf -u '061,301,302'<br>
>> [aacute=0+1233|uni0302=0+0]<br>
>> <br>
>> Adding some margins gives:<br>
>> <br>
>> $ hb-view DejaVuSansMono.ttf -u '061,301,302’ --margin=0,150,0,0<br>
>> <br>
>> <br>
>> <br>
>> 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.<br>
> <br>
> So this is indeed some problem with that particular font?<br>
<br>
It is partly a font issue (missing anchors and combining marks default position to the left of base glyph), and partly HarfBuzz design decision of preferring composed forms. See <a href="https://github.com/harfbuzz/harfbuzz/issues/653" rel="noreferrer" target="_blank">https://github.com/harfbuzz/harfbuzz/issues/653</a>.<br>
<br>
Regards,<br>
Khaled<br>
_______________________________________________<br>
HarfBuzz mailing list<br>
<a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/harfbuzz" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/harfbuzz</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div>