diff --git a/sample.pdf b/sample.pdf index bbe6037..fbbfd92 100644 Binary files a/sample.pdf and b/sample.pdf differ diff --git a/shared.rb b/shared.rb index 54eafd6..d28a79e 100644 --- a/shared.rb +++ b/shared.rb @@ -8,8 +8,13 @@ def init_pdf pdf = Prawn::Document.new(margin: RIGHT_PAGE_MARGINS, print_scaling: :none) - pdf.font_families.update(FONTS) - pdf.font(FONTS.keys.first) + # Use Helvetica for Linux environments where Futura isn't available + begin + pdf.font_families.update(FONTS) + pdf.font(FONTS.keys.first) + rescue Errno::ENOENT + pdf.font('Helvetica') + end pdf.stroke_color MEDIUM_COLOR pdf.line_width(0.5) pdf