[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] rendering differences between 2.2.x, 2.3.x and CVS
From: |
David Turner |
Subject: |
Re: [ft-devel] rendering differences between 2.2.x, 2.3.x and CVS |
Date: |
Thu, 26 Apr 2007 16:25:31 +0200 |
Bonjour Pierre,
the difference in text height is explained by the fact that, until recently,
a value of 0 for y_dpi in a call to FT_Set_Char_Size was incorrectly
interpreted as
the default resolution of 72dpi, instead of meaning "same as the horizontal
resolution"
this means your code was doing FT_Set_Char_Size(face, size, size, 100, 72) in
2.2.x
and FT_Set_Char_Size(face, size, size, 100, 100) in 2.3.4 and later
the Ubuntu version uses the bytecode interpreter, hence the difference with the
release version of 2.2.1
the 2.3.4 and CVS version should have identical rendering. I think that the
image
shown on the bottom right corner is incorrect, it looks like the one from 16pt
instead
of 20pt
Hope this helps,
- David Turner
- The FreeType Project (www.freetype.org)
first of all, the reason why the characters appear squished in the first two
columns if because a value of y_dpi of 0 is interpreted as the default "72"
in FT_Set_Char_Size
On Thu, 26 Apr 2007 15:15:30 +0200, "Pierre" <address@hidden> said:
> Hi,
>
> While trying to have a small example to reproduce a libGD recent bug
> report (http://bugs.libgd.org/?do=details&task_id=76), I modified one
> of the manual example to see how looks the default rendering across
> the following versions: 2.2.1, 2.2.1-Ubuntu Feisty, 2.3.4 and CVS.
>
> Here is the result of the tests (modified source there too), using the
> Verdana font (MS Core fonts):
>
> http://pierre.libgd.org/ft2/comparison.html
>
> Other examples (using libgd) are visible in the bug report directly.
>
> As reported in the gd bug, the differences are important. Some may be
> related to the default mode (autohinting mode, etc.). But what
> surprised me in the differences regarding the size (height) of the
> results.
>
> I'm wondering what's wrong or if there is anything to do to
> hide/minimize these differences.
>
> Any advices or suggestions are more than welcome.
>
> Regards,
> --Pierre
>
>
> _______________________________________________
> Freetype-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/freetype-devel