mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Enhanced Doc for standard Fonts
This commit is contained in:
parent
bd131a4cd9
commit
8a78a3a2b6
@ -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.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user