From 188c68636a3e22d26ec35b634c801bad757495ef Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 3 Apr 2006 22:17:25 +0000 Subject: Bug #4381: Fix BDF corruption. (Laurent Deniel) --- ChangeLog | 5 +++++ chars.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ae39319..11613fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-04-03 Adam Jackson + + * chars.c: + Bug #4381: Fix BDF corruption. (Laurent Deniel) + 2005-12-20 Kevin E. Martin * configure.ac: diff --git a/chars.c b/chars.c index d221ccb..ec4217d 100644 --- a/chars.c +++ b/chars.c @@ -1,5 +1,5 @@ /* $Xorg: chars.c,v 1.4 2001/02/09 02:05:30 xorgcvs Exp $ */ -/* $XdotOrg: $ */ +/* $XdotOrg: app/fstobdf/chars.c,v 1.3 2005/10/31 16:05:45 alanc Exp $ */ /* Copyright 1990, 1998 The Open Group @@ -214,7 +214,8 @@ EmitCharacters(FILE *outFile, encoding=(chHigh << 8)+chLow; if ((charInfo->width != 0) || (charInfo->right != charInfo->left)) EmitBitmap(outFile, fontHeader, charInfo, encoding, bpr, glyph); - glyph += (charInfo->descent + charInfo->ascent) * bpr; + glyph = glyphs + + offsets[encoding-((firstCharHigh << 8)+firstCharLow) + 1].position; charInfo++; } } -- cgit v1.2.3