Is autofitter stem darkening compatible with FT_RENDER_MODE_LCD?

Tatsuyuki Ishi <[email protected]>
Newsgroups gmane.comp.fonts.freetype.user
Message-ID <CANqewP1FDgzf5fYNKZsZGqq1ZLx2UzR6K3T5e4VZyXwZAo0f0A@mail.gmail.com>
From the documentation, it seems that FT_RENDER_MODE_LCD is considered
a variant of FT_RENDER_MODE_LIGHT:
https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#ft_load_target_xxx

But it seems that when autofitter checks whether stem darkening should
be available, it strictly requires FT_RENDER_MODE_LIGHT, not
FT_RENDER_MODE_LCD. (src/autofit/afloader.c:380)

Is this behavior intended? I'm also wondering if this is why I can't
enable stem darkening in my JetBrains IDE even with
FREETYPE_PROPERTIES=autofitter:no-stem-darkening=0 set.

FYI, gamma correct rendering can be configured for JetBrains IDE with
a specific set of options:
* -Dsun.java2d.xrender=false
* Use subpixel antialiasing in the options
* Change "lcd.contrast.value" from the "Registry" action for stronger
gamma correction (default is gamma 1.4)

Tatsuyuki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.