cpdf_stringwidth Returns width of text in current font Description floatcpdf_stringwidth intpdf_document stringtext The cpdf_stringwidth function returns the width of the string in text. It requires a font to be set before. See also cpdf_set_font.