Skip to content

How to avoid embedding large font files in pdf? #3833

Open
@cuixiping

Description

@cuixiping

For example, Chinese font "SimSun" is used, and I don't want to embed font file in pdf. I expect that the pdf reader use system local fonts to render pdf file.

var doc = new jsPDF();
doc.setFont('SimSun', 'normal');  // How to avoid embedding the font file of SimSun?
doc.setFontSize(20);
doc.text('中文中文', 20, 40);
doc.save('test.pdf');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions