bugThe FreeType Project - Bugs: bug #37649, incorrect bearing value since...

 
 

bug #37649: incorrect bearing value since 2.4.4 with not common dpi (only 1 pixel difference)

Submitted by:  Chassagnoux Alexis <chassaa>
Submitted on:  Mon 29 Oct 2012 06:25:35 PM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: InvalidPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 01 Nov 2012 12:22:33 AM UTC, comment #1:

This font doesn't contain any bytecode. Starting with version 2.4.5, FreeType automatically calls the auto-hinter for such fonts, and the auto-hinter can change the font's dimensions.

If you want the old behaviour, load the font with FT_LOAD_NO_AUTOHINT.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Mon 29 Oct 2012 06:25:35 PM UTC, original submission:

Hello,

I think there is a regression since "2.4.5"

When using :
font : "MyriadProSemibold_vn.ttf"
xdpi : 131
ydpi : 141
font size : 14

computed left-side bearing and top-side bearing are not the same since 2.4.5 (correct values with 2.4.4 version).

I did an example (joined test.cpp): 

@PC-core-08: g++ -I../freetype-2.4.10/include -lfreetype test.cpp

@PC-core-08: LD_PRELOAD=../freetype-.4.4/objs/.libs/libfreetype.so.6.6.2 ./a.out 
left = 1
top = 12
advanceX = 896
advanceY = 0

@PC-core-08: LD_PRELOAD=../freetype-.4.5/objs/.libs/libfreetype.so.6.7.0 ./a.out 
left = 0
top = 11
advanceX = 896
advanceY = 0

@PC-core-08: LD_PRELOAD=../freetype-.4.10/objs/.libs/libfreetype.so.6.9.0 ./a.out 
left = 0
top = 11
advanceX = 896
advanceY = 0

With 2.4.4 version bearing values were correct.

Note: my screen is an embedded screen, so my dpi is specific.

Chassagnoux Alexis <chassaa>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #26851:  test.cpp added by chassaa (2KiB - text/x-c++src)
file #26852:  MyriadProSemibold_vn.ttf added by chassaa (123KiB - application/x-font-ttf)

 

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 chassaa (Submitted the item)
  •  

    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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 01 Nov 2012 12:22:33 AM UTCwlStatusNone=>Invalid
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
    Mon 29 Oct 2012 06:25:35 PM UTCchassaaAttached File-=>Added test.cpp, #26851
      Attached File-=>Added MyriadProSemibold_vn.ttf, #26852

    Back to the top


    Powered by Savane 3.1-cleanup1