summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-08-02 21:17:42 +0200
committerLaurenz <laurmaedje@gmail.com>2020-08-02 21:17:42 +0200
commitcbbc46215fe0a0ad8a50e991ec442890b8eadc0a (patch)
tree2efbac21cec46787f1efe0a859564b9614eefa98 /src/lib.rs
parentd5ff97f42ed1e682a66ea8d51e5f9ed1be547b9c (diff)
Layout elements and pure rust rendering 🥏
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6f8ea074..67b94adf 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -13,8 +13,7 @@
//! - **Exporting:** The finished layout can then be exported into a supported
//! format. Submodules for these formats are located in the
//! [export](crate::export) module. Currently, the only supported output
-//! format is [_PDF_](crate::export::pdf). Alternatively, the layout can be
-//! serialized to pass it to a suitable renderer.
+//! format is [_PDF_](crate::export::pdf).
use std::fmt::Debug;
@@ -62,8 +61,6 @@ pub struct Typesetter {
style: LayoutStyle,
/// The base parser state.
parse_state: ParseState,
- /// Whether to render debug boxes.
- debug: bool,
}
impl Typesetter {
@@ -73,7 +70,6 @@ impl Typesetter {
loader,
style: LayoutStyle::default(),
parse_state: ParseState { scope: Scope::with_std() },
- debug: false,
}
}
@@ -87,11 +83,6 @@ impl Typesetter {
self.style.page = style;
}
- /// Set whether to render debug boxes.
- pub fn set_debug(&mut self, debug: bool) {
- self.debug = debug;
- }
-
/// Parse source code into a syntax tree.
pub fn parse(&self, src: &str) -> Pass<SyntaxModel> {
parse(src, Pos::ZERO, &self.parse_state)
@@ -117,7 +108,6 @@ impl Typesetter {
axes: LayoutAxes::new(LTT, TTB),
align: LayoutAlign::new(Start, Start),
nested: false,
- debug: self.debug,
},
).await
}