public PFTextMetrics MeasureText(PFString str) { EnsureHandleIsValid(); var textMetrics = new PFTextMetrics(); PF.PFCanvasMeasureText(handle, str.handle, str.len, ref textMetrics); return(textMetrics); }