From afb8be177204f75330cf5611b1f617169ce13283 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Wed, 22 Sep 2021 00:42:33 +0200 Subject: [PATCH] Font hand writing Caveat --- public/js/app.js | 2 +- public/{font => vendor/fonts}/Caveat-Regular.ttf | Bin templates/pdf.html.php | 13 +++++++++---- 3 files changed, 10 insertions(+), 5 deletions(-) rename public/{font => vendor/fonts}/Caveat-Regular.ttf (100%) diff --git a/public/js/app.js b/public/js/app.js index 52ab52b..709bb03 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -15,7 +15,7 @@ loadingTask.promise.then(function(pdf) { var activeCanvas = null; var activeCanvasPointer = null; - opentype.load('font/Caveat-Regular.ttf', function(err, font) { + opentype.load('/vendor/fonts/Caveat-Regular.ttf', function(err, font) { fontCaveat = font; }); diff --git a/public/font/Caveat-Regular.ttf b/public/vendor/fonts/Caveat-Regular.ttf similarity index 100% rename from public/font/Caveat-Regular.ttf rename to public/vendor/fonts/Caveat-Regular.ttf diff --git a/templates/pdf.html.php b/templates/pdf.html.php index 5c9f766..347c8d7 100644 --- a/templates/pdf.html.php +++ b/templates/pdf.html.php @@ -7,9 +7,14 @@ - - - + Signature PDF @@ -23,7 +28,7 @@
Texte à la main
- +
Image