Terrible rendering with FT 2.12
Input:
<p style="font-size: 9.75pt;">23:59 9.75pt / 13px</p>
<p style="font-size: 10pt;">23:59 10pt</p>
<p style="font-size: 12pt;">23:59 12pt</p>
<p style="font-size: 13pt;">23:59 13pt</p>
<p style="font-size: 14pt;">23:59 14pt</p>
I let this render in Firefox 99 on openSUSE Tumbleweed 20220416 amd64, xorg 21.1.3 with fixed 96dpi setting. Font used is Arial v7.00.
Observed and regressed in FT 2.12:
Expected (FT 2.11):
git bisection points to:
7809007a5b88b15207d6c6680cd8a979b122eafa is the first bad commit
commit 7809007a5b88b15207d6c6680cd8a979b122eafa
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Date: Sat Dec 11 22:22:57 2021 -0500
[truetype] Relocate subpixel flag setting.
`TT_RunIns` is too busy to deal with subpixel flags. It is better
to set them in `tt_loader_init`, which is executed before each
glyph program.
* src/truetype/ttinterp.c (TT_RunIns): Move the flag setting from
here...
* src/truetype/ttgload.c (tt_loader_init): ... to here.
src/truetype/ttgload.c | 31 +++++++++++++++++++++++++++++--
src/truetype/ttinterp.c | 29 -----------------------------
2 files changed, 29 insertions(+), 31 deletions(-)