File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/OpenSign/src/components/pdf Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ function SignPad({
215
215
: fontSelect
216
216
? fontSelect
217
217
: "Fasthand" ;
218
- const fontSizeValue = isInitial ? "60px " : "40px" ;
218
+ const fontSizeValue = isInitial ? "20px " : "40px" ;
219
219
//creating span for getting text content width
220
220
const span = document . createElement ( "span" ) ;
221
221
span . textContent = textContent ;
@@ -229,7 +229,7 @@ function SignPad({
229
229
// Draw the text content on the canvas
230
230
const ctx = canvasElement . getContext ( "2d" ) ;
231
231
const pixelRatio = window . devicePixelRatio || 1 ;
232
- const addExtraWidth = isInitial ? 20 : 50 ;
232
+ const addExtraWidth = isInitial ? 10 : 50 ;
233
233
const width = span . offsetWidth + addExtraWidth ;
234
234
const height = span . offsetHeight ;
235
235
setTextWidth ( width ) ;
You can’t perform that action at this time.
0 commit comments