summaryrefslogtreecommitdiff
path: root/chars.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-03 22:17:25 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-03 22:17:25 +0000
commit188c68636a3e22d26ec35b634c801bad757495ef (patch)
tree92b4ca962aa0a915e4720d81934f7f0b39e71331 /chars.c
parentdb72447aff80d8ffa431d3225c289ec49a4c8c84 (diff)
Bug #4381: Fix BDF corruption. (Laurent Deniel)XORG-7_0_99_901
Diffstat (limited to 'chars.c')
-rw-r--r--chars.c5
1 files changed, 3 insertions, 2 deletions
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++;
}
}