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
@@ -188,10 +188,11 @@ Create a Path that represents the given text.
188
188
*`fontSize`: Size of the text in pixels (default: `72`).
189
189
190
190
Options is an optional object containing:
191
-
*`kerning`: if true takes kerning information into account (default: `true`)
191
+
*`kerning`: if `true`, takes kerning information into account (default: `true`)
192
192
*`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.
193
193
Currently only ligature features `"liga"` and `"rlig"` are supported (default: `true`).
194
194
*`hinting`: if true uses TrueType font hinting if available (default: `false`).
195
+
*`style`: An object of possible styling properties (fill, stroke, strokeWidth) applied to the resulting Path
195
196
196
197
_**Note:** there is also `Font.getPaths()` with the same arguments, which returns a list of Paths._
197
198
@@ -207,6 +208,7 @@ Options is an optional object containing:
207
208
*`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.
208
209
Currently only ligature features `"liga"` and `"rlig"` are supported (default: `true`).
209
210
*`hinting`: if true uses TrueType font hinting if available (default: `false`).
211
+
*`style`: An object of possible styling properties (fill, stroke, strokeWidth) applied to the resulting Path
210
212
211
213
#### `Font.drawPoints(ctx, text, x, y, fontSize, options)`
212
214
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