Enhanced Doc for standard Fonts

This commit is contained in:
M3ssman 2016-11-15 22:04:14 +01:00
parent bd131a4cd9
commit 8a78a3a2b6

View File

@ -137,9 +137,13 @@ Here is the output:
## Fonts
The PDF format defines 14 standard fonts that can be used in PDF documents (4
styles of Helvetica, Courier, and Times, as well as Symbol and Zapf Dingbats),
but also allows fonts to be embedded right in the document. PDFKit supports
The PDF format defines 14 standard fonts that can be used in PDF documents. Besides Symbol
and Zapf Dingbats this includes 4 styles (regular, bold, italic/oblique, bold+italic) of Helvetica,
Courier, and Times. PDFKit supports them out of the box. To switch between standard fonts,
just call the `font` method with `'Times-Roman'`, `'Times-Bold'`, `'Times-Italic'` or `'Times-BoldItalic'`, respectivly.
See the `pdfkit/lib/font/data/` folder for the exact Labels.
The PDF format also allows fonts to be embedded right in the document. PDFKit supports
embedding TrueType (`.ttf`), OpenType (`.otf`), WOFF, WOFF2, TrueType Collection (`.ttc`),
and Datafork TrueType (`.dfont`) fonts.