Merge pull request #3325 from betagouv/fix-3324
[Fix #3324] Change font and justify text in attestation
This commit is contained in:
commit
715bb96b86
1 changed files with 2 additions and 3 deletions
|
@ -1,8 +1,7 @@
|
|||
require 'prawn/measurement_extensions'
|
||||
|
||||
prawn_document(margin: [50, 100, 20, 100]) do |pdf|
|
||||
pdf.font_families.update( 'open sans' => { normal: './lib/prawn/fonts/OpenSans-Regular.ttf' })
|
||||
pdf.font 'open sans'
|
||||
pdf.font 'Times-Roman'
|
||||
|
||||
grey = '555555'
|
||||
black = '333333'
|
||||
|
@ -21,7 +20,7 @@ prawn_document(margin: [50, 100, 20, 100]) do |pdf|
|
|||
pdf.pad_top(40) { pdf.text @title, size: 18, character_spacing: -0.2 }
|
||||
|
||||
pdf.fill_color grey
|
||||
pdf.pad_top(30) { pdf.text @body, size: 10, character_spacing: -0.2 }
|
||||
pdf.pad_top(30) { pdf.text @body, size: 10, character_spacing: -0.2, align: :justify }
|
||||
|
||||
if @signature.present?
|
||||
pdf.pad_top(40) do
|
||||
|
|
Loading…
Reference in a new issue