bugThe FreeType Project - Bugs: bug #23786, Character displayed wrongly when...

 
 

bug #23786: Character displayed wrongly when xSize != ySize

Submitted by:  丁力 <bigpin>
Submitted on:  Mon 07 Jul 2008 02:36:17 AM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.3.10

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 17 Jul 2009 08:51:33 PM UTC, comment #4:

Indeed, your suggestion seems to do the right thing. Thanks!
I've committed this to the git repository, and I haven't found
any problems so far. Please test!

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Thu 16 Jul 2009 10:25:01 AM UTC, comment #3:

I've been struggling with a similar issue (passing a scaler with disproportionate x/y_res) that causes bad rendering of certain glyphs...

After some debug-sessions I've narrowed it down to the following code in truetype/ttobjs.c, tt_size_init_bytecode():

FT_Size_Metrics* metrics = &size->metrics;
TT_Size_Metrics* metrics2 = &size->ttmetrics;
metrics->x_ppem = 0;
metrics->y_ppem = 0;

This is wrong, as it nukes ppem before calling the truetype interpreter causing the _Stretched functions to never be called.

The metrics pointer used to (in 2.3.1) point to size->root.metrics, but I don't think that is correct either, afaict this code should be omitted altogether (and everything seems to work correctly if you do).

Anonymous
Fri 20 Mar 2009 12:45:40 PM UTC, comment #2:

FreeType has moved to git; bisecting should now much easier by using `git bisect'...

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Mon 07 Jul 2008 05:16:46 AM UTC, comment #1:

Something is screwing up the correct computation of the CVT table values.

It would be great if you can do some bisecting to find out which CVS commit exactly causes the problem. If you have already done so please report it here.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Mon 07 Jul 2008 02:36:17 AM UTC, original submission:

when i set the font size xSize = ySize * 0.75(or some number that less than 1), the Font displayed wrong.

I found than the vision 2.3.1 is right, and the followed vision is wrong. The ver2.3.7 seem better than before, but it also wrong and different from ver2.3.1.

The attached files is the font and the result for some version.

丁力 <bigpin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #16008:  C2_1.ttf added by bigpin (59KiB - application/octet-stream)
file #16009:  2.3.1_x_size0.75.JPG added by bigpin (45KiB - image/pjpeg)
file #16010:  2.3.5_x_size0.75.JPG added by bigpin (46KiB - image/pjpeg)
file #16011:  2.3.7.JPG added by bigpin (35KiB - image/pjpeg)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by bigpin (Submitted the item)
  • -unavailable- added by bigpin
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 12 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 17 Jul 2009 08:51:33 PM UTCwlStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.3.10
    Fri 20 Mar 2009 12:45:40 PM UTCwlSummaryCharacter displayed wrong when xSize != ySize=>Character displayed wrongly when xSize != ySize
    Mon 07 Jul 2008 05:16:46 AM UTCwlStatusNone=>Confirmed
      Assigned toNone=>wl
      SummaryCharacter displayed wrong when xSize != ySize。=>Character displayed wrong when xSize != ySize
    Mon 07 Jul 2008 02:36:17 AM UTCbigpinAttached File-=>Added C2_1.ttf, #16008
      Attached File-=>Added 2.3.1_x_size0.75.JPG, #16009
      Attached File-=>Added 2.3.5_x_size0.75.JPG, #16010
      Attached File-=>Added 2.3.7.JPG, #16011
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1