freetype
[Top][All Lists]
Advanced

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

Re: [ft] Enabling Subpixel Rendering On freetype-2.7.1


From: Gordon Dickens
Subject: Re: [ft] Enabling Subpixel Rendering On freetype-2.7.1
Date: Sat, 25 Mar 2017 11:42:49 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Hi Werner,

I think that I figured it out. I had also tested with TT_CONFIG_OPTION_SUBPIXEL_HINTING set to a value of 1 and the default value of 2 neither of which rendered the fonts like previous versions of freetype2. It never occured to me to simply undefine it by removing it in ftoption.h. So, when I removed the definition of TT_CONFIG_OPTION_SUBPIXEL_HINTING then rendering went back to being the same as with 2.6.3 and prior versions.

Apparently, if subpixel rendering is enabled by defining FT_CONFIG_OPTION_SUBPIXEL_RENDERING then TT_CONFIG_OPTION_SUBPIXEL_HINTING must not be defined in order to get font rendering like previous versions of freetype2.

So, I think that the problem is solved. Nevertheless, do you have any clarification or information to add?

Thanks,

Gordon




On 03/24/2017 04:15 PM, Gordon Dickens wrote:
Hi Werner,

Thanks for the reply.

I am running KDE Plasma 5 on OpenSUSE 42.2 and I have been enabling subpixel rendering like this for the past 6 years since 2011 with many versions of freetype2 and the fonts have always been rendered the same regardless of the version of freetype2 that I was using.. Then, with freetype-2.7.1 the font rendering changed. I believe that the rendering differences are most significant in GTK applications. Again, I have been enabling subpixel rendering using a patch that sets the following in ftoption.h:

#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING

Attached are two images of the Arial font in Thunderbird rendered with freetype-2.6.3 and freetype-2.7.1 and the hintstyle set to hintmedium. You will see that the fonts with 2.7.1 are rendered more bolder with thicker fonts than with 2.6.3. Again, over the last 6 years, I've never noticed the rendering change from one freetype version to another. However, either something changed with 2.7.1 or I am not doing something correctly.

In the past, prior to freetype-2.7.1, the fonts have been rendered identical to MS Clear Type for any given font and application such as the Arial font with Thunderbird. However, that is no longer the case as can be seen in the attachments.

Let me know if I need to provide any other details regarding my installation.

Thanks very much for your assistance.

Gordon




On 03/24/2017 02:01 PM, Werner LEMBERG wrote:
    I have successfully been enabling subpixel Rendering on previous
    versions of freetype2, most recently with version 2.6.3, with a
    patch that sets the following in ftoption.h:

    #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING

    However, when I upgrade to freetype-2.7.1, then the rendering is
    not the same and it doesn't look nearly as good.
`Does not look nearly as good' is not something we can work with.
Please give more details: Which font, which ppem, etc., etc. Please
also provide snapshot images.

    Are there other parameters that need changing or am I doing
    something wrong?
Without more details I can't answer this.


     Werner



_______________________________________________
Freetype mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/freetype




reply via email to

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