Permalink
Browse files

Merge pull request #579 from M3ssman/master

Enhanced Doc for standard Fonts
  • Loading branch information...
2 parents 63d6e50 + 5fd673b commit f5b4f675c1171c5336343a35dfa0c9b7e5afbebd @devongovett committed on GitHub Dec 10, 2016
Showing with 19 additions and 3 deletions.
  1. +19 −3 docs/text.coffee.md
View
@@ -154,9 +154,25 @@ 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. PDFKit supports each of them out of the box.
+Besides Symbol and Zapf Dingbats this includes 4 styles (regular, bold, italic/oblique, bold+italic) of Helvetica,
+Courier, and Times. To switch between standard fonts, call the `font` method with the corresponding Label:
+* `'Courier'`
+* `'Courier-Bold'`
+* `'Courier-Oblique'`
+* `'Courier-BoldOblique'`
+* `'Helvetica'`
+* `'Helvetica-Bold'`
+* `'Helvetica-Oblique'`
+* `'Helvetica-BoldOblique'`
+* `'Symbol'`
+* `'Times-Roman'`
+* `'Times-Bold'`
+* `'Times-Italic'`
+* `'Times-BoldItalic'`
+* `'ZapfDingbats'`
+
+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.

0 comments on commit f5b4f67

Please sign in to comment.