ReLaXed icon indicating copy to clipboard operation
ReLaXed copied to clipboard

How do you outline fonts?

Open dagumak opened this issue 6 years ago • 3 comments

If I print an HTML with Chrome and save as a pdf, it outlines the fonts so then rendering it in something lie Adobe Illustrator then it doesn't need a font. This would also allow print shops to easily print PDFs. Is there a way to outline the fonts using this library?

dagumak avatar Jul 25 '19 12:07 dagumak

ReLaXed uses Chrome (actually, Chromium) to generate PDFs and yes I believe the fonts are embedded. Did you experience a case where it wasn't the case?

Zulko avatar Jul 25 '19 12:07 Zulko

ReLaXed uses Chrome (actually, Chromium) to generate PDFs and yes I believe the fonts are embedded. Did you experience a case where it wasn't the case?

I opened the demo pdfs in Adobe Illustrator and it doesn't look like the fonts are outlined.

dagumak avatar Jul 25 '19 13:07 dagumak

Outlining is converting the fonts to (vector) shapes. Embedding is different.

I see no option for this in Puppeteer: https://github.com/GoogleChrome/puppeteer/blob/v1.19.0/docs/api.md#pagepdfoptions

I guess it depends a bit on PostScript support and other things. This is probably an issue in Puppeteer / Chromium.

DanielRuf avatar Jul 25 '19 15:07 DanielRuf