rpdfium-doc 7676.6.2

Document-level features for rpdfium
Documentation
// Derived from PDFium's CPVT_* variable text module
// Original: Copyright 2014 The PDFium Authors
// Licensed under BSD-3-Clause / Apache-2.0
// See pdfium-upstream/LICENSE for the original license.

//! 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.

#[allow(clippy::module_inception)]
pub mod variable_text;
pub mod vt_font_map;
pub mod vt_line;
pub mod vt_line_info;
pub mod vt_section;
pub mod vt_word;
pub mod vt_word_info;
pub mod vt_word_place;
pub mod vt_word_range;

// Re-export all public types at the module level for backward compatibility.
pub use variable_text::{Alignment, VariableText, VtFontProvider, VtIterator, 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;