freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Monochrome rendering changes with 2.8


From: Werner LEMBERG
Subject: Re: [ft] Monochrome rendering changes with 2.8
Date: Sat, 10 Jun 2017 02:14:36 +0200 (CEST)

> I am using FT_LOAD_TARGET_MONO to render for example Geneva.ttf in
> monochrome mode at 7 points 96 DPI.  As expected the change to v40
> made the text ugly, so I switched back to v35 by setting the
> truetype interpreter-version property.  [...]

You've hit a bug in FreeType, already fixed in git.  MONO rendering
should not be affected by selecting v40.

> 1) Is this the correct / recommended / future-proof way to render 
> monochrome glyphs or do I need to tweak other settings?

Only FreeType versions 2.7 to 2.8 (inclusively) need v35 for MONO due
to the bug.

> 2) In some cases the ascender / descender values changed. 
> 
>>From 2.6.3:
> Loading font GENEVA.TTF     7
>  font.fm.textHeight        12
>  font.face.size.metrics.ascender         9       576
>  font.face.size.metrics.descender        -2      -128
> 
> To 2.8:
> Loading font GENEVA.TTF     7
>  font.fm.textHeight        12
>  font.face.size.metrics.ascender        10       640
>  font.face.size.metrics.descender        -3      -192

Can you please try and check current git whether you still get these
differences?


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]