Measure string width for default font.
int measureText(String text, int fontSize) { return library.MeasureText(string.toNative(text), fontSize); }