Skip to main content

encode_base14_run

Function encode_base14_run 

Source
fn encode_base14_run(
    text: &str,
    font: Font,
    encodings: &HashMap<Font, DocEncoding>,
) -> Vec<u8> 
Expand description

Encode text against a Base14 face’s DocEncoding. The planner guarantees byte_for_char covers every WinAnsi native and every extended Latin char that fit into the 256-slot budget; any char outside both: Cyrillic, CJK, emoji: renders as ?. Documents that need real coverage should pick the bundled Noto Sans family (the default; users hit this Base14 path only by explicitly asking for Helvetica/Times/Courier via #set text(font: ...)).