diff options
| author | Laurenz Mädje <laurmaedje@gmail.com> | 2019-07-28 22:27:09 +0200 |
|---|---|---|
| committer | Laurenz Mädje <laurmaedje@gmail.com> | 2019-07-28 22:27:09 +0200 |
| commit | b96a7e0cf3c97463ecb746d859b675541a427774 (patch) | |
| tree | dcbae7e29b84264c448ebf211dad5a31c3340715 /src/layout/boxed.rs | |
| parent | 51faad45ad54e8db0009edb3b3b589059b051cb6 (diff) | |
Reuse font loader across compilations 🔋
Diffstat (limited to 'src/layout/boxed.rs')
| -rw-r--r-- | src/layout/boxed.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/layout/boxed.rs b/src/layout/boxed.rs index 15af278a..a860b267 100644 --- a/src/layout/boxed.rs +++ b/src/layout/boxed.rs @@ -1,7 +1,6 @@ //! Block-style layouting of boxes. use crate::doc::{Document, Page, LayoutAction}; -use crate::font::Font; use crate::size::{Size, Size2D}; use super::{ActionList, LayoutSpace, LayoutResult, LayoutError}; @@ -16,15 +15,14 @@ pub struct BoxLayout { } impl BoxLayout { - /// Convert this layout into a document given the list of fonts referenced by it. - pub fn into_doc(self, fonts: Vec<Font>) -> Document { + /// Convert this layout into a document. + pub fn into_doc(self) -> Document { Document { pages: vec![Page { width: self.dimensions.x, height: self.dimensions.y, actions: self.actions, }], - fonts, } } } |
