[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#539108: bdf2psf does not handle empty bitmaps



On Wed, Jul 29, 2009 at 05:45:29PM +1000, Tim Allen wrote:
> 
> Steps to reproduce:
> 
> 1. Get a sample BDF file with an empty bitmap for the U+0020 SPACE glyph:
> 
>    sudo aptitude install ttf-bitstream-vera otf2bdf
>    otf2bdf -r 72 -p 12 -c C \
>      /usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf |
>      sed -e "s/AVERAGE_WIDTH.*/AVERAGE_WIDTH 80/" > vera-mono-12.bdf
> 
>    (the sed invocation is required because bdf2psf sanity-checks the 
>    AVERAGE_WIDTH property rather than the font bounding box, or checking 
>    the DWIDTHs of the glyphs that it actually uses)
> 2. Convert the BDF file to a PSF file:
> 
>    bdf2psf vera-mono-12.bdf \
>      /usr/share/bdf2psf/standard.equivalents \
>      /usr/share/bdf2psf/required.set+/usr/share/bdf2psf/useful.set \
>      256 \
>      vera-mono-12.psf
> 
> 3. Load the resulting psf file:
> 
>    consolechars -f vera-mono-12.psf
> 
> Expected result:
> Character cells containing a U+0020 SPACE glyph should be blank.
> 
> Actual result:
> Character cells containing a U+0020 SPACE glyph contain random noise, as 
> though they displayed uninitialised memory.

Hello,

I am unable to reproduce this - the space symbol in the psf font 
I obtain is correct.  Can you attach your vera-mono-12.bdf and 
vera-mono-12.psf?

Anton Zinoviev




Reply to: