bugThe FreeType Project - Bugs: bug #39398, ftview renders color bitmap glyphs...

 
 

bug #39398: ftview renders color bitmap glyphs with dark color outline.

Submitted by:  None
Submitted on:  Tue 02 Jul 2013 12:35:07 PM UTC  
 
Severity:  3 - Normal Item Group:  None
Status:  Fixed Privacy:  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.

 

( Jump to the original submission)

Tue 22 May 2018 02:45:21 PM UTC, comment #6:

There was a bug in ft2demos caching of gamma corrected gradients. The patch in comment #4 essentially ditched the caching. That caching bug is fixed now.

We might consider using the caching again, but premultiplied BGRA is not designed with gamma correction in mind. Also the premultiplication loses color precision, which will cost dearly in the caching system.

So, is premultiplication really worth it?

Or better question... Do we inherit the premultiplication from PNG or just unfortunately made this decision on our own?

Alexei Podtelezhnikov <podtelez>
Project Member
Mon 05 Aug 2013 03:03:46 PM UTC, comment #5:

Fixed in git also.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Wed 03 Jul 2013 06:12:55 PM UTC, comment #4:

Patch attached. That FruityGirl doesn't have .notdef has no real reason except that I forgot to add.

(file #28485)

Behdad Esfahbod <behdad>
Wed 03 Jul 2013 05:18:46 PM UTC, comment #3:

Right... That's why in the commit message I wrote "The premultiplied bgra blending is still off." I gave up trying to make it work given how complex the ftview blender is. I'm giving it another try now.

Behdad Esfahbod <behdad>
Tue 02 Jul 2013 01:07:41 PM UTC, comment #2:

BTW, the FruityGirl font doesn't contain a bitmap for glyph index 0, the .notdef glyph. Is this intentional?

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Tue 02 Jul 2013 12:58:19 PM UTC, comment #1:

Behdad?

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Tue 02 Jul 2013 12:35:07 PM UTC, original submission:

freetype 2.5.0.1(FT_CONFIG_OPTION_USE_PNG on) + ftdemos 2.5.0.1 +
https://color-emoji.googlecode.com/git/specification/examples/FruityGirl.ttf

on vmware + ubuntu:

% ftview 128 FruityGirl.ttf

then ftview renders color bitmaps glyphs with dark color outline
(please refer to the attached image). Is this a bug or expected
result of ftview?

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #28477:  foo.png added by None (191KiB - image/png - reproduces image)

 

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 behdad (Posted a comment)
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by wl
  •  

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

    Only logged-in users can vote.

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-05 wl StatusNone => Fixed
        Open/ClosedOpen => Closed
    2013-07-03 behdad Attached File- => Added 0001-Fix-BGRA-blending.patch, #28485
    2013-07-02 wl Assigned toNone => wl
        Carbon-Copy- => Added -email is unavailable-
    2013-07-02 None Attached File- => Added foo.png, #28477

    Back to the top


    Powered by Savane 3.3