Skip to main content

show_string_with_positioning

Function show_string_with_positioning 

Source
pub fn show_string_with_positioning(
    text_state: &mut TextState,
    elements: &[TjElement],
    get_width: &dyn Fn(u32) -> f64,
) -> Vec<RawChar>
Expand description

TJ operator: show strings with positioning adjustments.

Processes an array of TjElements. Strings are rendered like Tj; numeric adjustments shift the text position (in thousandths of a unit of text space). Positive adjustments move left, negative move right.