Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-HTMLFontIcon

Namespace PSWriteHTML

Creates an HTML font icon with specified parameters.

Remarks

This function generates an HTML font icon based on the provided parameters such as icon size, color, and specific icon set (e.g., FontAwesomeBrands, FontAwesomeRegular, FontAwesomeSolid, FontMaterial).

Examples

Authored help example

EXAMPLE 1


New-HTMLFontIcon -IconSize 24 -IconColor "red" -IconBrands "fa-github"
Generates an HTML font icon with a size of 24, red color, and the GitHub icon from the FontAwesomeBrands set.
        

EXAMPLE 2


New-HTMLFontIcon -IconSize 32 -IconColor "blue" -IconRegular "fa-envelope"
Generates an HTML font icon with a size of 32, blue color, and the envelope icon from the FontAwesomeRegular set.
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-HTMLFontIcon [-AsCSS] [-AsHashTable] [-FixedWidth] [-IconColor <String>] [-IconSize <Int32>] [-IconSolid <String>] [-Name <String>] [<CommonParameters>]
#
Parameter set: FontAwesomeSolid

Parameters

AsCSS SwitchParameter optionalposition: namedpipeline: False
AsHashTable SwitchParameter optionalposition: namedpipeline: False
FixedWidth SwitchParameter optionalposition: namedpipeline: False
IconColor String optionalposition: namedpipeline: False
Specifies the color of the icon.
IconSize Int32 optionalposition: namedpipeline: False
Specifies the size of the icon.
IconSolid String optionalposition: namedpipeline: False
Specifies the icon from the FontAwesomeSolid set.
Name String optionalposition: namedpipeline: False
New-HTMLFontIcon [-AsCSS] [-AsHashTable] [-Bordered] [-BorderedCircle] [-FixedWidth] [-FlipHorizontal] [-FlipVertical] [-IconColor <String>] [-IconMaterial <String>] [-IconSize <Int32>] [-ListIcons] [-Name <String>] [-PullLeft] [-PullRight] [-Rotate <90|180|270>] [-Spinning] [-SpinningReverse] [<CommonParameters>]
#
Parameter set: FontMaterial

Parameters

AsCSS SwitchParameter optionalposition: namedpipeline: False
AsHashTable SwitchParameter optionalposition: namedpipeline: False
Bordered SwitchParameter optionalposition: namedpipeline: False
BorderedCircle SwitchParameter optionalposition: namedpipeline: False
FixedWidth SwitchParameter optionalposition: namedpipeline: False
FlipHorizontal SwitchParameter optionalposition: namedpipeline: False
FlipVertical SwitchParameter optionalposition: namedpipeline: False
IconColor String optionalposition: namedpipeline: False
Specifies the color of the icon.
IconMaterial String optionalposition: namedpipeline: False
FontsMaterialIcon
IconSize Int32 optionalposition: namedpipeline: False
Specifies the size of the icon.
ListIcons SwitchParameter optionalposition: namedpipeline: False
for using within UL/LI http://zavoloklom.github.io/material-design-iconic-font/examples.html
Name String optionalposition: namedpipeline: False
PullLeft SwitchParameter optionalposition: namedpipeline: False
PullRight SwitchParameter optionalposition: namedpipeline: False
Rotate String optionalposition: namedpipeline: Falsevalues: 3
[parameter(ParameterSetName = "FontMaterial")][switch] $Wobble, [parameter(ParameterSetName = "FontMaterial")][switch] $FadeInLeft, [parameter(ParameterSetName = "FontMaterial")][switch] $Pulse,
Possible values: 90, 180, 270
Spinning SwitchParameter optionalposition: namedpipeline: False
SpinningReverse SwitchParameter optionalposition: namedpipeline: False
New-HTMLFontIcon [-AsCSS] [-AsHashTable] [-FixedWidth] [-IconColor <String>] [-IconRegular <String>] [-IconSize <Int32>] [-Name <String>] [<CommonParameters>]
#
Parameter set: FontAwesomeRegular

Parameters

AsCSS SwitchParameter optionalposition: namedpipeline: False
AsHashTable SwitchParameter optionalposition: namedpipeline: False
FixedWidth SwitchParameter optionalposition: namedpipeline: False
IconColor String optionalposition: namedpipeline: False
Specifies the color of the icon.
IconRegular String optionalposition: namedpipeline: False
Specifies the icon from the FontAwesomeRegular set.
IconSize Int32 optionalposition: namedpipeline: False
Specifies the size of the icon.
Name String optionalposition: namedpipeline: False
New-HTMLFontIcon [-AsCSS] [-AsHashTable] [-FixedWidth] [-IconBrands <String>] [-IconColor <String>] [-IconSize <Int32>] [-Name <String>] [<CommonParameters>]
#
Parameter set: FontAwesomeBrands

Parameters

AsCSS SwitchParameter optionalposition: namedpipeline: False
AsHashTable SwitchParameter optionalposition: namedpipeline: False
FixedWidth SwitchParameter optionalposition: namedpipeline: False
IconBrands String optionalposition: namedpipeline: False
Specifies the icon from the FontAwesomeBrands set.
IconColor String optionalposition: namedpipeline: False
Specifies the color of the icon.
IconSize Int32 optionalposition: namedpipeline: False
Specifies the size of the icon.
Name String optionalposition: namedpipeline: False