[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] implementing detection of hinting/rasterization errors in fon
From: |
Hin-Tak Leung |
Subject: |
[ft-devel] implementing detection of hinting/rasterization errors in fonts |
Date: |
Fri, 1 Jul 2016 20:49:56 +0000 (UTC) |
Hi Werner,
I have started testing the new implementation of rasterization tests in font
validator
(background, planned in https://github.com/HinTak/Font-Validator/issues/5 ) and
comparing
how the new test behaves, with the old 2003 binary.
Specifically, about line 7193 of here - (is line 6619 in current git HEAD)
https://android.googlesource.com/platform/external/freetype/+/9c745321260bb728ab1cd1c8fd5f075854b2ad49/src/truetype/ttinterp.c
where it does:
...
new_dist = org_dist;
}
}
else
new_dist = 0;
...
Since the middle clause is an error condition freetype silently works around,
my initial implementation does:
...
new_dist = org_dist;
EMIT_ERROR_MESSAGE();
}
}
else
new_dist = 0;
...
but the old 2003 binary seems to be doing the equivalent of :
...
new_dist = org_dist;
}
}
else
new_dist = 0;
if( (new_dist == org_dist) && OTHER_YET_UNKNOWN_CONDITION)
EMIT_ERROR_MESSAGE();
...
I.e. the older 2003 binary flags all the cases that Freetype identifies as
errors, but also more. Can you make a guess of what those
OTHER_YET_UNKNOWN_CONDITION might be?
Hin-Tak
- [ft-devel] implementing detection of hinting/rasterization errors in fonts,
Hin-Tak Leung <=
- Re: [ft-devel] implementing detection of hinting/rasterization errors in fonts, Hin-Tak Leung, 2016/07/02
- Re: [ft-devel] implementing detection of hinting/rasterization errors in fonts, Hin-Tak Leung, 2016/07/02
- Re: [ft-devel] implementing detection of hinting/rasterization errors in fonts, Hin-Tak Leung, 2016/07/02
- Re: [ft-devel] implementing detection of hinting/rasterization errors in fonts, Hin-Tak Leung, 2016/07/03
- Re: [ft-devel] implementing detection of hinting/rasterization errors in fonts, Hin-Tak Leung, 2016/07/03
- Re: [ft-devel] implementing detection of hinting/rasterization errors in fonts, Hin-Tak Leung, 2016/07/03