Skip to content

Commit 87c7db6

Browse files
feat: Turtle.FontFamily ( Fixes #354, Fixes #377 )
1 parent 7b9f580 commit 87c7db6

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Types/Turtle/get_FontFamily.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 family
4+
.DESCRIPTION
5+
Gets the font family of the Turtle, if one has been set.
6+
7+
If no font family has been set, this returns nothing.
8+
.EXAMPLE
9+
turtle fontfamily 12 fontfamily
10+
.LINK
11+
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-family
12+
#>
13+
$this.TextAttribute.'font-family'

Types/Turtle/set_FontFamily.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 family
4+
.DESCRIPTION
5+
Sets the font family 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-family
12+
.EXAMPLE
13+
turtle fontfamily sans-serif fontfamily
14+
#>
15+
$this.TextAttribute = @{'font-family'= $args }

0 commit comments

Comments
 (0)