Skip to content

Commit 701ba34

Browse files
committed
Add note about using buffers for fonts
1 parent 72757e3 commit 701ba34

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/guide.pdf‎

34 Bytes
Binary file not shown.

‎docs/text.coffee.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ and Datafork TrueType (`.dfont`) formats.
144144

145145
To change the font used to render text, just call the `font` method. If you
146146
are using a standard PDF font, just pass the name to the `font` method.
147-
Otherwise, pass the path to the font file, and if the font is a collection
148-
font (`.ttc` and `.dfont` files), meaning that they contain multiple styles in
149-
the same file, you should pass the name of the style to be extracted from the
150-
collection.
147+
Otherwise, pass the path to the font file, or a `Buffer` containing the font data.
148+
If the font is a collection font (`.ttc` and `.dfont` files), meaning that it
149+
contains multiple styles in the same file, you should pass the name of the style
150+
to be extracted from the collection.
151151

152152
Here is an example showing how to set the font in each case.
153153

0 commit comments

Comments
 (0)