chickadee » pdf-truetype » embedded-font-string-width

embedded-font-string-width FONT STRING SIZEprocedure

Returns the width of STRING set in FONT at SIZE, in the same units as SIZE (normally points). The widths are exactly those written in the PDF, so this is suitable for centring, right-aligning and line breaking. Raises an error for a character that embedded-font-has-glyph? rejects.