+
+ //font->layout->ascent = abs(face->ascender)*FT_SCALE*loadfont_scale*20/FT_SUBPIXELS/2; //face->bbox.xMin;
+ //font->layout->descent = abs(face->descender)*FT_SCALE*loadfont_scale*20/FT_SUBPIXELS/2; //face->bbox.xMax;
+ //font->layout->leading = font->layout->ascent + font->layout->descent;
+
+ font->layout->ascent = -fontbbox.ymin;
+ if(font->layout->ascent < 0)
+ font->layout->ascent = 0;
+ font->layout->descent = fontbbox.ymax;
+ if(font->layout->descent < 0)
+ font->layout->descent = 0;
+ font->layout->leading = fontbbox.ymax - fontbbox.ymin;
+