public static string PtToPx(string point) { try { int size = Convert.ToInt32(point.Replace("pt","")); if (size < 12) size++; return size.ToString()+"pt"; } catch(Exception) { //unhandled } return point; }