CommonFontInfo GetFontInfoSys(Font font) { sInitFt(); CommonFontInfo fi; FT_Face face = FTFace(font); if(face) { fi.ascent = face->size->metrics.ascender >> 6; fi.descent = -(face->size->metrics.descender >> 6); fi.height = fi.ascent + fi.descent; fi.lineheight = face->size->metrics.height >> 6; fi.external = 0; fi.internal = 0; fi.overhang = 0; fi.maxwidth = face->size->metrics.max_advance >> 6; fi.avewidth = fi.maxwidth; fi.default_char = '?'; fi.fixedpitch = font.GetFaceInfo() & Font::FIXEDPITCH; fi.ttf = true;//strcmp(FT_Get_X11_Font_Format(face), "TrueType") == 0; // ???? } else