bugThe FreeType Project - Bugs: bug #25842, Missing support for grayscale...


bug #25842: Missing support for grayscale bitmaps in the memory-optimized sbit loader

Submitted by:  None
Submitted on:  Thu 12 Mar 2009 10:20:52 PM UTC  
Severity:  3 - Normal Item Group:  Incorrect behaviour
Status:  Confirmed Privacy:  Public
Assigned to:  Werner LEMBERG <wl> Open/Closed:  Open
Planned Release:  None

Add a New Comment (Rich Markup)

You are not logged in

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


Sun 15 Mar 2009 07:39:44 AM UTC, comment #1: 

[Here a further comment from Alexey]

OK, I have have attached a test font (Ambrosia.ttf by George
Williams, with some modifications) to my bug report. This font
has a grayscale bitmap strike at 17 pixels. Again the glyph for
"a" is specially distorted to make the bitmap easily
distinguishable from rasterized outlines.

However please note that FontForge can generate either
bit-aligned monochrome bitmaps or byte-aligned grayscale bitmaps
with bit depth 8, and this doesn't cover all formats
theoretically allowed by the TTF specification.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Thu 12 Mar 2009 10:20:52 PM UTC, original submission:  

Both tt_sbit_decoder_load_bit_aligned() and tt_sbit_decoder_load_byte_aligned() in ttsbit0.c assume they always deal with single bits and thus can handle only b&w bitmaps. There is no such problem with the code in ttsbit.c.



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

Attach Files:

Attached Files
file #17691:  Ambrosia.ttf added by None (52KiB - application/x-font-ttf - A test font with a grayscale strike at 17 pixels: Ambrosia by George Williams.)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by wl (Posted a comment)

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

    Date Changed by Updated Field Previous Value => Replaced by
    2009-03-15 wl StatusNone => Confirmed
        Assigned toNone => wl
    2009-03-14 None Attached File- => Added Ambrosia.ttf, #17691

    Back to the top

    Powered by Savane 3.5