summaryrefslogtreecommitdiff
path: root/src/export/pdf.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-11-16 10:37:30 +0100
committerLaurenz <laurmaedje@gmail.com>2019-11-16 10:37:30 +0100
commit261ef9e33a8548d4b7aa53e69e71866648982ae8 (patch)
tree8c98eeb4a4bb2123b45baf1dd4de706a21d619e9 /src/export/pdf.rs
parent0917d89bb899380ba897382b4945c8426f25c66d (diff)
Generalize tree layouter 🌲
Diffstat (limited to 'src/export/pdf.rs')
-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 bb688118..76fc59b8 100644
--- a/src/export/pdf.rs
+++ b/src/export/pdf.rs
@@ -249,8 +249,8 @@ impl<'d, W: Write> ExportProcess<'d, W> {
},
LayoutAction::SetFont(id, size) => {
- active_font = (self.font_remap[id], *size);
- text.tf(active_font.0 as u32 + 1, *size);
+ active_font = (self.font_remap[id], size.to_pt());
+ text.tf(active_font.0 as u32 + 1, size.to_pt());
}
LayoutAction::WriteText(string) => {