Skip to content

Commit 081dae0

Browse files
fix: font style for first time on save text signature
1 parent e286390 commit 081dae0

File tree

1 file changed

+5
-1
lines changed
  • microfrontends/SignDocuments/src/Component/component

1 file changed

+5
-1
lines changed

microfrontends/SignDocuments/src/Component/component/signPad.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ function SignPad({
145145
const convertToImg = async (fontStyle) => {
146146
//get text content to convert in image
147147
const textContent = signValue;
148-
const fontfamily = fontStyle ? fontStyle : fontSelect;
148+
const fontfamily = fontStyle
149+
? fontStyle
150+
: fontSelect
151+
? fontSelect
152+
: fontOptions[0].value;
149153
// Calculate the width of the text content
150154
const textWidth = getTextWidth(textContent, fontfamily);
151155
// Increase pixel ratio for higher resolution

0 commit comments

Comments
 (0)