<div dir="ltr"><div>I don't know if it helps but with this font, ICU and InDesign zero the coeng (U+17D2) while uniscribe doesn't (string ពុម្ព). but the font doesn't have OpenType features...<br><br></div>Olivier<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/14 Olivier Berten <span dir="ltr"><<a href="mailto:olivier.berten@gmail.com" target="_blank">olivier.berten@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>FYI the same happens with this font after khmer character ុ (glyph "vowelU") in string ពុម្ព<br><br></div>By the way, it's not only Uniscribe since InDesign and LibreOffice (ICU) seem to deal the same way with it.<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></div><span class="HOEnZb"><font color="#888888">Olivier<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/14 Behdad Esfahbod <span dir="ltr"><<a href="mailto:behdad@behdad.org" target="_blank">behdad@behdad.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ok, negative vs positive is not the bug. Uniscribe zeroes mark widths for<br>
Khmer but we don't. I tried to figure out whether Uniscribe does it by<br>
Unicode category or GDEF, but couldn't build a test font...<br>
<br>
At any rate, we need to figure out and do the same. Jonathan, any comments?<br>
<br>
behdad<br>
<div><br>
On 13-06-13 05:31 PM, Olivier Berten wrote:<br>
> After khmer character ិ(glyph "uni17b7") in the string និង<br>
><br>
> Olivier<br>
><br>
><br>
</div>> 2013/6/13 Behdad Esfahbod <<a href="mailto:behdad@behdad.org" target="_blank">behdad@behdad.org</a> <mailto:<a href="mailto:behdad@behdad.org" target="_blank">behdad@behdad.org</a>>><br>
<div>><br>
> Ok, I'll take a look. Can you send me the font?<br>
><br>
> That said, The HarfBuzz API uses signed integers for advance. So I'm not sure<br>
> why this is happening. Where do you observe this behavior again?<br>
><br>
> b<br>
><br>
> On 13-06-13 05:16 PM, Olivier Berten wrote:<br>
> > Well... Harfbuzz will be the only one behaving that way then...<br>
> > That font is rendered fine by Adobe, Microsoft, LibreOffice, ... and<br>
> fontforge<br>
> > as well as ttx/fontTools gives a negative advance width... I guess this<br>
> > doesn't push fixing the font ;-)<br>
> ><br>
> > Olivier<br>
> ><br>
> ><br>
> > 2013/6/6 Behdad Esfahbod <<a href="mailto:behdad@behdad.org" target="_blank">behdad@behdad.org</a> <mailto:<a href="mailto:behdad@behdad.org" target="_blank">behdad@behdad.org</a>><br>
</div>> <mailto:<a href="mailto:behdad@behdad.org" target="_blank">behdad@behdad.org</a> <mailto:<a href="mailto:behdad@behdad.org" target="_blank">behdad@behdad.org</a>>>><br>
<div>> ><br>
> > Hi Olivier,<br>
> ><br>
> > Thanks for the report. I'm hesitant to make HarfBuzz return<br>
> negative advance<br>
> > values as that can confuse downstream users. If this doesn't prove<br>
> to be a<br>
> > major issue, I think we should ignore it for now.<br>
> ><br>
> > behdad<br>
> ><br>
> > On 13-06-01 05:40 PM, Olivier Berten wrote:<br>
> > > Hi!<br>
> > ><br>
> > > Although it isn't complying with the TrueType/OpenType specifications,<br>
> > > some fonts have some glyphs with negative advance width.<br>
> > ><br>
> > > Advance width (in htmx) is defined as USHORT/uint16 but it seems<br>
> > > everybody else reads it as SHORT/int16.<br>
> > ><br>
> > > In the attached font, glyph "uni17b7" (khmer character ិ) has a<br>
> > > negative advance width. You can try it with the string និងសមភាព<br>
> > ><br>
> > > I wouldn't call this a bug in harfbuzz since it's a font bug but for<br>
> > > compatibility reasons, it might be useful to change it...<br>
> > ><br>
> > > Olivier<br>
> > ><br>
> > ><br>
> > ><br>
> > > _______________________________________________<br>
> > > HarfBuzz mailing list<br>
> > > <a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a><br>
> <mailto:<a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a>><br>
</div>> <mailto:<a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a><br>
<div><div>> <mailto:<a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a>>><br>
> > > <a href="http://lists.freedesktop.org/mailman/listinfo/harfbuzz" target="_blank">http://lists.freedesktop.org/mailman/listinfo/harfbuzz</a><br>
> > ><br>
> ><br>
> > --<br>
> > behdad<br>
> > <a href="http://behdad.org/" target="_blank">http://behdad.org/</a><br>
> ><br>
> ><br>
><br>
> --<br>
> behdad<br>
> <a href="http://behdad.org/" target="_blank">http://behdad.org/</a><br>
><br>
><br>
<br>
</div></div><span><font color="#888888">--<br>
behdad<br>
<a href="http://behdad.org/" target="_blank">http://behdad.org/</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>