ji-devs / draft-canvas

https://jewish-interactive.github.io/draft-canvas
MIT License
0 stars 0 forks source link

Add React prop to supplement list of fonts #13

Closed dakom closed 6 years ago

dakom commented 6 years ago

should accept list of objects with label and font name:

[{
  label: "Frank Ruhl",
  fontName: "Frank Ruhl Libre"
},
{...}
]

@jpuri suggested that "label" is optional (if not provided, fontName will be used for the label)

jpuri commented 6 years ago

I have added a new prop to the editor customFonts. The detail of the property are same as described above.