File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,10 +144,10 @@ and Datafork TrueType (`.dfont`) formats.
144144
145145To change the font used to render text, just call the `font` method. If you
146146are 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
152152Here is an example showing how to set the font in each case.
153153
You can’t perform that action at this time.
0 commit comments