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 Mar 12 22:20:52 2009  
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: ConfirmedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Open
Planned Release: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Sun Mar 15 07:39:44 2009, 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 Mar 12 22:20:52 2009, 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 File(s):

Attached Files
file #17691:  Ambrosia.ttf added by None (52kB - 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
  • -unavailable- added by wl (Posted a comment)

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Mar 15 07:40:15 2009wlStatusNone=>Confirmed
      Assigned toNone=>wl
    Sat Mar 14 20:48:36 2009NoneAttached File-=>Added Ambrosia.ttf, #17691

    Back to the top

    Powered by Savane 3.1-cleanup1