🔥 The free & Open Source DocuSign alternative
JavaScript digital-signaturedocument-signingdocusign-alternativedocusign-freee-signatureelectronic-signatureelectronic-signaturesesignesignaturehacktoberfestjavascriptlegaltechmongodbnodejsopen-sourcepdf-signpdf-signaturereactjsself-hostedsign-pdf-files
fix: font style for first time on save text signature
RaktimaNXG081dae0b903f
diff --git a/microfrontends/SignDocuments/src/Component/component/signPad.js b/microfrontends/SignDocuments/src/Component/component/signPad.jsindex 1eb483568..211ba0a8e 100644--- a/microfrontends/SignDocuments/src/Component/component/signPad.js+++ b/microfrontends/SignDocuments/src/Component/component/signPad.js@@ -145,7 +145,11 @@ function SignPad({const convertToImg = async (fontStyle) => {//get text content to convert in imageconst textContent = signValue;- const fontfamily = fontStyle ? fontStyle : fontSelect;+ const fontfamily = fontStyle+ ? fontStyle+ : fontSelect+ ? fontSelect+ : fontOptions[0].value;// Calculate the width of the text contentconst textWidth = getTextWidth(textContent, fontfamily);// Increase pixel ratio for higher resolution