> No, (good) auto-hinting is not available for monochrome display.

Does this mean even if I load the glyph with FT_LOAD_FORCE_AUTOHINT, the
autofit algorithm also will not perform any hinting?
I'm using the TrueType font, any way to improve the hinting other than
FT_LOAD_TARGET_MONO?

> A segmentation fault shouldn't happen; I guess you are forgetting to
check a return value somewhere.  If the problem persists please
provide a small stand-alone code snippet for testing purposes that I
can compile and run on the command line.

bad case : Segmentation fault "potentially unexpected fatal signal 11"
 -->tried with combination of
FT_LOAD_RENDER | FT_LOAD_FORCE_AUTOHINT
FT_LOAD_RENDER | FT_LOAD_TARGET_MONO | FT_LOAD_FORCE_AUTOHINT
FT_LOAD_RENDER | FT_LOAD_MONOCHROME | FT_LOAD_FORCE_AUTOHINT
[image: image.png]

Good case
[image: image.png]


Thank You.

Best Regards
JM Moon


On Wed, 8 Nov 2023 at 00:20, Werner LEMBERG <w...@gnu.org> wrote:

>
> > I am exploring this FreeType font engine library, am wondering if the
> > auto-fit(auto-hint) support for monochrome display as well?
>
> No, (good) auto-hinting is not available for monochrome display.
>
> > I get segmentation fault whenever I use this flag ->
> > FT_LOAD_FORCE_AUTOHINT
> >
> > FT_LOAD_RENDER | FT_LOAD_MONOCHROME | FT_LOAD_FORCE_AUTOHINT
>
> A segmentation fault shouldn't happen; I guess you are forgetting to
> check a return value somewhere.  If the problem persists please
> provide a small stand-alone code snippet for testing purposes that I
> can compile and run on the command line.
>
>
>     Werner
>

Reply via email to