summaryrefslogtreecommitdiff
path: root/src/export
diff options
context:
space:
mode:
Diffstat (limited to 'src/export')
-rw-r--r--src/export/pdf.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/export/pdf.rs b/src/export/pdf.rs
index f86f977c..43c58403 100644
--- a/src/export/pdf.rs
+++ b/src/export/pdf.rs
@@ -180,6 +180,7 @@ impl<'a> PdfExporter<'a> {
Element::Text(shaped) => {
let mut text = content.text();
+
// Check if we need to issue a font switching action.
if shaped.face != face || shaped.font_size != size {
face = shaped.face;