From d3bc4ec07349a96c3863ddce63c2e52b5e7e9f2f Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 11 Oct 2020 22:38:30 +0200 Subject: =?UTF-8?q?Refactor=20layouting=20base=20=F0=9F=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/export/pdf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/export') diff --git a/src/export/pdf.rs b/src/export/pdf.rs index 722728ff..905ef984 100644 --- a/src/export/pdf.rs +++ b/src/export/pdf.rs @@ -142,9 +142,9 @@ impl<'a, W: Write> PdfExporter<'a, W> { match element { LayoutElement::Text(shaped) => { // Check if we need to issue a font switching action. - if shaped.face != face || shaped.size != size { + if shaped.face != face || shaped.font_size != size { face = shaped.face; - size = shaped.size; + size = shaped.font_size; text.tf( self.to_pdf[&shaped.face] as u32 + 1, size.to_pt() as f32, -- cgit v1.2.3