public float GetHeight(float dpi) { float size; Status status = GDIPlus.GdipGetFontHeightGivenDPI(fontObject, dpi, out size); GDIPlus.CheckStatus(status); return(size); }