This struct represents the data of a font.
It contains information about the font’s bounding box, ascent, descent, cap height, italic angle, and stemV.
Reference: https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/pdfreference1.5_v6.pdf
Decodes a text string.
Depending on the BOM at the start of the string, a different encoding is chosen.
All encodings specified in PDF2.0 are supported (PDFDocEncoding, UTF-16BE,
and UTF-8).
Encodes the given str to UTF-8. This method of encoding text strings
is first specified in PDF2.0 and reader support is still lacking
(notably, Adobe Acrobat Reader doesn’t support it at the time of writing).
Thus, using it is NOT RECOMMENDED.