Skip to content

Commit 4fae4b0

Browse files
feat: Turtle.FontStyle ( Fixes #354, Fixes #379 )
1 parent 5e86f99 commit 4fae4b0

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Types/Turtle/get_FontStyle.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<#
2+
.SYNOPSIS
3+
Gets the font style
4+
.DESCRIPTION
5+
Gets the font style of the Turtle, if one has been set.
6+
7+
If no font style has been set, this returns nothing.
8+
.EXAMPLE
9+
turtle fontstyle italic fontstyle
10+
.LINK
11+
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-style
12+
#>
13+
$this.TextAttribute.'font-style'

Types/Turtle/set_FontStyle.ps1

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<#
2+
.SYNOPSIS
3+
Sets the font style
4+
.DESCRIPTION
5+
Sets the font style of the Turtle.
6+
7+
Any input is acceptable, but it may not be valid.
8+
9+
Invalid input will be ignored.
10+
.LINK
11+
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-style
12+
.EXAMPLE
13+
turtle fontstyle italic fontstyle
14+
#>
15+
$this.TextAttribute = @{'font-style'= $args }

0 commit comments

Comments
 (0)