|
From: | piotrunio-2004 |
Subject: | Odp: Re: This is how to intercept GETINFO and why it should be in FreeType |
Date: | Fri, 28 Aug 2020 21:33:57 +0200 |
User-agent: | GWP-Draft |
Hello Piotr,The way to do it is to first go to ttinterp.c , then at the start ofthe file declare two variables:char FT_injectedGETINFOhack = 0;FT_Long FT_injectedGETINFOhackvalue;this is an interesting idea, thanks.First of all, a commercial font is rendered like this when GETINFO isnot intercepted: https://i.imgur.com/W9FSEzd.pngSize 18ppem and up is where it gets very controversial inrendering. In this case what default v38 FreeType does is end upwith fractional horizontal stems. Using Visual TrueType revealsthat the font only does that when fractional widths are used inClearType. However it is very worrying that this is defaultFreeType behavior, and no FT_RENDER_MODE_XXX is documented to use aninteger width version of subpixel hinting.I don't fully understand what you are saying. Please elaborate. Isthere a documentation bug in FreeType?What happens with the intercepted GETINFO? In the following image Iuse the following settings:FT_injectedGETINFOhack = 1;FT_injectedGETINFOhackvalue = 0x00006C00;https://i.imgur.com/PuhGJ13.png . Suddenly the problems withfractional horizontal stems disappear. This will in fact allow theFreeType user to use a custom GETINFO value, and GETINFO (what fontssee how the renderer is like) becomes detached from the FreeTyperender mode (what the renderer is actually like), allowing forpersonalized renderer settings.Please file this report in the bug tracker as a wishlist issue so thatit doesn't get forgotten.Werner
GETINFO2.txt
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |