[webkit-dev] Cross-platform fonts for Layout Tests

Tony Chang tony at chromium.org
Thu Jun 2 11:30:18 PDT 2011


Perhaps, but in practice, it's not enough.  Here's an ahem pixel test that
is slightly different on Mac and Chromium Linux:
http://trac.webkit.org/browser/trunk/LayoutTests/platform/mac/fast/block/basic/010-expected.png
http://trac.webkit.org/browser/trunk/LayoutTests/platform/chromium-linux/fast/block/basic/010-expected.png

Also, I think it would be hard to tell by examining the HTML if a test uses
another font.  For example, the line height of an empty block might depend
on the default font that isn't specified (does <pre></pre> render the same
height on all platforms?).

On Thu, Jun 2, 2011 at 10:44 AM, Adam Barth <abarth at webkit.org> wrote:

> I thought the whole point of Ahem was to avoid those problems.
>
> Adam
>
>
> On Thu, Jun 2, 2011 at 1:29 AM, Hao Zheng <zhenghao at chromium.org> wrote:
> > Actually, even the same Ahem font will be rendered differently on
> > different platform, depending on the font drawing library, the
> > anti-aliasing algorithm, subpixel, tiny float-point calculation diff
> > on different arch.
> >
> > On Thu, Jun 2, 2011 at 3:30 AM, Eric Seidel <eric at webkit.org> wrote:
> >> I know that Ahem is safe to use across multiple platforms (the font
> metrics
> >> will be the same).  Do we know if there are any other fonts for which
> this
> >> is true?
> >> I'd like to make the style-bot yell at people when they use pixel tests
> with
> >> non-safe fonts.  Right now that list would only include ahem.
> >> -eric
> >> _______________________________________________
> >> webkit-dev mailing list
> >> webkit-dev at lists.webkit.org
> >> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
> >>
> >>
> > _______________________________________________
> > webkit-dev mailing list
> > webkit-dev at lists.webkit.org
> > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
> >
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110602/cbddcba7/attachment.html>


More information about the webkit-dev mailing list