+2004-08-05 Kenichi Handa <handa@m17n.org>
+
+ * font-ft.c (mfont__ft_drive_otf): Fix sign of g->yoff.
+
2004-08-04 Kenichi Handa <handa@m17n.org>
* font-ft.c (mfont__ft_drive_otf): Call OTF_drive_gdef.
if (format & OTF_XPlaDevice)
g->xoff += DEVICE_DELTA (otfg->f.f1.value->XPlaDevice, size);
if (format & OTF_YPlacement)
- g->yoff = otfg->f.f1.value->YPlacement * size10 / u / 10;
+ g->yoff = - (otfg->f.f1.value->YPlacement * size10 / u / 10);
if (format & OTF_YPlaDevice)
- g->yoff += DEVICE_DELTA (otfg->f.f1.value->YPlaDevice, size);
+ g->yoff -= DEVICE_DELTA (otfg->f.f1.value->YPlaDevice, size);
if (format & OTF_XAdvance)
g->width += otfg->f.f1.value->XAdvance * size10 / u / 10;
if (format & OTF_XAdvDevice)
adjust_anchor (otfg->f.f4.mark_anchor, ft_info->ft_face,
g->code, size, &mark_x, &mark_y);
g->xoff = (base_x - prev->width) - mark_x;
- g->yoff = base_y - mark_y;
+ g->yoff = mark_y - base_y;
g->combining_code = MAKE_COMBINING_CODE_BY_CLASS (0);
}
break;