bostrom/text-to-image

Image fails to generate when height omitted and font-size set.

Closed this issue · 1 comments

Version of the library
5.2.0

Version of node
14.16.1

Describe the bug
generate("text", { fontSize: '18px', ...}) errors when customHeight is omitted from the configuration object but a fontSize is included.

The error returned is IndexSizeError: The source height is 0.

NVM! 18px should have been 18. Sorry for bothering you.

image