Skip to content

Commit 743a21a

Browse files
committed
Merge branch 'fix/pdf-export-heading-fonts' of github.com:alexwoo-awso/BookStack into alexwoo-awso-fix/pdf-export-heading-fonts
2 parents 0c9fabb + 0b65967 commit 743a21a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

resources/sass/export-styles.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ body.export-format-pdf {
6464
font-size: 14px;
6565
line-height: 1.2;
6666

67+
// Ensure heading glyph coverage for PDF engines that don't handle CSS vars well.
68+
h1, h2, h3, h4, h5, h6 {
69+
font-family: 'DejaVu Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Roboto", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
70+
}
71+
6772
h1, h2, h3, h4, h5, h6 {
6873
line-height: 1.2;
6974
}
@@ -100,4 +105,4 @@ body.export-format-pdf.export-engine-dompdf {
100105
.page-content td a > img {
101106
max-width: 100%;
102107
}
103-
}
108+
}

0 commit comments

Comments
 (0)