Skip to content

Print HTML - font-size is ignored #534

@hatsantos

Description

@hatsantos

Hello, I found this lib and is really a life safer. Thank you for the work you have done so far.

I just found an issue, regarding the font size.
I'm trying to print and HTML element, and that element has different font sizes in some elements, but in the print job the font seems to be always the same size. I noticed in the docs a prop that allows to change the default font-size "font_size" but this affects all the sizes...

I created a sample project: https://codesandbox.io/s/printjs-fontsize-vkm85

How can I keep print with different font sizes?

Btw, does the CDN URL have the latest version of this lib?
While testing I tried the CDN and found some bugs (not rendering position: absolute).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions