bugThe FreeType Project - Bugs: bug #55080, Clarification of subpixel rsb/lsb...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #55080: Clarification of subpixel rsb/lsb deltas

Submitter:  Sylvain <slvn>
Submitted:  Fri 23 Nov 2018 09:05:19 PM UTC
   
 
Severity:  3 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Planned Release:  None

Thu 06 Dec 2018 09:42:00 PM UTC, comment #3: 
Alexei Podtelezhnikov <podtelez>
Group Member
Sun 25 Nov 2018 10:24:37 AM UTC, comment #2: 

Ok!

Just something I see which seem to confirm ftcommon is better:

with current ftcommon/ftstring:

- If I render "iiiiii" with hinting light + subpixel, and I just make the size decrease. The global string width always goes decreasing.

If I modify ftstring to refer to freetype.h, and I just make the size decrease.
The global string width doesn't always decrease. It decreases, then can increase, then go decreasing again.

Sylvain <slvn>
Sun 25 Nov 2018 03:44:35 AM UTC, comment #1: 

IMHO, neither is correct. The (less wrong) expression in ftcommon.c   assumes that the distance between the edge stems is not altered by hinting. I do not think that this is true.

If indeed we only consider light hinting that does not move anything in x-direction, than truly the advance rounding delta is stored in rsb_delta and it needs to be subtracted. In the light mode lsb_delta is zero by definition.

Let's wait for Werner's arguments.

Alexei Podtelezhnikov <podtelez>
Group Member
Fri 23 Nov 2018 09:05:19 PM UTC, original submission:  

In subpixel mode:

freetype.h advices to add: rsb_delta - lsb_delta
whereas ftcommon.c is doing:  lsb_delta - rsb_delta

http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/include/freetype/freetype.h#n1839

http://git.savannah.gnu.org/cgit/freetype/freetype2-demos.git/tree/src/ftcommon.c#n1389

Sylvain <slvn>

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by podtelez (Posted a comment)
  • -email is unavailable- added by slvn (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code