Skip to content

🔥 The free & Open Source DocuSign alternative

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.js
index 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 image
const textContent = signValue;
- const fontfamily = fontStyle ? fontStyle : fontSelect;
+ const fontfamily = fontStyle
+ ? fontStyle
+ : fontSelect
+ ? fontSelect
+ : fontOptions[0].value;
// Calculate the width of the text content
const textWidth = getTextWidth(textContent, fontfamily);
// Increase pixel ratio for higher resolution