[Fix #3343] Allow non windows-1252 characters in attestation

by using ttf font
This commit is contained in:
Frederic Merizen 2019-01-30 13:33:31 +01:00
parent d92bb9fee3
commit f17ab449b9
6 changed files with 48 additions and 1 deletions

View file

@ -1,7 +1,8 @@
require 'prawn/measurement_extensions'
prawn_document(margin: [50, 100, 20, 100]) do |pdf|
pdf.font 'Times-Roman'
pdf.font_families.update( 'liberation serif' => { normal: Rails.root.join('lib/prawn/fonts/liberation_serif/LiberationSerif-Regular.ttf' )})
pdf.font 'liberation serif'
grey = '555555'
black = '333333'