Styles: Aligned fonts set on content and headers for exports

During review of #6069
This commit is contained in:
Dan Brown
2026-04-20 14:32:13 +01:00
parent 743a21a02f
commit 4f370ccddb

View File

@@ -12,12 +12,16 @@ html, body {
} }
body { body {
font-family: 'DejaVu Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Roboto", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
margin: 0; margin: 0;
padding: 0; padding: 0;
display: block; display: block;
} }
// Set fonts to common system fonts, starting with DejaVu Sans due to support in DOMPDF
body, h1, h2, h3, h4, h5, h6 {
font-family: 'DejaVu Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Roboto", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}
table { table {
border-spacing: 0; border-spacing: 0;
border-collapse: collapse; border-collapse: collapse;
@@ -64,11 +68,6 @@ body.export-format-pdf {
font-size: 14px; font-size: 14px;
line-height: 1.2; line-height: 1.2;
// Ensure heading glyph coverage for PDF engines that don't handle CSS vars well.
h1, h2, h3, h4, h5, h6 {
font-family: 'DejaVu Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Roboto", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
line-height: 1.2; line-height: 1.2;
} }