summaryrefslogtreecommitdiff
path: root/src/export
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-11 22:38:30 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-11 22:38:30 +0200
commitd3bc4ec07349a96c3863ddce63c2e52b5e7e9f2f (patch)
tree09c582973b58f05f9248d88f0020bf1dda262aa5 /src/export
parentf04ad0ffa5f34bb7fd97e5c94c7547f96904220c (diff)
Refactor layouting base 🪁
Diffstat (limited to 'src/export')
-rw-r--r--src/export/pdf.rs4
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,