You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,10 +194,11 @@ Create a Path that represents the given text.
194
194
*`fontSize`: Size of the text in pixels (default: `72`).
195
195
196
196
Options is an optional object containing:
197
-
*`kerning`: if true takes kerning information into account (default: `true`)
197
+
*`kerning`: if `true`, takes kerning information into account (default: `true`)
198
198
*`features`: an object with [OpenType feature tags](https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags) as keys, and a boolean value to enable each feature.
199
199
Currently only ligature features `"liga"` and `"rlig"` are supported (default: `true`).
200
200
*`hinting`: if true uses TrueType font hinting if available (default: `false`).
201
+
*`style`: An object of possible styling properties (fill, stroke, strokeWidth) applied to the resulting Path
201
202
202
203
_**Note:** there is also `Font.getPaths()` with the same arguments, which returns a list of Paths._
203
204
@@ -213,6 +214,7 @@ Options is an optional object containing:
213
214
*`features`: an object with [OpenType feature tags](https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags) as keys, and a boolean value to enable each feature.
214
215
Currently only ligature features `"liga"` and `"rlig"` are supported (default: `true`).
215
216
*`hinting`: if true uses TrueType font hinting if available (default: `false`).
217
+
*`style`: An object of possible styling properties (fill, stroke, strokeWidth) applied to the resulting Path
216
218
217
219
#### `Font.drawPoints(ctx, text, x, y, fontSize, options)`
218
220
Draw the points of all glyphs in the text. On-curve points will be drawn in blue, off-curve points will be drawn in red. The arguments are the same as `Font.draw()`.
0 commit comments