From cbbc46215fe0a0ad8a50e991ec442890b8eadc0a Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 2 Aug 2020 21:17:42 +0200 Subject: =?UTF-8?q?Layout=20elements=20and=20pure=20rust=20rendering=20?= =?UTF-8?q?=F0=9F=A5=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/lib.rs') 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 { 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 } -- cgit v1.2.3