SVG-to-PDFKit icon indicating copy to clipboard operation
SVG-to-PDFKit copied to clipboard

Allow usage of font-weight attribute within fontCallback

Open mewtlu opened this issue 1 year ago • 0 comments

This is a breaking change to the fontCallback method which allows the user to make use of the exact font-weight value of the element rather than just a boolean of whether it is a bold variant.

Font weights of 800 and 900 are now classified as 'bolder' rather than 'bold', so the fontCallback is passed a weight string of type: 'normal' | 'bold' | 'bolder'.

mewtlu avatar Aug 29 '23 10:08 mewtlu