ascentPixel , descentPixel
public double[] Ver( string cFontAdi, double nFontSize, bool lKalin, bool lItalik, bool lAltiCizgili, bool lUstuCizgili) { FontFamily fontAdi = new FontFamily(cFontAdi); FontStyle Deneme = new FontStyle(); //Deneme = FontStyle.Regular; if (lKalin) Deneme |= FontStyle.Bold; if (lItalik) Deneme |= FontStyle.Italic; if (lAltiCizgili) Deneme |= FontStyle.Underline; if (lUstuCizgili) Deneme |= FontStyle.Strikeout; double ascentPixel = (nFontSize * fontAdi.GetCellAscent(Deneme)) / fontAdi.GetEmHeight(Deneme); double descentPixel = (nFontSize * fontAdi.GetCellDescent(Deneme)) / fontAdi.GetEmHeight(Deneme); return new double[] { ascentPixel, descentPixel }; }