You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an option to generate a signature based off the user's name. You can use your own custom font. Currently, we recommend converting your font file into a data URL (we used [dataurl.net](http://dataurl.net/#dataurlmaker)). Store that in a .js file with the contents similar to something like below:
23
+
24
+
```js
25
+
var content =`
26
+
@font-face {
27
+
font-family: 'SignatureFont';
28
+
src: url(/* data url of your font */) format(/* orig font file type i.e. 'ttf' */);
29
+
}
30
+
`;
31
+
32
+
exportdefaultcontent;
33
+
```
34
+
35
+
## Generating a Signature from a String
36
+
37
+
If you would like to generate a signature as opposed to manually writing your own, you can enable the `useFont` prop to `true` and use the prop `name` where the generated signature will be based from.
0 commit comments