<div dir="ltr"><div> 2014-11-06 21:32 GMT+04:00 Behdad Esfahbod <span dir="ltr"><<a href="mailto:behdad@behdad.org" target="_blank"><font color="#0066cc">behdad@behdad.org</font></a>></span>:<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><p><span>On 14-11-05 11:50 PM, Khaled Hosny wrote:<br>> Tahoma (at least the version shipped in Windows 7) has a kern table,<br>> but no kern feature in its GPOS table, so HarfBuzz will not apply the<br>> kern table as Behdad described. Uniscribe does not apply the kern<br>> table here either AFAICT, so I think the font is working as intended.<br><br></span>That was indeed my thinking before.  From what I remember, Uniscribe *never*<br>applied the TrueType 'kern' table; it was left to applications to do that.<br><br>So I think what I like to see is: on versions of Windows that ship with such<br>fonts, does notepad apply kerning?  If it does, we should do in HarfBuzz.<br>Otherwise I'm leaning towards keeping HarfBuzz as is.</p></blockquote><div> Notepad on my Win7 doesn't apply kerning for Tahoma.</div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><p>That said, "fixing" this is about three lines of code.  If Konstantin wants it<br>badly, I don't mind doing it.</p></blockquote><div>That wasn't me who wants, that was a user who thinks it is a noricable regression since when we were using HB-old :)</div><div> </div><div>As a possible solution, can we have some flag to switch between "agressive" (forced) and a feature-driven kerning?</div><div> </div></div><div>2014-11-04 10:51 GMT+04:00 Behdad Esfahbod <span dir="ltr"><<a href="mailto:behdad@behdad.org" target="_blank"><font color="#0066cc">behdad@behdad.org</font></a>></span>:</div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><p>The rule in HarfBuzz-ng is, if the font has *any* GPOS, then the old-style<br>kern table is not applied.  This is not exactly what OpenType recommends, but<br>is a cleaner approach than applying old-style kern if the GPOS table has no<br>'kern' feature.</p></blockquote><div>What OpenType recommends for such fonts?</div><div> </div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Regards,<br>Konstantin</div></div>
<br><div class="gmail_quote">2014-11-07 0:25 GMT+04:00 Jonathan Kew <span dir="ltr"><<a href="mailto:jfkthame@gmail.com" target="_blank">jfkthame@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 6/11/14 20:10, Khaled Hosny wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
On Thu, Nov 06, 2014 at 09:32:26AM -0800, Behdad Esfahbod wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
On 14-11-05 11:50 PM, Khaled Hosny wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Tahoma (at least the version shipped in Windows 7) has a kern table,<br>
but no kern feature in its GPOS table, so HarfBuzz will not apply the<br>
kern table as Behdad described. Uniscribe does not apply the kern<br>
table here either AFAICT, so I think the font is working as intended.<br>
</blockquote>
<br>
That was indeed my thinking before.  From what I remember, Uniscribe *never*<br>
applied the TrueType 'kern' table; it was left to applications to do that.<br>
<br>
So I think what I like to see is: on versions of Windows that ship with such<br>
fonts, does notepad apply kerning?  If it does, we should do in HarfBuzz.<br>
Otherwise I'm leaning towards keeping HarfBuzz as is.<br>
</blockquote>
<br>
I tried notepad while testing this and it did not apply kerning for that<br>
font (I got kerning in few other random fonts I tried, just in case).<br>
</blockquote>
<br></span>
In the fonts where you did get kerning, is there a GPOS 'kern' feature present?<span><br>
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
That said, "fixing" this is about three lines of code.  If Konstantin wants it<br>
badly, I don't mind doing it.<br>
<br>
Jonathan, what do you think?<br>
</blockquote>
<br>
I recall people complaining loudly when Firefox started using HarfBuzz<br>
for Latin in Windows because it applied kerning to some fonts that other<br>
Windows applications did not kern (not sure what fonts/Windows versions<br>
were involved, though).<br>
</blockquote>
<br></span>
Right. There appear to be some fonts out there that have overly "aggressive" kern tables, but as Windows apps in general don't apply the kerning, nobody notices. Then when someone does start applying the kerning, people don't like the result.<span class="HOEnZb"><font color="#888888"><br>
<br>
JK<br>
<br>
</font></span></blockquote></div><br></div>