Skip to main content

encode_text_utf16be

Function encode_text_utf16be 

Source
pub fn encode_text_utf16be(text: &str) -> String
Expand description

Encode text as UTF-16BE for use with CID-keyed fonts

CID-keyed fonts expect text in UTF-16BE encoding. Returns a hex string suitable for PDF (e.g., <FEFF…>)