(xft_find_metric): Fix setting of g->lbrearing.
authorhanda <handa>
Tue, 15 Jun 2004 09:07:11 +0000 (09:07 +0000)
committerhanda <handa>
Tue, 15 Jun 2004 09:07:11 +0000 (09:07 +0000)
src/m17n-X.c

index ebb0fd5..f1cc4f5 100644 (file)
@@ -1640,7 +1640,7 @@ xft_find_metric (MRealizedFont *rfont, MGlyphString *gstring,
 
          XftGlyphExtents (FRAME_DISPLAY (rfont->frame),
                           font_info->font_aa, &code, 1, &extents);
-         g->lbearing = extents.x;
+         g->lbearing = - extents.x;
          g->rbearing = extents.width - extents.x;
          g->width = extents.xOff;
          g->ascent = extents.y;