diff options
Diffstat (limited to 'src/export')
| -rw-r--r-- | src/export/pdf.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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, |
