catalin88
catalin88
I keep getting this error message: ``` raise Prawn::Errors::IncompatibleStringEncoding, "Your document includes text that's not compatible with the Windows-1252 character set.\n" \ "If you need full UTF-8 support, use TTF...
@pointlessone well, actually Prawn is part of a gem I'm using for an e-commerce app to print Invoices. And this is the code that does it: https://github.com/spree-contrib/spree_print_invoice/blob/master/app/models/spree/bookkeeping_document.rb But all I'm...
@pointlessone And this is the configuration for the pdf file: https://github.com/spree-contrib/spree_print_invoice/blob/fa7502f6af6e315d788d4ecd9ba3ad6d3e5ad441/lib/spree/print_invoice_setting.rb `preference :font_face, :string, default: 'Helvetica'` ``` def font_faces ::Prawn::Font::AFM::BUILT_INS.reject do |font| font =~ /zapf|symbol|bold|italic|oblique/i end end ```