summaryrefslogtreecommitdiff
path: root/psprint/source/fontsubset
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2002-04-17 07:35:04 +0000
committerPhilipp Lohmann <pl@openoffice.org>2002-04-17 07:35:04 +0000
commita552bbd90d3589155a0d927f054700956da0ca01 (patch)
tree994acfa516e1aad10450a41e462fa155bc3e0c4f /psprint/source/fontsubset
parentf056e250723fd7f0a70c857a3e9e4448c9ace0be (diff)
#98633# use correct index for left side bearing
Diffstat (limited to 'psprint/source/fontsubset')
-rw-r--r--psprint/source/fontsubset/sft.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/psprint/source/fontsubset/sft.c b/psprint/source/fontsubset/sft.c
index b65557d2557a..dab1569f2044 100644
--- a/psprint/source/fontsubset/sft.c
+++ b/psprint/source/fontsubset/sft.c
@@ -2,9 +2,9 @@
*
* $RCSfile: sft.c,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: hdu $ $Date: 2001-11-30 12:07:22 $
+ * last change: $Author: pl $ $Date: 2002-04-17 08:35:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -59,7 +59,7 @@
*
************************************************************************/
-/* $Id: sft.c,v 1.10 2001-11-30 12:07:22 hdu Exp $
+/* $Id: sft.c,v 1.11 2002-04-17 08:35:04 pl Exp $
* Sun Font Tools
*
* Author: Alexander Gelfenbain
@@ -2605,7 +2605,7 @@ GlyphData *GetTTRawGlyphData(TrueTypeFont *ttf, uint32 glyphID)
d->lsb = GetInt16(hmtx, 4 * glyphID + 2, 1);
} else {
d->aw = GetUInt16(hmtx, 4 * (ttf->numberOfHMetrics - 1), 1);
- d->lsb = GetInt16(hmtx + n * 4, (glyphID - ttf->numberOfHMetrics) * 2, 1);
+ d->lsb = GetInt16(hmtx + ttf->numberOfHMetrics * 4, (glyphID - ttf->numberOfHMetrics) * 2, 1);
}
return d;