Skip to main content

rpdfium_doc/variable_text/
mod.rs

1// Derived from PDFium's CPVT_* variable text module
2// Original: Copyright 2014 The PDFium Authors
3// Licensed under BSD-3-Clause / Apache-2.0
4// See pdfium-upstream/LICENSE for the original license.
5
6//! Variable text layout engine and supporting types.
7//!
8//! This module corresponds to PDFium's `cpvt_variabletext.h/cpp` and
9//! associated `cpvt_*.h` files. The layout engine implements text flow,
10//! line breaking, alignment, auto font sizing, and character array mode
11//! for interactive form field appearance generation.
12
13#[allow(clippy::module_inception)]
14pub mod variable_text;
15pub mod vt_font_map;
16pub mod vt_line;
17pub mod vt_line_info;
18pub mod vt_section;
19pub mod vt_word;
20pub mod vt_word_info;
21pub mod vt_word_place;
22pub mod vt_word_range;
23
24// Re-export all public types at the module level for backward compatibility.
25pub use variable_text::{Alignment, VariableText, VtFontProvider, VtIterator, VtWordIterator};
26pub use vt_line::Line;
27pub use vt_line_info::LineInfo;
28pub use vt_section::Section;
29pub use vt_word::Word;
30pub use vt_word_info::WordInfo;
31pub use vt_word_place::WordPlace;
32pub use vt_word_range::WordRange;