* src/bdf/bdflib.c: fixed a bug with zero-width glyphs
this patch comes from the Debian package for libfreetype6 !! How come nobody mentions this on the devel list ??
This commit is contained in:
parent
890f807a7b
commit
6cda6c064f
|
@ -1,3 +1,9 @@
|
||||||
|
2006-02-23 David Turner <david@freetype.org>
|
||||||
|
|
||||||
|
* src/bdf/bdflib.c: fixed a bug with zero-width glyphs
|
||||||
|
this patch comes from the Debian package for libfreetype6 !!
|
||||||
|
How come nobody mentions this on the devel list ??
|
||||||
|
|
||||||
2006-02-23 Chia-I Wu <b90201047@ntu.edu.tw>
|
2006-02-23 Chia-I Wu <b90201047@ntu.edu.tw>
|
||||||
|
|
||||||
* include/freetype/ftoutln.h (enum FT_Orientation): New value
|
* include/freetype/ftoutln.h (enum FT_Orientation): New value
|
||||||
|
|
|
@ -1666,7 +1666,7 @@
|
||||||
nibbles = glyph->bpr << 1;
|
nibbles = glyph->bpr << 1;
|
||||||
bp = glyph->bitmap + p->row * glyph->bpr;
|
bp = glyph->bitmap + p->row * glyph->bpr;
|
||||||
|
|
||||||
for ( i = 0, *bp = 0; i < nibbles; i++ )
|
for ( i = 0, i < nibbles; i++ )
|
||||||
{
|
{
|
||||||
c = line[i];
|
c = line[i];
|
||||||
*bp = (FT_Byte)( ( *bp << 4 ) + a2i[c] );
|
*bp = (FT_Byte)( ( *bp << 4 ) + a2i[c] );
|
||||||
|
@ -1676,6 +1676,7 @@
|
||||||
|
|
||||||
/* Remove possible garbage at the right. */
|
/* Remove possible garbage at the right. */
|
||||||
mask_index = ( glyph->bbx.width * p->font->bpp ) & 7;
|
mask_index = ( glyph->bbx.width * p->font->bpp ) & 7;
|
||||||
|
if ( glyph->bbx.width )
|
||||||
*bp &= nibble_mask[mask_index];
|
*bp &= nibble_mask[mask_index];
|
||||||
|
|
||||||
/* If any line has extra columns, indicate they have been removed. */
|
/* If any line has extra columns, indicate they have been removed. */
|
||||||
|
|
Loading…
Reference in New Issue