[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] autofit CJK module
From: |
Chia-I Wu |
Subject: |
Re: [ft-devel] autofit CJK module |
Date: |
Sat, 11 Feb 2006 12:05:38 +0800 |
User-agent: |
Mutt/1.5.11 |
On Fri, Feb 10, 2006 at 03:46:27PM +0100, Werner LEMBERG wrote:
> > The CJK module is currently in experimental stage and is disabled by
> > default. If you are interested in helping or want to have a try on
> > it, it can enabled by #define AF_MOD_CJK in src/autofit/afcjk.c.
> Please move AF_MOD_CJK to ftoption.h and enable it by default. This
> makes it easier to test.
>
> BTW, I see code like this in the new module:
>
> FT_Pos threshold = 50 * metrics->units_per_em / 2048;
>
> Where does the `2048' come from? Please add a comment.
I wanted to ask about this on the list but I forgot :(
The thresholds here and in segment linking are in font units. They
should be proportional to units_per_em. As they work great for fonts
with 2048 units, I assume they are decided with 2048 units in mind. If
this is not the case, please replace 2048 with an appropriate value.
I did the same to the latin module. All Type 1 fonts would be affected.
(And I just found that the 3000 in the scoring formula should be scaled
too.)
--
Regards,
olv