Skip to content

Commit 092d67a

Browse files
author
David Khuu
committed
Use cursive font-family if SignatureFont cannot be loaded
There was an issue on iOS when SignatureFont was not loaded that question marks would be generated. This will use the OS's generic cursive font until SignatureFont can be loaded.
1 parent d6191a3 commit 092d67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

injectedJavaScript/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var content = (penColor, backgroundColor, dataURL, penMinWidth, penMaxWidth, use
7171
var textHeight = 18;
7272
var textWidth = -1;
7373
do {
74-
context.font = fontSize + "px SignatureFont";
74+
context.font = fontSize + "px SignatureFont, cursive";
7575
textWidth = context.measureText("${name}").width;
7676
fontSize = 7 * fontSize / 8;
7777
} while (textWidth + (w * 0.05) > w);

0 commit comments

Comments
 (0)