Pdfkit: How to make a bold text?

Created on 23 Oct 2016  路  4Comments  路  Source: foliojs/pdfkit

I don't see how to make a text become bold in here http://pdfkit.org/docs/text.html, is there any solutions?

Most helpful comment

Will be nice to have those on docs

All 4 comments

You can use doc.font('<path to your bold font>').text('<bold text>').

@oknoorap pdfkit includes 16 fonts, and Helvetica is its default one (_those don't seems to be documented elsewhere_).

If you don't need some fancy font, doc.font('Helvetica-Bold').text('will do the trick').

Will be nice to have those on docs

Totally agree with diego.

Was this page helpful?
0 / 5 - 0 ratings