Skip to main content

Module variable_text

Module variable_text 

Source
Expand description

Variable text layout engine and supporting types.

This module corresponds to PDFium’s cpvt_variabletext.h/cpp and associated cpvt_*.h files. The layout engine implements text flow, line breaking, alignment, auto font sizing, and character array mode for interactive form field appearance generation.

Re-exports§

pub use variable_text::Alignment;
pub use variable_text::VariableText;
pub use variable_text::VtFontProvider;
pub use variable_text::VtIterator;
pub use variable_text::VtWordIterator;
pub use vt_line::Line;
pub use vt_line_info::LineInfo;
pub use vt_section::Section;
pub use vt_word::Word;
pub use vt_word_info::WordInfo;
pub use vt_word_place::WordPlace;
pub use vt_word_range::WordRange;

Modules§

variable_text
Variable text layout engine (CPVT_VariableText).
vt_font_map
Variable text font provider trait (IPVT_FontMap / CPVT_FontMap).
vt_line
Line — a laid-out line of text within a section (CPVT_Line).
vt_line_info
Line info — line statistics for the iterator API (CPVT_LineInfo).
vt_section
Section — a paragraph of laid-out text (CPVT_Section).
vt_word
Word — iterator-level character record (CPVT_Word).
vt_word_info
Word info — per-character layout record (CPVT_WordInfo).
vt_word_place
Word place — character position within laid-out text (CPVT_WordPlace).
vt_word_range
Word range — a span of characters in laid-out text (CPVT_WordRange).