Skip to content

Commit b9d07d1

Browse files
feat: Turtle.FontWeight ( Fixes #354, Fixes #381 )
2 parents 6818c4d + 0eabdcb commit b9d07d1

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Turtle.types.ps1xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6312,6 +6312,43 @@ $this.TextAttribute = @{'font-style'= $args }
63126312

63136313
</SetScriptBlock>
63146314
</ScriptProperty>
6315+
<ScriptProperty>
6316+
<Name>FontVariant</Name>
6317+
<GetScriptBlock>
6318+
&lt;#
6319+
.SYNOPSIS
6320+
Gets the font variant
6321+
.DESCRIPTION
6322+
Gets the font variant of the Turtle, if one has been set.
6323+
6324+
If no font variant has been set, this returns nothing.
6325+
.EXAMPLE
6326+
turtle fontvariant small-caps fontvariant
6327+
.LINK
6328+
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-variant
6329+
#&gt;
6330+
$this.TextAttribute.'font-variant'
6331+
6332+
</GetScriptBlock>
6333+
<SetScriptBlock>
6334+
&lt;#
6335+
.SYNOPSIS
6336+
Sets the font variant
6337+
.DESCRIPTION
6338+
Sets the font variant of the Turtle.
6339+
6340+
Any input is acceptable, but it may not be valid.
6341+
6342+
Invalid input will be ignored.
6343+
.LINK
6344+
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-variant
6345+
.EXAMPLE
6346+
turtle fontvariant small-caps fontvariant
6347+
#&gt;
6348+
$this.TextAttribute = @{'font-variant'= $args }
6349+
6350+
</SetScriptBlock>
6351+
</ScriptProperty>
63156352
<ScriptProperty>
63166353
<Name>Heading</Name>
63176354
<GetScriptBlock>

0 commit comments

Comments
 (0)