You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PDFDocument.embedFont is now deprecated. Please use PDFDocument.embedNonstandardFont instead.
When drawing text (with the drawText() or drawLinesOfText() operators, for example), please be sure to use the font.encodeText() method for the font you are using. This is highly recommended for both standard and nonstandard fonts (and is required if you want to use characters outside the ascii range).
The following examples demonstrate usage of the new font.widthOfTextAtSize() and font.heightOfFontAtSize() methods to measure text, as well as usage of the font.encodeText() method to encode characters outside the ascii range.