Commit a9221f22 authored by Thibaut Broggi's avatar Thibaut Broggi

Fix alignment on first generation

parent 0a9f5ad7
Pipeline #1492 passed with stage
in 41 seconds
...@@ -68,6 +68,7 @@ let draw = function() { ...@@ -68,6 +68,7 @@ let draw = function() {
ctx.fillRect(0, height * 0.85 - 1, width, height * 0.15 + 1); ctx.fillRect(0, height * 0.85 - 1, width, height * 0.15 + 1);
ctx.fill(); ctx.fill();
ctx.font = '12pt FiraSans'; ctx.font = '12pt FiraSans';
ctx.textBaseline = 'top';
ctx.fillStyle = '#497ed5'; ctx.fillStyle = '#497ed5';
let offset = height * 0.05; let offset = height * 0.05;
if (signature) { if (signature) {
...@@ -81,7 +82,7 @@ let draw = function() { ...@@ -81,7 +82,7 @@ let draw = function() {
offset += ctx.measureText(', s').width; offset += ctx.measureText(', s').width;
} else { } else {
ctx.fillText('S', offset, height * 0.9); ctx.fillText('S', offset, height * 0.9);
offset+= ctx.measureText('S').width; offset += ctx.measureText('S').width;
} }
ctx.fillText(_('outenez '), offset, height * 0.9); ctx.fillText(_('outenez '), offset, height * 0.9);
offset += ctx.measureText(_('outenez ')).width; offset += ctx.measureText(_('outenez ')).width;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment