[Fix #3343] Allow non windows-1252 characters in attestation
by using ttf font
This commit is contained in:
parent
d92bb9fee3
commit
f17ab449b9
6 changed files with 48 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue