public static Size GetTextSize(string text, HersheyFonts fontFace, double fontScale, int thickness, out int baseLine) { if (String.IsNullOrEmpty(text)) throw new ArgumentNullException(text); return NativeMethods.core_getTextSize(text, (int)fontFace, fontScale, thickness, out baseLine); }