Skip to content

Font weight only take the last of the font family #3848

@lexflex64

Description

@lexflex64

I use jsPDF to transform a html form to pdf with pdf.html.
In this form the font-family is Outfit a google font.

I create 4 weight of this font with jsPDF Font Converter.
regular,medium,semibold, and bold.

I see the 4 weight with pdf.getFontList()['Outfit']
['500', '600', 'bold', 'normal']

But only the first weight it's applly to the pdf.
And only if normal weight it's in the list.

if i dont charge the font the font-family defautl it's use and i see the different font-weight in the pdf.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions