[old] Implement fontMetrics

This commit is contained in:
Behdad Esfahbod 2012-08-01 00:03:41 -04:00
parent 1e7d860613
commit 4ca743dfb8
1 changed files with 10 additions and 1 deletions

View File

@ -161,7 +161,16 @@ static HB_Fixed
hb_old_getFontMetric (HB_Font old_font,
HB_FontMetric metric)
{
return 0; // TODO
hb_font_t *font = (hb_font_t *) old_font->userData;
switch (metric)
{
case HB_FontAscent:
return font->y_scale; /* XXX We don't have ascent data yet. */
default:
return 0;
}
}
static const HB_FontClass hb_old_font_class = {