diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-04 23:31:35 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-04 23:31:35 +0200 |
| commit | 335fa2d118718b4dba539294a8ef6c96c5bbf09e (patch) | |
| tree | 08e48d0c18c350bc9479d0d801d2320628d8e4a2 /src/export/pdf.rs | |
| parent | 605ab104c5e041c345007020d277b4c6267debe6 (diff) | |
Small improvements 🍪
Diffstat (limited to 'src/export/pdf.rs')
| -rw-r--r-- | src/export/pdf.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/export/pdf.rs b/src/export/pdf.rs index fb1b3e3b..ccbc01f1 100644 --- a/src/export/pdf.rs +++ b/src/export/pdf.rs @@ -26,11 +26,11 @@ use crate::length::Length; /// The raw _PDF_ is written into the `target` writable, returning the number of /// bytes written. pub fn export<W: Write>( - layout: &[BoxLayout], + layouts: &[BoxLayout], loader: &FontLoader, target: W, ) -> io::Result<usize> { - PdfExporter::new(layout, loader, target)?.write() + PdfExporter::new(layouts, loader, target)?.write() } struct PdfExporter<'a, W: Write> { @@ -42,7 +42,7 @@ struct PdfExporter<'a, W: Write> { /// tree and so on. These offsets are computed in the beginning and stored /// here. offsets: Offsets, - // Font remapping, see below at `remap_fonts`. + // Font remapping, for more information see `remap_fonts`. to_pdf: HashMap<FaceId, usize>, to_layout: Vec<FaceId>, } |
