Skip to content

Commit 09ebd95

Browse files
committed
Add font fallbacks for non-Windows machines
1 parent 1d8fa0c commit 09ebd95

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: lib/csv-diff-report/html.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ def html_output(output)
4444
def html_styles
4545
style = <<-EOT
4646
<style>
47-
@font-face {font-family: Calibri;}
47+
@font-face {font-family: Calibri, Helvetica, sans-serif;}
4848
49-
h1 {font-family: Calibri; font-size: 16pt;}
50-
h2 {font-family: Calibri; font-size: 14pt; margin: 1em 0em .2em;}
51-
h3 {font-family: Calibri; font-size: 12pt; margin: 1em 0em .2em;}
52-
body {font-family: Calibri; font-size: 11pt;}
49+
h1 {font-family: Calibri, Helvetica, sans-serif; font-size: 16pt;}
50+
h2 {font-family: Calibri, Helvetica, sans-serif; font-size: 14pt; margin: 1em 0em .2em;}
51+
h3 {font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; margin: 1em 0em .2em;}
52+
body {font-family: Calibri, Helvetica, sans-serif; font-size: 11pt;}
5353
p {margin: .2em 0em;}
5454
code {font-size: 8pt; white-space: pre;}
55-
table {font-family: Calibri; font-size: 10pt; line-height: 12pt; border-collapse: collapse;}
55+
table {font-family: Calibri, Helvetica, sans-serif; font-size: 10pt; line-height: 12pt; border-collapse: collapse;}
5656
th {background-color: #00205B; color: white; font-size: 11pt; font-weight: bold; text-align: left;
5757
border: 1px solid #DDDDFF; padding: 1px 5px;}
5858
td {border: 1px solid #DDDDFF; padding: 1px 5px;}

0 commit comments

Comments
 (0)