pub use crate::micropdf::text::{
MpBidiDirection as BidiDirection, MpText as Text, MpTextItem as TextItem,
MpTextLanguage as TextLanguage, MpTextSpan as TextSpan,
};
#[cfg(test)]
mod tests {
use super::*;
use std::sync::Arc;
#[test]
fn test_shim_reexport() {
let mut text = Text::new();
let font = Arc::new(crate::fitz::font::Font::new("TestFont"));
let trm = crate::fitz::geometry::Matrix::IDENTITY;
text.show_string(
font,
trm,
"Hello",
false,
0,
BidiDirection::Ltr,
TextLanguage::Unset,
);
assert_eq!(text.text_content(), "Hello");
}
}